OSDN Git Service

PR target/23726
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-12-13  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
2
3         PR target/23726
4         * config/avr/predicates.md (pseudo_register_operand): New predicate
5         for pseudos.
6         * config/avr/avr.md (divmodqi4): Replace with define_insn_and_split
7         to allow div/mod optimization.
8         (udivmodqi4): Ditto.
9         (divmodhi4): Ditto.
10         (udivmodhi4): Ditto.
11         (divmodsi4): Ditto.
12         (udivmodsi4): Ditto. 
13
14 2009-12-13  Richard Guenther  <rguenther@suse.de>
15
16         PR tree-optimization/42357
17         * tree-sra.c (sra_modify_assign): Do not tear apart struct copies.
18
19 2009-12-12  Richard Guenther  <rguenther@suse.de>
20
21         * tree.c (need_assembler_name_p): Abstract decls do not need
22         an assembler name.
23         * dwarf2out.c (dwarf2out_abstract_function): Preserve
24         DECL_ABSTRACT properly.
25
26 2009-12-11  Richard Guenther  <rguenther@suse.de>
27
28         * lto-streamer-in.c (lto_input_tree_ref): Do not register
29         DEBUG_EXPR_DECLs with the varpool.
30
31 2009-12-11  Eric Botcazou  <ebotcazou@adacore.com>
32
33         * config/sparc/linux-unwind.h (MD_FROB_UPDATE_CONTEXT, 64-bit): Define.
34         (sparc64_frob_update_context): New function.
35
36 2009-12-11  Richard Guenther  <rguenther@suse.de>
37
38         PR lto/41658
39         PR lto/41657
40         * lto-streamer-out.c (write_global_stream): Do not make decls
41         weak but resort to TREE_ASM_WRITTEN to avoid multiple definitions.
42         Make sure to mark all decls that we have written.
43
44 2009-12-11  Sebastian Andrzej Siewior  <bigeasy@linutronix.de>
45
46         PR target/36047
47
48         * config/m68k/linux.h: Remove LABELNO from the mcount statement. It is
49         not used by glibc/uclibc and does not work with large binaries.
50
51 2009-12-11  Richard Guenther  <rguenther@suse.de>
52
53         PR lto/41662
54         * lto-streamer-in.c (lto_init_eh): Move eh_initialized_p
55         handling here.
56         (input_eh_regions): Adjust.
57         (lto_input_ts_function_decl_tree_pointers): Initialize EH
58         if a non-NULL DECL_FUNCTION_PERSONALITY was read in.
59
60 2009-12-11  Duncan Sands  <baldrick@free.fr>
61
62         * passes.c (make_pass_instance): Allocate and copy the right amount of
63         memory for ipa passes, which are not the same size as other passes.
64
65 2009-12-11  Joern Rennecke  <amylaar@spamcop.net>
66
67         * plugin.c (get_named_event_id): Fix hash table rebuild to include
68         dynamically allocated events.
69
70 2009-12-11  Richard Guenther  <rguenther@suse.de>
71
72         PR lto/42320
73         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Properly
74         detect non-prevailing decls.
75
76 2009-12-10  Jakub Jelinek  <jakub@redhat.com>
77
78         PR c++/42317
79         * cgraph.h (struct cgraph_node): Add same_comdat_group field.
80         * cgraph.c (cgraph_remove_node): Unchain node from same_comdat_group
81         circular list.
82         (cgraph_node_can_be_local_p): Return false for DECL_COMDAT with
83         node->same_comdat_group.
84         * ipa.c (cgraph_remove_unreachable_nodes): For any reachable node
85         mark all its same_comdat_group nodes as also reachable.
86         (cgraph_externally_visible_p): Return true even if any of
87         same_comdat_group nodes has address taken.
88         * lto-cgraph.c (lto_output_node): Stream out same_comdat_group.
89         (output_cgraph): Ensure other same_comdat_group nodes are also
90         included.
91         (input_node): Stream in same_comdat_group.
92         (input_cgraph_1): Fix up same_comdat_group fields from references
93         to pointers.
94         * cgraphunit.c (cgraph_analyze_functions): Mark all other
95         same_comdat_group nodes as reachable.
96         (cgraph_mark_functions_to_output): For each node->process process
97         also other same_comdat_group nodes.
98         * ipa-inline.c (cgraph_clone_inlined_nodes): Don't reuse nodes
99         with same_comdat_group non-NULL.
100         (cgraph_mark_inline_edge): Likewise.
101
102 2009-12-10  Jan Hubicka  <jh@suse.cz>
103
104         PR middle-end/42228
105         PR middle-end/42110
106         * cgraph.c (cgraph_create_edge_including_clones): Add old_stmt
107         parameter; update edge if it already exists.
108         (cgraph_remove_node): Handle correctly cases where we are removing
109         node having clones.
110         * cgraph.h (cgraph_create_edge_including_clones): Declare.
111         (verify_cgraph_node): Add missing error_found = true code.
112         (cgraph_materialize_all_clones): Remove call edges of dead nodes.
113         * ipa.c (cgraph_remove_unreachable_nodes): Correctly look for master
114         clone; fix double linked list removal.
115         * tree-inline.c (copy_bb): Update cgraph_create_edge_including_clones
116         call; fix frequency of newly created edge.
117
118 2009-12-10  Bernd Schmidt  <bernd.schmidt@analog.com>
119
120         PR rtl-opt/42216
121         * regrename.c: Error out if MAX_RECOG_OPERANDS is larger than
122         HOST_BITS_PER_WIDE_INT.
123         (verify_reg_in_set): New function, broken out of verify_reg_tracked.
124         (verify_reg_tracked): Use it.
125         (scan_rtx_reg): When seeing a use involving a superset of the
126         registers in an existing chain, enlarge that chain.  Otherwise,
127         allow subsets and set fail_current_block for all other kinds of
128         overlap.
129         (hide_operands): New argument UNTRACKED_OPERANDS; callers changed.
130         Do not modify operands when the bit with the corresponding number
131         is set in that bitmap.
132         (build_def_use): When we see matching operands with different
133         modes, don't set fail_current_block, but keep track of such
134         operands in a bitmap if their registers aren't already tracked
135         in an open chain.  Pass this bitmap to all hide_operands calls.
136
137 2009-12-10  Richard Guenther  <rguenther@suse.de>
138
139         PR tree-optimization/42337
140         * tree-ssa-pre.c (seen_during_translate): Remove.
141         (phi_translate_1): Collapse into ...
142         (phi_translate): ... this.  Remove seen parameter and
143         adjust recursive calls.
144
145 2009-12-10  Richard Guenther  <rguenther@suse.de>
146         Allan Sandfeld Jensen  <linux@carewolf.com>
147
148         * tree-vectorizer.c (vectorize_loops): Properly guard
149         vectorizer verboseness.
150
151 2009-12-10  Ben Elliston  <bje@au.ibm.com>
152
153         * fwprop.c (free_load_extend): Initialise `use'.
154
155 2009-12-09  David Edelsohn  <edelsohn@gnu.org>
156
157         * builtins.c (do_mpc_ckconv): Pass the component type to
158         real_from_mpfr().
159         
160 2009-12-09  Xinliang David Li  <davidxl@google.com>
161
162         PR tree-optimization/42337
163         * tree-ssa-pre.c (phi_translate_1): Push and Pop SEEN set.
164
165 2009-12-09  Nathan Froyd  <froydnj@codesourcery.com>
166
167         * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
168         mulv2sf3, divv2sf3): New expanders.
169         * config/rs6000/spe.md (spe_evabs, spe_evand, spe_evaddw, spe_evsubfw,
170         spe_evdivws): Rename to use standard GCC names.
171         * config/rs6000/paired.md (negv2sf, absv2sf2, addv2sf3, subv2sf3,
172         mulv2sf3, divv2sf3): Rename to avoid conflict with the new expanders.
173         * config/rs6000/rs6000.c (bdesc_2arg, bdesc_1arg): Use new CODE_FOR_
174         names for renamed patterns.
175
176 2009-12-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
177
178         * config/s390/s390.md ("copysign<mode>3"): Pattern removed.
179
180 2009-12-09  Jakub Jelinek  <jakub@redhat.com>
181
182         * configure.ac: Compute ld_ver, ld_vers, ld_date, ld_vers_major,
183         ld_vers_minor and ld_vers_path always, not just when gcc_cv_ld_hidden
184         isn't cached.
185         * configure: Regenerated.
186
187 2009-12-08  Richard Henderson  <rth@redhat.com>
188
189         * combine.c (setup_incoming_promotions): Fix sign-extend of
190         zero-extend case; tidy conditions.
191
192 2009-12-08  Michael Matz  <matz@suse.de>
193
194         PR middle-end/38474
195         * function.c (free_temp_slots): Only walk the temp slot
196         addresses and combine slots if we actually changes something.
197         (pop_temp_slots): Ditto.
198
199 2009-12-08  Olga Golovanevsky  <olga@il.ibm.com>
200
201         PR middle-end/41843
202         * ipa-struct-reorg.c (compare_fields): New function.
203         (find_field_in_struct_1): Use compare_fields function.
204         (is_equal_types): Likewise.
205
206 2009-12-07  DJ Delorie  <dj@redhat.com>
207
208         PR c/42312
209         * config/mep/mep.c (mep_expand_prologue): Set
210         really_need_stack_frame after frame_size is set.
211
212 2009-12-07  Richard Henderson  <rth@redhat.com>
213
214         PR rtl-opt/42269
215         * combine.c (setup_incoming_promotions): Improve the conditions
216         under which we respect the promotions applied.
217
218 2009-12-07  Eric Botcazou  <ebotcazou@adacore.com>
219
220         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch.
221         * config/sparc/linux64.h (ASM_SPEC): Likewise.
222
223 2009-12-07  Richard Henderson  <rth@redhat.com>
224
225         PR debug/42299
226         PR debug/42166
227         * tree-ssa.c (insert_debug_temp_for_var_def): Skip propagation
228         for ssa names already registered for update.
229
230 2009-12-07  Jakub Jelinek  <jakub@redhat.com>
231
232         PR debug/42244
233         * ddg.c (add_inter_loop_mem_dep): Use ANTI_DEP if from or to
234         is a DEBUG_INSN.
235
236 2009-12-07  Sebastian Pop  <sebastian.pop@amd.com>
237
238         * config/i386/driver-i386.c (host_detect_local_cpu): Add -mlwp to the
239         options when bit_LWP is set.
240
241 2009-12-07  Sebastian Pop  <sebastian.pop@amd.com>
242
243         * config/i386/cpuid.h (bit_ABM): New.
244         * config/i386/driver-i386.c (host_detect_local_cpu): Add -mabm to the
245         options when bit_ABM is set.
246
247 2009-12-07  Jakub Jelinek  <jakub@redhat.com>
248
249         * config/i386/i386.c (bdesc_special_args): Move __builtin_clzs from
250         this array ...
251         (bdesc_args): ... here.
252         * config.gcc (i[34567]86-*-*): Include abmintrin.h.
253         (x86_64-*-*): Likewise.
254
255 2009-12-07  Sebastian Pop  <sebastian.pop@amd.com>
256
257         * config.gcc (i[34567]86-*-*, x86_64-*-*): Add popcntintrin.h.
258         * config/i386/abmintrin.h (_mm_popcnt_u32, _mm_popcnt_u64): Moved...
259         * config/i386/i386-c.c (__POPCNT__): Defined.
260         * config/i386/popcntintrin.h: ...here.  New file.
261         * config/i386/smmintrin.h (_mm_popcnt_u32, _mm_popcnt_u64): Moved...
262         Include popcntintrin.h.
263         * config/i386/x86intrin.h: Include popcntintrin.h when __POPCNT__
264         is defined.
265
266 2009-12-07  Sebastian Pop  <sebastian.pop@amd.com>
267
268         * config/i386/i386-protos.h (ix86_expand_fma4_multiple_memory):
269         Removed.
270         * config/i386/i386.c (ix86_expand_fma4_multiple_memory): Removed.
271         * config/i386/sse.md: Remove all XOP splitters.
272         Allow the second and fourth operands of XOP multiply-add insns
273         to be nonimmediate.
274
275 2009-12-07  Sebastian Pop  <sebastian.pop@amd.com>
276
277         * config/i386/sse.md: Remove all FMA4 splitters.
278         Allow the second operand of FMA4 insns to be a nonimmediate.
279         Fix comments punctuation.
280
281 2009-12-07  Julian Brown  <julian@codesourcery.com>
282
283         * config/arm/constraints.md (Ps, Pt): New constraint letters.
284         * config/arm/thumb2.md (*thumb2_addsi_short): Tighten constraints.
285
286 2009-12-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
287
288         PR other/40302
289         * configure.ac (HAVE_mpc): Don't define.
290         * config.in, configure: Regenerate.
291
292         PR other/40302
293         * builtins.c: Remove HAVE_mpc* checks throughout.
294         * fold-const.c: Likewise.
295         * real.h: Likewise.
296         * toplev.c: Likewise.
297
298 2009-12-07  Edmar Wienskoski  <edmar@freescale.com>
299
300         * config.gcc (cpu_is_64bit): Add new core e500mc64.
301         (powerpc*-*-*): Add new core e500mc64.
302         * config/rs6000/e500mc64.md: New file.
303         * config/rs6000/rs6000.c (processor_costs): Add new costs for
304         e500mc64.
305         (rs6000_override_options): Add e500mc64 case to
306         processor_target_table. Altivec and Spe options not allowed with
307         e500mc64. Disable string instructions for e500mc64. Enable branch
308         targets alignment for both e500mc and e500mc64. Initialize
309         rs6000_cost for e500mc64.
310         (rs6000_emit_sISEL): New function.
311         (rs6000_emit_sCOND): Call rs6000_emit_sISEL for isel targets.
312         (rs6000_emit_int_cmove): Fix mode of 64 bit isel pattern
313         generation.
314         (rs6000_issue_rate): Set issue rate for e500mc64.
315         (rs6000_rtx_costs): Set more accurate cost for mfcr instruction
316         on architectures with isel.
317         * config/rs6000/rs6000-protos.h (rs6000_emit_sISEL): Declare.
318         * config/rs6000/rs6000.h (processor_type): Add
319         PROCESSOR_PPCE500MC64.
320         (ASM_CPU_SPEC): Add e500mc64.
321         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc64.
322         Include e500mc64.md.
323         (abssi2_isel): Expand pattern to handle DImode.
324         (nabs<mode>2_isel): New pattern.
325         (absdi2): Change pattern to handle 64 bit isel targets.
326         (absdi2_internal): Exclude ISEL targets.
327         (nabsdi2): Exclude ISEL targets.
328         * doc/invoke.texi: Add e500mc64 to list of cpus.
329
330 2009-12-07  Uros Bizjak  <ubizjak@gmail.com>
331
332         * config/i386/i386.md (any_or): New code iterator.
333         (any_logic): Rename from plogic code iterator.
334         (logicprefix): Rename from plogicprefix code attribute.
335         (<code><mode>3): Macroize expander from {ior,xor}<mode>3 using
336         any_or code iterator.
337         (*<code><mode>_1): Macroize insn from *{ior,xor}<mode>_1 using
338         any_or code iterator.
339         (*<code><mode>_2): Ditto from *{ior,xor}<mode>_2.
340         (*<code><mode>_3): Ditto from *{ior,xor}<mode>_3.
341         (ior and xor splitters): Ditto.
342         * config/i386/mmx.md: Updated for rename.
343         * config/i386/sse.md: Ditto.
344
345 2009-12-07  Uros Bizjak  <ubizjak@gmail.com>
346
347         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
348         Remove quotes around condition logic code.
349
350 2009-12-06  Richard Henderson  <rth@redhat.com>
351
352         PR debug/42234
353         * tree-ssa-dom.c (degenerate_phi_result): Check for NULL phi
354         argument earlier.
355
356 2009-12-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
357
358         * doc/install.texi: Document MPC is required.
359
360 2009-12-06  Uros Bizjak  <ubizjak@gmail.com>
361
362         * config/i386/i386.md (g): Add HImode and QImode.
363         (general_szext_operand): New mode attribute.
364         (*test<mode>_1): Macroize insn from *test{qi,hi,si}_1 using
365         SWI124 mode iterator.
366         (and<mode>3): Macroize expander from and{qi,hi,si,di}3 using
367         SWIM mode iterator.
368         (*and<mode>_2): Macroize insn from *and{qi,hi,si}_2 using
369         SWI124 mode iterator.
370         (ior<mode>3): Macroize expander from ior{qi,hi,si,di}3 using
371         SWIM mode iterator.
372         (*ior<mode>_1): Macroize insn from *ior{hi,si,di}_1 using
373         SWI248 mode iterator.
374         (*ior<mode>_2): Macroize insn from *ior{qi,hi,si,di}_2 using
375         SWI mode iterator.
376         (*ior<mode>_3): Macroize insn from *ior{qi,hi,si,di}_3 using
377         SWI mode iterator.
378         (xor<mode>3): Macroize expander from xor{qi,hi,si,di}3 using
379         SWIM mode iterator.
380         (*xor<mode>_1): Macroize insn from *xor{hi,si,di}_1 using
381         SWI248 mode iterator.
382         (*xor<mode>_2): Macroize insn from *xor{qi,hi,si,di}_2 using
383         SWI mode iterator.
384         (*xor<mode>_3): Macroize insn from *xor{qi,hi,si,di}_3 using
385         SWI mode iterator.
386
387 2009-12-05  Sebastian Pop  <sebastian.pop@amd.com>
388
389         * config/i386/i386.c (TARGET_DEFAULT_TARGET_FLAGS): Add
390         MASK_FUSED_MADD.
391         * config/i386/i386.h (CC1_CPU_SPEC_1): Remove
392         "'-mfused-madd' was removed".
393         * config/i386/i386.opt (mfused-madd): New.
394         * config/i386/sse.md: Add TARGET_FUSED_MADD to FMA4 insns.
395         * doc/invoke.texi (-mfused-madd, -mno-fused-madd): Document.
396
397 2009-12-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
398
399         * pa64-hpux.h (LIB_SPEC): Handle -rdynamic.
400         * pa-hpux10.h (LIB_SPEC): Likewise.
401         * pa-hpux11.h (LIB_SPEC): Likewise.
402
403         PR ada/41912
404         * pa/linux-unwind.h (pa32_fallback_frame_state): Set fs->signal_frame
405         for signal frames.
406         * pa/hpux-unwind.h (pa32_fallback_frame_state): Likewise.
407
408 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
409
410         * configure: Regenerate.
411
412 2009-12-05  Richard Earnshaw  <rearnsha@arm.com>
413
414         * arm/thumb2.md (thumb2_mulsi_short_compare0): Use a low-register
415         for the scratch.
416
417 2009-12-04  David Daney  <ddaney@caviumnetworks.com>
418
419         PR rtl-optimization/42164
420         * combine.c (combine_simplify_rtx): Handle truncation of integer
421         constants.
422
423 2009-12-04  Richard Guenther  <rguenther@suse.de>
424
425         * lto-streamer-out.c (pack_ts_decl_common_value_fields):
426         Revert previous change.
427         (lto_output_ts_decl_common_tree_pointers): Stream DECL_VALUE_EXPR.
428         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
429         Likewise.
430
431 2009-12-04  Richard Guenther  <rguenther@suse.de>
432
433         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
434         BUILT_IN_MALLOC.
435         (call_may_clobber_ref_p_1): Likewise.
436
437 2009-12-04  Matthias Klose  <doko@ubuntu.com>
438             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
439
440         PR target/40134
441         * config.gcc (hppa*-*-linux*): Use config/t-slibgcc-libgcc.
442         * config/pa/pa-linux.h (LIB_SPEC): Remove.
443
444 2009-12-03  Sebastian Pop  <sebastian.pop@amd.com>
445             Richard Henderson  <rth@redhat.com>
446
447         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Remove.
448         * config/i386/i386.c (ix86_fma4_valid_op_p): Remove.
449         * config/i386/i386.md: Do not use ix86_fma4_valid_op_p.
450         * config/i386/sse.md (fma4_*): Remove alternative with operand 1
451         matching a memory access.  Do not use ix86_fma4_valid_op_p.
452         (xop_*): Same.
453         Do not use ix86_fma4_valid_op_p in FMA4 and XOP splitters.
454
455 2009-12-03  Richard Henderson  <rth@redhat.com>
456
457         * config/i386/i386.c (ix86_fixup_binary_operands): For FMA4, force
458         all operands into registers.
459
460 2009-12-03  Sebastian Pop  <sebastian.pop@amd.com>
461
462         * config/i386/i386.c (ix86_expand_fma4_multiple_memory): Remove unused
463         parameter.
464         * config/i386/i386-protos.h (ix86_expand_fma4_multiple_memory): Same.
465         * config/i386/sse.md: Same.
466
467 2009-12-03  Richard Guenther  <rguenther@suse.de>
468
469         * cgraphunit.c (assemble_thunk): Use DECL_ASSEMBLER_NAME
470         instead of DECL_NAME for the entry point.
471
472 2009-12-03  Richard Earnshaw  <rearnsha@arm.com>
473
474         * arm/linux-atomic.c (SYNC_LOCK_RELEASE): Place memory barrier
475         before the lock release.
476
477 2009-12-03  Michael Matz  <matz@suse.de>
478
479         PR middle-end/38474
480         * cfgexpand.c (struct stack_var): Add conflicts member.
481         (stack_vars_conflict, stack_vars_conflict_alloc,
482         n_stack_vars_conflict): Remove.
483         (add_stack_var): Initialize conflicts member.
484         (triangular_index, resize_stack_vars_conflict): Remove.
485         (add_stack_var_conflict, stack_var_conflict_p): Rewrite in
486         terms of new member.
487         (union_stack_vars): Only run over the conflicts.
488         (partition_stack_vars): Remove special case.
489         (expand_used_vars_for_block): Don't call resize_stack_vars_conflict,
490         don't create self-conflicts.
491         (account_used_vars_for_block): Don't create any conflicts.
492         (fini_vars_expansion): Free bitmaps, don't free or clear removed
493         globals.
494
495 2009-12-03  Bernd Schmidt  <bernd.schmidt@analog.com>
496
497         PR middle-end/42202
498         * regrename.c (live_in_chains): New variable.
499         (verify_reg_tracked): New static function.
500         (scan_rtx_reg): Update live_in_chains.
501         (scan_rtx): Only promote sets in COND_EXEC to OP_INOUT if
502         we're already tracking the reg.
503         (build_def_use): Likewise.  Initialize live_in_chains.
504
505 2009-12-03  Ken Werner  <ken.werner@de.ibm.com>
506
507         * config/spu/spu-elf.h (STARTFILE_SPEC): Add support for gprof
508         startup files.
509         * config/spu/spu-protos.h (spu_function_profiler): Add prototype.
510         * config/spu/spu.c (spu_function_profiler): New function.
511         * config/spu/spu.h (FUNCTION_PROFILER): Invoke
512         spu_function_profiler.
513         (NO_PROFILE_COUNTERS): Define.
514         (PROFILE_BEFORE_PROLOGUE): Likewise.
515
516 2009-12-03  Dave Korn  <dave.korn.cygwin@gmail.com>
517
518         * ggc-page.c (struct free_object): Pull definition out ...
519         (struct globals): .. from here.
520
521 2009-12-02  Richard Guenther  <rguenther@suse.de>
522
523         * fold-const.c (div_if_zero_remainder): Honor that sizetypes
524         are sign-extending.  Simplify.
525
526 2009-12-02  Richard Henderson  <rth@redhat.com>
527
528         PR tree-opt/42215
529         * tree-loop-distribution.c (build_size_arg_loc): Tidy.
530         (generate_memset_zero): Convert to sizetype properly.  Tidy.
531
532 2009-12-02  Richard Guenther  <rguenther@suse.de>
533
534         * lto-streamer-out.c (pack_ts_decl_common_value_fields):
535         Do not pretend we have value exprs.
536
537 2009-12-02  Richard Guenther  <rguenther@suse.de>
538
539         PR middle-end/41491
540         * fold-const.c (try_move_mult_to_index): Do not leak
541         domain types into the IL.
542
543 2009-12-02  Richard Guenther  <rguenther@suse.de>
544
545         PR middle-end/42088
546         * tree.c (free_lang_data): Disable if not using LTO.
547
548 2009-12-02  Richard Guenther  <rguenther@suse.de>
549
550         PR middle-end/42229
551         * cfgloopmanip.c (remove_path): Avoid cancelling loops twice.
552
553 2009-12-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
554
555         PR middle-end/42224
556         * tree.h (int_or_pointer_precision): Remove.
557         * tree.c (int_or_pointer_precision): Remove.
558         (integer_pow2p): Use TYPE_PRECISION instead.
559         (tree_log2): Likewise.
560         (tree_floor_log2): Likewise.
561         (signed_or_unsigned_type_for): Likewise.
562         * fold-const.c (fit_double_type): Likewise.
563         * varasm.c (initializer_constant_valid_p): Likewise.
564
565 2009-12-02  Ira Rosen  <irar@il.ibm.com>
566
567         * doc/invoke.texi (-fdump-tree-slp): Document.
568         (-ftree-vectorizer-verbose): Update.
569         (-ftree-slp-vectorize): Document.
570
571 2009-12-02  Nick Clifton  <nickc@redhat.com>
572
573         * config/rx/rx.c (rx_conditional_register_usage): Do not warn if
574         no fixed registers are available for interrupt handlers.  Do not
575         fix normal registers.
576         (MUST_SAVE_ACC_REGISTER): New macro.
577         (rx_get_stack_layout): Create a stack frame for fast interrupt
578         handlers, if necessary.  Push extra registers if needed in order
579         to save the accumulator.
580         (rx_expand_prologue): Create a stack frame for fast interrupt
581         handlers, if necessary.
582         (rx_expand_builtin_mvfc): Handle the case where there is no target.
583
584 2009-12-01  Sebastian Pop  <sebastian.pop@amd.com>
585
586         * config/i386/abmintrin.h (__lzcnt16): New.
587         (__lzcnt): New.
588         (__lzcnt64): New.
589         * config/i386/i386-builtin-types.def (UINT16_FTYPE_UINT16): New.
590         * config/i386/i386.c (IX86_BUILTIN_CLZS): New.
591         (bdesc_special_args): Add __builtin_clzs.
592         (ix86_expand_args_builtin): Handle UINT16_FTYPE_UINT16.
593
594 2009-12-01  Sebastian Pop  <sebastian.pop@amd.com>
595
596         * config/i386/abmintrin.h (_mm_popcnt_u32): New.
597         (_mm_popcnt_u64): New.
598
599 2009-12-01  Sebastian Pop  <sebastian.pop@amd.com>
600
601         * config/i386/abmintrin.h: New.
602         * config/i386/i386-c.c (ix86_target_macros_internal): Defined __ABM__.
603         * config/i386/x86intrin.h: Include abmintrin.h when __ABM__ is defined.
604
605 2009-12-01  Uros Bizjak  <ubizjak@gmail.com>
606
607         * config/i386/i386.md (SWI124): Rename from CRC32MODE.
608         (crc32modesuffix): Remove.
609         (crc32modeconstraint): Ditto.
610         (sse4_2_crc32<mode>): Update for renamed mode iterator.  Use
611         imodesuffix instead of crc32modesuffix and <r>m instead of
612         crc32modeconstraint.
613
614 2009-12-01  Jakub Jelinek  <jakub@redhat.com>
615
616         PR c++/42234
617         * tree-cfgcleanup.c (cleanup_omp_return): Don't ICE if control_bb
618         contains no statements.
619
620 2009-12-01  Grigori Fursin  <grigori.fursin@inria.fr>
621             Joern Rennecke  <amylaar@spamcop.net>
622
623         * cgraphunit.c (plugin.h): Include.
624         (ipa_passes): Invoke PLUGIN_ALL_IPA_PASSES_START /
625         PLUGIN_ALL_IPA_PASSES_END at start / end of processing.
626         * gcc-plugin.h (highlev-plugin-common.h, hashtab.h): Include.
627         (enum plugin_event): Define by including plugin.def.
628         Last enumerator is now called PLUGIN_EVENT_FIRST_DYNAMIC.
629         (plugin_event_name): Change type to const char **.
630         (get_event_last, get_named_event_id, unregister_callback): Declare.
631         (register_callback): Change type of event argument to int.
632         (highlev-plugin-common.h): New file.
633         * Makefile.in (GCC_PLUGIN_H): Add highlev-plugin-common.h and
634         $(HASHTAB_H)
635         (tree-optimize.o passes.o): Depend on $(PLUGIN_H).
636         (PLUGIN_HEADERS): Add opts.h, $(PARAMS_H) and plugin.def.
637         (s-header-vars): New rule.
638         (install-plugin): Depend on s-header-vars.  Install b-header-vars.
639         * params.c (get_num_compiler_params): New function.
640         * params.h (get_num_compiler_params): Declare.
641         * passes.c (plugin.h): Include.
642         (make_pass_instance): Invoke PLUGIN_NEW_PASS.
643         (do_per_function_toporder, pass_init_dump_file): No longer static.
644         (pass_fini_dump_file): Likewise.
645         (execute_one_pass): Likewise.  Invoke PLUGIN_OVERRIDE_GATE and
646         PLUGIN_PASS_EXECUTION.
647         (execute_ipa_pass_list): Invoke PLUGIN_EARLY_GIMPLE_PASSES_START and
648         PLUGIN_EARLY_GIMPLE_PASSES_END.
649         * plugin.c (plugin_event_name_init): New array, defined by
650         including plugin.def.
651         (FMT_FOR_PLUGIN_EVENT): Update.
652         (plugin_event_name): Change type to const char ** and initialize
653         to plugin_event_name_init.
654         (event_tab, event_last, event_horizon): New variable.
655         (get_event_last): New function.
656         (plugin_callbacks_init): New array.
657         (plugin_callbacks: Change type to struct callback_info **.
658         Initialize to plugin_callbacks_init.
659         (htab_event_eq, get_named_event_id, unregister_callback): New function.
660         (invoke_plugin_va_callbacks): Likewise.
661         (register_callback): Change type of event argument to int.
662         Handle new events.  Allow dynamic events.
663         (invoke_plugin_callbacks): Likewise.  Return success status.
664         (plugins_active_p): Allow dynamic callbacks.
665         * plugin.def: New file.
666         * plugin.h (invoke_plugin_callbacks): Update prototype.
667         (invoke_plugin_va_callbacks): Declare.
668         * tree-optimize.c (plugin.h): Include.
669         (tree_rest_of_compilation): Invoke PLUGIN_ALL_PASSES_START and
670         PLUGIN_ALL_PASSES_END.
671         * tree-pass.h (execute_one_pass, pass_init_dump_file): Declare.
672         (pass_fini_dump_file, do_per_function_toporder): Likewise.
673         * doc/plugin.texi: Document new event types.
674
675 2009-12-01  Martin Jambor  <mjambor@suse.cz>
676
677         PR tree-optimization/42237
678         * tree-sra.c (sra_ipa_modify_assign): Split gimple_reg_type assignments
679         in between references into two.
680
681 2009-12-01  Richard Guenther  <rguenther@suse.de>
682
683         * tree-inline.c (copy_tree_body_r): Do not set TREE_BLOCK
684         to the block of the call when remapping a type.
685
686 2009-12-01  Martin Jambor  <mjambor@suse.cz>
687
688         * cgraph.h (struct cgraph_edge): Reorder fields.  Make loop_nest
689         unsigned short int.
690         * ipa-prop.h (struct ipa_param_call_note): Likewise.
691         * ipa-prop.c (ipa_note_param_call): Initialize note->loop_nest.
692
693 2009-12-01  Richard Guenther  <rguenther@suse.de>
694
695         * final.c (rest_of_clean_state): If -fcompare-debug is
696         given dump final insns without UIDs.
697         * tree-ssa-live.c (remove_unused_scope_block_p): Remove
698         after_inlining checks.
699
700 2009-11-30  Chao-ying Fu  <fu@mips.com>
701
702         * config/mips/mips-dsp.md (mips_lhx_<mode>): Use sign_extend.
703
704 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
705
706         * configure.ac (USE_CYGWIN_LIBSTDCXX_WRAPPERS): Define to reflect
707         status of AC_CHECK_FUNC for Cygwin DLL libstdc++ support wrappers.
708         * configure: Regenerate.
709         * config.in: Regenerate.
710
711         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Define list of --wrap
712         options for Cygwin DLL libstdc++ support wrappers.
713         (CXX_WRAP_SPEC_OPT): Define spec to use wrappers or not by default
714         according to defined value of USE_CYGWIN_LIBSTDCXX_WRAPPERS.
715         (CXX_WRAP_SPEC): Define entire wrapper spec in or out according to
716         whether USE_CYGWIN_LIBSTDCXX_WRAPPERS is even defined or not.
717         (LINK_SPEC): Include CXX_WRAP_SPEC.
718         * gcc/config/i386/winnt.c (wrapper_strcmp): New qsort helper function.
719         (i386_find_on_wrapper_list): Check if a function is found on the list
720         of libstdc++ wrapper options.
721         (i386_pe_file_end): If we are importing a wrapped function, also emit
722         an external declaration for the real version.
723         * config/i386/cygming.opt (muse-libstdc-wrappers): New option for
724         Cygwin targets. Update copyright year.
725
726 2009-11-30  Steve Ellcey  <sje@cup.hp.com>
727             Jakub Jelinek <jakub@redhat.com>
728
729         * function.c (instantiate_virtual_regs_in_insn): Copy to new reg
730         before forcing mode.
731
732 2009-11-30  Anatoly Sokolov  <aesok@post.ru>
733
734         * config/sh/sh.c (sh_promote_prototypes): Make static.
735         (sh_function_value, sh_libcall_value, sh_function_value_regno_p): New
736         functions.
737         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
738         * config/sh/sh.h (FUNCTION_VALUE_REGNO_P): Redefine, use
739         sh_function_value_regno_p.
740         (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
741         * config/sh/sh-protos.h (sh_function_value_regno_p): Declare.
742         (sh_promote_prototypes) : Remove.
743
744 2009-11-30  Julian Brown  <julian@codesourcery.com>
745
746         * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Don't restrict Thumb-2
747         reloads to LO_REGS.
748
749 2009-11-30  Richard Henderson  <rth@redhat.com>
750
751         * config/i386/i386.c (ix86_vec_interleave_v2df_operator_ok): New.
752         (bdesc_special_args): Update insn codes.
753         (avx_vpermilp_parallel): Correct range check.
754         (ix86_rtx_costs): Handle vector permutation rtx codes.
755         (struct expand_vec_perm_d): Move earlier.
756         (get_mode_wider_vector): New.
757         (expand_vec_perm_broadcast_1): New.
758         (ix86_expand_vector_init_duplicate): Use it.  Tidy AVX modes.
759         (expand_vec_perm_broadcast): New.
760         (ix86_expand_vec_perm_builtin_1): Use it.
761         * config/i386/i386-protos.h: Update.
762         * config/i386/predicates.md (avx_vbroadcast_operand): New.
763         * config/i386/sse.md (AVX256MODE24P): New.
764         (ssescalarmodesuffix2s): New.
765         (avxhalfvecmode, avxscalarmode): Fill out to all modes.
766         (avxmodesuffixf2c): Add V8SI, V4DI.
767         (vec_dupv4sf): New expander.
768         (*vec_dupv4sf_avx): Add vbroadcastss alternative.
769         (*vec_set<mode>_0_avx, **vec_set<mode>_0_sse4_1): Macro-ize for
770         V4SF and V4SI.  Move C alternatives to front.  Add insertps and
771         pinsrd alternatives.
772         (*vec_set<mode>_0_sse2): Split out from ...
773         (vec_set<mode>_0): Macro-ize for V4SF and V4SI.
774         (vec_interleave_highv2df, vec_interleave_lowv2df): Require register
775         destination; use ix86_vec_interleave_v2df_operator_ok, instead of
776         ix86_fixup_binary_operands.
777         (*avx_interleave_highv2df, avx_interleave_lowv2df): Add movddup.
778         (*sse3_interleave_highv2df, sse3_interleave_lowv2df): New.
779         (*avx_movddup, *sse3_movddup): Remove.  New splitter from
780         vec_select form to vec_duplicate form.
781         (*sse2_interleave_highv2df, sse2_interleave_lowv2df): Use
782         ix86_vec_interleave_v2df_operator_ok.
783         (avx_movddup256, avx_unpcklpd256): Change to expanders, merge into ...
784         (*avx_unpcklpd256): ... here.
785         (*vec_dupv4si_avx): New.
786         (*vec_dupv2di_avx): Add movddup alternative.
787         (*vec_dupv2di_sse3): New.
788         (vec_dup<AVX256MODE24P>): Replace avx_vbroadcasts<AVXMODEF4P> and
789         avx_vbroadcastss256; represent with vec_duplicate instead of
790         nested vec_concat operations.
791         (avx_vbroadcastf128_<mode>): Rename from
792         avx_vbroadcastf128_p<avxmodesuffixf2c>256.
793         (*avx_vperm_broadcast_v4sf): New.
794         (*avx_vperm_broadcast_<AVX256MODEF2P>): New.
795
796 2009-11-30  Martin Jambor  <mjambor@suse.cz>
797
798         PR middle-end/42196
799         * tree-sra.c (struct access): New field grp_different_types.
800         (dump_access): Dump grp_different_types.
801         (compare_access_positions): Prefer scalars and vectors over other
802         scalar types.
803         (sort_and_splice_var_accesses): Set grp_different_types if appropriate.
804         (sra_modify_expr): Use the original also when dealing with a complex
805          or vector group accessed as multiple types.
806
807 2009-11-30  Richard Henderson  <rth@redhat.com>
808
809         * config/i386/i386.c (avx_vperm2f128_parallel): New.
810         * config/i386/i386-protos.h: Declare it.
811         * config/i386/predicates.md (avx_vperm2f128_v8sf_operand,
812         avx_vperm2f128_v8si_operand, avx_vperm2f128_v4df_operand): New.
813         * config/i386/sse.md (avx_vperm2f128<mode>3): Change to expander.
814         (*avx_vperm2f128<mode>_full): Renamed from avx_vperm2f128<mode>3.
815         (*avx_vperm2f128<mode>_nozero): New.
816
817 2009-11-30  Richard Henderson  <rth@redhat.com>
818
819         * config/i386/i386-builtin-types.def (V4DF_FTYPE_V4DF_V4DF_V4DI): New.
820         (V8SF_FTYPE_V8SF_V8SF_V8SI): New.
821         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Support
822         V4DF and V8SF for AVX; relax constraint on V4SF to SSE1 from SSE2.
823         (IX86_BUILTIN_VEC_PERM_V4DF, IX86_BUILTIN_VEC_PERM_V8SF): New.
824         (bdesc_args): Add them.
825         (ix86_expand_builtin): Expand them.
826         (expand_vec_perm_pshufb2): Only operate on 16-byte vectors.
827
828 2009-11-30  Martin Jambor  <mjambor@suse.cz>
829
830         PR middle-end/42206
831         * ipa-prop.c (ipa_write_node_info): Initialize note_count to zero.
832
833 2009-11-30  Jakub Jelinek  <jakub@redhat.com>
834
835         * ipa-reference.c (propagate): Only dump bitmaps if computed.
836
837 2009-11-30  Olga Golovanevsky  <olga@il.ibm.com>
838
839         PR middle-end/39806
840         * ipa-struct-reorg.c (new_var_eq): Use DECL_UID to hash new variables.
841         (new_var_hash): Likewise.
842         (is_in_new_vars_htab): Likewise.
843         (add_to_new_vars_htab): Likewise.
844
845 2009-11-30  Ira Rosen  <irar@il.ibm.com>
846
847         * tree-vect-stmts.c (vectorizable_assignment): Support
848         multiple types.
849
850 2009-11-30  Richard Guenther  <rguenther@suse.de>
851
852         * doc/contrib.texi (Contributors): Add myself.
853
854 2009-11-30  Richard Guenther  <rguenther@suse.de>
855
856         * tree.c (free_lang_data): Do not set debug_info_level to
857         none if terse.
858
859 2009-11-30  Richard Guenther  <rguenther@suse.de>
860
861         PR middle-end/42119
862         PR fortran/38530
863         * expr.c (expand_expr_addr_expr_1): Properly expand the initializer
864         of CONST_DECLs.
865
866 2009-11-30  Richard Guenther  <rguenther@suse.de>
867
868         * tree-into-ssa.c (insert_phi_nodes): Add PHI nodes in
869         variable UID order.
870
871 2009-11-30  Richard Guenther  <rguenther@suse.de>
872
873         * tree-dump.c (dump_option_value_in): Add TDF_NOUID.
874         * tree-pass.h (TDF_NOUID): Likewise.
875         * print-rtl.c: Include tree-pass.h.
876         (print_mem_expr): Pass dump_flags.
877         (print_rtx): Likewise.
878         * print-tree.c: Include tree-pass.h.
879         (print_node_brief): Handle TDF_NOUID.
880         (print_node): Likewise.
881         * tree-pretty-print.c (dump_decl_name): Likewise.
882         (dump_generic_node): Likewise.
883         * Makefile.in (print-rtl.o, print-tree.o): Add $(TREE_PASS_H)
884         dependency.
885
886 2009-11-30  Nick Clifton  <nickc@redhat.com>
887
888         * config/stormy16/stormy16-lib2-count-leading-zeros.c: Delete.
889         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Remove
890         stormy16-lib2-count-leading-zeros.c.
891         * config/stormy16/stormy16-lib2.c (__clzhi2): Move code from
892         __stormy16_count_leading_zeros() into this function.
893         (__ctzhi2): Use __builtin_clz.
894         (__ffshi2): Likewise.
895
896 2009-11-30  Eric Botcazou  <ebotcazou@adacore.com>
897
898         * config/sparc/sparc.c (DF_MODES): Simplify.
899         (TF_ONLY_MODES, OF_ONLY_MODES): Delete.
900         (TF_MODES, OF_MODES): Adjust for above change.
901         (TF_MODES_NO_S, OF_MODES_NO_S): Likewise.
902         *  config/sparc/sparc.h (REGNO_REG_CLASS): Move around.
903
904 2009-11-30  Paolo Bonzini  <bonzini@gnu.org>
905
906         PR rtl-optimization/41812
907         * fwprop.c (local_md, local_lr): New globals.
908         (process_defs, process_uses): Remove local_md argument.  Never
909         consider dead pseudos to have singleton def-use chains.
910         (single_def_use_enter_block): Perform LR simulation.
911         (build_single_def_use_links): Remove local_md local variable.
912         Add DF_NOTE.  Allocate local_lr.
913         (fwprop_done): Do not remove DF_CHAIN, we do not use it anymore.
914         * df-problems.c (df_md_scratch): New.
915         (df_md_alloc, df_md_free): Allocate/free it.
916         (df_md_local_compute): Only include live registers in init.
917         (df_md_transfer_function): Prune the in-set computed by
918         the confluence function, and the gen-set too.
919
920 2009-11-30  Hans-Peter Nilsson  <hp@axis.com>
921
922         PR rtl-optimization/40086
923         * reorg.c (relax_delay_slots): When looking for redundant insn at
924         the branch target, use next_real_insn, not next_active_insn.
925
926 2009-11-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
927
928         * doc/install.texi: Update minimum MPC version to 0.8.
929
930 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
931
932         * config/rs6000/rs6000.md (fnmaddsf4_powerpc_1): Remove
933         HONOR_SIGNED_ZEROS final condition.
934         (fnmsubsf4_powerpc_1): Same.
935         (fnmadddf4_fpr_1): Same.
936         (fnmsubdf4_fpr_1): Same.
937
938 2009-11-29  Ira Rosen  <irar@il.ibm.com>
939
940         PR tree-optimization/42193
941         * tree-vect-stmts.c (vectorizable_operation): Set vectorization factor
942         to 1 in case of basic block SLP.
943         (vectorizable_load): Likewise.
944
945 2009-11-28  Jan Hubicka  <jh@suse.cz>
946
947         * cgraph.c (same_body_alias_1): Break out of
948         (same_body_alias): ... here; remove comdat check; it is handled
949         in cp already.
950         (cgraph_add_thunk): New.
951         (dump_cgraph_node): Dump aliases and thunks.
952         * cgraph.h (cgraph_thunk_info): New structure.
953         (struct cgraph_node): Add thunk info.
954         (cgraph_add_thunk): New.
955         * cgraphunit.c (cgraph_emit_thunks): Remove.
956         (cgraph_finalize_compilation_unit): Do not call cgraph_emit_thunks.
957         (assemble_thunk): New function.
958         (cgraph_expand_function): Handle thunks.
959         (thunk_adjust): New.
960         (init_lowered_empty_function): New.
961         * cp-objcp-common.h (LANG_HOOKS_CALLGRAPH_EMIT_ASSOCIATED_THUNKS):
962         Remove.
963         * lto-cgraph.c (lto_output_node): Stream thunk info.
964         (input_node): Likewise.
965         * langhooks.h (lang_hooks_for_callgraph): Remove emit_associated_thunks.
966         * langhooks-def.h (LANG_HOOKS_CALLGRAPH_EMIT_ASSOCIATED_THUNKS): Remove.
967         (LANG_HOOKS_CALLGRAPH_INITIALIZER): Update.
968         * i386.c (x86_output_mi_thunk): Make output prettier.
969
970 2009-11-28  Richard Guenther  <rguenther@suse.de>
971
972         PR tree-optimization/42183
973         * tree-nrv.c (tree_nrv): Bail out if the RESULT_DECL has its
974         address taken.  Merge the addressable state of the NRV
975         variable and the result instead of copying it.
976
977 2009-11-28  Jakub Jelinek  <jakub@redhat.com>
978
979         * matrix-reorg.c (analyze_matrix_allocation_site): Remove unused
980         malloc_fname variable.
981         (check_allocation_function): Remove unused gsi and bb_level_0
982         variables.
983         (transform_access_sites): Remove unused d_type_size and d_type_size_k
984         variables.
985         * omega.c (resurrect_subs): Remove unused n variable.
986         (omega_solve_geq): Remove unused neweqns variable.
987         * lto-streamer-in.c (lto_read_tree): Remove unused end_marker variable.
988         * tree-inline.c (declare_return_variable): Remove USE_P argument,
989         return use instead of var.
990         (remap_decl, remap_block): Remove unused fn variable.
991         (expand_call_inline): Remove unused retvar variable, adjust
992         declare_return_variable caller.
993         (optimize_inline_calls): Remove unused prev_fn variable.
994         * tree-vect-slp.c (vect_analyze_slp_instance): Remove unused ncopies
995         variable.
996         (vect_create_mask_and_perm): Remove unused group_size and dr_chain_size
997         variables.
998         * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle MINUS_EXPR
999         properly.
1000         * tree-vect-loop.c (vect_analyze_loop_form): Remove unused backedge
1001         variable.
1002         (vect_create_epilog_for_reduction): Remove unused bytesize variable.
1003         * omp-low.c (workshare_safe_to_combine_p): Remove par_entry_bb
1004         parameter.  Remove unused par_stmt variable.
1005         (determine_parallel_type): Adjust workshare_safe_to_combine_p caller.
1006         (expand_omp_sections): Remove unused l1 variable.
1007         (lower_omp_for): Remove unused ilist variable.
1008         * tree-loop-distribution.c (mark_nodes_having_upstream_mem_writes):
1009         Remove unused has_upstream_mem_write_p variable.
1010         * recog.c (decode_asm_operands): Remove unused noperands variable.
1011         * tree-ssa-alias.c (refs_may_alias_p_1): Remove unused size1 and
1012         size2 variable.
1013         * libgcov.c (__gcov_merge_delta): Remove unused last variable.
1014         * tree-call-cdce.c (gen_conditions_for_pow_int_base): Remove unused
1015         base_nm variable.
1016         (gen_conditions_for_pow): Remove unused ec variable.
1017         * tree-ssa-sccvn.c (vn_reference_lookup_3): Remove unused size
1018         variable.
1019         * ipa-struct-reorg.c (program_redefines_malloc_p): Remove unused
1020         fndecl variable.
1021         * tree-ssa-sink.c (statement_sink_location): Remove unused code
1022         variable.
1023         * regmove.c (copy_src_to_dest): Remove unused insn_uid and move_uid
1024         variables.
1025         * tree-complex.c (create_one_component_var): Remove unused inner_type
1026         variable.
1027         * calls.c (emit_call_1): Don't GEN_INT (struct_value_size)
1028         unnecessarily when GEN_*CALL omits that argument.
1029         * regrename.c (regrename_optimize): Remove unused regs_seen variable.
1030         (build_def_use): Remove unused icode variable.
1031         * ipa-pure-const.c (check_call): Remove unused callee and avail
1032         variables.
1033         * tree-dfa.c (add_referenced_var): Remove unused v_ann variable.
1034         * tree-vect-patterns.c (vect_recog_pow_pattern): Remove unused type
1035         variable.
1036         (vect_pattern_recog): Remove unused stmt variable.
1037         * sel-sched-ir.c (make_regions_from_the_rest): Remove unused
1038         new_regions variable.
1039         * postreload.c (reload_cse_simplify_operands): Remove unused mode
1040         variable.
1041         * tree-parloops.c (create_call_for_reduction_1): Remove unused
1042         addr_type variable.
1043         (create_parallel_loop): Remove unused res variable.
1044         (gen_parallel_loop): Remove unused nloop variable.
1045         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
1046         * value-prof.c (gimple_mod_subtract_transform,
1047         gimple_stringops_transform): Remove unused value variable.
1048         (gimple_stringops_values_to_profile): Remove unused fcode variable.
1049         * tree-vrp.c (register_new_assert_for): Remove unused found variable.
1050         (vrp_visit_switch_stmt): Remove unused n variable.
1051         * tree-vect-stmts.c (vectorizable_conversion): Remove unused expr
1052         variable.
1053         (vectorizable_operation): Remove unused shift_p variable.
1054         (vectorizable_store): Remove unused first_stmt_vinfo variable.
1055         * tree-ssa-operands.c (add_stmt_operand): Remove unused v_ann variable.
1056         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove unused bb
1057         variable.
1058         (vect_permute_store_chain): Remove unused scalar_dest variable.
1059         (vect_supportable_dr_alignment): Remove unused invariant_in_outerloop
1060         variable.
1061         * tree-ssa-threadupdate.c (thread_single_edge): Remove unused
1062         local_info variable.
1063         * tree-optimize.c (tree_rest_of_compilation): Remove unused node
1064         variable.
1065         * optabs.c (expand_binop): Remove unused equiv_value variable.
1066         (emit_libcall_block): Remove unused prev variable.
1067         (init_optabs): Remove unused int_mode variable.
1068         * tree-ssa-structalias.c (scc_visit): Remove unused have_ref_node
1069         variable.
1070         (do_structure_copy): Remove unused lhsbase and rhsbase variables.
1071         (find_func_aliases): Remove unused rhstype variable.
1072         (ipa_pta_execute): Remove unused varid variable.
1073
1074 2009-11-28  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
1075
1076         * config/avr/avr.h (ASM_OUTPUT_EXTERNAL): Add.
1077
1078 2009-11-28  David Binderman  <dcb314@hotmail.com>
1079
1080         * ira-color.c (put_allocno_into_bucket): Remove set but not used
1081         local variable hard_regs_num.
1082         * ira-lives.c (process_single_reg_class_operands): Remove cover_class.
1083         * loop-unswitch.c (unswitch_loop): Remove zero_bitmap.
1084         * lower-subreg.c (decompose_multiword_subregs): Remove next.
1085
1086 2009-11-27  Martin Jambor  <mjambor@suse.cz>
1087
1088         PR middle-end/42006
1089         * tree-sra.c (get_replaced_param_substitute): Call create_tmp_var
1090         instead of create_tmp_var.  Set DECL_GIMPLE_REG_P to one manually
1091         for vector and complex types.
1092         (get_adjustment_for_base): Describe return value in the comment.
1093
1094 2009-11-27  Nick Clifton  <nickc@redhat.com>
1095
1096         * longlong.h (count_leading_zeros): Define macro for stormy16 target.
1097         (COUNT_LEADING_ZEROS_0): Likewise.
1098         * config/stormy16/stormy16-lib2.c: Arrange for separate
1099         compilation of each function.
1100         (__ffshi2): New function.
1101         (__stormy16_count_leading_zeros): New function.
1102         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Use stub files to
1103         compile each function into its own object file.
1104         (stormy16-lib2-ashlsi3.c): New stub file.
1105         (stormy16-lib2-ashrsi3.c): New stub file.
1106         (stormy16-lib2-clzhi2.c): New stub file.
1107         (stormy16-lib2-count-leading-zeros.c): New stub file.
1108         (stormy16-lib2-ctzhi2.c): New stub file.
1109         (stormy16-lib2-divsi3.c): New stub file.
1110         (stormy16-lib2-ffshi2.c): New stub file.
1111         (stormy16-lib2-lshrsi3.c): New stub file.
1112         (stormy16-lib2-modsi3.c): New stub file.
1113         (stormy16-lib2-parityhi2.c): New stub file.
1114         (stormy16-lib2-popcounthi2.c): New stub file.
1115         (stormy16-lib2-udivmodsi4.c): New stub file.
1116         (stormy16-lib2-udivsi3.c): New stub file.
1117         (stormy16-lib2-umodsi3.c): New stub file.
1118
1119 2009-11-27  Richard Henderson  <rth@redhat.com>
1120
1121         * config/i386/sse.md (vec_interleave_highv16qi,
1122         vec_interleave_lowv16qi, vec_interleave_highv8hi,
1123         vec_interleave_lowv8hi, vec_interleave_highv4si,
1124         vec_interleave_lowv4si, vec_interleave_highv2di,
1125         vec_interleave_lowv2di, vec_interleave_highv4sf,
1126         vec_interleave_lowv4sf, vec_interleave_highv2df,
1127         vec_interleave_lowv2df): Remove expanders.
1128         (sse_unpcklps, sse_unpckhps, sse2_unpckhpd_exp, sse2_unpcklpd_exp,
1129         sse2_punpckhqdq, sse2_punpcklqdq, sse2_punpckhbw, sse2_punpcklbw,
1130         sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq):
1131         Rename to their proper vec_interleave equivalent.  Update all users
1132         to the new name.
1133         * config/i386/i386.c, config/i386/i386.md: Update all users.
1134
1135 2009-11-27  Michael Matz  <matz@suse.de>
1136
1137         PR rtl-optimization/42084
1138         * cfgexpand.c (maybe_cleanup_end_of_block): Add new parameter,
1139         use it to stop walking.
1140         (expand_gimple_cond): Adjust call to above.
1141
1142 2009-11-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1143
1144         PR target/41810
1145         * gthr-solaris.h (__gthread_mutex_destroy): Remove UNUSED.
1146         [SUPPORTS_WEAK && GTHREAD_USE_WEAK] (__gthread_active_p): Use
1147         __extension__ to allow cast from function pointer to object
1148         pointer in C++.
1149         * doc/install.texi (--enable-threads): Clarify use of Solaris threads.
1150
1151 2009-11-27  Steven Bosscher  <steven@gcc.gnu.org>
1152
1153         * config/ia64/itanium1.md: Remove.
1154         * config/ia64/ia64.md: Do not include it.
1155         * config/ia64/ia64.c (ia64_handle_option): Remove "itanium",
1156         "itanium1", and "merced" from the processor alias table.
1157         (clocks, add_cycles): Remove global variables.
1158         (ia64_sched_reorder2): Don't set/use them.
1159         (ia64_dfa_new_cycle, ia64_h_i_d_extended, ia64_reorg): Likewise.
1160         (bundling): Likewise. Remove extra pass for MMMUL/MMSHF.
1161
1162 2009-11-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1163
1164         * config/s390/s390.c (last_scheduled_insn): New variable.
1165         (s390_fpload_toreg, s390_z10_prevent_earlyload_conflicts): New
1166         functions.
1167         (s390_sched_reorder, s390_sched_variable_issue): New functions.
1168         (TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_REORDER): Target hooks
1169         defined.
1170
1171 2009-11-27  Michael Matz  <matz@suse.de>
1172
1173         PR c++/41906
1174         * tree-eh.c (lower_catch): Stop after expanding a catch-all.
1175
1176 2009-11-27  Richard Guenther  <rguenther@suse.de>
1177
1178         * timevar.def (TV_LOOP_MOVE_INVARIANTS, TV_LOOP_UNSWITCH,
1179         TV_LOOP_UNROLL, TV_LOOP_DOLOOP): New timevars.
1180         * loop-init.c (pass_rtl_move_loop_invariants): Use
1181         TV_LOOP_MOVE_INVARIANTS.
1182         (pass_rtl_unswitch): Use TV_LOOP_UNSWITCH.
1183         (pass_rtl_unroll_and_peel): Use TV_LOOP_UNROLL.
1184         (pass_rtl_doloop): Use TV_LOOP_DOLOOP.
1185
1186 2009-11-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1187
1188         * emit-rtl.c (next_active_insn, prev_active_insn): Correct comment.
1189
1190 2009-11-27  Jakub Jelinek  <jakub@redhat.com>
1191
1192         * config/i386/i386.c (ix86_emit_restore_sse_regs_using_mov): Remove
1193         unused insn variable.
1194         * genemit.c (output_peephole2_scratches): Only declare and initialize
1195         _regs_allocated if it will be ever used.
1196         * cfgloopmanip.c (create_empty_if_region_on_edge): Remove unused
1197         succ_bb variable.
1198         (create_empty_loop_on_edge): Remove unused freq and cnt variables.
1199         * unwind-c.c (PERSONALITY_FUNCTION): Remove unused action_record
1200         variable.
1201
1202         * opts.c (decode_options): If optimize is bigger than 255,
1203         set it to 255.
1204
1205 2009-11-26  Richard Henderson  <rth@redhat.com>
1206
1207         * config/i386/sse.md (mulv16qi3): Change back from an expander
1208         to an insn-and-split.
1209         (mulv4si): Mention AVX not XOP for AVX exception.
1210         (*sse2_mulv4si3): Likewise.
1211         (mulv2di3): Use vmulld not vpmacsdd for XOP expansion.  Tidy.
1212
1213 2009-11-26  Bernd Schmidt  <bernd.schmidt@analog.com>
1214
1215         * cfgexpand (n_stack_vars_conflict): New static variable.
1216         (triangular_index): Reduce likelyhood of overflow by performing
1217         the division before the multiplication.
1218         (resize_stack_vars_conflict): Call fatal_error if overflow
1219         occurred in triangular_index.  Update n_stack_vars_conflict.
1220
1221         PR rtl-opt/38582
1222         * regrename.c (struct du_chain): Remove member earlyclobber.
1223         (scan_rtx_reg): Don't set it.  Remove argument earlyclobber,
1224         all callers changed.
1225         (scan_rtx): Remove argument earlyclobber, all callers changed.
1226         (hide_operands, restore_operands, record_out_operands): New functions,
1227         broken out of build_def_use.
1228         (build_def_use): Call them as necessary.
1229
1230         * regrename.c (struct du_head): New members id, conflicts,
1231         hard_conflicts and cannot_rename.
1232         (enum scan_actions): Remove terminate_all_read and
1233         terminate_overlapping_read; add mark_all_read.
1234         (scan_actions_name): Likewise.
1235         (du_head_p): New typedef.  Define a vector type for it.
1236         (id_to_chain): New static variable.
1237         (note_sets, clear_dead_regs): Delete functions.
1238         (free_chain_data): New function.
1239         (merge_overlapping_regs): Simply walk the conflicts bitmap.
1240         Remove argument B, all callers changed.
1241         (regrename_optimize): Allocate id_to_chain.  Ignore chains that have
1242         the cannot_rename bit set.  Update regno and nregs of a renamed chain.
1243         Call free_chain_data when done.
1244         (do_replace): Remove death notes when the renamed reg is set in the
1245         last insn; add them if not.
1246         (mark_conflict, note_sets_clobbers): New static function.
1247         (fail_current_block, current_id, open_chains_set, live_hard_regs): New
1248         static variables.
1249         (scan_rtx_reg): Keep track of conflicts between chains, and between
1250         chains and hard regs.  Don't terminate chains when we find a read we
1251         can't handle, mark it unrenameable instead.  For terminate_write,
1252         terminate chains that are written with an exact match or a superset
1253         of registers.  Set fail_current_block if multi-word lifetimes are too
1254         complex to handle.
1255         (scan_rtx_address): Use mark_all_read instead of terminate_all_read.
1256         (build_def_use): Initialize current_id, live_chains and live_hard_regs;
1257         free memory for them when done.
1258         Rearrange the steps so that earlyclobbers are noted before reads
1259         are processed.  Add new steps to keep track of hard register lifetimes
1260         outside insn operands.
1261
1262 2009-11-26  Richard Guenther  <rguenther@suse.de>
1263
1264         * tree-ssa-dce.c (nr_walks): New variable.
1265         (mark_aliased_reaching_defs_necessary): Adjust oracle cut-off.
1266         (perform_tree_ssa_dce): Init nr_walks.
1267
1268 2009-11-26  Michael Matz  <matz@suse.de>
1269
1270         PR tree-optimization/41905
1271         * tree-eh.c (lower_eh_constructs_2): Don't add assignments
1272         below statements that can't fall thru.
1273
1274 2009-11-26  Michael Matz  <matz@suse.de>
1275
1276         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
1277         expand_builtin_sprintf): Remove.
1278         (expand_builtin): Don't call them.
1279
1280 2009-11-26  Richard Guenther  <rguenther@suse.de>
1281
1282         * tree-ssa-dce.c (perform_tree_ssa_dce): Allocate visited bitmap.
1283
1284 2009-11-26  Nick Clifton  <nickc@redhat.com>
1285
1286         * config/rx/rx.c (rx_expand_epilogue): Add checks for sibcalls
1287         being used incorrectly.
1288         (rx_function_ok_for_sibcall): New function.  Do not allow indirect
1289         sibcalls, or sibcalls from interrupt functions.
1290         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
1291         * config/rx/rx.md (sibcall): Convert to a define_expand.  Check
1292         for a MEM inside a MEM.
1293         (sibcall_value): Likewise.
1294         (sibcall_internal): New pattern containing old sibcall pattern.
1295         (sibcall_value_internal): Likewise.
1296
1297 2009-11-25  Richard Henderson  <rth@redhat.com>
1298
1299         * config/i386/i386-builtin-types.awk (DEF_VECTOR_TYPE): Allow an
1300         optional 3rd argument to define the mode.
1301         * config/i386/i386-builtin-types.def (UQI, UHI, USI, UDI): New.
1302         (V2UDI, V4USI, V8UHI, V16UQI): New.
1303         (V4SF_FTYPE_V4SF_V4SF_V4SI, V2UDI_FTYPE_V2UDI_V2UDI_V2UDI,
1304         V4USI_FTYPE_V4USI_V4USI_V4USI, V8UHI_FTYPE_V8UHI_V8UHI_V8UHI,
1305         V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): New.
1306         * config/i386/i386-modes.def: Rearrange for double-wide AVX.
1307         * config/i386/i386-protos.h (ix86_expand_vec_extract_even_odd): New.
1308         * config/i386/i386.c (IX86_BUILTIN_VEC_PERM_*): New.
1309         (bdesc_args): Add the builtin definitions to match.
1310         (ix86_expand_builtin): Expand them.
1311         (ix86_builtin_vectorization_cost): Rename from
1312         x86_builtin_vectorization_cost.
1313         (ix86_vectorize_builtin_vec_perm, struct expand_vec_perm_d,
1314         doublesize_vector_mode, expand_vselect, expand_vselect_vconcat,
1315         expand_vec_perm_blend, expand_vec_perm_vpermil,
1316         expand_vec_perm_pshufb, expand_vec_perm_1,
1317         expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
1318         expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
1319         expand_vec_perm_even_odd_1, expand_vec_perm_even_odd,
1320         ix86_expand_vec_perm_builtin_1, extract_vec_perm_cst,
1321         ix86_expand_vec_perm_builtin, ix86_vectorize_builtin_vec_perm_ok,
1322         ix86_expand_vec_extract_even_odd, TARGET_VECTORIZE_BUILTIN_VEC_PERM,
1323         TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): New.
1324         * sse.md (SSEMODE_EO): New.
1325         (vec_extract_even<mode>): Use SSEMODE_EO and
1326         ix86_expand_vec_extract_even_odd.
1327         (vec_extract_odd<mode>): Likewise.
1328         (mulv16qi3, vec_pack_trunc_v8hi, vec_pack_trunc_v4si,
1329         vec_pack_trunc_v2di): Use ix86_expand_vec_extract_even_odd.
1330
1331 2009-11-25  Richard Henderson  <rth@redhat.com>
1332
1333         * target.h (targetm.vectorize.builtin_vec_perm_ok): New.
1334         * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): New.
1335         * hooks.h, hooks.c (hook_bool_tree_tree_true): New.
1336         * tree-vect-slp.c (vect_create_mask_and_perm): Don't create
1337         the vector constant here...
1338         (vect_transform_slp_perm_load): ... do it here instead.  Validate
1339         that the permutation vector is implementable by the target.
1340
1341 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
1342
1343         * config/rs6000/sysv4.opt (mregnames): Change Var to rs6000_regnames.
1344         * config/rs6000/sysv4.h (TARGET_REGNAMES): Define.
1345
1346         * print-rtl.c (print_rtx): When printing newline, append
1347         print_rtx_head and indentation after the newline.
1348
1349         PR target/42165
1350         * config/i386/i386.c (print_operand): For 32-byte memory use
1351         YMMWORD in -masm=intel mode.  Use TBYTE instead of XWORD.
1352         * config/i386/i386.md (crc32modesuffix): Expand to nothing
1353         in -masm=intel mode.
1354         (sse4_2_crc32di): Print just crc32 instead of crc32q in
1355         -masm=intel mode.
1356         * config/i386/mmx.md (*mmx_pinsrw): Print correct size of
1357         memory operand in -masm=intel mode.
1358         * config/i386/sse.md (*avx_pinsr<ssevecsize>, *sse4_1_pinsrb,
1359         *sse2_pinsrw): Likewise.
1360         (sse_cvtss2siq, sse_cvtss2siq_2, sse_cvttss2siq): Don't print
1361         q suffix in -masm=intel mode.
1362
1363 2009-11-25  Eric Botcazou  <ebotcazou@adacore.com>
1364
1365         PR target/10127
1366         PR ada/20548
1367         PR middle-end/42004
1368         * dwarf2out.c (dwarf2out_args_size_adjust): Rename to...
1369         (dwarf2out_stack_adjust): ...this.  Do not adjust the arg size for
1370         ACCUMULATE_OUTGOING_ARGS targets.  Rename former version to...
1371         (dwarf2out_notice_stack_adjust): ...this.  Adjust for above renaming.
1372         (dwarf2out_frame_debug_expr): Revert previous change and adjust for
1373         above renaming.
1374         (dwarf2out_frame_debug): Add ??? comment.  Adjust for above renaming.
1375
1376 2009-11-25  Uros Bizjak  <ubizjak@gmail.com>
1377
1378         * config/i386/predicates.md (emms_operation): New predicate.
1379         (vzeroupper_operation): Ditto.
1380         (vzeroall_operation): Improve pattern recognition.
1381         * config/i386/sse.md (avx_vzeroupper_rex64): Remove insn pattern.
1382         (avx_vzeroupper): Change insn pattern to expander.
1383         (*avx_vzeroupper): New insn pattern.  Use vzeroupper_operation
1384         predicate.
1385         (*avx_vzeroall): Remove operands 1 and 2.
1386         * config/i386/mmx.md (mmx_emms): Change insn pattern to expander.
1387         (mmx_femms): Ditto.
1388         (*mmx_emms): New insn pattern.  Use emms_operation predicate.
1389         (*mmx_femms): Ditto.
1390         * config/i386/i386.c (enum ix86_builtins)
1391         <IX86_BUILTIN_VZEROUPPER_REX64>: Remove.
1392         (struct builtin_description) <CODE_FOR_avx_vzeroupper_rex64>:
1393         Remove initailization.
1394         <CODE_FOR_avx_vzeroupper>: Unconditionally initialize here.
1395
1396 2009-11-25  Paul Brook  <paul@codesourcery.com>
1397
1398         * config/arm/arm.md (consttable_4): Handle (high ...).
1399
1400 2009-11-25  Robert Nelson  <robert.nelson@digikey.com>
1401             Richard Earnshaw  <rearnsha@arm.com>
1402
1403         * arm.h (enum vfp_reg_type): Add VFP_NONE.
1404         * arm.c (all_fpus): Use it for floating point units that aren't based
1405         on the VFP architecture.
1406         (aapcs_vfp_is_call_or_return_candidate): Make base_mode a pointer to
1407         enum machine_mode.
1408
1409 2009-11-25  H.J. Lu  <hongjiu.lu@intel.com>
1410
1411         * alias.c: Remove trailing white spaces.
1412         * alloc-pool.c: Likewise.
1413         * alloc-pool.h: Likewise.
1414         * attribs.c: Likewise.
1415         * auto-inc-dec.c: Likewise.
1416         * basic-block.h: Likewise.
1417         * bb-reorder.c: Likewise.
1418         * bt-load.c: Likewise.
1419         * builtins.c: Likewise.
1420         * builtins.def: Likewise.
1421         * c-common.c: Likewise.
1422         * c-common.h: Likewise.
1423         * c-cppbuiltin.c: Likewise.
1424         * c-decl.c: Likewise.
1425         * c-format.c: Likewise.
1426         * c-lex.c: Likewise.
1427         * c-omp.c: Likewise.
1428         * c-opts.c: Likewise.
1429         * c-parser.c: Likewise.
1430         * c-pretty-print.c: Likewise.
1431         * c-tree.h: Likewise.
1432         * c-typeck.c: Likewise.
1433         * caller-save.c: Likewise.
1434         * calls.c: Likewise.
1435         * cfg.c: Likewise.
1436         * cfganal.c: Likewise.
1437         * cfgexpand.c: Likewise.
1438         * cfghooks.c: Likewise.
1439         * cfghooks.h: Likewise.
1440         * cfglayout.c: Likewise.
1441         * cfgloop.c: Likewise.
1442         * cfgloop.h: Likewise.
1443         * cfgloopmanip.c: Likewise.
1444         * cfgrtl.c: Likewise.
1445         * cgraph.c: Likewise.
1446         * cgraph.h: Likewise.
1447         * cgraphbuild.c: Likewise.
1448         * cgraphunit.c: Likewise.
1449         * cif-code.def: Likewise.
1450         * collect2.c: Likewise.
1451         * combine.c: Likewise.
1452         * convert.c: Likewise.
1453         * coverage.c: Likewise.
1454         * crtstuff.c: Likewise.
1455         * cse.c: Likewise.
1456         * cselib.c: Likewise.
1457         * dbgcnt.c: Likewise.
1458         * dbgcnt.def: Likewise.
1459         * dbgcnt.h: Likewise.
1460         * dbxout.c: Likewise.
1461         * dce.c: Likewise.
1462         * ddg.c: Likewise.
1463         * ddg.h: Likewise.
1464         * defaults.h: Likewise.
1465         * df-byte-scan.c: Likewise.
1466         * df-core.c: Likewise.
1467         * df-problems.c: Likewise.
1468         * df-scan.c: Likewise.
1469         * df.h: Likewise.
1470         * dfp.c: Likewise.
1471         * diagnostic.c: Likewise.
1472         * diagnostic.h: Likewise.
1473         * dominance.c: Likewise.
1474         * domwalk.c: Likewise.
1475         * double-int.c: Likewise.
1476         * double-int.h: Likewise.
1477         * dse.c: Likewise.
1478         * dwarf2asm.c: Likewise.
1479         * dwarf2asm.h: Likewise.
1480         * dwarf2out.c: Likewise.
1481         * ebitmap.c: Likewise.
1482         * ebitmap.h: Likewise.
1483         * emit-rtl.c: Likewise.
1484         * et-forest.c: Likewise.
1485         * except.c: Likewise.
1486         * except.h: Likewise.
1487         * expmed.c: Likewise.
1488         * expr.c: Likewise.
1489         * expr.h: Likewise.
1490         * final.c: Likewise.
1491         * flags.h: Likewise.
1492         * fold-const.c: Likewise.
1493         * function.c: Likewise.
1494         * function.h: Likewise.
1495         * fwprop.c: Likewise.
1496         * gcc.c: Likewise.
1497         * gcov-dump.c: Likewise.
1498         * gcov-io.c: Likewise.
1499         * gcov-io.h: Likewise.
1500         * gcov.c: Likewise.
1501         * gcse.c: Likewise.
1502         * genattr.c: Likewise.
1503         * genattrtab.c: Likewise.
1504         * genautomata.c: Likewise.
1505         * genchecksum.c: Likewise.
1506         * genconfig.c: Likewise.
1507         * genflags.c: Likewise.
1508         * gengtype-parse.c: Likewise.
1509         * gengtype.c: Likewise.
1510         * gengtype.h: Likewise.
1511         * genmddeps.c: Likewise.
1512         * genmodes.c: Likewise.
1513         * genopinit.c: Likewise.
1514         * genpreds.c: Likewise.
1515         * gensupport.c: Likewise.
1516         * ggc-common.c: Likewise.
1517         * ggc-page.c: Likewise.
1518         * ggc-zone.c: Likewise.
1519         * ggc.h: Likewise.
1520         * gimple-iterator.c: Likewise.
1521         * gimple-low.c: Likewise.
1522         * gimple-pretty-print.c: Likewise.
1523         * gimple.c: Likewise.
1524         * gimple.def: Likewise.
1525         * gimple.h: Likewise.
1526         * gimplify.c: Likewise.
1527         * graphds.c: Likewise.
1528         * graphite-clast-to-gimple.c: Likewise.
1529         * gthr-nks.h: Likewise.
1530         * gthr-posix.c: Likewise.
1531         * gthr-posix.h: Likewise.
1532         * gthr-posix95.h: Likewise.
1533         * gthr-single.h: Likewise.
1534         * gthr-tpf.h: Likewise.
1535         * gthr-vxworks.h: Likewise.
1536         * gthr.h: Likewise.
1537         * haifa-sched.c: Likewise.
1538         * hard-reg-set.h: Likewise.
1539         * hooks.c: Likewise.
1540         * hooks.h: Likewise.
1541         * hosthooks.h: Likewise.
1542         * hwint.h: Likewise.
1543         * ifcvt.c: Likewise.
1544         * incpath.c: Likewise.
1545         * init-regs.c: Likewise.
1546         * integrate.c: Likewise.
1547         * ipa-cp.c: Likewise.
1548         * ipa-inline.c: Likewise.
1549         * ipa-prop.c: Likewise.
1550         * ipa-pure-const.c: Likewise.
1551         * ipa-reference.c: Likewise.
1552         * ipa-struct-reorg.c: Likewise.
1553         * ipa-struct-reorg.h: Likewise.
1554         * ipa-type-escape.c: Likewise.
1555         * ipa-type-escape.h: Likewise.
1556         * ipa-utils.c: Likewise.
1557         * ipa-utils.h: Likewise.
1558         * ipa.c: Likewise.
1559         * ira-build.c: Likewise.
1560         * ira-color.c: Likewise.
1561         * ira-conflicts.c: Likewise.
1562         * ira-costs.c: Likewise.
1563         * ira-emit.c: Likewise.
1564         * ira-int.h: Likewise.
1565         * ira-lives.c: Likewise.
1566         * ira.c: Likewise.
1567         * jump.c: Likewise.
1568         * lambda-code.c: Likewise.
1569         * lambda-mat.c: Likewise.
1570         * lambda-trans.c: Likewise.
1571         * lambda.h: Likewise.
1572         * langhooks.c: Likewise.
1573         * lcm.c: Likewise.
1574         * libgcov.c: Likewise.
1575         * lists.c: Likewise.
1576         * loop-doloop.c: Likewise.
1577         * loop-init.c: Likewise.
1578         * loop-invariant.c: Likewise.
1579         * loop-iv.c: Likewise.
1580         * loop-unroll.c: Likewise.
1581         * lower-subreg.c: Likewise.
1582         * lto-cgraph.c: Likewise.
1583         * lto-compress.c: Likewise.
1584         * lto-opts.c: Likewise.
1585         * lto-section-in.c: Likewise.
1586         * lto-section-out.c: Likewise.
1587         * lto-streamer-in.c: Likewise.
1588         * lto-streamer-out.c: Likewise.
1589         * lto-streamer.c: Likewise.
1590         * lto-streamer.h: Likewise.
1591         * lto-symtab.c: Likewise.
1592         * lto-wpa-fixup.c: Likewise.
1593         * matrix-reorg.c: Likewise.
1594         * mcf.c: Likewise.
1595         * mode-switching.c: Likewise.
1596         * modulo-sched.c: Likewise.
1597         * omega.c: Likewise.
1598         * omega.h: Likewise.
1599         * omp-low.c: Likewise.
1600         * optabs.c: Likewise.
1601         * optabs.h: Likewise.
1602         * opts-common.c: Likewise.
1603         * opts.c: Likewise.
1604         * params.def: Likewise.
1605         * params.h: Likewise.
1606         * passes.c: Likewise.
1607         * plugin.c: Likewise.
1608         * postreload-gcse.c: Likewise.
1609         * postreload.c: Likewise.
1610         * predict.c: Likewise.
1611         * predict.def: Likewise.
1612         * pretty-print.c: Likewise.
1613         * pretty-print.h: Likewise.
1614         * print-rtl.c: Likewise.
1615         * print-tree.c: Likewise.
1616         * profile.c: Likewise.
1617         * read-rtl.c: Likewise.
1618         * real.c: Likewise.
1619         * recog.c: Likewise.
1620         * reg-stack.c: Likewise.
1621         * regcprop.c: Likewise.
1622         * reginfo.c: Likewise.
1623         * regmove.c: Likewise.
1624         * regrename.c: Likewise.
1625         * regs.h: Likewise.
1626         * regstat.c: Likewise.
1627         * reload.c: Likewise.
1628         * reload1.c: Likewise.
1629         * resource.c: Likewise.
1630         * rtl.c: Likewise.
1631         * rtl.def: Likewise.
1632         * rtl.h: Likewise.
1633         * rtlanal.c: Likewise.
1634         * sbitmap.c: Likewise.
1635         * sched-deps.c: Likewise.
1636         * sched-ebb.c: Likewise.
1637         * sched-int.h: Likewise.
1638         * sched-rgn.c: Likewise.
1639         * sched-vis.c: Likewise.
1640         * sdbout.c: Likewise.
1641         * sel-sched-dump.c: Likewise.
1642         * sel-sched-dump.h: Likewise.
1643         * sel-sched-ir.c: Likewise.
1644         * sel-sched-ir.h: Likewise.
1645         * sel-sched.c: Likewise.
1646         * sel-sched.h: Likewise.
1647         * sese.c: Likewise.
1648         * sese.h: Likewise.
1649         * simplify-rtx.c: Likewise.
1650         * stack-ptr-mod.c: Likewise.
1651         * stmt.c: Likewise.
1652         * stor-layout.c: Likewise.
1653         * store-motion.c: Likewise.
1654         * stringpool.c: Likewise.
1655         * stub-objc.c: Likewise.
1656         * sync-builtins.def: Likewise.
1657         * target-def.h: Likewise.
1658         * target.h: Likewise.
1659         * targhooks.c: Likewise.
1660         * targhooks.h: Likewise.
1661         * timevar.c: Likewise.
1662         * tlink.c: Likewise.
1663         * toplev.c: Likewise.
1664         * toplev.h: Likewise.
1665         * tracer.c: Likewise.
1666         * tree-affine.c: Likewise.
1667         * tree-affine.h: Likewise.
1668         * tree-browser.def: Likewise.
1669         * tree-call-cdce.c: Likewise.
1670         * tree-cfg.c: Likewise.
1671         * tree-cfgcleanup.c: Likewise.
1672         * tree-chrec.c: Likewise.
1673         * tree-chrec.h: Likewise.
1674         * tree-complex.c: Likewise.
1675         * tree-data-ref.c: Likewise.
1676         * tree-data-ref.h: Likewise.
1677         * tree-dfa.c: Likewise.
1678         * tree-dump.c: Likewise.
1679         * tree-dump.h: Likewise.
1680         * tree-eh.c: Likewise.
1681         * tree-flow-inline.h: Likewise.
1682         * tree-flow.h: Likewise.
1683         * tree-if-conv.c: Likewise.
1684         * tree-inline.c: Likewise.
1685         * tree-into-ssa.c: Likewise.
1686         * tree-loop-distribution.c: Likewise.
1687         * tree-loop-linear.c: Likewise.
1688         * tree-mudflap.c: Likewise.
1689         * tree-nested.c: Likewise.
1690         * tree-nomudflap.c: Likewise.
1691         * tree-nrv.c: Likewise.
1692         * tree-object-size.c: Likewise.
1693         * tree-optimize.c: Likewise.
1694         * tree-outof-ssa.c: Likewise.
1695         * tree-parloops.c: Likewise.
1696         * tree-pass.h: Likewise.
1697         * tree-phinodes.c: Likewise.
1698         * tree-predcom.c: Likewise.
1699         * tree-pretty-print.c: Likewise.
1700         * tree-profile.c: Likewise.
1701         * tree-scalar-evolution.c: Likewise.
1702         * tree-ssa-address.c: Likewise.
1703         * tree-ssa-alias.c: Likewise.
1704         * tree-ssa-ccp.c: Likewise.
1705         * tree-ssa-coalesce.c: Likewise.
1706         * tree-ssa-copy.c: Likewise.
1707         * tree-ssa-copyrename.c: Likewise.
1708         * tree-ssa-dce.c: Likewise.
1709         * tree-ssa-dom.c: Likewise.
1710         * tree-ssa-dse.c: Likewise.
1711         * tree-ssa-forwprop.c: Likewise.
1712         * tree-ssa-ifcombine.c: Likewise.
1713         * tree-ssa-live.c: Likewise.
1714         * tree-ssa-live.h: Likewise.
1715         * tree-ssa-loop-ch.c: Likewise.
1716         * tree-ssa-loop-im.c: Likewise.
1717         * tree-ssa-loop-ivcanon.c: Likewise.
1718         * tree-ssa-loop-ivopts.c: Likewise.
1719         * tree-ssa-loop-manip.c: Likewise.
1720         * tree-ssa-loop-niter.c: Likewise.
1721         * tree-ssa-loop-prefetch.c: Likewise.
1722         * tree-ssa-loop-unswitch.c: Likewise.
1723         * tree-ssa-loop.c: Likewise.
1724         * tree-ssa-math-opts.c: Likewise.
1725         * tree-ssa-operands.c: Likewise.
1726         * tree-ssa-operands.h: Likewise.
1727         * tree-ssa-phiopt.c: Likewise.
1728         * tree-ssa-phiprop.c: Likewise.
1729         * tree-ssa-pre.c: Likewise.
1730         * tree-ssa-propagate.c: Likewise.
1731         * tree-ssa-reassoc.c: Likewise.
1732         * tree-ssa-sccvn.c: Likewise.
1733         * tree-ssa-sink.c: Likewise.
1734         * tree-ssa-structalias.c: Likewise.
1735         * tree-ssa-ter.c: Likewise.
1736         * tree-ssa-threadedge.c: Likewise.
1737         * tree-ssa-threadupdate.c: Likewise.
1738         * tree-ssa-uncprop.c: Likewise.
1739         * tree-ssa.c: Likewise.
1740         * tree-ssanames.c: Likewise.
1741         * tree-switch-conversion.c: Likewise.
1742         * tree-tailcall.c: Likewise.
1743         * tree-vect-data-refs.c: Likewise.
1744         * tree-vect-generic.c: Likewise.
1745         * tree-vect-loop-manip.c: Likewise.
1746         * tree-vect-loop.c: Likewise.
1747         * tree-vect-patterns.c: Likewise.
1748         * tree-vect-slp.c: Likewise.
1749         * tree-vect-stmts.c: Likewise.
1750         * tree-vectorizer.c: Likewise.
1751         * tree-vectorizer.h: Likewise.
1752         * tree-vrp.c: Likewise.
1753         * tree.c: Likewise.
1754         * tree.def: Likewise.
1755         * tree.h: Likewise.
1756         * treestruct.def: Likewise.
1757         * unwind-compat.c: Likewise.
1758         * unwind-dw2-fde-glibc.c: Likewise.
1759         * unwind-dw2.c: Likewise.
1760         * value-prof.c: Likewise.
1761         * value-prof.h: Likewise.
1762         * var-tracking.c: Likewise.
1763         * varasm.c: Likewise.
1764         * varpool.c: Likewise.
1765         * vec.c: Likewise.
1766         * vec.h: Likewise.
1767         * vmsdbgout.c: Likewise.
1768         * web.c: Likewise.
1769         * xcoffout.c: Likewise.
1770
1771 2009-11-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1772
1773         * pa.c (output_call): Only use sr4 for long interspace calls if
1774         call binds local and generating non PIC code.
1775         (attr_length_call): Adjust length calculation for above.
1776
1777 2009-11-25  Uros Bizjak  <ubizjak@gmail.com>
1778
1779         * config/i386/i386.md (plusminus_carry_mnemonic): New code attribute.
1780         (add<mode>3_carry): Change operand order of plus RTX.
1781         (*add<mode>3_carry): Ditto.
1782         (*addsi3_carry_zext): Ditto.
1783         (*add<dwi>3_doubleword): Update for changed operand order.
1784         (*negti2_1 splitter): Ditto.
1785         (*negdi2_1 splitter): Ditto.
1786         (<plusminus_insn><mode>3_carry): Macroize expander from
1787         {add,sub}<mode>3_carry patterns using plusminus code iterator.
1788         (*<plusminus_insn><mode>3_carry): Macroize insn from
1789         *{add,sub}<mode>3_carry patetrns using plusminus code iterator.
1790         (neg<mode>2): Macroize expander from neg{qi,hi,si,di,ti}2
1791         patterns using SDWIM mode iterator.
1792         (*neg<dwi>2_doubleword): New insn_and_split pattern.  Macroize
1793         pattern from *neg{di,ti}2_1 patterns and corresponding splitters
1794         using DWIH mode iterator.
1795         (*neg<mode>2_1): Macroize insn from neg{qi,hi,si,di}2_1 patterns
1796         using SWI mode iterator.
1797         (*neg<mode>2_cmpz): Ditto from neg{qi,hi,si,di}2_cmpz patterns.
1798         (one_cmpl<mode>2): Macroize expander from one_cmpl{qi,hi,si,di}2
1799         patterns using SWIM mode iterator.
1800         (*one_cmpl<mode>2_1): Macroize insn from one_cmpl{hi,si,di}2_1
1801         patterns using SWI248 mode iterator.
1802         (*one_cmpl<mode>2_2): Macroize insn from one_cmpl{qi,hi,si,di}2_2
1803         patterns using SWI mode iterator.
1804         (*one_cmpl<mode>2_2 splitter): Macroize splitter from
1805         one_cmpl{qi,hi,si,di}2_2 splitter patterns using SWI mode iterator.
1806
1807 2009-11-24  Michael Matz  <matz@suse.de>
1808
1809         * expr.c (set_storage_via_libcall): Fix build_call_expr call.
1810
1811 2009-11-24  David Binderman  <dcb314@hotmail.com>
1812
1813         * expr.c (store_field): Remove set but not used local variable
1814         width_mask.
1815         (expand_expr_real_2): Remove treeop2.
1816         * gcse.c (update_ld_motion_stores): Remove new_rtx.
1817         * haifa-sched.c (max_issue): Remove points.
1818         (sched_create_recovery_edges): Remove e.
1819         * ira-costs.c (setup_allocno_cover_class_and_costs): Remove mode.
1820
1821 2009-11-24  Nick Clifton  <nickc@redhat.com>
1822
1823         * config/v850/v850.c (function_arg): Fix handling of zero-length
1824         function arguments.
1825
1826 2009-11-24  Michael Matz  <matz@suse.de>
1827
1828         * tree.h (union tree_ann_d): Don't declare.
1829         (tree_base): Remove ann field.
1830         (struct var_ann_d): Declare forward.
1831         (tree_result_decl, tree_parm_decl, tree_var_decl): Add ann field.
1832         (DECL_VAR_ANN_PTR): New macro.
1833         * tree-dfa.c (create_var_ann): Rewrite in terms of above macro,
1834         accept only VAR, PARM or RESULT decls.
1835         (create_tree_common_ann): Remove.
1836         (remove_referenced_var): Use DECL_VAR_ANN_PTR.
1837         * tree-eh.c (lookup_expr_eh_lp): Remove.
1838         * tree-flow-inline.h (var_ann, get_var_ann): Rewrite in terms of
1839         DECL_VAR_ANN_PTR.
1840         (ann_type, tree_common_ann, get_tree_common_ann): Remove.
1841         * tree-flow.h (enum tree_ann_type): Remove.
1842         (struct tree_ann_common_d): Remove.
1843         (struct var_ann_d): Remove common field.
1844         (union tree_ann_d): Remove.
1845         (tree_ann_t, tree_ann_common_t): Remove typedefs.
1846         (tree_common_ann, get_tree_common_ann, ann_type,
1847         create_tree_common_ann, lookup_expr_eh_lp): Don't declare.
1848         * tree-ssa.c (delete_tree_ssa): Use DECL_VAR_ANN_PTR.
1849         * tree.c (copy_node_stat): Use DECL_VAR_ANN_PTR.
1850         * builtins.c (expand_builtin_memcpy): Use
1851         currently_expanding_gimple_stmt instead of tree annotation.
1852         (expand_builtin_memset_args): Ditto.
1853         * cfgexpand.c (currently_expanding_gimple_stmt): Add global variable.
1854         (expand_call_stmt): Don't set tree annotation.
1855         (expand_gimple_basic_block): Set currently_expanding_gimple_stmt.
1856         * expr.c (expand_expr_real): Don't call lookup_expr_eh_lp.
1857         * gimple.h (currently_expanding_gimple_stmt): Declare.
1858
1859 2009-11-24  Paolo Carlini  <paolo.carlini@oracle.com>
1860
1861         * dwarf2out.c (add_location_or_const_value_attribute): Remove
1862         useless NOTE_VAR_LOCATION_STATUS call.
1863         * cfgrtl.c (commit_one_edge_insertion): Remove useless loop, tidy.
1864
1865 2009-11-24  Rafael Avila de Espindola  <espindola@google.com>
1866
1867         * lto-wrapper.c (lto_wrapper_exit): Don't try to delete files if
1868         being called recursively.
1869
1870 2009-11-24  Basile Starynkevitch  <basile@starynkevitch.net>
1871
1872         * Makefile.in (PLUGIN_HEADERS): Added files: cppdefault.h flags.h
1873         $(MD5_H) params.def params.h prefix.h tree-inline.h.
1874
1875 2009-11-24  Paul Brook  <paul@codesourcery.com>
1876
1877         * gcc/config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Fix comment
1878         typo.
1879
1880 2009-11-24  Julian Brown  <julian@codesourcery.com>
1881             Paul Brook  <paul@codesourcery.com>
1882
1883         * config/arm/arm.c (TARGET_DWARF_REGISTER_SPAN): Define.
1884         (arm_dwarf_register_span): New function.
1885         (arm_dbx_register_number): Add VFPv3 dwarf numbering.
1886
1887 2009-11-24  David Binderman  <dcb314@hotmail.com>
1888
1889         * cfgrtl.c (commit_one_edge_insertion): Remove set but not used
1890         local variable bb_note.
1891         * dominance.c (get_dominated_by): Likewise local var n.
1892         (output_file_names): Likewise local var idx.
1893         (add_location_or_const_value_attribute): Likewise local var status.
1894         * dwarf2out.c (gen_variable_die): Likewise local var field.
1895         * emit-rtl.c (no_line_numbers): Remove.
1896         (init_emit_once): Remove line_numbers parameter.
1897         * rtl.h (init_emit_once): Adjust prototype.
1898         * toplev.c (backend_init): Adjust init_emit_once call.
1899
1900 2009-11-24  Richard Guenther  <rguenther@suse.de>
1901
1902         PR tree-optimization/42142
1903         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
1904         Handle iv-dependent (non-)kills properly.
1905         (mark_aliased_reaching_defs_necessary): Pass the basic-block
1906         of the reference statement to mark_aliased_reaching_defs_necessary_1.
1907
1908 2009-11-24  Martin Jambor  <mjambor@suse.cz>
1909
1910         PR tree-optimization/42154
1911         * tree-sra.c (struct access): Added comments.
1912         (sra_modify_expr): Build references to the old aggregate with
1913         build_ref_for_offset instead of reusing access->expr.
1914         (load_assign_lhs_subreplacements): Likewise.
1915
1916 2009-11-24  Uros Bizjak  <ubizjak@gmail.com>
1917
1918         * config/i386/i386.md (add<mode>3_carry): Change insn pattern
1919         to expander.
1920         (sub<mode>3_carry): Ditto.
1921         (x86_mov<mode>cc_0_m1): Ditto.
1922         (*add<mode>3_carry): New insn pattern.  Use VOIDmode match_operator
1923         for ix86_carry_flag_operator operator predicate.
1924         (*sub<mode>3_carry): Ditto.
1925         (*x86_mov<mode>cc_0_m1): Ditto.
1926         (*addsi3_carry_zext): Use VOIDmode match_operator for
1927         ix86_carry_flag_operator operator predicate.
1928         (*subsi3_carry_zext): Ditto.
1929         (*x86_mov<mode>cc_0_m1_s): Ditto.
1930         (*x86_mov<mode>cc_0_m1_neg): Ditto.
1931         * config/i386/predocates.md (ix86_carry_flag_operator): Do not
1932         check operator sub-expressions for FLAGS_REG and const0_rtx.
1933         * config/i386/i386.c (*ix86_gen_sub3_carry): Update prototype.
1934         (ix86_expand_int_movcc): Update calls to gen_x86_mov{si,di}cc_0_m1.
1935         (ix86_expand_int_addcc): Update calls to
1936         gen_{add,sub}{qi,hi,si,di}3_carry.  Do not set mode of compare_op.
1937         (ix86_expand_strlensi_unroll_1): Update calls to ix86_gen_sub3_carry.
1938         Do not set mode of compare operation.
1939
1940 2009-11-23  Jan Hubicka  <jh@suse.cz>
1941
1942         PR middle-end/42151
1943         * ipa-inline.c (inline_transform): Avoid ICE when transform is called
1944         twice.
1945
1946 2009-11-23  Jan Hubicka  <jh@suse.cz>
1947
1948         * ipa-cp.c (ipcp_compute_node_scale): Work around completely
1949         wrong profile updates.
1950         * predict.c (counts_to_freqs): Be expected for ENTRY/EXIT block
1951         having largest frequency.
1952         * ira-live.c (ira_implicitly_set_insn_hard_regs): Silecne
1953         used uninitalized warning.
1954         * tree-optimize.c (execute_fixup_cfg): Rescale entry and exit block
1955         frequencies.
1956
1957 2009-11-23  Uros Bizjak  <ubizjak@gmail.com>
1958
1959         * config/alpha/alpha.md (*cmp_sadd_sidi): Use gen_lowpart instead
1960         of gen_rtx_REG to generate operand 5.
1961         (*cmp_ssub_sidi): Ditto.
1962
1963 2009-11-23  Richard Henderson  <rth@redhat.com>
1964
1965         * config/i386/i386.c (avx_vpermilp_parallel): Fix sign compare
1966         mismatch.
1967
1968 2009-11-23  Paul Brook  <paul@codesourcery.com>
1969
1970         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Add special
1971         case for noreturn functions.
1972         (arm_compute_save_reg_mask): Remove special noreturn handling.
1973
1974 2009-11-23  Richard Guenther  <rguenther@suse.de>
1975
1976         * tree-dfa.c (get_ref_base_and_extent): Adjust maximum access
1977         size for DECL bases.
1978
1979 2009-11-22  Richard Henderson  <rth@redhat.com>
1980
1981         * i386.c (avx_vpermilp_parallel): New function.
1982         * i386-protos.h: Declare it.
1983         * predicates.md (avx_vpermilp_v8sf_operand, avx_vpermilp_v4df_operand,
1984         avx_vpermilp_v4sf_operand, avx_vpermilp_v2df_operand): New.
1985         * sse.md (AVXMODEFDP, AVXMODEFSP): New iterators.
1986         (ssescalarnum, ssedoublesizemode): Add AVX modes.
1987         (vpermilbits): Remove.
1988         (avx_vpermil<mode>): Change insns to expanders.
1989         (*avx_vpermil<mode>): New.  Use vec_select.
1990
1991 2009-11-22  Richard Earnshaw  <rearnsha@arm.com>
1992
1993         * opts.c (decode_options): Don't enable flag_schedule_insns
1994         when optimizing for size.
1995         * doc/invoke.texi: Document change.
1996
1997 2009-11-22  Uros Bizjak  <ubizjak@gmail.com>
1998
1999         PR target/42113
2000         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
2001         of scratch register to SImode.
2002         (*cmp_sadd_sidi): Ditto.
2003         (*cmp_ssub_si): Ditto.
2004         (*cmp_ssub_sidi): Ditto.
2005
2006 2009-11-21  Ian Lance Taylor  <iant@google.com>
2007
2008         * Makefile.in (HOST_LIBS): Move higher in file.
2009         (LINKER, LINKER_FLAGS): If ENABLE_BUILD_WITH_CXX, but $(HOST_LIBS)
2010         is not empty, set to $(CC) and $(CFLAGS).
2011
2012 2009-11-22  Martin Jambor  <mjambor@suse.cz>
2013
2014         * tree-cfg.c (verify_types_in_gimple_reference): Error out on
2015         V_C_E of an SSA_NAME or an invariant if lvalue is required.
2016         (verify_gimple_call): Verify LHS also with with
2017         verify_types_in_gimple_reference.
2018
2019 2009-11-21  Martin Jambor  <mjambor@suse.cz>
2020
2021         PR middle-end/42025
2022         * tree-sra.c (access_precludes_ipa_sra_p): New function.
2023         (splice_param_accesses): Check all accesses by calling
2024         access_precludes_ipa_sra_p.
2025         (sra_ipa_modify_expr): Rename argument erite to dont_convert and do
2026         not convert types if it is true.
2027         (sra_ipa_modify_assign): Convert types in case of mismatch.
2028
2029 2009-11-21  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
2030
2031         * config/sh/sh.md (cmpeqsi_t-1): Use logical_operand predicate
2032         for operand 1.
2033
2034 2009-11-21  Adam Nemet  <adambnemet@gmail.com>
2035
2036         * config/mips/mips-protos.h (mulsidi3_gen_fn): New typedef.
2037         (mips_mulsidi3_gen_fn): Declare new function.
2038         * config/mips/mips.c (mips_mulsidi3_gen_fn): New function.
2039         * config/mips/mips.md (<u>mulsidi3): Change condition to use
2040         mips_mulsidi3_gen_fn.  Use mips_mulsidi3_gen_fn to generate the insn.
2041         (<u>mulsidi3_64bit): Don't match for ISA_HAS_DMUL3.
2042         (mulsidi3_64bit_dmul): New define_insn.
2043
2044 2009-11-21  Ben Elliston  <bje@au.ibm.com>
2045
2046         * gengtype-lex.l: Enable noinput flex option.
2047         (YY_NO_INPUT): Remove define.
2048
2049 2009-11-21  Alexandre Oliva  <aoliva@redhat.com>
2050
2051         * tree-ssa.c (find_released_ssa_name): Handle NULL wi.
2052         (insert_debug_temp_for_var_def): Handle degenerate PHI nodes.
2053         (insert_debug_temps_for_defs): Handle PHI nodes.
2054         * tree-ssa-dom.c (degenerate_phi_result): Don't crash on released
2055         SSA names.
2056
2057 2009-11-21  Alexandre Oliva  <aoliva@redhat.com>
2058
2059         * tree-ssa-pre.c (remove_dead_inserted_code): Don't release_defs
2060         after remove_phi_node.
2061
2062 2009-11-21  Alexandre Oliva  <aoliva@redhat.com>
2063
2064         PR tree-optimization/42078
2065         * gimple.h (gimple_replace_lhs): New declaration.
2066         * gimple.c (gimple_replace_lhs): New function.
2067         * tree-ssa-math-opts.c (execute_cse_reciprocals): Call it before
2068         modifying the call.
2069
2070 2009-11-20  Sebastian Pop  <sebastian.pop@amd.com>
2071
2072         * config/i386/sse.md (*xop_pmacsdql_mem): Don't call reg_mentioned_p.
2073         (xop_mulv2div2di3_low): Same.
2074         (*xop_pmacsdqh_mem): Same.
2075
2076 2009-11-20  Richard Henderson  <rth@redhat.com>
2077
2078         * config/i386/i386-builtin-types.awk: New file.
2079         * config/i386/i386-builtin-types.def: New file.
2080         * config/i386/t-i386: Use them to build i386-builtin-types.inc.
2081         * config/i386/i386.c: Include it.
2082         (ix86_builtin_type_tab, ix86_get_builtin_type): New.
2083         (ix86_builtin_func_type_tab, ix86_get_builtin_func_type): New.
2084         (struct builtin_isa): Remove GTY marker.  Replace tree type with
2085         ix86_builtin_func_type; add set_and_not_built_p.
2086         (def_builtin): Change type parameter to tcode; use
2087         ix86_get_builtin_func_type; update all callers.  Accept zero mask
2088         to mean the builtin is unconditionally available.
2089         (ix86_add_new_builtins): Use set_and_not_built_p instead of type
2090         being set to NULL.
2091         (enum ix86_special_builtin_type, enum ix86_builtin_type): Remove.
2092         Update some users to rationalized enumeration codes from new include.
2093         (enum multi_arg_type): Remove.  Replace all enumeration values
2094         with defines to new ix86_builtin_func_type.
2095         (ix86_init_mmx_sse_builtins): Don't build any types here.  Defer
2096         all type resolution to def_builtin.
2097         (ix86_init_builtin_types): Split out from ...
2098         (ix86_init_builtins): ... here.  Use ix86_get_builtin_func_type.
2099
2100 2009-11-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
2101
2102         PR target/41787
2103         * config/rs6000/rs6000.c (struct machine_function): Revert
2104         2009-10-23 change to set VRSAVE to non-0 if we use VSX.
2105         (rs6000_expand_to_rtl_hook): Ditto.
2106         (rs6000_check_vector_mode): Ditto.
2107         (compute_vrsave_mask): Ditto.
2108
2109 2009-11-20  Paul Brook  <paul@codesourcery.com>
2110
2111         * doc/invoke.texi: Document ARM -mcpu=cortex-a5.
2112         * config/arm/arm-cores.def: Add cortex-a5.
2113         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a5.
2114         * config/arm/arm-tune.md: Regenerate.
2115
2116 2009-11-20 Olga Golovanevsky <olga@il.ibm.com>
2117
2118         PR middle-end/39960
2119         * ipa-struct-reorg.c (find_pos_in_stmt): New parameter.
2120         (ref_pos): New field in structure.
2121         (insert_new_var_in_stmt): New function.
2122
2123
2124 2009-11-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2125
2126         * config.gcc (alpha*-dec-osf[45]*): Set use_gcc_stdint.
2127         * config/alpha/osf.h (SIG_ATOMIC_TYPE): Define.
2128         (INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE): Define.
2129         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
2130         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
2131         INT_LEAST64_TYPE): Define.
2132         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
2133         UINT_LEAST64_TYPE): Define.
2134         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
2135         INT_FAST64_TYPE): Define.
2136         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
2137         UINT_FAST64_TYPE): Define.
2138         (INTPTR_TYPE, UINTPTR_TYPE): Define.
2139
2140 2009-11-20  Julian Brown  <julian@codesourcery.com>
2141
2142         * config/arm/arm.h (ASM_OUTPUT_REG_PUSH): Handle STATIC_CHAIN_REGNUM
2143         specially for Thumb-1.
2144         (ASM_OUTPUT_REG_POP): Likewise.
2145
2146 2009-11-19  Jason Merrill  <jason@redhat.com>
2147
2148         * dwarf2out.c (get_context_die): Take TYPE_MAIN_VARIANT.
2149
2150 2009-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
2151             Rafael Avila de Espindola  <espindola@google.com>
2152
2153         * doc/plugins.texi (Plugin initialization): Added advices for
2154         retrieving the version of GCC at plugin compilation and loading times.
2155
2156 2009-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
2157
2158         * plugin.c (FMT_FOR_PLUGIN_EVENT): added definition.
2159         (dump_active_plugins): output to file everything. Use
2160         internationalized dump & FMT_FOR_PLUGIN_EVENT.
2161
2162 2009-11-19  Richard Guenther  <rguenther@suse.de>
2163
2164         * gimple.c (canonicalize_cond_expr_cond): Strip conversions
2165         around truth-valued expressions.
2166         * tree.c (free_lang_data): Untangle check for LTO frontend.
2167
2168 2009-11-19  Jakub Jelinek  <jakub@redhat.com>
2169
2170         * tree.c (need_assembler_name_p): Use cgraph_get_node instead
2171         of cgraph_node_for_decl.
2172         * cgraph.h (cgraph_node_for_decl): Remove prototype.
2173         * cgraph.c (cgraph_node_for_decl): Remove.
2174         (cgraph_get_node): Just return NULL if !cgraph_hash.
2175
2176 2009-11-19  Paul Brook  <paul@codesourcery.com>
2177
2178         * config.gcc: Add new ARM --with-fpu options.
2179         * doc/invoke.texi: Docuent ARM -mfpu=fpv4-sp-d16.
2180         * config/arm/arm.c (all_fpus): Add fpv4-sp-d16.
2181
2182 2009-11-18  Richard Guenther  <rguenther@suse.de>
2183
2184         * gimple.h (union gimple_statement_d): Add gsmembase member.
2185         (gimple_vuse_op): Use gsmembase for access.
2186         (gimple_vdef_op): Likewise.
2187         (gimple_vuse): Likewise.
2188         (gimple_vdef): Likewise.
2189         (gimple_vuse_ptr): Likewise.
2190         (gimple_vdef_ptr): Likewise.
2191         (gimple_set_vuse): Likewise.
2192         (gimple_set_vdef): Likewise.
2193         * gsstruct.def (GSS_WITH_MEM_OPS_BASE): Add.
2194
2195 2009-11-18  Daniel Jacobowitz  <dan@codesourcery.com>
2196
2197         * doc/arm-neon-intrinsics.texi: Regenerated.
2198
2199 2009-11-18  Daniel Jacobowitz  <dan@codesourcery.com>
2200
2201         * config/arm/neon-docgen.ml (analyze_shape_elt): Handle alternatives.
2202
2203 2009-11-18  Paul Brook  <paul@codesourcery.com>
2204             Daniel Jacobowitz  <dan@codesourcery.com>
2205
2206         * config/arm/arm.c (FL_ARCH7EM, FL_FOR_ARCH7EM): Define.
2207         (arm_arch7em): New variable.
2208         (all_architectures): Add armv7e-m.
2209         (arm_override_options): Set arm_arch7em.
2210         * config/arm/arm.h (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD):
2211         Include arm_arch7em.
2212         (arm_arch7em): Declare.
2213
2214 2009-11-18  Richard Guenther  <rguenther@suse.de>
2215
2216         * lto-streamer-in.c (input_gimple_stmt): Assert that we find
2217         a valid field decl if checking is enabled.
2218
2219 2009-11-18  Martin Jambor  <mjambor@suse.cz>
2220
2221         * ipa-prop.h (struct ipa_param_call_note): New field lto_stmt_uid.
2222         (lto_ipa_fixup_call_notes): Declare.
2223         * ipa-prop.c (ipa_note_param_call): Store gimple uid.
2224         (update_call_notes_after_inlining): Copy call stmt uid to the new
2225         edge.
2226         (ipa_write_param_call_note): New function.
2227         (ipa_read_param_call_note): New function
2228         (ipa_write_node_info): Write also param call notes.  Removed a bogus
2229         comment, reformatted to fit 80 columns.
2230         (ipa_read_node_info): Read also param call notes. Removed a bogus
2231         comment.  Remove ipa_edge_args_vector growth.
2232         (lto_ipa_fixup_call_notes): New function.
2233         * ipa-cp.c (pass_ipa_cp): Add stmt_fixup hook.
2234         * ipa-inline.c (cgraph_mark_inline_edge): Perform indirect
2235         inlining regardless of flag_wpa.
2236         (cgraph_decide_inlining_of_small_functions): Likewise.
2237         (cgraph_decide_inlining): Likewise.
2238         (inline_read_summary): Likewise.
2239
2240 2009-11-18  Jan Hubicka  <jh@suse.cz>
2241
2242         * predict.c (compute_function_frequency): Export.
2243         * predict.h (compute_function_frequency): Declare.
2244         * tree-optimize.c (execute_fixup_cfg): Rescale frequencies.
2245
2246 2009-11-18  Martin Jambor  <mjambor@suse.cz>
2247
2248         * passes.c (ipa_write_summaries): Call renumber_gimple_stmt_uids
2249         on all nodes we write summaries for.
2250
2251 2009-11-18  Shujing Zhao  <pearly.zhao@oracle.com>
2252
2253         PR middle-end/22201
2254         * params.def (PARAM_INLINE_UNIT_GROWTH, PARAM_IPCP_UNIT_GROWTH)
2255         (PARAM_EARLY_INLINING_INSNS, PARAM_IRA_MAX_LOOPS_NUM)
2256         (PARAM_IRA_MAX_CONFLICT_TABLE_SIZE)
2257         (PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP)
2258         (PARAM_MIN_INSN_TO_PREFETCH_RATIO)
2259         (PARAM_PREFETCH_MIN_INSN_TO_MEM_RATIO)
2260         (PARAM_IPA_SRA_PTR_GROWTH_FACTOR): Uppercase the first letter of the
2261         description string.
2262
2263 2009-11-18  Jakub Jelinek  <jakub@redhat.com>
2264
2265         * dwarf2out.c (loc_list_from_tree): Don't call rtl_for_decl_location
2266         unnecessarily.
2267         (rtl_for_decl_location): Try harder to get a rtl for TREE_STATIC vars.
2268
2269         PR c++/3187
2270         * cgraph.h (struct cgraph_node): Add same_body and same_body_alias
2271         fields.
2272         (cgraph_same_body_alias, cgraph_remove_same_body_alias): New
2273         prototypes.
2274         * cgraphunit.c (cgraph_expand_function, cgraph_emit_thunks,
2275         cgraph_materialize_all_clones): Handle same_body aliases.
2276         * cgraph.c (cgraph_allocate_node): New function.
2277         (cgraph_create_node): Use it.
2278         (cgraph_node_for_decl, cgraph_node, cgraph_get_node,
2279         cgraph_node_for_asm, cgraph_remove_node): Handle same_body aliases.
2280         (cgraph_same_body_alias, cgraph_remove_same_body_alias): New
2281         functions.
2282         * lto-cgraph.c (lto_output_node): Stream out same_body aliases.
2283         (input_node): Stream in same_body aliases.
2284         * lto-symtab.c (lto_cgraph_replace_node): Clear node pointers
2285         for same_body aliases.
2286         (lto_symtab_merge_cgraph_nodes_1): Handle same_body aliases.
2287
2288 2009-11-18  Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2289
2290         PR other/39888
2291         * config/darwin.h: Use the extension stub libraries to access
2292         current libgcc_s features.
2293
2294 2009-11-18  Alexandre Oliva  <aoliva@redhat.com>
2295
2296         PR debug/41926
2297         * tree-vect-loop.c (vect_loop_kill_debug_uses): New.
2298         (vect_transform_loop): Call it.
2299
2300 2009-11-18  Alexandre Oliva  <aoliva@redhat.com>
2301
2302         * tree-ssa.c (insert_debug_temp_for_var_def): Fix handling of
2303         released SSA names.
2304
2305 2009-11-18  Alexandre Oliva  <aoliva@redhat.com>
2306
2307         PR debug/41888
2308         PR debug/41886
2309         * graphite-scop-detection.c (stmt_simple_for_scop_p): Debug stmts
2310         are ok.
2311         * graphite-sese-to-poly.c (graphite_stmt_p): Likewise.
2312         (try_generate_gimple_bb): Skip debug stmts when finding data refs.
2313         * sese.c (sese_build_liveouts_bb): Skip debug stmts.
2314         (sese_bad_liveouts_use): New.
2315         (sese_reset_debug_liveouts_bb): New.
2316         (sese_build_liveouts): Use it.
2317         (rename_variables_in_stmt): Reset debug stmts rather than creating
2318         new vars for them.
2319         (expand_scalar_variable_stmt): Likewise.
2320
2321 2009-11-18  Alexandre Oliva  <aoliva@redhat.com>
2322
2323         * df-scan.c (df_ref_create): Don't mark BB as dirty on debug insns.
2324         (df_ref_remove): Likewise.
2325
2326 2009-11-17  Jan Hubicka  <jh@suse.cz>
2327
2328         * ipa-struct-reorg.c (update_cgraph_with_malloc_call): Fix profile
2329         info.
2330
2331 2009-11-17  Eric Botcazou  <ebotcazou@adacore.com>
2332
2333         * toplev.c (process_options): Remove dead code.
2334         * doc/invoke.texi (-frename-registers): Mention -fpeel-loops.
2335
2336 2009-11-17  Rafael Avila de Espindola  <espindola@google.com>
2337
2338         * lto-symtab.c (lto_symtab_resolve_symbols): Always initialize the
2339         nodes.
2340
2341 2009-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2342
2343         PR tree-optimization/41857
2344         * tree-ssa-address.c (move_hint_to_base): Use void pointer to
2345         TYPE's address space instead of pointer to TYPE.
2346
2347 2009-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2348
2349         * reload.c (find_reloads_address): Fix typo.
2350
2351 2009-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2352
2353         * config/spu/spu.c (get_pic_reg): Use LAST_ARG_REGNUM as PIC
2354         registers in leaf functions if possible.
2355
2356 2009-11-17  Maxim Kuvyrkov  <maxim@codesourcery.com>
2357
2358         * config/m68k/m68k-devices.def: Add MCF5441x family.
2359
2360 2009-11-17  Jan Hubicka  <jh@suse.cz>
2361
2362         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not access
2363         removed node.
2364         * cgraphunit.c (verify_cgraph_node): Verify frequencies for match.
2365
2366 2009-11-17  Uros Bizjak  <ubizjak@gmail.com>
2367
2368         * config/i386/predicates.md (x86_64_szext_general_operand): Do not
2369         nest ior expressions.
2370         (x86_64_szext_nonmemory_operand): Ditto.
2371         (call_insn_operand): Ditto.
2372
2373 2009-11-16  Alexandre Oliva  <aoliva@redhat.com>
2374
2375         * stmt.c (expand_asm_stmt): Get locus from stmt.
2376
2377 2009-11-16  Alexandre Oliva  <aoliva@redhat.com>
2378
2379         * tree-cfg.c (gimple_redirect_edge_and_branch) <case GIMPLE_ASM>:
2380         Create the decl label for the new dest block on demand.  Require
2381         a fallthrough edge if no asm labels were redirected.
2382
2383 2009-11-16  Uros Bizjak  <ubizjak@gmail.com>
2384
2385         * config/i386/i386.md (cbranchsi4): Use nonimmediate_operand for
2386         operand 1 predicate.
2387         (cstoresi4): Ditto for operand 2.
2388         (cbranch<mode>4): Macroize expander from cbranch{qi,hi,si,di,ti}4
2389         patterns using SDWIM mode iterator.
2390         (cstore<mode>4): Macroize expander from cstore{qi,hi,si,di}4 patterns
2391         using SWIM mode iterator.
2392         (cmpdi_1): Rename from cmpdi_1_rex64.
2393         (cmp<mode>_1): Macroize expander from cmp{si,di}_1 patterns using
2394         SWI48 mode iterator.
2395         (*cmp<mode>_1): Macroize insn from *cmp{qi,hi,si,di}_1_insn patterns
2396         using SWI mode iterator.
2397         (*cmp<mode>_ccno_1): Ditto from *cmp{qi,hi,si,di}_ccno_1.
2398         (*cmp<mode>_minus_1): Ditto from *cmp{qi,hi,si,di}_minus_1.
2399         (*cmpqi_ext_3_insn): Make private.
2400         (*cmpqi_ext_3_insn_rex64): Make private.
2401         (cmpstrnsi): Update for renamed cmpdi_1_rex64.
2402         * config/i386/predicates.md (cmpsi_operand): Remove.
2403
2404 2009-11-16  Paul Brook  <paul@codesourcery.com>
2405
2406         * doc/invoke.texi: Document ARM VFPv4 based FPUs.
2407         * config/arm/arm.c (all_fpus): Add VFPv4 entries.
2408
2409 2009-11-14  Jan Hubicka  <jh@suse.cz>
2410
2411         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use proper
2412         ENTRY_BLOCK_PTR.
2413         * cgraph.c (cgraph_clone_edge): Avoid freq_scale 0 to completely
2414         zero out all callees.
2415         * cgraphunit.c (verify_cgraph_node): Verify cgraph nodes for
2416         frequency and count match.
2417         * ipa-inline.c (update_noncloned_frequencies): New function.
2418         (cgraph_clone_inlined_nodes): Use it.
2419         * tree-inline.c (copy_bb): Fix frequency scaling; output
2420         diagnostic on frequency mismatches to dump file.
2421         (initialize_cfun): Do not scale frequency; fix count scaling;
2422         initialize entry and exit block frequencies; copy profile info.
2423         (copy_cfg_body): Use frequency_scale as argument; fix count scaling.
2424         (copy_body): Use frequency_scale as argument.
2425         (expand_call_inline): Compute frequency scale and output diagnostic
2426         to dump file.
2427         (delete_unreachable_blocks_update_callgrah): Remove checking that
2428         has to be done after edge redirection.
2429         (tree_function_versioning): Update initialize_cfun and copy_body call.
2430
2431 2009-11-14  Jan Hubicka  <jh@suse.cz>
2432
2433         * cgraph.c (cgraph_release_function_body): Update use of
2434         ipa_transforms_to_apply.
2435         (cgraph_remove_node): Remove ipa_transforms_to_apply.
2436         * cgraph.h (struct cgraph_node): Add ipa_transforms_to_apply.
2437         * cgraphunit.c (save_inline_function_body): Clear ipa_transforms for
2438         copied body.
2439         (cgraph_materialize_clone): Remove original if dead.
2440         * lto-streamer-in.c (lto_read_body): Remove FIXME and
2441         ipa_transforms_to_apply hack.
2442         * function.h (struct function): Add ipa_transforms_to_apply.
2443         * ipa.c (cgraph_remove_unreachable_nodes): Handle dead clone originals.
2444         * tree-inline.c (copy_bb): Update sanity check.
2445         (initialize_cfun): Do not copy ipa_transforms_to_apply.
2446         (expand_call_inline): remove dead clone originals.
2447         (tree_function_versioning): Merge transformation queues.
2448         * passes.c (add_ipa_transform_pass): Remove.
2449         (execute_one_ipa_transform_pass): Update ipa_transforms_to_apply
2450         tracking.
2451         (execute_all_ipa_transforms): Update.
2452         (execute_one_pass): Update.
2453
2454 2009-11-14  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
2455
2456         PR target/21078, 21080
2457         * config/avr/avr.c (avr_return_addr_rtx): New function for
2458         builtin_return_address.
2459         (expand_prologue): Calculate stack usage.
2460         (avr_asm_function_end_prologue): Output stack size and offset label.
2461         * config/avr/avr.h (RETURN_ADDR_RTX): Replace.
2462         (machine_function): Add stack_usage.
2463         * config/avr/avr-protos.h (avr_return_addr_rtx): New function.
2464
2465 2009-11-14  Anatoly Sokolov  <aesok@post.ru>
2466
2467         * config/iq2000/iq2000.c (iq2000_function_value): Make static, add
2468         new 'outgoing' argument.
2469         (iq2000_libcall_value, iq2000_function_value_regno_p): New functions.
2470         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
2471         * config/iq2000/iq2000.h (FUNCTION_VALUE_REGNO_P): Redefine, use
2472         iq2000_function_value_regno_p.
2473         (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
2474         * config/iq2000/iq2000-protos.h (iq2000_function_value_regno_p):
2475         Declare.
2476
2477 2009-11-14  Richard Earnshaw  <rearnsha@arm.com>
2478
2479         PR target/42031
2480         * arm.md (adddi_sesidi_di): Place tied contraint first.
2481         (adddi_zesidi_di, subdi_di_zesidi, subdi_di_sesidi): Likewise
2482         (subdi_zesidi_di, subdi_sesidi_di): Likewise.
2483         (mulsi3_compare0, mulsi_compare0_scratch): Likewise.
2484         (mulsi3addsi, mulsi3addsi_compare0): Likewise.
2485         (mulsi3addsi_compare0_scratch, smulsi3_highpart_nov6): Likewise.
2486         (umulsi3_highpart_nov6, anddi_zesidi_di, anddi_sesdi_di): Likewise.
2487         (anddi_notdi_di, iordi_sesidi_di, xordi_sesidi_di): Likewise.
2488         (andsi_iorsi3_notsi, arm_ashldi3_1bit, arm_ashrdi3_1_bit): Likewise.
2489         (arm_lshrdi3_1bit, one_cmpldi2): Likewise.
2490
2491 2009-11-14  Uros Bizjak  <ubizjak@gmail.com>
2492
2493         * config/i386/predicates.md (call_register_no_elim_operand):
2494         New predicate.  Reject stack register as valid call operand
2495         for 32bit targets.
2496         (call_insn_operand): Use call_register_no_elim_operand.
2497
2498 2009-11-13  Richard Henderson  <rth@redhat.com>
2499
2500         * function.c (stack_protect_prologue): Don't bypass expand_expr
2501         for stack_protect_guard and guard_decl.
2502         (stack_protect_epilogue): Likewise.
2503
2504 2009-11-13  Jan Hubicka  <jh@suse.cz>
2505
2506         * ipa.c (function_and_variable_visibility): Clear COMDAT on functions
2507         when to PUBLIC is set.
2508
2509 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
2510
2511         PR middle-end/42029
2512         * gimplify.c (gimplify_omp_atomic): Set DECL_GIMPLE_REG_P on
2513         tmp_load if needed.
2514
2515 2009-11-13  Uros Bizjak  <ubizjak@gmail.com>
2516
2517         PR target/41900
2518         * config/i386/i386.md (*call_pop_1, *call_1, *call_value_pop_1,
2519         *call_value_1): Use "lsm" as operand 1 constraint.
2520         * config/i386/predicates.md (call_insn_operand): Depend on
2521         index_register_operand to avoid %esp register.
2522
2523 2009-11-13  Uros Bizjak  <ubizjak@gmail.com>
2524
2525         Revert:
2526         2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
2527
2528         PR target/41900
2529         * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
2530         (TARGET_CALL_ESP): New define.
2531         * config/i386/i386.c (initial_ix86_tune_features): Initialize
2532         X86_ARCH_CALL_ESP.
2533         * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
2534         *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
2535         *call_1, *call_value_pop_1 and *call_value_1.  Depend on
2536         TARGET_CALL_ESP.
2537         (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
2538         New patterns, use "lsm" as operand 1 constraint.
2539         * config/i386/predicates.md (call_insn_operand): Depend on
2540         index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
2541
2542 2009-11-13  Jason Merrill  <jason@redhat.com>
2543
2544         PR debug/26965
2545         * dwarf2out.c (gen_variable_die): Don't worry about DECL_COMDAT.
2546         Don't emit a second declaration at any scope.
2547
2548 2009-11-13  Andrey Belevantsev  <abel@ispras.ru>
2549
2550         PR rtl-optimization/41697
2551         * sel-sched-ir.c (fallthru_bb_of_jump): Bail out when a block with
2552         a conditional jump has a single successor.
2553
2554 2009-11-13  Andrey Belevantsev  <abel@ispras.ru>
2555
2556         * sched-deps.c (init_deps): New parameter lazy_reg_last.  Don't
2557         allocate reg_last when in case lazy_reg_last is true.
2558         (init_deps_reg_last): New.
2559         (free_deps): When max_reg is 0, this context is already freed.
2560         * sched-int.h (init_deps_reg_last): Export.
2561         (init_deps): Update prototype.
2562         * sched-ebb.c (schedule_ebb): Update the call to init_deps.
2563         * sched-rgn.c (sched_rgn_compute_dependencies): Likewise.
2564         * ddg.c (build_intra_loop_deps): Likewise.
2565         * sel-sched-ir.c (copy_deps_context, create_deps_context,
2566         reset_deps_context, deps_init_id): Likewise.
2567         (init_first_time_insn_data): Lazy allocate INSN_DEPS_CONTEXT.
2568         (free_data_for_scheduled_insn): New, break down from ...
2569         (free_first_time_insn_data): ... here.
2570         (has_dependence_p): Allocate reg_last now, when it is needed.
2571         (extend_insn_data): When maximal LUID is big enough, allocate
2572         per-insn data in smaller chunks.
2573         * sel-sched-ir.h (free_data_for_scheduled_insn): Export.
2574         * sel-sched.c (update_seqnos_and_stage): Free INSN_DEPS_CONTEXT
2575         in scheduled insn.
2576
2577 2009-11-13  Uros Bizjak  <ubizjak@gmail.com>
2578
2579         * config/i386/i386.md (call_value): Fix comment.
2580         (sibcall_value): Ditto.
2581
2582 2009-11-13  Eric Botcazou  <ebotcazou@adacore.com>
2583
2584         * config/i386/linux-unwind.h (x86_frob_update_context): New function.
2585         (MD_FROB_UPDATE_CONTEXT): Define.
2586
2587 2009-11-12  Eric Botcazou  <ebotcazou@adacore.com>
2588             Laurent GUERBY  <laurent@guerby.net>
2589
2590         * config/sparc/linux-unwind.h (sparc64_fallback_frame_state): Tidy.
2591         Do not schedule an %sp restore.  Compensate for RETURN_ADDR_OFFSET.
2592         (sparc_fallback_frame_state): Tidy.  Compensate for RETURN_ADDR_OFFSET.
2593
2594 2009-11-12  Jan Hubicka  <jh@suse.cz>
2595
2596         * ipa.c (function_and_variable_visibility): Fix my accidentail commit
2597         and clear DECL_COMMON on localized declarations.
2598
2599 2009-11-12  Bernd Schmidt  <bernd.schmidt@analog.com>
2600
2601         PR rtl-opt/38582
2602         * regrename.c (struct du_head): New structure; some elements moved
2603         from...
2604         (struct du_chain): ... this one.
2605         (open_chains, closed_chains): Now of type struct du_head *.
2606         (do_replace): Accept du_head argument, not du_chain.  All callers
2607         changed.  Modified code to match new data structures.
2608         (build_def_use): Return a list of du_head structures.  Modified code
2609         to match new data structures.
2610         (dump_def_use_chain): Accept du_head argument, not du_chain.  All
2611         callers changed.  Modified code to match new data structures.
2612         (merge_overlapping_regs): Accept du_head argument, not du_chain.  All
2613         callers changed.  Modified code to match new data structures.
2614         (scan_rtx_reg): Change type of this_regno and this_nregs to unsigned.
2615         Allocate a du_head structure as well as a du_chain when creating a
2616         new chain.  Modified other code to match new data structures.
2617
2618 2009-11-12  Jan Hubicka  <jh@suse.cz>
2619
2620         * cgraph.h (varpool_node_name): Declare.
2621         * cgraphunit.c (process_function_and_variable_attributes): Set
2622         force_output flag on used variables.
2623         * ipa.c (function_and_variable_visibility): Dump externally visible
2624         and needed variables.
2625         * varpool.c (varpool_node_name): Export.
2626         (decide_is_variable_needed): Check COMDAT for externally visible vars;
2627         ignore needed flag.
2628
2629 2009-11-12  Uros Bizjak  <ubizjak@gmail.com>
2630
2631         PR middle-end/41930
2632         * simplify-rtx.c (simplify_replace_fn_rtx) <case 'e'>: Skip
2633         processing if XEXP (x, i) is NULL.
2634
2635 2009-11-12  Jan Hubicka  <jh@suse.cz>
2636
2637         * ipa.c (function_and_variable_visibility): Verify that WEAK || COMMON
2638         imply PUBLIC || EXTERNAL.
2639
2640 2009-11-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
2641
2642         PR middle-end/41440
2643         * cfgexpand.c (expand_gimple_basic_block): Append NOP to a fallthru,
2644         single successor block, ending with jump created by RTL expander.
2645
2646 2009-11-11  Jan Hubicka  <jh@suse.cz>
2647
2648         PR middle-end/41729
2649         * ipa.c (function_and_variable_visibility): Do not privatize COMDAT
2650         and WEAK variables at -fwhole-program.
2651
2652         PR middle-end/41735
2653         * ipa.c (whole_program_function_and_variable_visility): COMDAT
2654         functions/variables are not needed even if they are externally visible.
2655
2656 2009-11-11  Jan Hubicka  <jh@suse.cz>
2657
2658         (patch by Richard Guenther)
2659         * lto-streamer-out.c (output_function): Output head of argument list
2660         earlier.
2661         * lto-streamer-in.c (input_function): Re-map arguments into merged
2662         declaration.
2663
2664 2009-11-11  Jan Hubicka  <jh@suse.cz>
2665
2666         * lto-cgraph.c: Include gcov-io.h
2667         (output_profile_summary): New function.
2668         (output_cgraph): Use it.
2669         (input_profile_summary): New function.
2670         (input_cgraph): Use it.
2671         * coverage.c (build_ctr_info_value): Use varpool; initalize
2672         DECL_ASSEMBLER_NAME.
2673         (create_coverage): Likewise.
2674         * tree-profile.c (tree_init_ic_make_global_vars): Likewise.
2675         (tree_init_edge_profiler): Likewise.
2676         * Makefile.in (lto-cgraph.o): Add dependency on gcov-io.h.
2677
2678 2009-11-11  Kai Tietz  <kai.tietz@onevision.com>
2679
2680         * config/i386/cygming.h (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed.
2681         * c-pragma.c (def_pragma_macro_value): Likewise.
2682         (def_pragma_macro): Likewise.
2683         (pushed_macro_table): Likewise.
2684         (HANDLE_PRAGMA_PUSH_POP_MACRO): Remove guarded code.
2685         * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed.
2686
2687 2009-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
2688
2689         * doc/plugins.texi (Registering custom attributes): section
2690         renamed as (Registering custom attributes or pragmas).
2691         Mentions custom attributes & pragmas, and c_register_pragma, with
2692         a small example.
2693         * doc/cpp.texi (Pragmas): Mentions that plugins can provide their
2694         pragmas.
2695         * doc/extend.texi (Function Attributes): Mentions that plugin can
2696         provide their attributes.
2697
2698 2009-11-11  Jon Beniston  <jon@beniston.com>
2699
2700         * config.gcc: Add lm32 elf and uclinux targets.
2701         * config/lm32: New directory.
2702         * config/lm32/lm32.c: New file.
2703         * config/lm32/lm32.h: New file.
2704         * config/lm32/lm32.md: New file.
2705         * config/lm32/lm32.opt: New file.
2706         * config/lm32/lm32-protos.h: New file.
2707         * config/lm32/constraints.md: New file.
2708         * config/lm32/predicates.md: New file.
2709         * config/lm32/sfp-machine.h: New file.
2710         * config/lm32/t-fprules-softfp: New file.
2711         * config/lm32/uclinux-elf.h: New file.
2712         * doc/invoke.texi: Document lm32 options.
2713         * doc/contrib.texi: Document lm32 porter.
2714         * doc/install.texi: Document lm32 targets.
2715
2716 2009-11-11  Martin Jambor  <mjambor@suse.cz>
2717
2718         PR lto/41932
2719         * ipa-prop.c (ipa_update_after_lto_read): Call
2720         ipa_check_create_node_params and ipa_check_create_edge_args.  Also
2721         call ipa_initialize_node_params instead of ipa_populate_param_decls.
2722
2723 2009-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
2724
2725         * config/arm/arm.c (neon_vdup_constant, neon_make_constant): New.
2726         (neon_expand_vector_init): Use them.  Also handle non-constant
2727         vectors with identical elements and vectors with only one
2728         non-constant element.
2729         (arm_print_operand): Handle 'y' modifier.
2730         * config/arm/arm-protos.h (neon_make_constant): Declare.
2731         * config/arm/neon.md (neon_vdup_n<mode>): Split into two
2732         patterns.  Use VX instead of VDQW for the first one.  Allow
2733         a VFP alternative and V32 modes for the second one.
2734         * config/arm/neon.ml (shape_elt): Add Alternatives.
2735         (ops): Use Alternatives for vdup lane instructions.
2736         * config/arm/neon-testgen.ml (analyze_shape): Handle Alternatives.
2737         * config/arm/vec-common.md (mov<mode>): Use neon_make_constant.
2738
2739 2009-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
2740
2741         * config/arm/neon.md (*neon_mov<mode>): Reject two non-register
2742         operands.
2743         (movti, mov<mode>): Call force_reg on one operand if required.
2744         * config/arm/vec-common.md (mov<mode>): Likewise.
2745
2746 2009-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
2747
2748         * config/arm/arm.c (arm_override_options): Enable scheduling for
2749         Thumb-2.
2750
2751 2009-11-10  Eric Botcazou  <ebotcazou@adacore.com>
2752
2753         PR target/10127
2754         PR ada/20548
2755         * expr.h (anti_adjust_stack_and_probe): Declare.
2756         * explow.c (anti_adjust_stack_and_probe): Make global, add ADJUST_BACK
2757         parameter and rewrite head comment.
2758         (allocate_dynamic_stack_space): Adjust call to above function.
2759         * function.c (expand_function_end): Handle STACK_CHECK_MOVING_SP.
2760
2761         * tree.h (dwarf2out_args_size): Delete.
2762         * dwarf2out.c (dwarf2out_args_size): Make static and move around.
2763         (dwarf2out_args_size_adjust): Delete prototype and move around.
2764         (dwarf2out_frame_debug_expr): Do not record arg size adjustments for
2765         ACCUMULATE_OUTGOING_ARGS targets.
2766
2767 2009-11-10  Eric Botcazou  <ebotcazou@adacore.com>
2768
2769         * config/sparc/sparc.c (print_operand) <')'>: Test for a non-null
2770         DECL_SIZE of DECL_RESULT before evaluating it.
2771
2772 2009-11-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2773
2774         PR tree-optimization/41987
2775         * fold-const.c (const_binop): Avoid using fold_buildN().
2776
2777 2009-11-10  Martin Jambor  <mjambor@suse.cz>
2778
2779         * tree-pass.h (struct ipa_opt_pass_d): Added stmt_fixup field.
2780         (execute_all_ipa_stmt_fixups): Declare.
2781         * ipa-cp.c (pass_ipa_cp): Added stmt_fixup value.
2782         * ipa-inline.c (pass_ipa_inline): Likewise.
2783         * ipa-pure-const.c (pass_ipa_pure_cons): Likewise.
2784         * ipa-reference.c (pass_ipa_reference): Likewise.
2785         * ipa.c (pass_ipa_whole_program_visibility): Likewise.
2786         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Likewise.
2787         (pass_ipa_lto_finish_out): Likewise.
2788         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Likewise.
2789         * passes.c (execute_ipa_stmt_fixups): New function.
2790         (execute_all_ipa_stmt_fixups): New function.
2791         * lto-streamer-in.c (input_function): Call execute_all_ipa_stmt_fixups.
2792
2793 2009-11-10  Eric Botcazou  <ebotcazou@adacore.com>
2794
2795         PR ada/20548
2796         * explow.c (probe_stack_range): Fix typo.
2797         * config/sparc/sparc.md (probe_stack): New expander.
2798
2799 2009-11-09  Dave Korn  <dave.korn.cygwin@gmail.com>
2800
2801         * config/i386/cygwin.h (LINK_SPEC): Add -tsaware flag if !mno-cygwin.
2802
2803 2009-11-09  Jason Merrill  <jason@redhat.com>
2804
2805         * gdbinit.in (pgq): New function for printing gimple sequence.
2806
2807 2009-11-09  Paul Brook  <paul@codesourcery.com>
2808             Daniel Jacobowitz  <dan@codesourcery.com>
2809             Sandra Loosemore  <sandra@codesourcery.com>
2810
2811         * doc/extend.texi (Half-Precision): Update wording to reflect
2812         that there are now multiple -mfpu options that enable fp16
2813         hardware support.
2814         * doc/invoke.texi: Update list of ARM -mfpu= options.
2815         * config.gcc: Update ARM --with-fpu option list.
2816         * config/arm/arm.c (all_fpus): Add vfpv3-fp16, vfpv3-d16-fp16,
2817         vfpv3xd and vfpv3xd-fp16.
2818         (use_vfp_abi): New function.
2819         (aapcs_vfp_is_call_or_return_candidate): Avoid double precision regs
2820         when undesirable.
2821         (aapcs_vfp_is_return_candidate, aapcs_vfp_is_call_candidate,
2822         aapcs_vfp_allocate_return_reg): Use use_vfp_abi.
2823         (arm_rtx_costs_1, arm_size_rtx_costs, arm_fastmul_rtx_costs,
2824         arm_9e_rtx_costs): Only expect double-precision operations if the FPU
2825         provides them.
2826         (coproc_secondary_reload_class): Reload HFmode via GENERAL_REGS if no
2827         NEON.
2828         (arm_print_operand): Handle 'p' modifier.
2829         (arm_hard_regno_mode_ok): : Allow HFmode in VFP registers if
2830         TARGET_FP16.
2831         * config/arm/arm.h (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Define.
2832         (TARGET_FP16): Define.
2833         * config/arm/vfp.md: Disable double-precision patterns if the FPU
2834         does not provide them.
2835         (arm_movdi_vfp, thumb2_movdi_vfp): Use fcpys to move
2836         double-precision values on a single-precision FPU.
2837         (movdf_vfp, thumb2_movdf_vfp): Likewise.  Use "Dy" for
2838         double-precision constants.
2839         (movhf_vfp_neon): New pattern (was movhf_vfp).
2840         (movhf_vfp): Remove NEON instructions.
2841         * config/arm/constraints.md: Add new "Dy" constraint for
2842         double-precision constants.  Update description of "Dv".
2843         * config/arm/arm.md: Disable double-precision patterns if the FPU
2844         does not provide them
2845
2846 2009-11-09  Jakub Jelinek  <jakub@redhat.com>
2847
2848         * config/i386/i386.c (print_operand) <case 'D'>: Fix formatting.
2849         (print_operand) <case 'Y'>: Likewise.  Fix a pasto in operand lossage
2850         diagnostics.
2851
2852 2009-11-08  H.J. Lu  <hongjiu.lu@intel.com>
2853
2854         * collect2.c (main): Search PLUGIN_LD for plugin linker.
2855
2856         * configure.ac (--with-plugin-ld): New.  Default to ld.
2857         * configure: Regenerated.
2858         * config.in: Likewise.
2859
2860         * exec-tool.in (ORIGINAL_PLUGIN_LD_FOR_TARGET): New.
2861         (collect-ld): Use ORIGINAL_PLUGIN_LD_FOR_TARGET for -plugin.
2862
2863 2009-11-08  Jonathan Gray  <jsg@openbsd.org>
2864
2865         * config/openbsd-stdint.h: Change to reflect what
2866         c_common_nodes_and_builtins expects.
2867
2868 2009-11-08  Paolo Carlini  <paolo.carlini@oracle.com>
2869
2870         * builtins.c (apply_args_reg_offset): Remove commented out delaration.
2871
2872 2009-11-08  Jakub Jelinek  <jakub@redhat.com>
2873
2874         PR target/41985
2875         * config/i386/i386.c (get_some_local_dynamic_name): Don't assert
2876         function contains at least one local dynamic name.
2877         (print_operand) <case '&'>: Instead output operand lossage diagnostics
2878         here if that happens.
2879
2880 2009-11-08  Zbigniew Chamski  <zbigniew.chamski@gmail.com>
2881             Joern Rennecke  <amylaar@spamcop.net>
2882
2883         * cfgrtl.c (pass_free_cfg): Add pass name.
2884         * cgraphbuild.c (pass_build_cgraph_edges): Likewise.
2885         (pass_rebuild_cgraph_edges, pass_remove_cgraph_callee_edges): Likewise.
2886         * dce.c (pass_ud_rtl_dce, pass_fast_rtl_dce): Change pass name.
2887         * df-core.c (pass_df_initialize_no_opt): Likewise.
2888         * except.c (pass_rtl_eh): Likewise.
2889         * function.c (pass_init_function, pass_leaf_regs): Likewise.
2890         * gcse.c (pass_rtl_pre): Change pass name.
2891         * passes.c (pass_postreload): Add pass name.
2892         (make_pass_instance): Don't use duplicate-tracking logic for
2893         names starting with '*'.
2894         (next_pass_1): Assert that pass has a name.
2895         (register_one_dump_file): If there is an space in the name,
2896         skip past it.
2897         * predict.c (pass_strip_predict_hints): Add pass name.
2898         * reg-stack.c (pass_stack_regs): Likewise.
2899         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
2900         * tree-cfg.c (pass_warn_function_return,
2901         pass_warn_function_noreturn): Add pass name.
2902         * tree-dfa.c (pass_referenced_vars): Likewise.
2903         * tree-optimize.c (pass_cleanup_cfg_post_optimizing):
2904         Fix whitespace before comment.
2905         (pass_fixup_cfg): Add pass name, fix whitespace before comment.
2906         (pass_init_datastructures): Add pass name.
2907         * tree-ssa-loop.c (pass_record_bounds): Likewise.
2908         * tree-ssa.c (pass_early_warn_uninitialized,
2909         pass_late_warn_uninitialized): Likewise.
2910         * tree.c (pass_ipa_free_lang_data): Likewise.
2911         * doc/passes.texi (pass manager): Document how to disambiguate
2912         pass names.
2913
2914 2009-11-08  Paolo Bonzini  <bonzini@gnu.org>
2915
2916         * df-problems.c: Fix documentation for forward simulation of LR.
2917         (df_simulate_one_insn_forwards): Use df_simulate_find_defs.
2918         (df_simulate_finalize_forwards): Remove.
2919         * df.h (df_simulate_finalize_forwards): Remove.
2920
2921 2009-11-08  Richard Guenther  <rguenther@suse.de>
2922
2923         * tree-ssa-structalias.c (build_succ_graph): Properly make
2924         variables escape if they are stored to anything.
2925
2926 2009-11-08  Richard Guenther  <rguenther@suse.de>
2927
2928         PR rtl-optimization/41928
2929         * loop-invariant.c (free_loop_data): If we didn't allocate
2930         loop data do not try to free it.
2931
2932 2009-11-07  Jason Merrill  <jason@redhat.com>
2933
2934         * tree.c (reconstruct_complex_type): Preserve attributes.
2935
2936 2009-11-07  Richard Guenther  <rguenther@suse.de>
2937
2938         * tree-ssa-structalias.c (build_succ_graph): Feed stores
2939         to anything only to variables that can take pointers.
2940         (get_constraint_for_ssa_var): Properly exclude full
2941         variables from expanding.
2942         (first_vi_for_offset): Avoid overflow in arithmetic.
2943         (first_or_preceding_vi_for_offset): Likewise.
2944         (count_num_arguments): Fix implementation.
2945         (gate_ipa_pta): Do not run when not optimizing.
2946
2947 2009-11-07  David Binderman <dcb314@hotmail.com>
2948
2949         * builtins.c (apply_args_size, expand_builtin_mathfn, expand_powi,
2950         expand_builtin_expect, maybe_emit_sprintf_chk_warning): Remove some
2951         set but not used variables.
2952         (apply_args_reg_offset): Comment out as unused.
2953         * calls.c (flags_from_decl_or_type): Likewise.
2954         * genautomata.c (check_regexp_units_distribution): Likewise.
2955
2956 2009-11-07  Uros Bizjak  <ubizjak@gmail.com>
2957
2958         * config/i386/sse.md (xop_pmacsww, xop_pmacssww, xop_pmacsdd,
2959         xop_pmacssdd, xop_pmacssdql, xop_pmacssdqh, xop_pmacsdql,
2960         *xop_pmacsdql_mem, xop_pmacsdqh, *xop_pmacsdqh_mem, xop_pmacsswd,
2961         xop_pmacswd, xop_pmadcsswd, xop_pmadcswd, xop_pcmov_<mode>,
2962         xop_pcmov_<mode>256, xop_pperm, xop_pperm_pack_v2di_v4si,
2963         xop_pperm_pack_v4si_v8hi, xop_pperm_pack_v8hi_v16qi): Compress
2964         operand alternatives.
2965
2966 2009-11-06  Michael Matz  <matz@suse.de>
2967
2968         PR middle-end/41963
2969         * tree-ssa-math-opts.c (execute_cse_reciprocals): Check all uses
2970         of a potential reciprocal to really be reciprocals.
2971
2972 2009-11-06  Jakub Jelinek  <jakub@redhat.com>
2973
2974         * config/i386/x86intrin.h: Include fma4intrin.h, xopintrin.h and
2975         lwpintrin.h after immintrin.h.
2976         * config/i386/fma4intrin.h (__v8sf, __v4df, __m256, __m256d): Remove
2977         typedefs.
2978
2979         PR middle-end/41935
2980         * c-common.c (fold_offsetof_1) <case ARRAY_REF>: Don't crash for VLAs
2981         or non-constant index, allow index one past the last element and
2982         allow exceeding array bound in arrays that might be used as flexible
2983         array members.
2984
2985 2009-11-05  Richard Henderson  <rth@redhat.com>
2986
2987         * config/i386/ia32intrin.h: Protect CRC32 builtins with __SSE4_2__.
2988
2989 2009-11-05  Paul Brook  <paul@codesourcery.com>
2990
2991         * config/arm/arm.c (arm_fp_model, arm_fpu_arch, arm_fpu_tune): Remove.
2992         (arm_fpu_desc): New.
2993         (all_fpus): Add FPU details.
2994         (fp_model_for_fpu): Remove.
2995         (arm_override_options): Set and use arm_fpu_desc and arm_fpu_attr.
2996         (arm_output_epilogue, arm_save_coproc_regs): Use TARGET_FPA_EMU2.
2997         (arm_file_start): Use arm_fpu_desc.
2998         * config/arm/arm.h (TARGET_FPA, TARGET_MAVERICK, TARGET_VFP,
2999         TARGET_VFPD32, TARGET_VFP3, TARGET_NEON_FP16, TARGET_NEON): Use
3000         arm_fpu_desc.
3001         (TARGET_FPA_EMU2): Define.
3002         (arm_fp_model, fputype, arm_fpu_tune): Remove.
3003         (vfp_reg_type, arm_fpu_desc): New.
3004         * config/arm/arm.md (attr fpu): Simplify.
3005         * config/arm/fpa.md (movxf_fpa): Use TARGET_FPA_EMU2.
3006         * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Use string value.
3007         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Use string value.
3008         * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Use string value.
3009         * config/arm/vxworks.h (FPUTYPE_DEFAULT): Use string value.
3010
3011 2009-11-05  Michael Matz  <matz@suse.de>
3012
3013         * config/i386/i386.c (ix86_builtin_reciprocal): Remove dependency
3014         on TARGET_RECIP.
3015         * doc/invoke.texi (-mrecip): Clarify that we don't need -mrecip
3016         for 1/sqrtf.
3017
3018 2009-11-04  Jason Merrill  <jason@redhat.com>
3019
3020         PR c++/36912
3021         * varasm.c (initializer_constant_valid_p): A PLUS_EXPR
3022         or MINUS_EXPR of REAL_TYPE is not a valid constant initializer.
3023         (output_constant): Avoid crash after error.
3024
3025 2009-11-05  Martin Jambor  <mjambor@suse.cz>
3026
3027         * tree-sra.c (struct access): Changed comment of next_sibling field.
3028         (analyze_modified_params): Loop over accesses of a group rather than
3029         over all with the ame base, pass a common bitmap to
3030         walk_aliased_vdefs.
3031         (unmodified_by_ref_scalar_representative): Build link lists of
3032         accesses of a group.
3033         (splice_param_accesses): Likewise.
3034
3035 2009-11-04  Kenneth Zadeck  <zadeck@naturalbridge.com>
3036
3037         * df-scan.c (df-uses-record): Add case zero_extract of mem.
3038
3039 2009-11-04  Eric Botcazou  <ebotcazou@adacore.com>
3040
3041         PR target/10127
3042         PR ada/20548
3043         * config/i386/i386.md (probe_stack): New expander.
3044         (logical operation peepholes): Do not split stack checking probes.
3045
3046 2009-11-04  Harsha Jagasia  <harsha.jagasia@amd.com>
3047             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
3048
3049         * doc/invoke.texi (-mlwp): Add documentation.
3050         * doc/extend.texi (x86 intrinsics): Add LWP intrinsics.
3051         * config.gcc (i[34567]86-*-*): Include lwpintrin.h.
3052         (x86_64-*-*): Ditto.
3053         * config/i386/lwpintrin.h: New file, provide x86 compiler
3054         intrinisics for LWP.
3055         * config/i386/cpuid.h (bit_LWP): Define LWP bit.
3056         * config/i386/x86intrin.h: Add LWP check and lwpintrin.h.
3057         * config/i386/i386-c.c (ix86_target_macros_internal): Check
3058         ISA_FLAG for LWP.
3059         * config/i386/i386.h (TARGET_LWP): New macro for LWP.
3060         * config/i386/i386.opt (-mlwp): New switch for LWP support.
3061         * config/i386/i386.c (OPTION_MASK_ISA_LWP_SET): New.
3062         (OPTION_MASK_ISA_LWP_UNSET): New.
3063         (ix86_handle_option): Handle -mlwp.
3064         (isa_opts): Handle -mlwp.
3065         (enum pta_flags): Add PTA_LWP.
3066         (override_options): Add LWP support.
3067         (IX86_BUILTIN_LLWPCB16): New for LWP intrinsic.
3068         (IX86_BUILTIN_LLWPCB32): Ditto.
3069         (IX86_BUILTIN_LLWPCB64): Ditto.
3070         (IX86_BUILTIN_SLWPCB16): Ditto.
3071         (IX86_BUILTIN_SLWPCB32): Ditto.
3072         (IX86_BUILTIN_SLWPCB64): Ditto.
3073         (IX86_BUILTIN_LWPVAL16): Ditto.
3074         (IX86_BUILTIN_LWPVAL32): Ditto.
3075         (IX86_BUILTIN_LWPVAL64): Ditto.
3076         (IX86_BUILTIN_LWPINS16): Ditto.
3077         (IX86_BUILTIN_LWPINS32): Ditto.
3078         (IX86_BUILTIN_LWPINS64): Ditto.
3079         (enum  ix86_special_builtin_type): Add LWP intrinsic support.
3080         (builtin_description): Ditto.
3081         (ix86_init_mmx_sse_builtins): Ditto.
3082         (ix86_expand_special_args_builtin): Ditto.
3083         * config/i386/i386.md (UNSPEC_LLWP_INTRINSIC): Add new UNSPEC for
3084         LWP support.
3085         (UNSPEC_SLWP_INTRINSIC): Ditto.
3086         (UNSPECV_LWPVAL_INTRINSIC): Ditto.
3087         (UNSPECV_LWPINS_INTRINSIC): Ditto.
3088         (lwp_llwpcbhi1): New lwp pattern.
3089         (lwp_llwpcbsi1): Ditto.
3090         (lwp_llwpcbdi1): Ditto.
3091         (lwp_slwpcbhi1): Ditto.
3092         (lwp_slwpcbsi1): Ditto.
3093         (lwp_slwpcbdi1): Ditto.
3094         (lwp_lwpvalhi3): Ditto.
3095         (lwp_lwpvalsi3): Ditto.
3096         (lwp_lwpvaldi3): Ditto.
3097         (lwp_lwpinshi3): Ditto.
3098         (lwp_lwpinssi3): Ditto.
3099         (lwp_lwpinsdi3): Ditto.
3100
3101 2009-11-04  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3102             Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
3103
3104         PR rtl-opt/41833
3105         * simplify-rtx.c (simplify_binary_operation_1): Simplify vec_select of
3106         a vec_duplicate.
3107
3108 2009-11-04  Richard Guenther  <rguenther@suse.de>
3109             Rafael Avila de Espindola  <espindola@google.com>
3110
3111         * gcc.c (process_command): Handle arguments name@offset.
3112
3113 2009-11-04  Harsha Jagasia  <harsha.jagasia@amd.com>
3114             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
3115
3116         * config.gcc (i[34567]86-*-*): Include xopintrin.h.
3117         (x86_64-*-*): Ditto.
3118         * config/i386/xopintrin.h: New file, provide common x86 compiler
3119         intrinisics for XOP.
3120         * config/i386/cpuid.h (bit_XOP): Define XOP bit.
3121         * config/i386/x86intrin.h: Add XOP check and xopintrin.h.
3122         * config/i386/i386-c.c(ix86_target_macros_internal): Check
3123         ISA_FLAG for XOP.
3124         * config/i386/i386.h(TARGET_XOP): New macro for XOP.
3125         * config/i386/i386.opt (-mxop): New switch for XOP support.
3126         * config/i386/i386.md (UNSPEC_XOP_UNSIGNED_CMP)
3127         (UNSPEC_XOP_TRUEFALSE)
3128         (UNSPEC_XOP_PERMUTE)
3129         (UNSPEC_FRCZ): Add new UNSPEC for XOP support.
3130         (PPERM_*): New constants for vpperm instruction.
3131         (xop_pcmov_<mode>): Add XOP conditional mov instructions.
3132         * config/i386/i386.c (OPTION_MASK_ISA_XOP_SET): New.
3133         (OPTION_MASK_ISA_XOP_UNSET): New.
3134         (OPTION_MASK_ISA_XOP_UNSET): Change definition to depend on XOP.
3135         (ix86_handle_option): Handle -mxop.
3136         (isa_opts): Handle -mxop.
3137         (enum pta_flags): Add PTA_XOP.
3138         (override_options): Add XOP support.
3139         (print_operand): Add code for XOP compare instructions.
3140         (ix86_expand_sse_movcc): Extend for XOP conditional move instruction.
3141         (ix86_expand_int_vcond): Extend for XOP compare instruction.
3142
3143         (IX86_BUILTIN_VPCMOV): New for XOP intrinsic.
3144         (IX86_BUILTIN_VPCMOV_V2DI): Ditto.
3145         (IX86_BUILTIN_VPCMOV_V4SI): Ditto.
3146         (IX86_BUILTIN_VPCMOV_V8HI): Ditto.
3147         (IX86_BUILTIN_VPCMOV_V16QI): Ditto.
3148         (IX86_BUILTIN_VPCMOV_V4SF): Ditto.
3149         (IX86_BUILTIN_VPCMOV_V2DF): Ditto.
3150
3151         (IX86_BUILTIN_VPCMOV256): Ditto.
3152         (IX86_BUILTIN_VPCMOV_V4DI256): Ditto.
3153         (IX86_BUILTIN_VPCMOV_V8SI256): Ditto.
3154         (IX86_BUILTIN_VPCMOV_V16HI256): Ditto.
3155         (IX86_BUILTIN_VPCMOV_V32QI256): Ditto.
3156         (IX86_BUILTIN_VPCMOV_V8SF256): Ditto.
3157         (IX86_BUILTIN_VPCMOV_V4DF256): Ditto.
3158
3159         (IX86_BUILTIN_VPPERM): Ditto.
3160
3161         (IX86_BUILTIN_VPMACSSWW): Ditto.
3162         (IX86_BUILTIN_VPMACSWW): Ditto.
3163         (IX86_BUILTIN_VPMACSSWD): Ditto.
3164         (IX86_BUILTIN_VPMACSWD): Ditto.
3165         (IX86_BUILTIN_VPMACSSDD): Ditto.
3166         (IX86_BUILTIN_VPMACSDD): Ditto.
3167         (IX86_BUILTIN_VPMACSSDQL): Ditto.
3168         (IX86_BUILTIN_VPMACSSDQH): Ditto.
3169         (IX86_BUILTIN_VPMACSDQL): Ditto.
3170         (IX86_BUILTIN_VPMACSDQH): Ditto.
3171         (IX86_BUILTIN_VPMADCSSWD): Ditto.
3172         (IX86_BUILTIN_VPMADCSWD): Ditto.
3173
3174         (IX86_BUILTIN_VPHADDBW): Ditto.
3175         (IX86_BUILTIN_VPHADDBD): Ditto.
3176         (IX86_BUILTIN_VPHADDBQ): Ditto.
3177         (IX86_BUILTIN_VPHADDWD): Ditto.
3178         (IX86_BUILTIN_VPHADDWQ): Ditto.
3179         (IX86_BUILTIN_VPHADDDQ): Ditto.
3180         (IX86_BUILTIN_VPHADDUBW): Ditto.
3181         (IX86_BUILTIN_VPHADDUBD): Ditto.
3182         (IX86_BUILTIN_VPHADDUBQ): Ditto.
3183         (IX86_BUILTIN_VPHADDUWD): Ditto.
3184         (IX86_BUILTIN_VPHADDUWQ): Ditto.
3185         (IX86_BUILTIN_VPHADDUDQ): Ditto.
3186         (IX86_BUILTIN_VPHSUBBW): Ditto.
3187         (IX86_BUILTIN_VPHSUBWD): Ditto.
3188         (IX86_BUILTIN_VPHSUBDQ): Ditto.
3189
3190         (IX86_BUILTIN_VPROTB): Ditto.
3191         (IX86_BUILTIN_VPROTW): Ditto.
3192         (IX86_BUILTIN_VPROTD): Ditto.
3193         (IX86_BUILTIN_VPROTQ): Ditto.
3194         (IX86_BUILTIN_VPROTB_IMM): Ditto.
3195         (IX86_BUILTIN_VPROTW_IMM): Ditto.
3196         (IX86_BUILTIN_VPROTD_IMM): Ditto.
3197         (IX86_BUILTIN_VPROTQ_IMM): Ditto.
3198
3199         (IX86_BUILTIN_VPSHLB): Ditto.
3200         (IX86_BUILTIN_VPSHLW): Ditto.
3201         (IX86_BUILTIN_VPSHLD): Ditto.
3202         (IX86_BUILTIN_VPSHLQ): Ditto.
3203         (IX86_BUILTIN_VPSHAB): Ditto.
3204         (IX86_BUILTIN_VPSHAW): Ditto.
3205         (IX86_BUILTIN_VPSHAD): Ditto.
3206         (IX86_BUILTIN_VPSHAQ): Ditto.
3207
3208         (IX86_BUILTIN_VFRCZSS): Ditto.
3209         (IX86_BUILTIN_VFRCZSD): Ditto.
3210         (IX86_BUILTIN_VFRCZPS): Ditto.
3211         (IX86_BUILTIN_VFRCZPD): Ditto.
3212         (IX86_BUILTIN_VFRCZPS256): Ditto.
3213         (IX86_BUILTIN_VFRCZPD256): Ditto.
3214
3215         (IX86_BUILTIN_VPCOMEQUB): Ditto.
3216         (IX86_BUILTIN_VPCOMNEUB): Ditto.
3217         (IX86_BUILTIN_VPCOMLTUB): Ditto.
3218         (IX86_BUILTIN_VPCOMLEUB): Ditto.
3219         (IX86_BUILTIN_VPCOMGTUB): Ditto.
3220         (IX86_BUILTIN_VPCOMGEUB): Ditto.
3221         (IX86_BUILTIN_VPCOMFALSEUB): Ditto.
3222         (IX86_BUILTIN_VPCOMTRUEUB): Ditto.
3223
3224         (IX86_BUILTIN_VPCOMEQUW): Ditto.
3225         (IX86_BUILTIN_VPCOMNEUW): Ditto.
3226         (IX86_BUILTIN_VPCOMLTUW): Ditto.
3227         (IX86_BUILTIN_VPCOMLEUW): Ditto.
3228         (IX86_BUILTIN_VPCOMGTUW): Ditto.
3229         (IX86_BUILTIN_VPCOMGEUW): Ditto.
3230         (IX86_BUILTIN_VPCOMFALSEUW): Ditto.
3231         (IX86_BUILTIN_VPCOMTRUEUW): Ditto.
3232
3233         (IX86_BUILTIN_VPCOMEQUD): Ditto.
3234         (IX86_BUILTIN_VPCOMNEUD): Ditto.
3235         (IX86_BUILTIN_VPCOMLTUD): Ditto.
3236         (IX86_BUILTIN_VPCOMLEUD): Ditto.
3237         (IX86_BUILTIN_VPCOMGTUD): Ditto.
3238         (IX86_BUILTIN_VPCOMGEUD): Ditto.
3239         (IX86_BUILTIN_VPCOMFALSEUD): Ditto.
3240         (IX86_BUILTIN_VPCOMTRUEUD): Ditto.
3241
3242         (IX86_BUILTIN_VPCOMEQUQ): Ditto.
3243         (IX86_BUILTIN_VPCOMNEUQ): Ditto.
3244         (IX86_BUILTIN_VPCOMLTUQ): Ditto.
3245         (IX86_BUILTIN_VPCOMLEUQ): Ditto.
3246         (IX86_BUILTIN_VPCOMGTUQ): Ditto.
3247         (IX86_BUILTIN_VPCOMGEUQ): Ditto.
3248         (IX86_BUILTIN_VPCOMFALSEUQ): Ditto.
3249         (IX86_BUILTIN_VPCOMTRUEUQ): Ditto.
3250
3251         (IX86_BUILTIN_VPCOMEQB): Ditto.
3252         (IX86_BUILTIN_VPCOMNEB): Ditto.
3253         (IX86_BUILTIN_VPCOMLTB): Ditto.
3254         (IX86_BUILTIN_VPCOMLEB): Ditto.
3255         (IX86_BUILTIN_VPCOMGTB): Ditto.
3256         (IX86_BUILTIN_VPCOMGEB): Ditto.
3257         (IX86_BUILTIN_VPCOMFALSEB): Ditto.
3258         (IX86_BUILTIN_VPCOMTRUEB): Ditto.
3259
3260         (IX86_BUILTIN_VPCOMEQW): Ditto.
3261         (IX86_BUILTIN_VPCOMNEW): Ditto.
3262         (IX86_BUILTIN_VPCOMLTW): Ditto.
3263         (IX86_BUILTIN_VPCOMLEW): Ditto.
3264         (IX86_BUILTIN_VPCOMGTW): Ditto.
3265         (IX86_BUILTIN_VPCOMGEW): Ditto.
3266         (IX86_BUILTIN_VPCOMFALSEW): Ditto.
3267         (IX86_BUILTIN_VPCOMTRUEW): Ditto.
3268
3269         (IX86_BUILTIN_VPCOMEQD): Ditto.
3270         (IX86_BUILTIN_VPCOMNED): Ditto.
3271         (IX86_BUILTIN_VPCOMLTD): Ditto.
3272         (IX86_BUILTIN_VPCOMLED): Ditto.
3273         (IX86_BUILTIN_VPCOMGTD): Ditto.
3274         (IX86_BUILTIN_VPCOMGED): Ditto.
3275         (IX86_BUILTIN_VPCOMFALSED): Ditto.
3276         (IX86_BUILTIN_VPCOMTRUED): Ditto.
3277
3278         (IX86_BUILTIN_VPCOMEQQ): Ditto.
3279         (IX86_BUILTIN_VPCOMNEQ): Ditto.
3280         (IX86_BUILTIN_VPCOMLTQ): Ditto.
3281         (IX86_BUILTIN_VPCOMLEQ): Ditto.
3282         (IX86_BUILTIN_VPCOMGTQ): Ditto.
3283         (IX86_BUILTIN_VPCOMGEQ): Ditto.
3284         (IX86_BUILTIN_VPCOMFALSEQ): Ditto.
3285         (IX86_BUILTIN_VPCOMTRUEQ): Ditto.
3286
3287         (enum multi_arg_type): New enum for describing the various XOP
3288         intrinsic argument types.
3289         (bdesc_multi_arg): New table for XOP intrinsics.
3290         (ix86_init_mmx_sse_builtins): Add XOP intrinsic support.
3291         (ix86_expand_multi_arg_builtin): New function for creating XOP
3292         intrinsics.
3293
3294         * config/i386/sse.md (sserotatemax): New mode attribute for XOP.
3295         (xop_pmacsww): Ditto.
3296         (xop_pmacssww): Ditto.
3297         (xop_pmacsdd): Ditto.
3298         (xop_pmacssdd): Ditto.
3299         (xop_pmacssdql): Ditto.
3300         (xop_pmacssdqh): Ditto.
3301         (xop_pmacsdql): Ditto.
3302         (xop_pmacsdql_mem): Ditto.
3303         (xop_mulv2div2di3_low): Ditto.
3304         (xop_pmacsdqh): Ditto.
3305         (xop_pmacsdqh_mem): Ditto.
3306         (xop_mulv2div2di3_high): Ditto.
3307         (xop_pmacsswd): Ditto.
3308         (xop_pmacswd): Ditto.
3309         (xop_pmadcsswd): Ditto.
3310         (xop_pmadcswd): Ditto.
3311         (xop_pcmov_<mode>): Ditto.
3312         (xop_pcmov_<mode>256): Ditto.
3313         (xop_phaddbw): Ditto.
3314         (xop_phaddbd): Ditto.
3315         (xop_phaddbq): Ditto.
3316         (xop_phaddwd): Ditto.
3317         (xop_phaddwq): Ditto.
3318         (xop_phadddq): Ditto.
3319         (xop_phaddubw): Ditto.
3320         (xop_phaddubd): Ditto.
3321         (xop_phaddubq): Ditto.
3322         (xop_phadduwd): Ditto.
3323         (xop_phadduwq): Ditto.
3324         (xop_phaddudq): Ditto.
3325         (xop_phsubbw): Ditto.
3326         (xop_phsubwd): Ditto.
3327         (xop_phsubdq): Ditto.
3328         (xop_pperm): Ditto.
3329         (rotl<mode>3): Ditto.
3330         (rotr<mode>3): Ditto.
3331         (xop_rotl<mode>3): Ditto.
3332         (xop_rotr<mode>3): Ditto.
3333         (vrotr<mode>3): Ditto.
3334         (vrotl<mode>3): Ditto.
3335         (xop_vrotl<mode>3): Ditto.
3336         (vlshr<mode>3): Ditto.
3337         (vashr<mode>3): Ditto.
3338         (vashl<mode>3
3339         (xop_ashl<mode>3): Ditto.
3340         (xop_lshl<mode>3): Ditto.
3341         (ashlv16qi3): Ditto.
3342         (lshlv16qi3): Ditto.
3343         (ashrv16qi3): Ditto.
3344         (ashrv2di3): Ditto.
3345         (xop_frcz<mode>2): Ditto.
3346         (xop_vmfrcz<mode>2): Ditto.
3347         (xop_frcz<mode>2256): Ditto.
3348         (xop_maskcmp<mode>3): Ditto.
3349         (xop_maskcmp_uns<mode>3): Ditto.
3350         (xop_maskcmp_uns2<mode>3): Ditto.
3351         (xop_pcom_tf<mode>3): Ditto.
3352
3353         * doc/invoke.texi (-mxop): Add documentation.
3354         * doc/extend.texi (x86 intrinsics): Add XOP intrinsics.
3355
3356 2009-11-03  Mark Mitchell  <mark@codesourcery.com>
3357
3358         PR driver/11810
3359         * gcc.c (SWITCHES_NEED_SPACES): Define to "o".
3360         * config/alpha/osf.h (SWITCHES_NEED_SPACES): Remove here.
3361         * config/mips/iris.h (SWITCHES_NEED_SPACES): Remove here.
3362
3363 2009-11-04  Richard Earnshaw  <rearnsha@arm.com>
3364
3365         PR target/40835
3366         * arm.md (peephole2 patterns for move and compare): New.
3367
3368 2009-11-04  Nick Clifton  <nickc@redhat.com>
3369
3370         * defaults.h (CONSTANT_ADDRESS_P): Provide a default definition.
3371         Make sure that it does not allow CONST_DOUBLEs.
3372         * doc/tm.texi (CONSTANT_ADDRESS_P): Update description.
3373         * config/avr/avr.h (CONSTANT_ADDRESS_P): Delete.
3374         * config/bfin/bfin.h (CONSTANT_ADDRESS_P): Delete.
3375         * config/cris/cris.h (CONSTANT_ADDRESS_P): Delete.
3376         * config/fr30/fr30.h (CONSTANT_ADDRESS_P): Delete.
3377         * config/frv/frv.h (CONSTANT_ADDRESS_P): Delete.
3378         * config/m32c/m32c.h (CONSTANT_ADDRESS_P): Delete.
3379         * config/m68hc11/m68hc11.h (CONSTANT_ADDRESS_P): Delete.
3380         * config/mep/mep.h (CONSTANT_ADDRESS_P): Delete.
3381         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Delete.
3382         * config/moxie/moxie.h (CONSTANT_ADDRESS_P): Delete.
3383         * config/pdp11/pdp11.h (CONSTANT_ADDRESS_P): Delete.
3384         * config/picochip/picochip.h (CONSTANT_ADDRESS_P): Delete.
3385         * config/score/score.h (CONSTANT_ADDRESS_P): Delete.
3386         * config/stormy16/stormy16.h (CONSTANT_ADDRESS_P): Delete.
3387
3388 2009-11-04  Richard Guenther  <rguenther@suse.de>
3389
3390         PR tree-optimization/41919
3391         * tree-vrp.c (test_for_singularity): Properly compare values.
3392
3393 2009-11-04  Revital Eres  <eres@il.ibm.com>
3394
3395         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3396         Consider peeling for alignment only for stores and remove
3397         redundant assignment.
3398
3399 2009-11-04  Maxim Kuvyrkov  <maxim@codesourcery.com>
3400
3401         PR target/41302
3402         * config/m68k/m68k.c (m68k_reg_present_p): New static function.
3403         (m68k_ok_for_sibcall_p): Handle different result return locations.
3404
3405 2009-11-04  Richard Guenther  <rguenther@suse.de>
3406
3407         * c-opts.c (c_common_post_options): Move LTO option processing
3408         code ...
3409         * opts.c (decode_options): ... here.
3410
3411 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
3412
3413         * c-common.c (fold_offsetof_1): Use %wd instead of
3414         HOST_WIDE_INT_PRINT_DEC.
3415
3416 2009-11-04  Maciej W. Rozycki  <macro@linux-mips.org>
3417
3418         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Don't define
3419         __pic__ or __PIC__.
3420
3421 2009-11-04  Maciej W. Rozycki  <macro@linux-mips.org>
3422
3423         * config.gcc (vax-*-linux*): Keep the original contents of
3424         tmake_file while adding vax/t-linux.
3425
3426 2009-11-03  Eric Botcazou  <ebotcazou@adacore.com>
3427
3428         PR target/10127
3429         PR ada/20548
3430         * expr.h (STACK_CHECK_PROBE_INTERVAL): Delete.
3431         (STACK_CHECK_PROBE_INTERVAL_EXP): New macro.
3432         (STACK_CHECK_MOVING_SP): Likewise.
3433         * system.h (STACK_CHECK_PROBE_INTERVAL): Poison it.
3434         * doc/tm.texi (Stack Checking): Delete STACK_CHECK_PROBE_INTERVAL.
3435         Document STACK_CHECK_PROBE_INTERVAL_EXP and STACK_CHECK_MOVING_SP.
3436         * doc/md.texi (Standard Pattern Names): Tweak entry of CHECK_STACK.
3437         Document PROBE_STACK.
3438         * explow.c (anti_adjust_stack_and_probe): New function.
3439         (allocate_dynamic_stack_space): Do not directly allocate space if
3440         STACK_CHECK_MOVING_SP, instead invoke above function.
3441         (emit_stack_probe): Handle probe_stack insn.
3442         (PROBE_INTERVAL): New macro.
3443         (STACK_GROW_OPTAB): Likewise.
3444         (STACK_GROW_OFF): Likewise.
3445         (probe_stack_range): Use Pmode and memory_address consistently.  Fix
3446         loop condition in the small constant case.  Rewrite in the general
3447         case to be immune to wraparounds.  Make sure the address of probes
3448         is valid.  Try to use [base + disp] addressing mode if possible.
3449         * ira.c (setup_eliminable_regset): Set frame_pointer_needed if stack
3450         checking is enabled and STACK_CHECK_MOVING_SP.
3451         * rtlanal.c (may_trap_p_1) <MEM>: If stack checking is enabled,
3452         return 1 for volatile references to the stack pointer.
3453         * tree.c (build_common_builtin_nodes): Do not set ECF_NOTHROW on
3454         __builtin_alloca if stack checking is enabled.
3455         * unwind-dw2.c (uw_identify_context): Take into account whether the
3456         context is that of a signal frame or not.
3457         * config/i386/linux.h (STACK_CHECK_MOVING_SP): Define to 1.
3458         * config/i386/linux64.h (STACK_CHECK_MOVING_SP): Likewise.
3459
3460 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
3461
3462         PR rtl-optimization/41917
3463         * rtlanal.c (num_sign_bit_copies1) <case UMOD>: If sign bit of second
3464         operand isn't known to be 0, return 1.
3465
3466 2009-11-03  Richard Sandiford  <rdsandiford@googlemail.com>
3467
3468         * config/mips/mips.md: Fix typos.
3469
3470 2009-11-03  Richard Sandiford  <rdsandiford@googlemail.com>
3471
3472         * doc/invoke.texi: Fix typo.
3473
3474 2009-11-03  Paul Brook  <paul@codesourcery.com>
3475
3476         * config/arm/neon.ml (vectype): Add T_floatSF.
3477         (string_of_vectype): Ditto.
3478         * config/arm/neon-gen.ml (signed_ctype): Add T_floatSF.
3479         (deftypes): Use float for float32_t.
3480         * config/arm/arm_neon.h: Regenerate.
3481
3482 2009-11-03  Nick Clifton  <nickc@redhat.com>
3483             Kevin Buettner  <kevinb@redhat.com>
3484
3485         * config/rx/predicates.md (rx_store_multiple_vector): Reverse
3486         order of expected registers.
3487         (rx_load_multiple_vector): Likewise.
3488         (rx_rtsd_vector): Likewise.
3489         * config/rx/rx.c (rx_cpu_type): New variable.
3490         (rx_print_operand): Fix bug printing 64-bit constant values.
3491         (rx_emit_stack_pushm): Reverse order of pushed registers.
3492         (gen_rx_store_vector): Likewise.
3493         (is_fast_interrupt_func): Only accept "fast_interrupt" as the
3494         attribute name.
3495         (is_exception_func): Rename to is_interrupt_func and only accept
3496         "interrupt" as the attribute name.
3497         (rx_get_stack_layout): Use new function name.
3498         (rx_func_attr_inlinable): Likewise.
3499         (rx_attribute_table): Remove "exception".
3500         (rx_expand_prologue): If necessary push the accumulator register
3501         in the prologue of interrupt functions.
3502         (rx_expand_epilogue): If necessary pop the accumulator.
3503         (rx_builtins): Add RX_BUILTIN_MVTIPL.
3504         (rx_expand_builtin_stz): Remove.
3505         (rx_expand_builtin_mvtipl): New function.
3506         (rx_init_builtins): Handle RX_BUILTIN_MVTIPL.
3507         (rx_expand_builtin): Likewise.
3508         (rx_enable_fpu): New variable.
3509         (rx_handle_option): Handle -fpu, -nofpu, -mcpu and -patch.
3510         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Assert machine based
3511         on rx_cpu_type.  Define __RX_FPU_INSNS__ if FPU insns are allowed.
3512         (enum rx_cpu_types): Define.
3513         (ASM_SPEC): Pass -m32bit-doubles on to assembler.
3514         (INCOMING_FRAME_SP_OFFSET): Define.
3515         (ARG_POINTER_CFA_OFFSET): Define.
3516         (FRAME_POINTER_CFA_OFFSET): Define.
3517         (OVERRIDE_OPTIONS): Enable fast math if RX FPU insns are enabled.
3518         (ALLOW_RX_FPU_INSNS): Define.
3519         * config/rx/rx.md: Test ALLOW_RX_FPU_INSNS instead of
3520         fast_math_flags_set_p.
3521         (UNSPEC_BUILTIN_MVTIPL): Define.
3522         (revl): Rename to bswapsi2.
3523         (bswaphi2): New pattern.
3524         (mvtachi): Mark as volatile because it uses a register unknown to GCC.
3525         (mvtaclo): Likewise.
3526         (racw): Likewise.
3527         (mvtc): Remove clobber of cc0.
3528         (mvtcp): Delete.
3529         (opecp): Delete.
3530         * config/rx/rx.opt (mieee): Remove.
3531         (fpu): Add.
3532         (nofpu): Add.
3533         (mcpu=): Add.
3534         (patch=): Add.
3535         (msave-acc-in-interrupts): Add.
3536         * config/rx/t-rx (MULTILIB_OPTIONS): Change default to 64bit doubles.
3537         (MULTILIB_DIRS): Likewise.
3538         (MULTILIB_MATCHES): Treat -fpu as an alias for -m32bit-doubles.
3539         * doc/extend.texi: Remove description of "exception" function
3540         attribute.
3541         * doc/invoke.texi: Document -fpu, -nofpu, -mcpu=, -patch= and
3542         -msave-acc-in-interrupts options.
3543
3544 2009-11-03  Richard Guenther  <rguenther@suse.de>
3545
3546         * c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC.
3547
3548 2009-11-03  Dodji Seketeli  <dodji@redhat.com>
3549
3550         PR c++/38699
3551         * c-common.c (fold_offsetof_1): Issue errors when the member
3552         designator of the offsetof expression is not legitimate.
3553
3554 2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
3555
3556         * config/i386/i386.md (*call_value_1_rex64_ms_sysv): Use register
3557         names instead of numerical constants.
3558         (sse_prologue_save): Ditto.
3559         (*sse_prologue_save_insn): Ditto.
3560
3561 2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
3562
3563         PR target/41900
3564         * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
3565         (TARGET_CALL_ESP): New define.
3566         * config/i386/i386.c (initial_ix86_tune_features): Initialize
3567         X86_ARCH_CALL_ESP.
3568         * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
3569         *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
3570         *call_1, *call_value_pop_1 and *call_value_1.  Depend on
3571         TARGET_CALL_ESP.
3572         (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
3573         New patterns, use "lsm" as operand 1 constraint.
3574         * config/i386/predicates.md (call_insn_operand): Depend on
3575         index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
3576
3577 2009-11-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3578
3579         PR tree-optimization/41857
3580         * tree-flow.h (rewrite_use_address): Add BASE_HINT argument.
3581         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass base hint
3582         to create_mem_ref.
3583         * tree-ssa-address.c (move_hint_to_base): New function.
3584         (most_expensive_mult_to_index): Add TYPE argument.  Use mode and
3585         address space associated with TYPE.
3586         (addr_to_parts): Add TYPE and BASE_HINT arguments.  Pass TYPE to
3587         most_expensive_mult_to_index.  Call move_hint_to_base.
3588         (create_mem_ref): Add BASE_HINT argument.  Pass BASE_HINT and
3589         TYPE to addr_to_parts.
3590
3591 2009-11-02  Martin Jambor  <mjambor@suse.cz>
3592
3593         PR tree-optimization/41750
3594         * tree-sra.c (analyze_modified_params): Loop over all
3595         representatives of components of a parameter.
3596
3597 2009-11-02  Jakub Jelinek  <jakub@redhat.com>
3598
3599         PR tree-optimization/41841
3600         * ipa-struct-reorg.c (build_data_structure): Don't attempt to look at
3601         local variables of not yet materialized clones.
3602
3603         PR debug/41893
3604         * cfgexpand.c (expand_debug_expr): Don't attempt to create DECL_RTL
3605         for a VOIDmode variable.
3606
3607         PR c++/41774
3608         * c-pragma.c (visstack): Change into vector of ints rather than
3609         enum symbol_visibility.
3610         (push_visibility): Add kind argument, push default_visibility together
3611         with kind.
3612         (pop_visibility): Add kind argument, return true if successful, fail
3613         if visibility stack is empty or if stack top is of different kind.
3614         (handle_pragma_visibility): Don't check length of visstack, instead
3615         call pop_visibility and issue diagnostics if it failed.  Pass 0
3616         as last argument to push_visibility and pop_visibility.
3617         * c-pragma.h (push_visibility): Add kind argument.
3618         (pop_visibility): Likewise.  Return bool instead of void.
3619
3620 2009-11-01  Eric Botcazou  <ebotcazou@adacore.com>
3621
3622         * tree.def (TARGET_MEM_REF): Update comment.
3623         * alias.c (get_alias_set): Retrieve the original memory reference for
3624         a TARGET_MEM_REF before proceeding.
3625
3626 2009-10-31  Anatoly Sokolov  <aesok@post.ru>
3627
3628         * config/frv/frv.c (frv_function_value, frv_libcall_value,
3629         frv_function_value_regno_p): New functions.
3630         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
3631         * config/frv/frv.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
3632         (FUNCTION_VALUE_REGNO_P): Redefine, use frv_function_value_regno_p.
3633         * config/frv/frv-protos.h (frv_function_value_regno_p): Declare.
3634
3635 2009-10-31  Anatoly Sokolov  <aesok@post.ru>
3636
3637         * config/mn10300/mn10300.c (mn10300_function_value): Make static, add
3638         new 'outgoing' argument.
3639         (mn10300_libcall_value, mn10300_function_value_regno_p): New functions.
3640         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
3641         * config/mn10300/mn10300.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
3642         LIBCALL_VALUE): Remove.
3643         (FUNCTION_VALUE_REGNO_P): Redefine, use mn10300_function_value_regno_p.
3644         * config/mn10300/mn10300-protos.h (mn10300_function_value): Remove.
3645         (mh10300_function_value_regno_p): Declare.
3646
3647 2009-10-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3648
3649         * config/arm/cortex-a9.md: New - integer pipeline description.
3650
3651 2009-10-31  Eric Botcazou  <ebotcazou@adacore.com>
3652
3653         * tree-ssa-sccvn.c (vn_reference_lookup_3): Bail out instead of
3654         aborting if the sizes of the two references don't match.
3655
3656 2009-10-31  Toon Moene  <toon@moene.org>
3657
3658         * ipa-inline.c (cgraph_decide_inlining):
3659         Include reason for not inlining called-once functions in dump file.
3660
3661 2009-10-30  Daniel Gutson  <dgutson@codesourcery.com>
3662
3663         * config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
3664         * config/arm/bpapi.h (BE8_LINK_SPEC): New define.
3665         (LINK_SPEC): BE_LINK_SPEC added.
3666
3667 2009-10-30  Richard Guenther  <rguenther@suse.de>
3668
3669         PR lto/41858
3670         * lto-streamer.h (struct lto_file_decl_data): Remove fd member.
3671
3672 2009-10-30  Nathan Sidwell  <nathan@codesourcery.com>
3673
3674         * target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
3675         * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): Remove unused
3676         label.
3677
3678 2009-10-30  Martin Jambor  <mjambor@suse.cz>
3679
3680         * tree-sra.c (build_ref_for_offset_1): Remove a comment.
3681
3682 2009-10-30  H.J. Lu  <hongjiu.lu@intel.com>
3683
3684         PR target/40838
3685         * cfgexpand.c (expand_stack_alignment): Call update_stack_boundary
3686         first.  Move assert on stack_alignment_estimated just before
3687         setting stack_realign_needed.
3688         (gimple_expand_cfg): Initialize stack_alignment_estimated to 0.
3689         Don't call update_stack_boundary.
3690
3691         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): New.
3692         (verride_options): Don't check ix86_force_align_arg_pointer here.
3693         (ix86_function_ok_for_sibcall): Use it.
3694         (ix86_update_stack_boundary): Likewise.
3695
3696         * config/i386/i386.h (STACK_REALIGN_DEFAULT): Update comments.
3697
3698 2009-10-30  Richard Earnshaw  <rearnsha@arm.com>
3699
3700         * arm.md (QHSI): New mode iterator.
3701         (movqi): If generating for thumb, then truncate any immediate to
3702         8 bits.
3703         * thumb2.md (thumb2_movsi_shortim and peephole2 generator): Replace
3704         with...
3705         (thumb2_mov<mode>_shortim and peephole2 generator): ... iterator based
3706         version.
3707
3708 2009-10-29  Cary Coutant  <ccoutant@google.com>
3709
3710         PR debug/41700
3711         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hook (two
3712         locations in the source).
3713         (store_vcall_insn): New function.
3714         (lookup_vcall_insn): New function.
3715         (dwarf2out_virtual_call_token): Use store_vcall_insn.
3716         (dwarf2out_copy_call_info): New function.
3717         (dwarf2out_virtual_call): Use lookup_vcall_insn.
3718         * emit-rtl.c (try_split): Call copy_call_info debug hook.
3719         * debug.h (struct gcc_debug_hooks): Add copy_call_info hook.
3720         * debug.c (do_nothing_debug_hooks): Add dummy entry for new hook.
3721         (debug_nothing_rtx_rtx): New dummy hook.
3722         * dbxout.c (dbx_debug_hooks): Add dummy entry for new hook.
3723         (xcoff_debug_hooks): Likewise.
3724         * sdbout.c (sdb_debug_hooks): Likewise.
3725         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3726
3727 2009-10-29  David Daney  <ddaney@caviumnetworks.com>
3728
3729         * doc/invoke.texi (mmcount-ra-address): Document new command line
3730         option.
3731         * config/mips/mips.opt (mmcount-ra-address): New option.
3732         * config/mips/mips-protos.h (mips_function_profiler): Declare new
3733         function.
3734         * config/mips/mips.c (struct mips_frame_info): Add ra_fp_offset
3735         member.
3736         (mips_for_each_saved_gpr_and_fpr): Set ra_fp_offset.
3737         (mips_function_profiler): Moved from FUNCTION_PROFILER, and
3738         rewritten.
3739         * config/mips/mips.h (FUNCTION_PROFILER): Body of macro moved to
3740         mips_function_profiler.
3741
3742 2009-10-29  Steve Ellcey  <sje@cup.hp.com>
3743
3744         PR middle-end/37565
3745         PR target/38018
3746         * doc/tm.texi (OVERRIDE_OPTIONS): Update.
3747         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
3748         * optc-gen.awk (cl_target_option_restore): Include call to
3749         targetm.override_options_after_change.
3750         * target-def.h (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
3751         * target.h (override_options_after_change): New.
3752         * c-common.c (parse_optimize_options): Call
3753         targetm.override_options_after_change.
3754         * config/ia64/ia64.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
3755         (ia64_override_options_after_change): New.
3756         (ia64_override_options) Add call to above.
3757
3758 2009-10-29  Michael Matz  <matz@suse.de>
3759
3760         * tree-ssa-math-opts.c (execute_convert_to_rsqrt): Remove.
3761         (gate_convert_to_rsqrt): Ditto.
3762         (pass_convert_to_rsqrt): Ditto.
3763         * tree-pass.h (pass_convert_to_rsqrt): Don't declare.
3764         * passes.c (init_optimization_passes): Don't add pass_convert_to_rsqrt
3765         to pass list.
3766
3767         * config/i386/i386.c (ix86_emit_swdivsf): Change evaluation order.
3768
3769 2009-10-29  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3770
3771         * config/arm/arm.c (find_best_start): Fix type of remainder to be
3772         unsigned.
3773
3774 2009-10-29  Martin Jambor  <mjambor@suse.cz>
3775
3776         PR tree-optimization/41775
3777         * tree-sra.c (build_ref_for_offset): Unshare *expr if not NULL.
3778         (generate_subtree_copies): Do not unshare agg.
3779         (load_assign_lhs_subreplacements): Do not unshare rhs.
3780         (sra_modify_assign): Do not unshare exprs.
3781         (propagate_subacesses_accross_link): Renamed to
3782         propagate_subaccesses_across_link.
3783
3784 2009-10-29  Richard Earnshaw  <rearnsha@arm.com>
3785
3786         * arm.c (count_insns_for_constant): Rework to support counting for
3787         thumb2 immediates as well.
3788         (find_best_start): Split out from arm_gen_constant.
3789         (arm_gen_constant): Rework to support XOR with immediate.
3790
3791 2009-10-29  Chao-ying Fu  <fu@mips.com>
3792
3793         * config/mips/mips.c (mips_emit_unary, mips_force_unary): New
3794         functions.
3795         (mips_expand_synci_loop):  Use the length rtx to control the
3796         synci loop from the begin rtx that points to the first byte of
3797         the cache line.
3798
3799 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
3800
3801         * doc/invoke.texi: Rename -use-linker-plugin -fuse-linker-plugin.
3802
3803 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
3804
3805         * dbxout.c (dbxout_common_check): Accept non public trees.
3806         * dwarf2out.c (fortran_common): Accept non public trees.
3807
3808 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
3809
3810         * common.opt (fuse-linker-plugin): New option.
3811         * gcc.c (LINK_COMMAND_SPEC, main): Rename use-linker-plugin to
3812         fuse-linker-plugin.
3813         * opts.c (common_handle_option): Ignore OPT_fuse_linker_plugin.
3814
3815 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3816
3817         PR rtl-optimization/39715
3818         * config/arm/arm.md (cstoresi4): Use gen_cstoresi_ltu_thumb1.
3819         (gen_cstoresi_ltu_thumb1): New splitter.
3820
3821 2009-10-28  Richard Guenther  <rguenther@suse.de>
3822
3823         PR lto/41808
3824         PR lto/41839
3825         * tree-ssa.c (useless_type_conversion_p): Do not treat
3826         conversions to pointers to incomplete types as useless.
3827         * gimple.c (gimple_types_compatible_p): Compare struct tags,
3828         not typedef names.
3829
3830 2009-10-28  Jakub Jelinek  <jakub@redhat.com>
3831
3832         * var-tracking.c (emit_note_insn_var_location): Don't call the second
3833         vt_expand_loc unnecessarily when location is not a register nor
3834         memory.
3835
3836         PR middle-end/41837
3837         * ipa-struct-reorg.c (find_field_in_struct_1): Return NULL if
3838         fields don't have DECL_NAME.
3839
3840         PR debug/41801
3841         * builtins.c (get_builtin_sync_mem): Expand loc in ptr_mode,
3842         call convert_memory_address on addr.
3843
3844         PR target/41762
3845         * config/i386/i386.c (ix86_pic_register_p): Don't call
3846         rtx_equal_for_cselib_p for VALUEs discarded as useless.
3847
3848 2009-10-28  Richard Sandiford  <rdsandiford@googlemail.com>
3849
3850         * var-tracking.c (emit_note_insn_var_location): Get the mode of
3851         a variable part from its REG, MEM or VALUE.
3852
3853 2009-10-28  Richard Guenther  <rguenther@suse.de>
3854
3855         * gimple.c (gimple_get_alias_set): Fix comment typo.
3856
3857 2009-10-28  Richard Guenther  <rguenther@suse.de>
3858
3859         * tree.c (free_lang_data_in_type): Do not call get_alias_set.
3860         (free_lang_data): Unconditionally compute alias sets for all
3861         standard integer types.  Bail out if gate bailed out previously.
3862         Do not reset the types_compatible_p langhook.
3863         (gate_free_lang_data): Remove.
3864         (struct pass_ipa_free_lang_data): Enable unconditionally.
3865         * gimple.c (gimple_get_alias_set): Use the same alias-set for
3866         all pointer types.
3867
3868 2009-10-28  Richard Guenther  <rguenther@suse.de>
3869
3870         PR middle-end/41855
3871         * tree-ssa-alias.c (refs_may_alias_p_1): Deal with CONST_DECLs
3872         (ref_maybe_used_by_call_p_1): Fix bcopy handling.
3873         (call_may_clobber_ref_p_1): Likewise.
3874         * tree-ssa-structalias.c (find_func_aliases): Likewise.
3875         * alias.c (nonoverlapping_memrefs_p): Deal with CONST_DECLs.
3876
3877 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3878
3879         PR rtl-optimization/41812
3880
3881         Revert:
3882         2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
3883
3884         * df-problems.c (df_md_scratch): New.
3885         (df_md_alloc, df_md_free): Allocate/free it.
3886         (df_md_local_compute): Only include live registers in init.
3887         (df_md_transfer_function): Prune the in-set computed by
3888         the confluence function, and the gen-set too.
3889
3890 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3891
3892         PR rtl-optimization/39715
3893         * combine.c (simplify_comparison): Use extensions to
3894         widen comparisons.  Try an ANDing first.
3895
3896 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3897
3898         PR rtl-optimization/40741
3899         * config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
3900         a small constant is cheap.
3901         * config/arm/arm.md (andsi3, iorsi3): Try to place the result of
3902         force_reg on the LHS.
3903         (xorsi3): Likewise, and split the XOR if the constant is complex
3904         and not in Thumb mode.
3905
3906 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3907
3908         * expmed.c (emit_store_flag): Check costs before
3909         transforming to the opposite representation.
3910
3911 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3912
3913         * config/sh/sh.md (cbranchfp4_media): Remove hack extending
3914         cstore result to DImode.
3915
3916 2009-10-28  Kaz Kojima  <kkojima@gcc.gnu.org>
3917
3918         * config/sh/sh.md (stuff_delay_slot): Move const_int pattern
3919         inside the unspec vector.
3920
3921 2009-10-27  Richard Henderson  <rth@redhat.com>
3922
3923         * cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
3924
3925 2009-10-27  Richard Henderson  <rth@redhat.com>
3926
3927         PR c++/41819
3928         * tree-eh.c (eh_region_may_contain_throw_map): Rename from
3929         eh_region_may_contain_throw; update users.
3930         (eh_region_may_contain_throw): New function.
3931         (lower_catch): Check flag_exceptions before creating exception region.
3932         (lower_eh_filter, lower_eh_must_not_throw): Likewise.
3933         (lower_cleanup): Tidy existing flag_exceptions check to match.
3934
3935 2009-10-27  Kai Tietz <kai.tietz@onevision.com>
3936
3937         PR/41799
3938         * config/i386/mingw32.h (CHECK_EXECUTE_STACK_ENABLED): New macro.
3939         * config/i386/mingw.opt: Add fset-stack-executable.
3940         * config/i386/i386.c (ix86_trampoline_init): Make call to
3941         emit_library_call conditional, if CHECK_EXECUTE_STACK_ENABLED is
3942         defined and its value is not zero.
3943         * doc/invoke.texi
3944
3945 2009-10-27  Richard Guenther  <rguenther@suse.de>
3946
3947         * tree-ssa-structalias.c (find_func_aliases): In IPA mode
3948         handle calls to externally visible functions like in regular mode.
3949         (create_variable_info_for): Do not create function infos here.
3950         (have_alias_info): Remove write-only variable.
3951         (solve_constraints): New function split out from common code
3952         in compute_points_to_sets and ipa_pta_execute.
3953         (compute_points_to_sets): Adjust.
3954         (ipa_pta_execute): Likewise.  Handle clones and externally visible
3955         functions like in non-IPA mode.
3956
3957 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
3958
3959         PR c/41842
3960         * c-typeck.c (convert_arguments): Return -1 if any of the arguments is
3961         error_mark_node.
3962
3963 2009-10-27  Richard Guenther  <rguenther@suse.de>
3964
3965         * tree-complex.c (expand_complex_div_wide): Check for
3966         INTEGER_CST, not TREE_CONSTANT on comparison folding result.
3967
3968 2009-10-27  Revital Eres  <eres@il.ibm.com>
3969
3970         PR tree-optimization/40648
3971         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3972         Change decision of when to peel for alignment.
3973
3974 2009-10-27  Richard Guenther  <rguenther@suse.de>
3975
3976         PR lto/41821
3977         * gimple.c (gimple_types_compatible_p): Handle OFFSET_TYPE.
3978
3979 2009-10-27  Aldy Hernandez  <aldyh@redhat.com>
3980
3981         PR bootstrap/41451
3982         * fold-const.c (fold_binary_loc): Do not call
3983         protected_set_expr_location.
3984
3985 2009-10-27  Wei Guozhi  <carrot@google.com>
3986
3987         PR target/41705
3988         * target.h (have_conditional_execution): Add a new target hook
3989         function.
3990         * target-def.h (TARGET_HAVE_CONDITIONAL_EXECUTION): Likewise.
3991         * targhooks.h (default_have_conditional_execution): Likewise.
3992         * targhooks.c (default_have_conditional_execution): Likewise.
3993         * doc/tm.texi (TARGET_HAVE_CONDITIONAL_EXECUTION): Document it.
3994         * config/arm/arm.c (TARGET_HAVE_CONDITIONAL_EXECUTION): Define it.
3995         (arm_have_conditional_execution): New function.
3996         * ifcvt.c (noce_process_if_block, find_if_header,
3997         cond_exec_find_if_block, dead_or_predicable): Change the usage of
3998         macro HAVE_conditional_execution to a target hook call.
3999         * recog.c (peephole2_optimize): Likewise.
4000         * sched-rgn.c (add_branch_dependences): Likewise.
4001         * final.c (asm_insn_count, final_scan_insn): Likewise.
4002         * bb-reorder.c (HAVE_conditional_execution): Remove it.
4003
4004 2009-10-26  Ben Elliston  <bje@au.ibm.com>
4005             Michael Meissner  <meissner@linux.vnet.ibm.com>
4006             Ulrich Weigand  <uweigand@de.ibm.com>
4007
4008         * config.gcc (spu-*-elf*): Add spu_cache.h to extra_headers.
4009         * config/spu/spu_cache.h: New file.
4010
4011         * config/spu/cachemgr.c: New file.
4012         * config/spu/cache.S: New file.
4013
4014         * config/spu/spu.h (ASM_OUTPUT_SYMBOL_REF): Define.
4015         (ADDR_SPACE_EA): Define.
4016         (TARGET_ADDR_SPACE_KEYWORDS): Define.
4017         * config/spu/spu.c (EAmode): New macro.
4018         (TARGET_ADDR_SPACE_POINTER_MODE): Define.
4019         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
4020         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
4021         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
4022         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
4023         (TARGET_ADDR_SPACE_CONVERT): Likewise.
4024         (TARGET_ASM_SELECT_SECTION): Likewise.
4025         (TARGET_ASM_UNIQUE_SECTION): Likewise.
4026         (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
4027         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
4028         (ea_symbol_ref): New function.
4029         (spu_legitimate_constant_p): Handle __ea qualified addresses.
4030         (spu_addr_space_legitimate_address_p): New function.
4031         (spu_addr_space_legitimize_address): Likewise.
4032         (cache_fetch): New global.
4033         (cache_fetch_dirty): Likewise.
4034         (ea_alias_set): Likewise.
4035         (ea_load_store): New function.
4036         (ea_load_store_inline): Likewise.
4037         (expand_ea_mem): Likewise.
4038         (spu_expand_mov): Handle __ea qualified memory references.
4039         (spu_addr_space_pointer_mode): New function.
4040         (spu_addr_space_address_mode): Likewise.
4041         (spu_addr_space_subset_p): Likewise.
4042         (spu_addr_space_convert): Likewise.
4043         (spu_section_type_flags): Handle "._ea" section.
4044         (spu_select_section): New function.
4045         (spu_unique_section): Likewise.
4046         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Support __EA32__
4047         and __EA64__ predefined macros.
4048         * config/spu/spu-elf.h (LIB_SPEC): Handle -mcache-size= and
4049         -matomic-updates switches.
4050
4051         * config/spu/t-spu-elf (MULTILIB_OPTIONS): Define.
4052         (EXTRA_MULTILIB_PARTS): Add libgcc_cachemgr.a,
4053         libgcc_cachemgr_nonatomic.a, libgcc_cache8k.a, libgcc_cache16k.a,
4054         libgcc_cache32k.a, libgcc_cache64k.a, libgcc_cache128k.a.
4055         ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o): New target.
4056         ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache64k.o,
4057         $(T)cache128k.o): Likewise.
4058         ($(T)libgcc_%.a): Likewise.
4059
4060         * config/spu/spu.h (TARGET_DEFAULT): Add MASK_ADDRESS_SPACE_CONVERSION.
4061         * config/spu/spu.opt (-mea32/-mea64): Add switches.
4062         (-maddress-space-conversion): Likewise.
4063         (-mcache-size=): Likewise.
4064         (-matomic-updates): Likewise.
4065         * doc/invoke.texi (-mea32/-mea64): Document.
4066         (-maddress-space-conversion): Likewise.
4067         (-mcache-size=): Likewise.
4068         (-matomic-updates): Likewise.
4069
4070 2009-10-26  Ben Elliston  <bje@au.ibm.com>
4071             Michael Meissner  <meissner@linux.vnet.ibm.com>
4072             Ulrich Weigand  <uweigand@de.ibm.com>
4073
4074         * doc/tm.texi (TARGET_ADDR_SPACE_KEYWORDS): Document.
4075
4076         * c-common.c (c_common_reswords): If TARGET_ADDR_SPACE_KEYWORDS is
4077         defined, add the named address space keywords.
4078         (c_addr_space_name): New function.
4079         (complete_array_type): Preserve named address space.
4080         (handle_mode_attribute): Use targetm.addr_space.valid_pointer_mode
4081         instead of targetm.valid_pointer_mode.
4082
4083         * c-common.h (enum rid): Add RID_ADDR_SPACE_0 .. RID_ADDR_SPACE_15,
4084         RID_FIRST_ADDR_SPACE and RID_LAST_ADDR_SPACE.
4085         (ADDR_SPACE_KEYWORD): New macro.
4086         (c_addr_space_name): Add prototype.
4087
4088         * c-tree.h (struct c_declspecs): Add address_space member.
4089         (declspecs_add_addrspace): Add prototype.
4090
4091         * c-pretty-print.c (pp_c_type_qualifier_list): Handle address spaces.
4092
4093         * c-parser.c (c_parse_init): Add assertion.
4094         (typedef enum c_id_kind): Add C_ID_ADDRSPACE.
4095         (c_lex_one_token): Handle address space keywords.
4096         (c_token_starts_typename): Likewise.
4097         (c_token_starts_declspecs): Likewise.
4098         (c_parser_declspecs): Likewise.
4099         (c_parser_postfix_expression_after_paren_type): Diagnose compound
4100         literal within function qualified with named address space.
4101
4102         * c-decl.c (diagnose_mismatched_decls): Diagnose conflicting named
4103         address space qualifiers.
4104         (shadow_tag_warned): Warn about useless address space qualifiers.
4105         (quals_from_declspecs): Handle address space qualifiers.
4106         (grokdeclarator): Likewise.
4107         (build_null_declspecs): Likewise.
4108         (declspecs_add_addrspace): New function.
4109
4110         * c-typeck.c (addr_space_superset): New function.
4111         (qualify_type): Handle named address spaces.
4112         (composite_type): Likewise.
4113         (common_pointer_type): Likewise.
4114         (comp_target_types): Likewise.
4115         (build_conditional_expr): Likewise.
4116         (handle_warn_cast_qual): Likewise.
4117         (build_c_cast): Likewise.
4118         (convert_for_assignment): Likewise.
4119         (build_binary_op): Likewise.
4120         (pointer_diff): Handle named address spaces.  Use intermediate
4121         integer type of sufficient size if required.
4122
4123 2009-10-26  Ben Elliston  <bje@au.ibm.com>
4124             Michael Meissner  <meissner@linux.vnet.ibm.com>
4125             Ulrich Weigand  <uweigand@de.ibm.com>
4126
4127         * doc/tm.texi (TARGET_ADDR_SPACE_POINTER_MODE): Document.
4128         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
4129         (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
4130
4131         * target.h (struct target_def): Add pointer_mode, address_mode,
4132         and valid_pointer_mode to addr_space substructure.
4133         * target-def.h (TARGET_ADDR_SPACE_POINTER_MODE): Define.
4134         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
4135         (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
4136         (TARGET_ADDR_SPACE_HOOKS): Add them.
4137         * targhooks.c (target_default_pointer_address_modes_p): New function.
4138         * target.h (target_default_pointer_address_modes_p): Add prototype.
4139         * targhooks.c (default_addr_space_pointer_mode): New function.
4140         (default_addr_space_address_mode): Likewise.
4141         (default_addr_space_valid_pointer_mode): Likewise.
4142         * targhooks.h (default_addr_space_pointer_mode): Add prototype.
4143         (default_addr_space_address_mode): Likewise.
4144         (default_addr_space_valid_pointer_mode): Likewise.
4145         * output.h (default_valid_pointer_mode): Move to ...
4146         * targhooks.h (default_valid_pointer_mode): ... here.
4147         * varasm.c (default_valid_pointer_mode): Move to ...
4148         * targhooks.c (default_valid_pointer_mode): ... here.
4149
4150         * varasm.c (output_constant): Use targetm.addr_space.valid_pointer_mode
4151         instead of targetm.valid_pointer_mode.
4152
4153         * fold-const.c (fit_double_type): Use int_or_pointer_precision.
4154         * tree.c (integer_pow2p): Likewise.
4155         (tree_log2): Likewise.
4156         (tree_floor_log2): Likewise.
4157         (signed_or_unsigned_type_for): Support pointer type of different size.
4158         (int_or_pointer_precision): New function.
4159         * tree.h (int_or_pointer_precision): Add prototype.
4160         * stor-layout.c (layout_type): Set TYPE_PRECISION for offset types.
4161         * varasm.c (initializer_constant_valid_p): Use TYPE_PRECISION of
4162         incoming pointer type instead of POINTER_SIZE.
4163
4164         * tree.c (build_pointer_type): Use appropriate pointer mode
4165         instead of ptr_mode.
4166         (build_reference_type): Likewise.
4167         * expr.c (store_expr): Likewise.
4168         (expand_expr_addr_expr): Likewise.
4169         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
4170         * cfgexpand.c (expand_debug_expr): Likewise.
4171
4172         * auto-inc-dec.c: Include "target.h".
4173         (try_merge): Use appropriate address mode instead of Pmode.
4174         (find_inc): Likewise.
4175         * combine.c (find_split_point): Likewise.
4176         * cselib.c (cselib_record_sets): Likewise.
4177         * dse.c (replace_inc_dec): Likewise.
4178         (canon_address): Likewise.
4179         * var-tracking.c (replace_expr_with_values): Likewise.
4180         (count_uses): Likewise.
4181         (add_uses): Likewise.
4182         (add_stores): Likewise.
4183         * emit-rtl.c: Include "target.h".
4184         (adjust_address_1): Use appropriate address mode instead of Pmode.
4185         (offset_address): Likewise.
4186         * explow.c (break_out_memory_refs): Likewise.
4187         (memory_address_addr_space): Likewise.
4188         (promote_mode): Likewise.
4189         * expr.c (move_by_pieces): Likewise.
4190         (emit_block_move_via_loop): Likewise.
4191         (store_by_pieces): Likewise.
4192         (store_by_pieces_1): Likewise.
4193         (expand_assignment): Likewise.
4194         (store_constructor): Likewise.
4195         (expand_expr_addr_expr): Likewise.
4196         (expand_expr_real_1): Likewise.
4197         * cfgexpand.c (expand_debug_expr): Likewise.
4198         * ifcvt.c (noce_try_cmove_arith): Likewise.
4199         * regcprop.c (kill_autoinc_value): Likewise.
4200         * regmove.c (try_auto_increment): Likewise.
4201         * reload.c (find_reloads): Likewise.
4202         (find_reloads_address): Likewise.
4203         (find_reloads_address_1): Likewise.
4204         * sched-deps.c: Include "target.h".
4205         (sched_analyze_1): Use appropriate address mode instead of Pmode.
4206         (sched_analyze_2): Likewise.
4207         * sel-sched-dump.c: Include "target.h".
4208         (debug_mem_addr_value): Use appropriate address mode instead of Pmode.
4209         * stor-layout.c (layout_type): Likewise.
4210         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
4211         (multiplier_allowed_in_address_p): Likewise.
4212         (get_address_cost): Likewise.
4213         * varasm.c (make_decl_rtl): Likewise.
4214
4215         * expr.c (expand_assignment): Always convert offsets to appropriate
4216         address mode.
4217         (store_expr): Likewise.
4218         (store_constructor): Likewise.
4219         (expand_expr_real_1): Likewise.
4220
4221         * reload.h (form_sum): Add MODE argument.
4222         * reload.c (form_sum): Add MODE argument, use it instead of Pmode.
4223         Update recursive calls.
4224         (subst_indexed_address): Update calls to form_sum.
4225
4226         * tree-flow.h (addr_for_mem_ref): Add ADDRSPACE argument.
4227         * tree-ssa-address.c: Include "target.h".
4228         (templates): Replace by ...
4229         (mem_addr_template_list): ... this new vector.
4230         (TEMPL_IDX): Handle address space numbers.
4231         (gen_addr_rtx): Add address mode argument, use it instead of Pmode.
4232         (addr_for_mem_ref): Add ADDRSPACE argument.  Use per-address-space
4233         instead of global cache.  Update call to gen_addr_rtx.
4234         (valid_mem_ref_p): Update call to addr_for_mem_ref.
4235         * expr.c (expand_expr_real_1): Update call to addr_for_mem_ref.
4236
4237         * rtl.h (convert_memory_address_addr_space): Add prototype.
4238         (convert_memory_address): Define as macro.
4239         * explow.c (convert_memory_address): Rename to ...
4240         (convert_memory_address_addr_space): ... this.  Add ADDRSPACE argument.
4241         Use appropriate pointer and address modes instead of ptr_mode / Pmode.
4242         Update recursive calls.
4243         (memory_address_addr_space): Call convert_memory_address_addr_space.
4244         * expmed.c (make_tree): Likewise.
4245         * expr.c (expand_assignment): Likewise.
4246         (expand_expr_addr_expr_1): Likewise.  Also, add ADDRSPACE argument.
4247         (expand_expr_addr_expr): Likewise.  Also, update call.
4248
4249         * alias.c (find_base_value): Guard pointer size optimizations.
4250         (find_base_term): Likewise.
4251         * rtlanal.c (nonzero_bits1): Likewise.
4252         (num_sign_bit_copies1): Likewise.
4253         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
4254
4255         * Makefile.in (tree-ssa-address.o): Add $(TARGET_H) dependency.
4256         (emit-rtl.o): Likewise.
4257         (auto-inc-dec.o): Likewise.
4258         (sched-deps.o): Likewise.
4259
4260 2009-10-26  Ben Elliston  <bje@au.ibm.com>
4261             Michael Meissner  <meissner@linux.vnet.ibm.com>
4262             Ulrich Weigand  <uweigand@de.ibm.com>
4263
4264         * doc/extend.texi (Named Address Spaces): New section.
4265         * coretypes.h (addr_space_t): New type.
4266         (ADDR_SPACE_GENERIC): New define.
4267         (ADDR_SPACE_GENERIC_P): New macro.
4268
4269         * doc/tm.texi (Named Address Spaces): New section.
4270         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Document.
4271         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Document.
4272         (TARGET_ADDR_SPACE_SUBSET_P): Document.
4273         (TARGET_ADDR_SPACE_CONVERT): Document.
4274         * target.h (struct gcc_target): Add addr_space substructure.
4275         * target-def.h (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
4276         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
4277         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
4278         (TARGET_ADDR_SPACE_CONVERT): Likewise.
4279         (TARGET_ADDR_SPACE_HOOKS): Likewise.
4280         (TARGET_INITIALIZER): Initialize addr_space hooks.
4281         * targhooks.c (default_addr_space_legitimate_address_p): New function.
4282         (default_addr_space_legitimize_address): Likewise.
4283         (default_addr_space_subset_p): Likewise.
4284         (default_addr_space_convert): Likewise.
4285         * targhooks.h (default_addr_space_legitimate_address_p): Add prototype.
4286         (default_addr_space_legitimize_address): Likewise.
4287         (default_addr_space_subset_p): Likewise.
4288         (default_addr_space_convert): Likewise.
4289
4290         * doc/rtl.texi (MEM_ADDR_SPACE): Document.
4291         * rtl.h (mem_attrs): Add ADDRSPACE memory attribute.
4292         (MEM_ADDR_SPACE): New macro.
4293         * emit-rtl.c (get_mem_attrs): Add ADDRSPACE argument and set
4294         address space memory attribute.
4295         (mem_attrs_htab_hash): Handle address space memory attribute.
4296         (mem_attrs_htab_eq): Likewise.
4297         (set_mem_attributes_minus_bitpos): Likewise.
4298         (set_mem_alias_set): Likewise.
4299         (set_mem_align): Likewise.
4300         (set_mem_expr): Likewise.
4301         (set_mem_offset): Likewise.
4302         (set_mem_size): Likewise.
4303         (adjust_address_1): Likewise.
4304         (offset_address): Likewise.
4305         (widen_memoy_address): Likewise.
4306         (get_spill_slot_decl): Likewise.
4307         (set_mem_attrs_for_spill): Likewise.
4308         (set_mem_addr_space): New function.
4309         * emit-rtl.h (set_mem_addr_space): Add prototype.
4310         * print-rtl.c (print_rtx): Print address space memory attribute.
4311         * expr.c (expand_assignment): Set address space memory attribute
4312         of generated MEM RTXes as appropriate.
4313         (expand_expr_real_1): Likewise.
4314         * cfgexpand.c (expand_debug_expr): Likewise.
4315         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
4316
4317         * tree.h (struct tree_base): Add address_space bitfield.  Reduce
4318         size of "spare" bitfield.
4319         (TYPE_ADDR_SPACE): New macro.
4320         (ENCODE_QUAL_ADDR_SPACE): Likewise.
4321         (DECODE_QUAL_ADDR_SPACE): Likewise.
4322         (CLEAR_QUAL_ADDR_SPACE): Likewise.
4323         (KEEP_QUAL_ADDR_SPACE): Likewise.
4324         (TYPE_QUALS): Encode type address space.
4325         (TYPE_QUALS_NO_ADDR_SPACE): New macro.
4326         * tree.c (set_type_quals): Set type address space.
4327         (build_array_type): Inherit array address space from element type.
4328         * print-tree.c (print_node_brief): Print type address space.
4329         (print_node): Likewise.
4330         * tree-pretty-print.c (dump_generic_node): Likewise.
4331
4332         * explow.c (memory_address): Rename to ...
4333         (memory_address_addr_space): ... this.  Add ADDRSPACE argument.
4334         Use address-space aware variants of memory address routines.
4335         * recog.c (memory_address_p): Rename to ...
4336         (memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
4337         Use address-space aware variants of memory address routines.
4338         (offsettable_address_p): Rename to ...
4339         (offsettable_address_addr_space_p): ... this.  Add ADDRSPACE argument.
4340         Use address-space aware variants of memory address routines.
4341         * reload.c (strict_memory_address_p): Rename to ...
4342         (strict_memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
4343         Use address-space aware variants of memory address routines.
4344         (maybe_memory_address_p): Rename to ...
4345         (maybe_memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
4346         Use address-space aware variants of memory address routines.
4347         * expr.h (memory_address_addr_space): Add prototype.
4348         (memory_address): Define as macro.
4349         * recog.h (memory_address_addr_space_p): Add prototype.
4350         (memory_address_p): Define as macro.
4351         (offsettable_address_addr_space_p): Add prototype.
4352         (offsettable_address_p): Define as macro.
4353         (strict_memory_address_addr_space_p): Add prototype.
4354         (strict_memory_address_p): Define as macro.
4355
4356         * combine.c (find_split_point): Use address-space aware variants
4357         of memory address routines.
4358         * emit-rtl.c (operand_subword): Likewise.
4359         (change_address_1): Likewise.
4360         (adjust_address_1): Likewise.
4361         (offset_address): Likewise.
4362         * expr.c (emit_move_insn): Likewise.
4363         (expand_assignment): Likewise.
4364         (expand_expr_real_1): Likewise.
4365         * recog.c (verify_changes): Likewise.
4366         (general_operand): Likewise.
4367         (offsettable_memref_p): Likewise.
4368         (offsettable_nonstrict_memref_p): Likewise.
4369         (constrain_operands): Likewise.
4370         * reload.c (get_secondary_mem): Likewise.
4371         (find_reloads_toplev): Likewise.
4372         (find_reloads_address): Likewise.
4373         (find_reloads_subreg_address): Likewise.
4374         * reload1.c (reload): Likewise.
4375         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
4376         * rtl.h (address_cost): Add ADDRSPACE argument.
4377         * rtlanal.c (address_cost): Add ADDRSPACE argument.  Use address-space
4378         aware variant of memory address routines.
4379         * loop-invariant.c (create_new_invariant): Update address_cost call.
4380         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4381         * fwprop.c (should_replace_address): Add ADDRSPACE argument.
4382         Use address-space aware variant of memory address routines.
4383         (propagate_rtx_1): Update call to should_replace_address.
4384         * tree-flow.h (multiplier_allowed_in_address_p): Add ADDRSPACE
4385         argument.
4386         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Add
4387         ADDRSPACE argument.  Use per-address-space instead of global cache.
4388         Use address-space aware variant of memory address routines.
4389         (get_address_cost): Likewise.
4390         (get_computation_cost_at): Update calls.
4391         * tree-ssa-address.c (valid_mem_ref_p): Add ADDRSPACE argument.
4392         Use address-space aware variant of memory address routines.
4393         (create_mem_ref_raw): Update call to valid_mem_ref_p.
4394         (most_expensive_mult_to_index): Update call to
4395         multiplier_allowed_in_address_p.
4396
4397         * dwarf2out.c (modified_type_die): Output DW_AT_address_class
4398         attribute to indicate named address spaces.
4399
4400         * varasm.c (get_variable_section): DECLs in named address spaces
4401         cannot be "common".
4402
4403         * reload.c (find_reloads_address): Do not use LEGITIMIZE_RELOAD_ADDRESS
4404         for addresses in a non-generic address space.
4405
4406         * expr.c (emit_block_move_hints): Do not use libcalls for
4407         memory in non-generic address spaces.
4408         (clear_storage_hints): Likewise.
4409         (expand_assignment): Likewise.
4410
4411         * fold-const.c (operand_equal_p): Expressions refering to different
4412         address spaces are not equivalent.
4413
4414         * rtl.c (rtx_equal_p_cb): MEMs refering to different address
4415         spaces are not equivalent.
4416         (rtx_equal_p): Likewise.
4417         * cse.c (exp_equiv_p): Likewise.
4418         * jump.c (rtx_renumbered_equal_p): Likewise.
4419         * reload.c (operands_match_p): Likewise.
4420
4421         * alias.c (nonoverlapping_memrefs_p): MEMs refering to different
4422         address spaces may alias.
4423         (true_dependence): Likewise.
4424         (canon_true_dependence): Likewise.
4425         (write_dependence_p): Likewise.
4426
4427         * dse.c (canon_address): Handle named address spaces.
4428         * ifcvt.c (noce_try_cmove_arith): Likewise.
4429
4430         * tree.def (ADDR_SPACE_CONVERT_EXPR): New tree code.
4431         * expr.c (expand_expr_real_2): Expand ADDR_SPACE_CONVERT_EXPR.
4432         * convert.c (convert_to_pointer): Generate ADDR_SPACE_CONVERT_EXPR
4433         to handle conversions between different address spaces.
4434         * fold-const.c (fold_convert_loc): Likewise.
4435         (fold_unary_loc): Handle ADDR_SPACE_CONVERT_EXPR.
4436         * tree-pretty-print.c (dump_generic_node): Likewise.
4437         * gimple-pretty-print.c (dump_unary_rhs): Likewise.
4438         * tree-cfg.c (verify_gimple_assign_unary): Likewise.
4439         * tree-inline.c (estimate_operator_cost): Likewise.
4440         * tree-ssa.c (useless_type_conversion_p): Conversions between pointers
4441         to different address spaces are not useless.
4442
4443 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
4444
4445         PR bootstrap/41345
4446         * cfgcleanup.c (trivially_empty_bb_p): New function.
4447         (try_optimize_bb): Use it instead of checking BB_HEAD == BB_END.
4448
4449         PR debug/41828
4450         * dwarf2out.c (add_pubname, add_pubtype, generic_parameter_die,
4451         add_name_and_src_coords_attributes, gen_namespace_die,
4452         dwarf2out_set_name): Handle dwarf2_name returning NULL.
4453
4454 2009-10-26  Nick Clifton  <nickc@redhat.com>
4455
4456         * config.gcc: Add support for RX target.
4457         * config/rx: New directory.
4458         * config/rx/constraints.md: New file.
4459         * config/rx/predicates.md: New file.
4460         * config/rx/rx.c: New file.
4461         * config/rx/rx.h: New file.
4462         * config/rx/rx.md: New file.
4463         * config/rx/rx.opt: New file.
4464         * config/rx/rx-protos.h: New file.
4465         * config/rx/t-rx: New file.
4466         * doc/extend.texi: Document RX function attributes.
4467         * doc/invoke.texi: Document RX specific command line options.
4468         * doc/contrib.texi: Document RX contribution.
4469         * doc/md.texi: Document RX constraints.
4470         * doc/install.texi: Document RX support.
4471
4472 2009-10-26  Michael Matz  <matz@suse.de>
4473
4474         PR tree-optimization/41783
4475         * tree-ssa-alias.c (get_continuation_for_phi): Export, add a special
4476         case for simple diamonds.
4477         * tree-ssa-alias.h (get_continuation_for_phi): Declare.
4478         * tree-ssa-pre.c (translate_vuse_through_block): Add same_valid
4479         argument, use alias oracle to skip some vdefs.
4480         (phi_translate_1): Change call to above, don't allocate new
4481         value ids if they can stay the same.
4482         (compute_avail): Allow vuse walking when looking up references.
4483
4484 2009-10-26  Richard Guenther  <rguenther@suse.de>
4485
4486         PR tree-optimization/41826
4487         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Avoid
4488         access to re-allocated vector fields.
4489
4490 2009-10-26  Richard Guenther  <rguenther@suse.de>
4491
4492         * graphite-sese-to-poly.c (check_poly_representation): Fix
4493         compile without checking.
4494
4495 2009-10-26  Janus Weil  <janus@gcc.gnu.org>
4496
4497         PR fortran/41714
4498         * gimple.h (tree_annotate_all_with_location): Remove prototype.
4499         * gimplify.c (tree_should_carry_location_p,
4500         tree_annotate_one_with_location,tree_annotate_all_with_location):
4501         Remove obsolete functions.
4502
4503 2009-10-25  Kaz Kojima  <kkojima@gcc.gnu.org>
4504
4505         PR target/41813
4506         * config/sh/sh.md (stuff_delay_slot): Don't set T_REG in pattern.
4507
4508 2009-10-25  Richard Guenther  <rguenther@suse.de>
4509
4510         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4511         Stream DECL_RESTRICTED_P.
4512         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4513
4514 2009-10-25  Richard Sandiford  <rdsandiford@googlemail.com>
4515
4516         * config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
4517         a note when expanding to nothing.
4518
4519 2009-10-25  Richard Guenther  <rguenther@suse.de>
4520
4521         PR middle-end/41814
4522         * tree.c (find_decls_types_r): Deal with Java overloading
4523         BINFO_VIRTUALS for its own purpose.
4524
4525 2009-10-24  Adam Nemet  <anemet@caviumnetworks.com>
4526
4527         * config/mips/predicates.md (hilo_operand): New predicate.
4528         * config/mips/mips.md (<u>mulsidi3_64bit): Change it to a
4529         define_insn.  Correct !ISA_HAS_EXT_INS length from 24 to 28.  Move
4530         splitter part from here ...:
4531         (<u>mulsidi3_64bit splitter for !ISA_HAS_EXT_INS): ... to here.  Swap
4532         op0 and op4 to match the DINS case.
4533         (<u>mulsidi3_64bit splitter for ISA_HAS_EXT_INS): New splitter.
4534
4535 2009-10-24  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
4536
4537         PR middle-end/19154
4538         * avr.md (QIDI): Add new mode iterator.
4539         (sbrx_branch<mode>): Create new zero extract bit, test and jump
4540         patterns for all QI thru DI modes combinations.
4541         (sbrx_and_branch<mode>): Create new and based bit test and jump
4542         patterns for QI thru SI modes.
4543         avr.c (avr_out_sbxx_branch): Use only bit number.
4544
4545 2009-10-24  Jan Hubicka  <jh@suse.cz>
4546
4547         * ipa-reference.c (check_call): Noreturn notrhow calls do not write
4548         to memory.
4549         (analyze_function): When analyzing noreturn nothrow call, do not
4550         compute written stats; free bitmaps of vars early if possible.
4551         (generate_summary): Only update bitmaps if computed.
4552         (propagate): Only dump bitmaps if computed.
4553         (ipa_reference_read_summary): Fix pasto.
4554
4555 2009-10-24  Eric Botcazou  <ebotcazou@adacore.com>
4556
4557         * tree-ssa-alias.c (nonaliasing_component_refs_p): Rename into...
4558         (aliasing_component_refs_p): ...this.  Return true if there is no
4559         common base and the base access types have the same alias set.
4560         (indirect_ref_may_alias_decl_p): Adjust for above renaming.
4561         (indirect_refs_may_alias_p): Likewise.
4562
4563 2009-10-23  Joseph Myers  <joseph@codesourcery.com>
4564
4565         PR c/40033
4566         * c-typeck.c (c_finish_stmt_expr): Do not wrap error_mark_node in
4567         a C_MAYBE_CONST_EXPR.
4568
4569 2009-10-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4570
4571         PR target/41787
4572         * config/rs6000/rs6000.c (struct machine_function): Add
4573         vsx_or_altivec_used_p to record if vector types are used.
4574         (rs6000_expand_to_rtl_hook): Rename from
4575         rs6000_alloc_sdmode_stack_slot.  If VSX, check to see if there are
4576         any vector operations, so if there are, we can set VRSAVE to
4577         non-zero when only floating point vector registers are used.
4578         (TARGET_EXPAND_TO_RTL_HOOK): Use rs6000_expand_to_rtl_hook.
4579         (rs6000_check_vector_mode): Inner function to check if vector
4580         types are used in the code.
4581         (compute_vrsave_mask): If VSX, make sure VRSAVE is non-zero if
4582         vector instructions are used.
4583
4584         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED):
4585         Indicate that VSX registers which overlap floating point
4586         registers, can't be used across a call, since the ABI only states
4587         the scalar part of the register will be saved and restored.
4588
4589 2009-10-23  Joseph Myers  <joseph@codesourcery.com>
4590
4591         PR c/41673
4592         * alias.c (get_alias_set): Call langhook before returning 0 for
4593         types with structural equality.
4594         * c-common.c (c_common_get_alias_set): Use alias set of element
4595         type for arrays with structural comparison.
4596
4597 2009-10-23  Richard Guenther  <rguenther@suse.de>
4598
4599         PR middle-end/41805
4600         * cfgexpand.c (expand_call_stmt): Use gimple_has_side_effects and
4601         gimple_call_nothrow_p.
4602
4603 2009-10-23  Richard Guenther  <rguenther@suse.de>
4604
4605         PR tree-optimization/41778
4606         * tree-ssa-pre.c (do_regular_insertion): Only insert if a
4607         redundancy along a path in the CFG we want to optimize for speed
4608         is going to be removed.
4609         (execute_pre): Do partial-PRE only if the function is to be
4610         optimized for speed.
4611         (gate_pre): Do not turn off all of PRE when not optimizing a
4612         function for speed.
4613
4614 2009-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4615
4616         * builtins.c (fold_builtin_cabs): Use validate_arg().
4617         (fold_builtin_cexp): Fix if-logic.
4618         (fold_builtin_1): Check subtype for BUILT_IN_CIMAG.
4619
4620 2009-10-22  Jeff Law  <law@redhat.com>
4621
4622         * ira-lives.c (process_single_reg_class_operands): Update the
4623         hard reg costs for all the hard registers desired by the
4624         single reg class operand.
4625
4626 2009-10-22  Richard Sandiford  <rdsandiford@googlemail.com>
4627
4628         * simplify-rtx.c (simplify_replace_fn_rtx): Add a fallback case
4629         for rtxes that aren't handled specially.
4630
4631 2009-10-22  Richard Sandiford  <rdsandiford@googlemail.com>
4632
4633         * rtl.h (shallow_copy_rtvec): Declare.
4634         * rtl.c (shallow_copy_rtvec): New function.
4635         * cselib.c (cselib_subst_to_values): Use it.  Only modify an
4636         rtx field if the subrtx has changed.
4637
4638 2009-10-22  Anatoly Sokolov  <aesok@post.ru>
4639
4640         * config/m32c/m32c.c (m32c_function_value_regno_p): New function.
4641         (m32c_function_value): Make static, add new 'outgoing' argument.
4642         (m32c_libcall_value): Make static, add new 'fun' argument.
4643         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
4644         * config/m32c/m32c.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
4645         (FUNCTION_VALUE_REGNO_P): Redefine, use m32c_function_value_regno_p.
4646         * config/m32c/m32c-protos.h (m32c_function_value_regno_p): Declare.
4647         (m32c_function_value, m32c_libcall_value): Delete declaration.
4648
4649 2009-10-22  Diego Novillo  <dnovillo@google.com>
4650
4651         * Makefile.in (PLUGIN_HEADERS): Add output.h and IPA_UTILS_H.
4652
4653 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
4654
4655         * tree-cfg.c (gimple_duplicate_sese_tail): Fix typos/indentation/white
4656         space.
4657
4658 2009-10-22  Richard Guenther  <rguenther@suse.de>
4659
4660         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Declare.
4661         * lto-symtab.c (struct lto_symtab_entry_def): Add node member.
4662         (lto_symtab_merge): Do not merge cgraph nodes here.
4663         (lto_symtab_resolve_can_prevail_p): Simplify.
4664         (lto_symtab_resolve_symbols): Store cgraph node.
4665         (lto_symtab_merge_decls_1): Simplify.  Do not drop non-prevailing
4666         functions from the symtab.
4667         (lto_symtab_merge_cgraph_nodes_1): New function.
4668         (lto_symtab_merge_cgraph_nodes): Likewise.
4669
4670 2009-10-22  Richard Guenther  <rguenther@suse.de>
4671
4672         PR lto/41791
4673         * lto-streamer-out.c (lto_output_location): Stream the
4674         system header flag.
4675         * lto-streamer-in.c (lto_input_location): Likewise.
4676
4677 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
4678
4679         * cfgloopmanip.c (duplicate_subloops): Export.
4680         * tree-parloops.c (loop_parallel_p): Dump if loop is innermost.
4681         (transform_to_exit_first_loop): Duplicate bbs starting from
4682         header up to loop->latch instead of exit->src.
4683         Initialize control variable to the correct number of iterations.
4684         (gather_scalar_reductions): Do not register double reductions.
4685         (parallelize_loops): Dump which loop is tested.
4686         Indicate whether the parallelized loop is inner or not.
4687         Remove the innermost-loop requirement.
4688         * cfgloop.h (duplicate_subloops): Export.
4689         * tree-cfg.c (add_phi_args_after_redirect): New function.
4690         (gimple_duplicate_sese_tail): Remove the no-subloops constraint.
4691         Call duplicate_subloops.
4692         Update number of iterations at the exit condition.
4693         Don't redirect nexits always to the loop exit.
4694         Redirect copied edges from latch to the loop exit.
4695
4696 2009-10-22  Jan Hubicka  <jh@suse.cz>
4697
4698         * ipa-cp.c (ipcp_read_summary): Remove now invalid FIXME and
4699         flag_ltrans check.
4700         * ipa-inline.c (cgraph_mark_inline_edge,
4701         cgraph_decide_inlining_of_small_function,
4702         cgraph_decide_inlining, inline_read_summary): Disable indirect
4703         inlining for WPA for time being.
4704
4705         PR tree-optimize/40556
4706         * ipa-inline.c (cgraph_early_inlining): Fix iterations condition.
4707
4708 2009-10-22  Richard Guenther  <rguenther@suse.de>
4709
4710         * lto-streamer.h (lto_symtab_clear_resolution): Remove.
4711         * lto-symtab.c (lto_symtab_clear_resolution): Likewise.
4712
4713 2009-10-22  Jan Hubicka  <jh@suse.cz>
4714
4715         PR lto/41730
4716         * ipa-reference.c (has_proper_scope_for_analysis): Add fixme about
4717         global vars.
4718         (check_call): Handle only indirect calls.
4719         (propagate_bits): Update comment.
4720         (write_node_summary_p): Turn bogus check to assert.
4721         (ipa_reference_write_summary): Stream calls_read_all properly.
4722         (ipa_reference_read_summary): Stream in calls_read_all properly.
4723         (read_write_all_from_decl): New function.
4724         (propagate): Handle OVERWRITABLE nodes and external calls here.
4725         * ipa-pre-const.c (check_call): In IPA mode handle indirect
4726         calls only.
4727         (analyze_function): Do not check visibility here.
4728         (add_new_function): We summary OVERWRITABLE too.
4729         (generate_summary): Stream OVERWRITABLE nodes too.
4730         (propagate): Handle external calls and OVERWRITABLE nodes here.
4731         (local_pure_const): Check visibility here.
4732
4733 2009-10-22  Jan Hubicka  <jh@suse.cz>
4734
4735         * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
4736         (pass_ipa_cp): Register them.
4737         (ipcp_init_stage): Analyze all functions for whopr/lto.
4738         (ipcp_propagate_stage): Skip external calls.
4739         (ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
4740         * ipa-reference.c (write_node_summary_p): Fix thinko about
4741         availability.
4742         * cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
4743         when in ltrans, skip executing of ipa passes since everything
4744         should've been done.
4745         * ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
4746         (inline_generate_summary): Likewise.
4747         (inline_read_summary): New function.
4748         (inline_write_summary): New function.
4749         (pass_ipa_inline): Register new hooks.
4750         * ipa-prop.c: Inlcude lto-streamer.h
4751         (ipa_edge_args_vector): Update declaration.
4752         (ipa_count_arguments, ipa_compute_jump_functions,
4753         ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
4754         (ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
4755         ipa_read_node_info): New static functions.
4756         (ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
4757         (duplicate_array): Use xmalloc.
4758         (duplicate_ggc_array): New.
4759         (ipa_edge_duplication_hook): Use it.
4760         (ipa_update_after_lto_read): New function.
4761         * ipa-prop.h (ipa_prop_write_jump_functions,
4762         ipa_prop_read_jump_functions): Declare.
4763         (ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
4764         jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
4765         (ipa_edge_args_vector): Move into GGC.
4766         (ipa_check_create_edge_args): Update.
4767         (ipa_update_after_lto_read): New.
4768         * passes.c (ipa_write_summaries_1): When in wpa, do not write
4769         summaries.
4770         (ipa_read_summaries): When in ltrans, so not read summaries.
4771         * lto-streamer.c (lto_get_section_name): Add
4772         LTO_section_jump_functions.
4773         * lto-streamer.h (LTO_section_jump_functions): New section.
4774         (produce_asm): Declare.
4775         * lto-cgraph.c (output_cgraph): Output edges in reverse order.
4776         * lto-streamer-out.c (produce_asm): Export.
4777         * lto-streamer-in.c: Include tree-pass.h
4778         (input_function): Free dominance info when done.
4779         (lto_read_body): Push ipa_inline in ltrans stage.
4780         * gengtype.c (open_base_files): Add ipa-prop.h into includes.
4781         * Makefile.in (GTFILES): Add ipa-prop.h
4782
4783 2009-10-22  Matthias Klose  <doko@ubuntu.com>
4784
4785         * doc/install.texi: Document --enable-browser-plugin.
4786
4787 2009-10-21  Vladimir Makarov  <vmakarov@redhat.com>
4788
4789         * doc/invoke.texi (fira-loop-pressure): Update default value.
4790         * opts.c (decode_options): Remove default value setting for
4791         flag_ira_loop_pressure.
4792         * config/ia64/ia64.c (ia64_override_options): Set
4793         flag_ira_loop_pressure up for -O3.
4794         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
4795
4796 2009-10-21  Sebastian Pop  <sebastian.pop@amd.com>
4797
4798         PR tree-optimization/41497
4799         * tree-scalar-evolution.c (analyze_evolution_in_loop): Return
4800         chrec_dont_know if the evolution function returned by follow_ssa_edge
4801         is constant in the analyzed loop and is not compatible with the
4802         initial value before the loop.
4803         * tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.
4804
4805 2009-10-21  Joseph Myers  <joseph@codesourcery.com>
4806
4807         * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
4808
4809 2009-10-21  Jakub Jelinek  <jakub@redhat.com>
4810
4811         PR other/25507
4812         * doc/invoke.texi: Document -print-multi-os-directory.
4813
4814 2009-10-21  Jack Howarth  <howarth@bromo.med.uc.edu>
4815
4816         PR c++/41313
4817         * gcc/config/darwin10.h: Use default_emit_unwind_label.
4818         * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
4819         when darwin_emit_unwind_label is used.
4820
4821 2009-10-21  Eric Botcazou  <ebotcazou@adacore.com>
4822
4823         * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
4824         order of checks.
4825
4826 2009-10-20  Richard Henderson  <rth@redhat.com>
4827
4828         * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
4829         before emit_post_landing_pad.
4830
4831 2009-10-20  Adam Nemet  <anemet@caviumnetworks.com>
4832
4833         * config/mips/mips.c (mips_binary_cost): Add new argument speed.
4834         Use when calling rtx_costs.
4835         (mips_rtx_costs): Fix formatting.  Use argument speed rather than the
4836         global optimize_size.  Pass speed to mips_binary_cost.
4837
4838 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
4839
4840         * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
4841         of TREE_CONSTANT.
4842
4843 2009-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
4844
4845         * rtl.h (simplify_replace_fn_rtx): Declare.
4846         (wrap_constant, unwrap_constant): Delete.
4847         * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
4848         (expand_debug_expr): Don't call wrap_constant.
4849         * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
4850         (auto_adjust_pair): Fold into...
4851         (propagate_for_debug_subst): ...here.  Only define for AUTO_INC_DEC.
4852         Just return a new value.
4853         (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
4854         otherwise use simplify_replace_rtx.
4855         * cselib.c (wrap_constant): Reinstate old definition.
4856         (cselib_expand_value_rtx_1): Don't wrap constants.
4857         * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
4858         simplify_replace_rtx.
4859         (bypass_block): Fix formatting in calls to simplify_replace_rtx.
4860         * reload1.c (reload): Skip all uses for an insn before adjusting it.
4861         Use simplify_replace_rtx.
4862         * simplify-rtx.c (simplify_replace_fn_rtx): New function,
4863         adapted from...
4864         (simplify_replace_rtx): ...here.  Turn into a wrapper for
4865         simplify_replace_fn_rtx.
4866         (simplify_unary_operation): Don't unwrap CONSTs.
4867         * var-tracking.c (check_wrap_constant): Delete.
4868         (vt_expand_loc_callback): Don't call it.
4869         (vt_expand_loc): Likewise.
4870
4871 2009-10-20  Pascal Obry  <obry@adacore.com>
4872             Eric Botcazou  <ebotcazou@adacore.com>
4873
4874         * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
4875
4876 2009-10-20  Michael Matz  <matz@suse.de>
4877
4878         * loop-invariant.c (create_new_invariant): Use different magic number.
4879
4880 2009-10-20  Richard Earnshaw  <rearnsha@arm.com>
4881
4882         PR target/39247
4883         * arm.c (arm_override_options): Forcibly disable hot/cold block
4884         partitioning.
4885
4886 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
4887
4888         PR debug/41739
4889         * haifa-sched.c (try_ready): Skip debug deps updating speculation
4890         status.
4891
4892 2009-10-20  Richard Guenther  <rguenther@suse.de>
4893
4894         * ggc-page.c: Include cfgloop.h.
4895         (struct max_alignment): Drop long double, add void *.
4896         (extra_order_size_table): Add low non-power-of-two multiples
4897         of MAX_ALIGNMENT.  Drop small type-based entries, add
4898         tree_type, cgraph_node and loop.
4899         * alloc-pool.c (struct allocation_object_def): Drop long double
4900         aligning element.
4901
4902 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
4903
4904         PR debug/41340
4905         * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
4906         referenced just in DEBUG_INSNs.
4907
4908 2009-10-20  Richard Guenther  <rguenther@suse.de>
4909
4910         PR lto/41761
4911         * gimple.c (gimple_register_type): Make sure we register
4912         the types main variant first.
4913
4914 2009-10-20  Richard Guenther  <rguenther@suse.de>
4915
4916         * gimple.c (gimple_types_compatible_p): Simplify.  Move
4917         cheap checks before hashtable queries.  Add checks for
4918         TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
4919
4920 2009-10-20  Eric Botcazou  <ebotcazou@adacore.com>
4921
4922         * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
4923         without size or with size that can't be represented as a host integer.
4924
4925 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
4926
4927         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
4928         the removal of a debug stmt as a significant change.
4929
4930 2009-10-20  Wolfgang Gellerich  <gellerich@de.ibm.com>
4931
4932         * config/s390/s390.md: Added agen condition to operand
4933         forwarding bypasses.  Added bypass for early address generation
4934         use of int results.  Updated comments.
4935
4936 2009-10-20  Stefan Dösinger  <stefan@codeweavers.com>
4937
4938         * config/i386/i386.c: Remove signal.h #include.
4939
4940 2009-10-20  Jie Zhang  <jie.zhang@analog.com>
4941
4942         * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
4943         * doc/rtl.texi: Document ss_abs.
4944
4945 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
4946
4947         * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
4948         * c-lex.c (c_lex_with_flags): Likewise.  Test C_LEX_STRING_NO_JOIN
4949         instead of C_LEX_RAW_STRINGS.
4950         (lex_string): Handle CPP_UTF8STRING.
4951         * c-parser.c (c_parser_postfix_expression): Likewise.
4952         * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
4953         (C_LEX_STRING_NO_JOIN): ... this.
4954
4955 2009-10-19  Anatoly Sokolov  <aesok@post.ru>
4956
4957         * config/cris/cris.c (cris_function_value, cris_libcall_value,
4958         cris_function_value_regno_p): New functions.
4959         (cris_promote_function_mode): Update comment.
4960         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
4961         * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
4962         (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
4963         * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
4964
4965 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
4966
4967         * unwind-dw2.c (execute_stack_op): Fix operand order for
4968         DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
4969
4970 2009-10-19  Eric Botcazou  <ebotcazou@adacore.com>
4971
4972         * gimple-low.c (struct lower_data): Add cannot_fallthru field.
4973         (lower_stmt) <GIMPLE_BIND>: Add comment.
4974         <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
4975         and return.
4976         <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
4977         Otherwise lower it and set cannot_fallthru to true.
4978         <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
4979         <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
4980         <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
4981         to true for a noreturn call.  Do not remove statements.
4982         <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
4983         Set cannot_fallthru to false on function exit.
4984         (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
4985         <GIMPLE_ASSIGN>: Remove.
4986
4987 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4988
4989         * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
4990
4991 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4992
4993         * config/s390/s390.c (s390_z10_optimize_cmp): Use
4994         next/prev_active_insn to skip DEBUG_INSNs as well.
4995
4996 2009-10-19  Joseph Myers  <joseph@codesourcery.com>
4997
4998         * config/arm/arm.c (output_move_neon): Use DImode in call to
4999         adjust_address.
5000
5001 2009-10-19  Matthias Klose  <doko@ubuntu.com>
5002
5003         PR target/40134
5004         * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
5005
5006 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
5007
5008         * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
5009
5010 2009-10-17  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
5011
5012         PR middle-end/41738
5013         * optabs.c (expand_binop): Make mode of shift count expression mode
5014         of shift count not target.
5015         Remove indent nit.
5016
5017 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
5018
5019         * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
5020         case.  Force using values to replace references within the statement.
5021         (convert_local_reference_stmt): Likewise.
5022
5023 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
5024
5025         * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
5026         remove a subsequent GOTO or RETURN statement.
5027
5028 2009-10-17  Andy Hutchinson  <hutchinsonandy@aim.com>
5029
5030         * config/avr.md (*movqi): Add zero as equally preferable constraint
5031         as general register.
5032         (*movhi): Ditto.
5033
5034 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
5035
5036         * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
5037
5038 2009-10-17  Richard Guenther  <rguenther@suse.de>
5039
5040         * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
5041
5042 2009-10-17  Richard Guenther  <rguenther@suse.de>
5043
5044         * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
5045         operands in COMPONENT_REFs.
5046
5047 2009-10-17  Anatoly Sokolov  <aesok@post.ru>
5048
5049         * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
5050         if not defined. Change type of second argument to const_rtx.
5051         (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
5052         macro not defined.
5053         * targhooks.h (default_libcall_value): Update prototype.
5054         * target.h (struct gcc_target): Change type of second argument of
5055         libcall_value to const_rtx.
5056         * config/arm/arm.c (arm_libcall_value): Change type of second argument
5057         to const_rtx.
5058         (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
5059         * doc/tm.texi (TARGET_LIBCALL_VALUE):  Revise documentation.
5060
5061 2009-10-17  Jakub Jelinek  <jakub@redhat.com>
5062
5063         PR debug/40521
5064         * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
5065         * cgraphunit.c (cgraph_optimize): Call it.
5066         * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
5067         (dwarf2out_assembly_start): ... here.  New hook.
5068         (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
5069         * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
5070         hook.
5071         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
5072         * sdbout.c (sdb_debug_hooks): Likewise.
5073         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
5074         (vmsdbgout_assembly_start): New hook.
5075
5076 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
5077
5078         * rtl.h (RTL_LOCATION): Fix typo.
5079
5080 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
5081
5082         * print-rtl.c (print_rtx): Print locators in asm_operands
5083         and asm_input.
5084
5085 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
5086
5087         PR debug/41535
5088         * sched-deps.c (depl_on_debug_p): New.
5089         (attach_dep_link): Reject debug deps before nondebug deps.
5090         (add_to_deps_list): Insert debug deps after nondebug deps.
5091         (sd_lists_empty_p): Stop at first nonempty list.  Disregard debug
5092         deps.
5093         (sd_add_dep): Do not reject debug deps.
5094         (add_insn_mem_dependence): Don't count debug deps.
5095         (remove_from_deps): Likewise.
5096         (sched_analyze_2): Set up mem deps on debug insns.
5097         (sched_analyze_insn): Record reg uses for deps on debug insns.
5098         * haifa-sched.c (schedule_insn): Reset deferred debug insn.  Don't
5099         try_ready nondebug insn after debug insn.
5100         * ddg.c (create_ddg_dep_from_intra_loop_link,
5101         create_ddg_dep_no_link): Don't reject debug deps.
5102
5103 2009-10-16  Richard Guenther  <rguenther@suse.de>
5104
5105         * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
5106         (maybe_merge_incomplete_and_complete_type): Likewise.
5107         (lto_symtab_merge): Do not call them.  Do not warn for
5108         complete vs. incomplete compatible types.
5109         (lto_symtab_merge_decls_2): Simplify.
5110         * gimple.c (gimple_force_type_merge): Remove.
5111         (gimple_types_compatible_p): Make it static.
5112         * gimple.h (gimple_force_type_merge): Remove.
5113         (gimple_types_compatible_p): Likewise.
5114
5115 2009-10-16  Jakub Jelinek  <jakub@redhat.com>
5116
5117         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
5118         DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
5119
5120 2009-10-16  Richard Guenther  <rguenther@suse.de>
5121
5122         PR tree-optimization/41728
5123         * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
5124         if fold_stmt did anything.
5125
5126 2009-10-16  Richard Guenther  <rguenther@suse.de>
5127
5128         PR lto/41715
5129         * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
5130         (maybe_fixup_handled_component): New function.
5131         (input_gimple_stmt): Fixup mismatched decl replacements.
5132
5133 2009-10-16  Richard Guenther  <rguenther@suse.de>
5134
5135         PR lto/41713
5136         * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
5137         the same as VAR_DECL.
5138
5139 2009-10-16  Richard Guenther  <rguenther@suse.de>
5140
5141         * gimple.c (iterative_hash_gimple_type): For integer types
5142         also hash their minimum and maximum values and the string flag.
5143         For array types hash their domain and the string flag.
5144
5145 2009-10-16  Richard Guenther  <rguenther@suse.de>
5146
5147         * gimple.c (gimple_types_compatible_p): Restrict completing
5148         types to record or unions.  Simplify completion.
5149         Do not merge records or unions with different
5150         TYPE_STRUCTURAL_EQUALITY_P tag.
5151         (iterative_hash_gimple_type): Restrict non-recursing into
5152         pointer targets for records and unions.
5153
5154 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
5155
5156         PR debug/41717
5157         * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
5158         * dwarf2out.c (mem_loc_descriptor): Don't handle
5159         POST_INT/POST_DEC/POST_MODIFY like SUBREG.  For SUBREG
5160         punt if it is not lowpart subreg or if inner mode isn't
5161         MODE_INT.
5162
5163 2009-10-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5164
5165         * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
5166         investigating previous or next insns.
5167
5168 2009-10-16  Eric Botcazou  <ebotcazou@adacore.com>
5169
5170         * tree-sra.c (build_ref_for_offset_1): Update comment.
5171
5172 2009-10-16  Wolfgang Gellerich  <gellerich@de.ibm.com>
5173
5174         * config/s390/s390.md (atype): Added missing values.
5175
5176 2009-10-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5177
5178         PR target/41702
5179         * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
5180         (casesi64p): Update pattern to reflect above.
5181
5182 2009-10-15  Steve Ellcey  <sje@cup.hp.com>
5183
5184         PR rtl-optimization/41697
5185         * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
5186
5187 2009-10-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
5188
5189         PR target/23983
5190         * config/rs6000/predicates.md: Update copyright year.
5191         * config/rs6000/altivec.md: Ditto.
5192
5193         * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
5194         (MD_INCLUDES): Add a2.md.
5195
5196         * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
5197         RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
5198         (builtin_classify): New static vector to classify various builtins
5199         to get the tree attributes correct.
5200         (def_builtin): Set the attributes of builtins based on what the
5201         builtin does (i.e. memory operation, floating point, saturation
5202         need special attributes, others are pure functions).
5203
5204         * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
5205         the builtins.
5206         (enum rs6000_builtins): Include rs6000-builtin.def to define the
5207         builtins.  Change the end marker to MAX_RS6000_BUILTINS from
5208         RS6000_BUILTIN_COUNT.
5209         (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
5210         MAX_RS6000_BUILTINS.
5211
5212         * config/rs6000/rs6000-builtin.def: New file that combines the
5213         builtin enumeration name and attributes.
5214
5215 2009-10-15  H.J. Lu  <hongjiu.lu@intel.com>
5216
5217         * config/i386/linux.h (ASM_SPEC): Add --32.
5218
5219 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
5220
5221         * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
5222         and DW_TAG_template_alias.
5223         (dwarf_attr_name): Handle DW_AT_main_subprogram,
5224         DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
5225         DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
5226         DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
5227         DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
5228         and DW_AT_GNU_odr_signature.
5229         (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
5230         DW_FORM_flag_present and DW_FORM_ref_sig8.
5231         (output_signature): Only print name on the first byte.
5232         (output_die): Likewise for dw_val_class_data8.
5233
5234 2009-10-15  Alexander Monakov  <amonakov@ispras.ru>
5235
5236         * doc/invoke.texi: Clarify that most optimizations are not enabled
5237         without -O.
5238
5239 2009-10-15  Richard Guenther  <rguenther@suse.de>
5240
5241         PR lto/41668
5242         * gimple.c (compare_type_names_p): Handle anonymous names
5243         differently based on new mode argument.
5244         (gimple_types_compatible_p): For structs also compare the tags.
5245         (iterative_hash_type_name): Rename to ...
5246         (iterative_hash_name): ... this.  Hash all names.
5247         (iterative_hash_gimple_type): Fix hashing the struct tag of
5248         pointer targets.  Hash field decl names.
5249
5250 2009-10-15  Richard Guenther  <rguenther@suse.de>
5251
5252         PR lto/41669
5253         * gimple.c (gimple_get_alias_set): Avoid recursing on
5254         invalid type topology.
5255
5256 2009-10-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5257
5258         * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
5259
5260 2009-10-15  Richard Guenther  <rguenther@suse.de>
5261
5262         * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
5263
5264 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
5265
5266         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
5267         add --with-tune{,-32,-64} configured default for -mtune if explicit
5268         -mcpu is used.
5269
5270 2009-10-14  Daniel Gutson  <dgutson@codesourcery.com>
5271
5272         * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
5273
5274 2009-10-14  DJ Delorie  <dj@redhat.com>
5275
5276         * config/h8300/h8300.c (F): New.
5277         (Fpa): New.
5278         (h8300_emit_stack_adjustment): Call them.
5279         (push): Likewise.
5280         (h8300_push_pop): Likewise.
5281         (h8300_expand_prologue): Likewise.
5282         * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
5283         (MUST_USE_SJLJ_EXCEPTIONS): Define.
5284         (INCOMING_RETURN_ADDR_RTX): Define.
5285         (INCOMING_FRAME_SP_OFFSET): Define.
5286         (DWARF_CIE_DATA_ALIGNMENT): Define.
5287
5288 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
5289
5290         * stor-layout.c (place_field): Don't emit -Wpadded warnings for
5291         fields in builtin structs.
5292         (finalize_record_size): Likewise.
5293
5294 2009-10-14  Richard Guenther  <rguenther@suse.de>
5295
5296         * gimple.c (gtc_ob): New global.
5297         (struct type_pair_d): Replace pointers with type UIDs.
5298         (type_pair_hash): Adjust.
5299         (type_pair_eq): Likewise.
5300         (lookup_type_pair): Likewise.  Allocate from an obstack.
5301         (gimple_force_type_merge): Adjust.
5302         (gimple_types_compatible_p): Likewise.
5303         (free_gimple_type_tables): Free the obstack.
5304
5305 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
5306
5307         * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
5308         stmts setting DEBUG_EXPR_DECLs.
5309
5310         * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
5311         Don't crash if mode1 is VOIDmode.
5312
5313 2009-09-26  Vladimir Makarov  <vmakarov@redhat.com>
5314
5315         * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
5316         * params.h (IRA_LOOP_RESERVED_REGS): New.
5317         * tree-pass.h (pass_subregs_of_mode_init,
5318         pass_subregs_of_mode_finish): Remove.
5319         * passes.c (pass_subregs_of_mode_init,
5320         pass_subregs_of_mode_finish): Remove.
5321         (pass_reginfo_init): Move before loop optimizations.
5322         * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
5323         * common.opt (fira-loop-pressure): New.
5324         * toplev.h (flag_ira_loop_pressure): New.
5325         * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
5326         * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
5327         Make external and void type functions.
5328         (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
5329         pass_subregs_of_mode_finish): Remove.
5330         * ira-costs.c (init_costs): Call init_subregs_of_mode.
5331         * regmove.c: Include ira.h.
5332         (regmove_optimize): Call ira_set_pseudo_classes after IRA based
5333         register pressure calculation in loops.
5334         * loop-invariant.c: Include REGS_H and ira.h.
5335         (struct loop_data): New members max_reg_pressure, regs_ref, and
5336         regs_live.
5337         (struct invariant): New member orig_regno.
5338         (curr_loop): New variable.
5339         (find_exits): Initialize regs_ref and regs_live.
5340         (create_new_invariant): Initialize orig_regno.
5341         (get_cover_class_and_nregs): New.
5342         (get_inv_cost): Make aregs_needed an array.  Use regs_needed as an
5343         array.  Add code for flag_ira_loop_pressure.
5344         (gain_for_invariant): Make new_regs an array.  Add code for
5345         flag_ira_loop_pressure.
5346         (best_gain_for_invariant): Ditto.
5347         (set_move_mark): New parameter gain.  Use it for debugging output.
5348         (find_invariants_to_move): Make regs_needed and new_regs an array.
5349         Add code for flag_ira_loop_pressure.
5350         (move_invariant_reg): Set up orig_regno.
5351         (move_invariants): Set up reg classes for pseudos for
5352         flag_ira_loop_pressure.
5353         (free_loop_data): Clear regs_ref and regs_live.
5354         (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
5355         get_regno_cover_class, change_pressure, mark_regno_live,
5356         mark_regno_death, mark_reg_store, mark_reg_clobber,
5357         mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
5358         (move_loop_invariants): Calculate pressure.  Initialize curr_loop.
5359         * ira.c (ira): Call ira_set_pseudo_classes after IRA based
5360         register pressure calculation in loops if new regs were added.
5361         Call finish_subregs_of_mode.
5362         * opts.c (decode_options): Set up flag_ira_loop_pressure.
5363         * Makefile.in (loop-invariant.o): Add ira.h.
5364         (regmove.o): Ditto.
5365         * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
5366         Describe.
5367         * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
5368
5369 2009-10-14  Richard Guenther  <rguenther@suse.de>
5370
5371         * lto-symtab.c (lto_symtab_compatible): Fold in ...
5372         (lto_symtab_merge): ... here.  Rewrite both to take the
5373         prevailing and a to-be-merged entry and to queue diagnostics properly.
5374         (lto_symtab_resolve_replaceable_p): New predicate for
5375         symbol resolution.
5376         (lto_symtab_resolve_can_prevail_p): Likewise.
5377         (lto_symtab_resolve_symbols): Rewrite.  Fold in code that
5378         handles merging commons by choosing the largest decl.  Fold
5379         in code that gives ODR errors.
5380         (lto_symtab_merge_decls_2): Simplify a lot.  Emit queued
5381         diagnostics here.
5382         (lto_symtab_merge_decls_1): Re-structure.  Deal with the
5383         case of no prevailing decl here.  Diagnose mismatches
5384         in object types here.  Drop all but the prevailing decls.
5385         (lto_symtab_prevailing_decl): Return the single prevailing decl.
5386         * lto-streamer-in.c (lto_input_tree_ref): Deal with
5387         VIEW_CONVERT_EXPRs in decl slots.  Unshare the tree in this case.
5388
5389 2009-10-14  Richard Guenther  <rguenther@suse.de>
5390
5391         PR lto/41521
5392         * lto-streamer-in.c (input_bb): Replace debug stmts with
5393         nops instead of dropping them.
5394
5395 2009-10-14  Nick Clifton  <nickc@redhat.com>
5396
5397         * gcc/doc/extended.texi: Replace the dash character with @minus{}
5398         in situations where it is being used as a minus symbol.
5399         * gcc/doc/tm.texi: Likewise.
5400         * gcc/doc/md.texi: Likewise.
5401
5402 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
5403
5404         PR preprocessor/41543
5405         * input.h (BUILTINS_LOCATION): Change to 1 from 2.
5406         Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
5407         * tree.c: Include intl.h.
5408         (expand_location): Handle BUILTINS_LOCATION.
5409         * Makefile.in (tree.o): Depend on intl.h.
5410
5411         PR debug/41695
5412         * dwarf2out.c (dwarf2out_var_location): Always clear
5413         last_postcall_label when changing last_label.
5414
5415 2009-10-14  Pascal Obry  <obry@adacore.com>
5416
5417         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
5418         (process_command): Handle -E as done with -c and -S.  Do not add
5419         the target executable suffix to the output file when -E is used.
5420         (main): Adjust error message accordingly.
5421
5422 2009-10-14  Alexandre Oliva  <aoliva@redhat.com>
5423
5424         PR debug/41343
5425         PR debug/41447
5426         PR debug/41264
5427         PR debug/41338
5428         * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
5429         decl with rtl.
5430         (tree_code_size): Likewise.
5431
5432 2009-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5433
5434         * builtins.c (fold_builtin_1): Support complex "arc" functions.
5435         * real.h (HAVE_mpc_arc): Define.
5436
5437 2009-10-14  Kaz Kojima  <kkojima@gcc.gnu.org>
5438
5439         * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
5440         (struct builtin_description): Add fndecl field.
5441         (bdesc): Remove const qualifier.  Update initializer.
5442         (sh_media_init_builtins): Remove const qualifier for d.  Record
5443         the result of add_builtin_function to the fndecl field.
5444         (sh_builtin_decl): New.
5445         (sh_media_builtin_decl): New.
5446
5447 2009-10-14  Hans-Peter Nilsson  <hp@axis.com>
5448
5449         PR target/38948
5450         * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
5451         requests between special registers.
5452
5453 2009-10-13  Eric Botcazou  <ebotcazou@adacore.com>
5454
5455         * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
5456
5457 2009-10-13  Richard Henderson  <rth@redhat.com>
5458
5459         PR tree-optimization/41377
5460         * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
5461         (cleanup_empty_eh_merge_phis): New change_region parameter;
5462         pass it on to redirect_eh_edge_1.  Update callers.
5463         (cleanup_empty_eh_unsplit): Don't require an existing EH label
5464         at the destination block.
5465
5466 2009-10-13  Basile Starynkevitch  <basile@starynkevitch.net>
5467
5468         * passes.c (register_pass): Replaced gcc_unreachable by
5469         fatal_error on failure. Mentions plugins in comments & messages.
5470
5471 2009-10-13  Jakub Jelinek  <jakub@redhat.com>
5472
5473         PR target/41693
5474         * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
5475         * sched-vis.c (print_value): Use it.
5476         * cselib.c (cselib_hash_rtx): Likewise.
5477         * print-rtl.c (print_rtx): Likewise.
5478         * cfgexpand.c (expand_debug_rtx): Likewise.
5479         * var-tracking.c (vt_expand_loc_callback): Likewise.
5480
5481 2009-10-13  Richard Guenther  <rguenther@suse.de>
5482
5483         PR lto/41565
5484         * opts.c (handle_option): Split out code to handle setting
5485         the options flag var ...
5486         (set_option): ... here.
5487         * opts.h (set_option): Declare.
5488         * lto-opts.c (register_user_option_p): Include -fexceptions
5489         and all position independent code variants.
5490         (handle_common_option): Remove.
5491         (lto_reissue_options): Use set_option.
5492
5493 2009-10-13  Martin Jambor  <mjambor@suse.cz>
5494
5495         PR tree-optimization/41661
5496         * ipa-prop.c (compute_complex_pass_through): Allow only operations
5497         that are tcc_comparisons or do not change the type in any
5498         un-usleless way.
5499         * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
5500         folding tcc_comparison operations.
5501
5502 2009-10-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5503
5504         * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
5505         properly.
5506
5507 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
5508
5509         PR debug/41343
5510         PR debug/41447
5511         PR debug/41264
5512         PR debug/41338
5513         * tree.def (DEBUG_EXPR_DECL): New.
5514         * rtl.def (DEBUG_EXPR): New.
5515         * gengtype.c (adjust_field_rtx_def): Handle it.
5516         * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
5517         (insert_debug_temp_for_var_def): ... this.  Drop support for
5518         moving.  Take iterator for def stmt; insert debug stmt before it.
5519         Scan early for use count and kind in debug stmts.
5520         (propagate_defs_into_debug_stmts): Rename to...
5521         (insert_debug_temps_for_defs): ... this.  Likewise.
5522         * tree.h (DEBUG_TEMP_UID): New.
5523         * tree.c (next_debug_decl_uid): New.
5524         (make_node_stat): Count debug decls separately.
5525         (copy_node_stat): Likewise.
5526         * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
5527         * var-tracking.c (dv_is_decl_p): Recognize it.
5528         (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
5529         (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
5530         (vt_expand_loc_callback): Expand DEBUG_EXPRs.
5531         (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
5532         * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
5533         (cselib_hash_rtx): Likewise.
5534         (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
5535         * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
5536         debug bind stmts.
5537         * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
5538         (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
5539         * rtl.c (copy_rtx): Likewise.
5540         (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
5541         * print-rtl.c (print_rtx): Likewise.
5542         * sched-vis.c (print_value): Likewise.
5543         (print_insn): Handle DEBUG_EXPR_DECL.
5544         * tree-dump.c (dequeue_and_dump): Likewise.
5545         * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
5546         * gimple-iterator (gsi_replace): Check for same lhs.
5547         (gsi_remove): Insert debug temps.
5548         * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
5549         (move_computations_stmt): Drop explicit propagation into debug stmts.
5550         (rewrite_bittest): Likewise.  Use gsi_remove for propagation.
5551         * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
5552         * tree-ssa-sink.c (statement_sink_location): Likewise.
5553         * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
5554         * tree-ssanames.c (release_ssa_name): Adjust for rename.
5555         * tree-flow.h: Likewise.
5556         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
5557         debug temps without values.
5558         (eliminate_unnecessary_stmts): Don't discard just-inserted
5559         debug stmts.
5560
5561 2009-10-12  Hans-Peter Nilsson  <hp@axis.com>
5562
5563         PR target/26515
5564         * config/cris/cris.md (andu): Check that operand 1 is one of the
5565         general registers.  Fix typo in head comment.
5566
5567 2009-10-12  Stefan Dösinger  <stefan@codeweavers.com>
5568
5569         * config/i386/i386.md (vswapmov): New.
5570         * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
5571         (ix86_function_ms_hook_prologue): New.
5572         (ix86_expand_prologue): Handle ms_hook_prologue attribute.
5573         * configure.ac: Test for swap suffix support in as.
5574         * configure: Rebuild.
5575
5576 2009-10-12  Jakub Jelinek  <jakub@redhat.com>
5577
5578         PR target/41680
5579         * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
5580         paradoxical subregs to prevent partial register stalls if the inner
5581         mode is integer mode.
5582
5583 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
5584
5585         * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
5586
5587 2009-10-12  Dodji Seketeli  <dodji@redhat.com>
5588
5589         PR c++/41570
5590         * gcc/dwarf2out.c (template_parameter_pack_die,
5591         gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
5592
5593 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
5594
5595         PR debug/41616
5596         * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
5597         on updates too.
5598         (maybe_register_def): Likewise.  Take stmt iterator.
5599         (rewrite_update_stmt): Take stmt iterator and pass it on.
5600         (rewrite_update_enter_block): Pass stmt iterator.
5601
5602 2009-10-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5603
5604         * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
5605         (spu_builtin_decl): New function.
5606
5607 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
5608
5609         * config/i386/i386.md (SWIM): New mode iterator.
5610         (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
5611         using SWIM mode iterator.
5612         (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
5613         patterns using SWI48 mode iterator.
5614         (*x86_mov<mode>cc_0_m1_se):  Macroize insn from
5615         *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
5616         (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
5617         (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
5618         patterns using SWI248 mode iterator.
5619         * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
5620         gen_x86_movdicc_0_m1_rex64 for renamed function
5621
5622 2009-10-11  Jose Ruiz  <ruiz@adacore.com>
5623             Eric Botcazou  <ebotcazou@adacore.com>
5624
5625         PR target/33743
5626         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
5627         * config/sparc/sol2-unwind.h: New file.
5628
5629 2009-10-11  Olivier Hainque  <hainque@adacore.com>
5630             Eric Botcazou  <ebotcazou@adacore.com>
5631
5632         PR target/33743
5633         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
5634         * config/i386/sol2-unwind.h: New file.
5635
5636 2009-10-11  H.J. Lu  <hongjiu.lu@intel.com>
5637
5638         PR target/41665
5639         * config/i386/i386.md (addsi_1_zext): Get the proper second
5640         operand for lea.
5641
5642 2009-10-11  Richard Sandiford  <rdsandiford@googlemail.com>
5643
5644         * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
5645         all OLD_RTXes, not just REGs.  Use copy_rtx to create the
5646         replacement value.
5647
5648 2009-10-11  Richard Guenther  <rguenther@suse.de>
5649
5650         * gimple.c (iterative_hash_type_name): Do not handle special
5651         anonymous names.
5652
5653 2009-10-11  Uros Bizjak  <ubizjak@gmail.com>
5654
5655         * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
5656         (*setcc_si_1_and): Ditto.
5657         (*setcc_si_1_movzbl): Ditto.
5658         (*setcc_<mode>_2): Ditto.
5659         (*setcc_qi): Rename from *setcc_1.
5660         (*setcc_qi_slp): Rename from *setcc_2.
5661
5662         (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
5663         (*zero_extendqisi2_movzbw_and splitter): Ditto.
5664
5665         * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
5666         "if" condition, there is already assert with reload_completed present.
5667
5668 2009-10-11  Gerald Pfeifer  <gerald@pfeifer.com>
5669
5670         * plugin.c (try_init_one_plugin): Improve constness of variable err.
5671
5672 2009-10-10  Gerald Pfeifer  <gerald@pfeifer.com>
5673
5674         * doc/install.texi (Final install): Refer to
5675         http://gcc.gnu.org/bugs/ for bug reporting.
5676
5677 2009-10-10  Peter Bergner  <bergner@vnet.ibm.com>
5678
5679         * configure.ac: Add test for dci instruction.
5680         * configure: Regenerate.
5681         * config.in: Likewise.
5682         * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
5683         * doc/invoke.texi: Add cpu_type 476 and 476fp.
5684         (-mmulhw): Add 476 to description.
5685         (-mdlmzb): Likewise.
5686         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
5687         * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
5688         (processor_target_table): Add 476 and 476fp entries.
5689         (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
5690         (rs6000_issue_rate): Add CPU_PPC476.
5691         * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
5692         (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
5693         (processor_type): Add PROCESSOR_PPC476.
5694         (EXTRA_SPECS): Add asm_cpu_476 string.
5695         * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
5696         (define_attr "cpu"): Add ppc476.
5697         Include 476.md.
5698         Update comments for 476.
5699         (isel_signed, isel_unsigned): Change to use "isel" type attribute.
5700         * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
5701         Update copyright year.
5702         * config/rs6000/476.md: New file.
5703         * config/rs6000/40x.md: Add description for "isel" attribute.
5704         Update copyright year.
5705         * config/rs6000/440.md: Likewise.
5706         * config/rs6000/603.md: Likewise.
5707         * config/rs6000/6xx.md: Likewise.
5708         * config/rs6000/7450.md: Likewise.
5709         * config/rs6000/7xx.md: Likewise.
5710         * config/rs6000/8540.md: Likewise.
5711         * config/rs6000/cell.md: Likewise.
5712         * config/rs6000/e300c2c3.md: Likewise.
5713         * config/rs6000/e500mc.md: Likewise.
5714         * config/rs6000/mpc.md: Likewise.
5715         * config/rs6000/power4.md: Likewise.
5716         * config/rs6000/power5.md: Likewise.
5717         * config/rs6000/power6.md: Likewise.
5718         * config/rs6000/power7.md: Likewise.
5719         * config/rs6000/rios1.md: Likewise.
5720         * config/rs6000/rios2.md: Likewise.
5721         * config/rs6000/rs64.md: Likewise.
5722
5723 2009-10-10  Richard Guenther  <rguenther@suse.de>
5724
5725         PR tree-optimization/41654
5726         * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
5727         a cond expr before calling gimple_cond_set_condition_from_tree.
5728         (ifcombine_iforif): Likewise.
5729
5730 2009-10-09  Ian Lance Taylor  <iant@google.com>
5731
5732         * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
5733         * configure: Rebuild.
5734
5735 2009-10-09  Neil Vachharajani <nvachhar@google.com>
5736
5737         * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
5738         deprecated.
5739
5740 2009-10-09  Richard Guenther  <rguenther@suse.de>
5741
5742         PR lto/41638
5743         * target-def.h (TARGET_BUILTIN_DECL): Define.
5744         (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
5745         * target.h (struct gcc_target): Add builtin_decl target hook.
5746         * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
5747         * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
5748         target builtins.
5749         * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
5750         not gcc_unreachable.
5751         (lto_output_builtin_tree): Sorry if the target does not support
5752         streaming target builtins.
5753         * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
5754         (rs6000_builtin_decl): New function.
5755         * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
5756         (ix86_builtin_decl): New function.
5757
5758 2009-10-09  Jakub Jelinek  <jakub@redhat.com>
5759
5760         PR preprocessor/41445
5761         * c-ppoutput.c (do_line_change): New function.
5762         (cb_line_change): Use it.
5763         (scan_translation_unit): Call do_line_change if
5764         avoid_paste or PREV_WHITE and token location is on a different line
5765         than print.src_line.
5766
5767         PR debug/40521
5768         * dwarf2out.c (dwarf2out_init): Test whether
5769         HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
5770         it is defined.
5771
5772         PR rtl-optimization/41646
5773         * calls.c (expand_call): For BLKmode types returned in registers
5774         avoid likely spilled hard regs in copy_blkmode_from_reg generated
5775         insns.
5776
5777 2009-10-09  Richard Guenther  <rguenther@suse.de>
5778
5779         PR tree-optimization/41634
5780         * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
5781         we remove the correct elements.
5782         (optimize_stmt): Make sure to update stmt operands before
5783         optimizing redundancies.
5784
5785 2009-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5786
5787         * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
5788
5789 2009-10-09  Richard Guenther  <rguenther@suse.de>
5790
5791         PR driver/41637
5792         * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
5793         globals.
5794         (lto_wrapper_exit): New function.
5795         (fatal): Use it.
5796         (fatal_perror): Likewise.
5797         (fork_execute): Use global args_name, do not free it.
5798         (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
5799         * lto-streamer.h: Remove duplicate prototypes.
5800
5801 2009-10-09  Richard Guenther  <rguenther@suse.de>
5802
5803         * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
5804         before calling stmt_can_throw_external.
5805
5806 2009-10-09  Eric Botcazou  <ebotcazou@adacore.com>
5807
5808         PR tree-optimization/40071
5809         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
5810         pointer if the original data reference doesn't conflict with the
5811         created vector data reference.  Fix long line.
5812
5813 2009-10-09  Uros Bizjak  <ubizjak@gmail.com>
5814
5815         * config/i386/i386.md (any_div): New code iterator.
5816         (u): Handle div and udiv.
5817         (sgnprefix): Ditto.
5818         (<u>divqi3): Macroize insn from {,u}divqi3  using any_div
5819         code iterator.
5820         (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
5821         lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
5822         (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
5823         lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
5824
5825 2009-10-08  Joseph Myers  <joseph@codesourcery.com>
5826
5827         * gcc.c (main): Remove trailing "." from diagnostics.
5828
5829 2009-10-08  Cary Coutant  <ccoutant@google.com>
5830
5831         Add support for debugging with ICF (Identical Code Folding).
5832         * calls.c (debug.h): New #include.
5833         (emit_call_1): Call virtual_call_token debug hook.
5834         * common.opt (-fenable-icf-debug): New option.
5835         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
5836         locations in the source).
5837         (poc_label_num): New variable.
5838         (dcall_entry, vcall_entry): New typedefs.
5839         (dcall_table, vcall_table): New variables.
5840         (struct vcall_insn): New type.
5841         (vcall_insn_table): New variable.
5842         (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
5843         (size_of_dcall_table): New function.
5844         (output_dcall_table): New function.
5845         (size_of_vcall_table): New function.
5846         (output_vcall_table): New function.
5847         (dwarf2out_direct_call): New function.
5848         (vcall_insn_table_hash): New function.
5849         (vcall_insn_table_eq): New function.
5850         (dwarf2out_virtual_call_token): New function.
5851         (dwarf2out_virtual_call): New function.
5852         (dwarf2out_init): Allocate new tables and sections.
5853         (prune_unused_types): Mark DIEs referenced from direct call table.
5854         (dwarf2out_finish): Output direct and virtual call tables.
5855         * final.c (final_scan_insn): Call direct_call and virtual_call
5856         debug hooks.
5857         * debug.h (struct gcc_debug_hooks): Add direct_call,
5858         virtual_call_token, virtual_call hooks.
5859         (debug_nothing_uid): New function.
5860         * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
5861         (debug_nothing_uid): New function.
5862         * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
5863         (xcoff_debug_hooks): Likewise.
5864         * sdbout.c (sdb_debug_hooks): Likewise.
5865         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5866         * doc/invoke.texi (-fenable-icf-debug): New option.
5867
5868 2009-10-08  Alexandre Oliva  <aoliva@redhat.com>
5869
5870         PR debug/41353
5871         * regmove.c (regmove_backward_pass): Replace src with dst in the
5872         debug insn, and check for dst before rather than after.
5873
5874 2009-10-08  Janis Johnson <janis187@us.ibm.com>
5875
5876         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
5877         (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
5878
5879 2009-10-08  Jan Hubicka  <jh@suse.cz>
5880
5881         PR middle-end/41626
5882         * cgraphbuild.c (record_reference): When parameter DATA is NULL,
5883         do not mark cgraph nodes as needed.
5884         (record_references_in_initializer): Add new only_vars parameter.
5885         * cgraph.h (record_references_in_initializer): New parameter.
5886         * varasm.c (assemble_variable): Update call.
5887         * varpool.c (varpool_analyze_pending_decls): Always look for
5888         referenced vars.
5889
5890 2009-10-08  Anatoly Sokolov  <aesok@post.ru>
5891
5892         * config/avr/avr.c (last_insn_address) Remove variable.
5893         (expand_prologue): Don't initialise last_insn_address variable.
5894         (final_prescan_insn): Don't output insn size.
5895         * config/avr/avr.opt (msize): Remove switch.
5896         * doc/invoke.texi (AVR Options): Remove documentation of -msize
5897         switch.
5898
5899 2009-10-08  Adam Nemet  <anemet@caviumnetworks.com>
5900
5901         * combine.c (label_tick_ebb_start): Fix comment.
5902         (combine_instructions): Set label_tick and label_tick_ebb_start before
5903         calling setup_incoming_promotions.  Start them from 1.  Increment
5904         label_tick instead of deriving it from the BB index.  Rather than
5905         comparing ticks use the block from the previous iteration to decide
5906         whether to start a new EBB.  Remove empty lines before function.
5907
5908 2009-10-08  Michael Matz  <matz@suse.de>
5909
5910         PR middle-end/41573
5911         * builtins.c (fold_builtin_isascii): Use fold_build2.
5912         (fold_builtin_isdigit): Ditto.
5913         * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
5914         * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
5915         remove_useless_stmts_cond, remove_useless_stmts_tf,
5916         remove_useless_stmts_tc, remove_useless_stmts_bind,
5917         remove_useless_stmts_goto, remove_useless_stmts_label,
5918         remove_useless_stmts_1, remove_useless_stmts,
5919         pass_remove_useless_stmts): Remove.
5920         * tree-pass.h (pass_remove_useless_stmts): Don't declare.
5921         * passes.c (init_optimization_passes): Don't add
5922         pass_remove_useless_stmts.
5923         * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
5924         * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
5925         static constants.
5926         * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
5927         for static constants.
5928         * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
5929         * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
5930
5931 2009-10-08  Richard Guenther  <rguenther@suse.de>
5932
5933         * gimple.c (free_gimple_type_tables): New function.
5934         * gimple.h (free_gimple_type_tables): Declare.
5935
5936 2009-10-07  Mark Heffernan  <meheff@google.com>
5937
5938         * ipa-prop.c (ipa_print_node_params) Only print
5939         names of named arguments.
5940
5941 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
5942
5943         * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
5944         being statically linked.
5945
5946 2009-10-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5947
5948         * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
5949
5950 2009-10-08  Jan Hubicka  <jh@suse.cz>
5951
5952         PR bootstrap/41620
5953         * ipa.c (cgraph_externally_visible_p,
5954         function_and_variable_visibility,
5955         whole_program_function_and_variable_visibility): Skip non-finalized
5956         nodes.
5957
5958 2009-10-08  Nick Clifton  <nickc@redhat.com>
5959
5960         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
5961         CONST_DOUBLEs.
5962
5963 2009-10-08  Andreas Tobler  <a.tobler@schweiz.org>
5964
5965         PR bootstrap/37739
5966         * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
5967
5968 2009-10-07  Joseph Myers  <joseph@codesourcery.com>
5969
5970         PR c/41182
5971         * c-common.c (c_fully_fold_internal): Strip nops from the result
5972         of recursive calls to c_fully_fold_internal.
5973         (c_wrap_maybe_const): New.
5974         (c_save_expr): Use c_wrap_maybe_const.
5975         * c-common.h (c_wrap_maybe_const): Declare.
5976         * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
5977         build_binary_op): Use c_wrap_maybe_const.
5978
5979 2009-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5980
5981         * real.c: Fix comment to reflect actual exponent size.
5982
5983 2009-10-08  Ben Elliston  <bje@au.ibm.com>
5984
5985         * config/rs6000/a2.md: Add FSF comment header.
5986
5987 2009-10-07  Uros Bizjak  <ubizjak@gmail.com>
5988
5989         * config/i386/i386.md (any_extend): New code iterator.
5990         (u, s): New code attributes.
5991         (sgnprefix): Ditto.
5992         (DWIH): Rewrite as code iterator for SI and DI modes.
5993         (DWI): Rewrite as mode attribute.
5994         (dwi): New mode attribute.
5995         (di): Depend on SI mode and DI mode.
5996         (doubleint_general_operand): Remove mode attribute.
5997
5998         (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
5999         DWIH mode iterator.
6000
6001         (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
6002         (*sub<mode>3_doubleword): Ditto.
6003
6004         (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
6005         using SWIM248 mode iterator.
6006         (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
6007         using SWI48 mode iterator.
6008         (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
6009         patterns using DWIH mode iterator and any_extend code iterator.
6010         (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
6011         using any_extend code iterator.
6012         (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
6013         patterns using DWIH mode iterator and any_extend code iterator.
6014         (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
6015         using any_extend code iterator.
6016         (<s>mul<mode>3_highpart): Macroize expander from
6017         {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
6018         and any_extend code iterator.
6019         (*<s>muldi3_highpart_1): Macroize insn from
6020         *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
6021         (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
6022         patterns using any_extend code iterator.
6023         (*<s>mulsi3_highpart_zext): Macroize insn from
6024         *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
6025
6026 2009-10-07  Jakub Jelinek  <jakub@redhat.com>
6027
6028         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
6029         DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
6030         refering to a DIE with DW_AT_const_value.
6031
6032 2009-10-07  Vladimir Makarov  <vmakarov@redhat.com>
6033
6034         PR middle-end/22072
6035         * ira-lives.c (check_and_make_def_conflict): Process all operands.
6036
6037 2009-10-06  Jan Hubicka  <jh@suse.cz>
6038
6039         * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
6040         correctly.
6041
6042 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
6043
6044         * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
6045         *lea_2_rex64): Move before *add<mode>_1 pattern.
6046
6047 2009-10-07  Jan Hubicka  <jh@suse.cz>
6048
6049         * collect2.c (main): Add -fno-whole-program.
6050         * gcc.c (set_collect_gcc_options): Do not remove whole program here.
6051
6052 2009-10-07  Jan Hubicka  <jh@suse.cz>
6053
6054         * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
6055         has no address taken.
6056         * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
6057         never needed.
6058         (cgraph_clone_node): Clear externally_visible flag for clones.
6059         * cgraph.h (cgraph_only_called_directly_p,
6060         cgraph_can_remove_if_no_direct_calls_p): New predicates.
6061         * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
6062         * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
6063         (ipcp_initialize_node_lattices, ipcp_estimate_growth,
6064         ipcp_insert_stage): Likwise.
6065         * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
6066         externally_visible flag.
6067         (verify_cgraph_node): Verify that inline clones look right.
6068         (process_function_and_variable_attributes): Do not set
6069         externally_visible flags.
6070         (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
6071         been already run.
6072         * lto-cgraph.c (lto_output_node): Assert that inline clones are not
6073         boundaries.
6074         * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
6075         clear externally_visible when turning into inline clones
6076         (cgraph_mark_inline_edge): Use new predicates.
6077         (cgraph_estimate_growth): Likewise.
6078         (cgraph_decide_inlining): Likewise.
6079         * ipa.c (cgraph_postorder): Likewise.
6080         (cgraph_remove_unreachable_nodes): Likewise; sanity check
6081         that inline clones are not needed.
6082         (cgraph_externally_visible_p): New predicate.
6083         (function_and_variable_visibility): Add whole_program parameter;
6084         always set externally_visible flag; handle COMDAT function
6085         privatization.
6086         (local_function_and_variable_visibility): New function.
6087         (gate_whole_program_function_and_variable_visibility): New function.
6088         (whole_program_function_and_variable_visibility): New function.
6089         (pass_ipa_whole_program_visibility): New function.
6090         * passes.c  (init_optimization_passes): Add whole program visibility
6091         pass.
6092         (do_per_function_toporder, function_called_by_processed_nodes_p): Do
6093         not care about needed/reachable flags.
6094         * varpool.c: Include flags.h
6095         (decide_is_variable_needed): When doing LTO assume whole-program mode.
6096         (varpool_finalize_decl): When we are in LTO read-back, all variables
6097         are analyzed.
6098         (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
6099
6100 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6101
6102         * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
6103         add MASK_HARD_DFP.
6104
6105 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6106
6107         * config.gcc: Don't include the makefile fragments intended for
6108         libgcc.
6109         * config/s390/fixdfdi.h: File removed.
6110         * config/s390/libgcc-glibc.ver: File removed.
6111         * config/s390/s390.h: Remove the fixdfdi.h hack.
6112         * config/s390/t-crtstuff: File moved to libgcc dir.
6113         * config/s390/t-linux: Likewise.
6114         * config/s390/t-tpf: libgcc specific parts removed.
6115         * config/s390/t-linux64: Likewise.
6116
6117 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
6118
6119         * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
6120         (lto-compress.o): Likewise.
6121
6122 2009-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
6123
6124         PR target/41512
6125         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
6126         dllexport to class members here.
6127         (i386_pe_determine_dllimport_p): Only check static class data for
6128         definition.
6129         (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
6130         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
6131         functions for vague linkage.
6132         (i386_pe_type_dllexport_p): Fix formatting.
6133         (maybe_add_dllexport) New function.
6134         (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
6135         to class members.
6136
6137 2009-10-07  Ben Elliston  <bje@au.ibm.com>
6138
6139         * config/rs6000/a2.md: Remove duplicated lines.
6140
6141 2009-10-07  Ben Elliston  <bje@au.ibm.com>
6142
6143         * config.gcc (powerpc*-*-*): Handle a2.
6144         * config/rs6000/rs6000.md (cpu): Add ppca2.  Include "a2.md".
6145         * config/rs6000/a2.md: New file.
6146         * config/rs6000/rs6000.opt (mno-update): New.
6147         (mupdate): Return to using a mask, not a var.
6148         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
6149         (enum processor_type): Add PROCESSOR_PPCA2.
6150         * config/rs6000/rs6000.c (ppca2_cost): New costs.
6151         (rs6000_override_options): Add "a2" to processor_target_table.
6152         Update rs6000_always_hint logic.  Correctly set rs6000_cost for a2.
6153         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
6154
6155 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
6156
6157         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6158         Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
6159         reference to nonexistent gen_truncxfxf2 function.
6160
6161 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
6162
6163         * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
6164         (DWIH, g, di, doubleint_general_operand): New mode attributes.
6165         (general_operand): Handle TI mode.
6166         (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
6167         using SDWIM mode iterator.
6168         (*add<mode>3_doubleword): New insn_and_split pattern.  Macroize
6169         pattern from *add{di,ti}3_1 patterns and corresponding splitters
6170         using DWI mode iterator.
6171         (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
6172         patterns using SWI mode iterator.
6173         (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
6174         using SWI48 mode iterator.
6175         (*add<mode>_1): Ditto from add{si,di}_1 patterns.
6176         (*add<mode>_2): Ditto from add{si,di}_2 patterns.
6177         (*add<mode>_3): Ditto from add{si,di}_3 patterns.
6178         (*add<mode>_5): Ditto from add{si,di}_5 patterns.
6179         (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
6180         using SDWIM mode iterator.
6181         (*sub<mode>3_doubleword): New insn_and_split pattern.  Macroize
6182         pattern from *sub{di,ti}3_1 patterns and corresponding splitters
6183         using DWI mode iterator.
6184         (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
6185         patterns using SWI mode iterator.
6186         (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
6187         (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
6188         (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
6189         (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
6190         patterns using plusminus code iterator.
6191         (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
6192         sub<mode>3 patterns using plusminus code iterator.
6193         * config/i386/i386.c (override_options): Update the call to
6194         gen_subdi_carry_rex64 for renamed function.
6195         (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
6196         and gen_adddi3_carry_rex64 for renamed functions.  Use indirect
6197         calls to instruction expanders.
6198
6199 2009-10-06  Martin Jambor  <mjambor@suse.cz>
6200
6201         PR bootstrap/41395
6202         * opts.c (decode_options): Run IPA-SRA at -O2.
6203
6204 2009-10-06  Richard Guenther  <rguenther@suse.de>
6205
6206         * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
6207
6208 2009-10-06  Tobias Burnus  <burnus@net-b.de>
6209
6210         PR lto/41591
6211         * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
6212         -flto and -fwhole-program flags can be combined.
6213
6214 2009-10-06  Ryan Mansfield  <rmansfield@qnx.com>
6215
6216         PR driver/41217
6217         * gcc.c (process_command): Check that -o argument was specified.
6218
6219 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
6220
6221         * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
6222
6223 2009-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6224
6225         * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
6226         * doc/invoke.texi (Warning Options): Annotate allowed languages
6227         for -Wunsuffixed-float-constants.
6228
6229 2009-10-05  Jakub Jelinek  <jakub@redhat.com>
6230
6231         * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
6232         DW_TAG_{const,volatile}_type if its DW_AT_type already has the
6233         same name and isn't the main variant.
6234
6235         PR debug/41558
6236         * dwarf2out.c (loc_by_reference): Removed.
6237         (dw_loc_list_1): New function.
6238         (dw_loc_list): Remove toplev argument, add want_address argument.
6239         Don't look at decl_by_reference_p at all.  Use dw_loc_list_1.
6240         (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
6241         want_address == 2 to dw_loc_list.  For successful dw_loc_list
6242         set have_address to 1 only if want_address is not 0.
6243
6244 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
6245
6246         * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
6247         * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
6248         a code block followed by two pointers.
6249         (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
6250         * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
6251         (MIPS_MOVE): Likewise.
6252         (MIPS_LUI): Likewise.
6253         (MIPS_JR): Likewise.
6254         (MIPS_BAL): Likewise.
6255         (MIPS_NOP): Likewise.
6256         (mips_asm_trampoline_template): Delete.
6257         (mips_trampoline_code_size): New function.
6258         (mips_trampoline_init): Add shorter sequences for all cases
6259         except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
6260         Calculate the opcodes directly, rather than copying from a template.
6261         Only flush the code part of the trampoline.
6262         (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
6263
6264 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
6265
6266         * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
6267         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
6268         (INCOMING_RETURN_ADDR_RTX): Likewise.
6269         (FUNCTION_PROFILER): Likewise.  Replace GP_REG_FIRST + 1
6270         with AT_REGNUM.
6271         * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
6272         with RETURN_ADDR_REGNUM.
6273         (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
6274         * config/mips/mips.c (mips16_build_call_stub): Replace
6275         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
6276         with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
6277         (mips_print_operand_punctuation): Likewise.
6278         (mips_frame_set): Likewise.
6279         (mips16e_output_save_restore): Likewise.
6280         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
6281         (mips_save_reg_p): Likewise.
6282         (mips_return_addr): Likewise.
6283         (mips_set_return_address): Likewise.
6284         (mips_direct_save_slot_move_p): Likewise.
6285         (mips_output_function_prologue): Likewise.
6286         (mips_restore_reg): Likewise.
6287         (mips_expand_epilogue): Likewise.
6288         (mips_epilogue_uses): Likewise.
6289         * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
6290         (*mov<mode>_ra): Use it instead of a hard-coded 31.
6291         (clear_hazard_<mode>): Likewise.
6292         (call_internal): Likewise.
6293         (call_internal_direct): Likewise.
6294         (call_direct_split): Likewise.
6295         (call_value_internal): Likewise.
6296         (call_value_split): Likewise.
6297         (call_value_internal_direct): Likewise.
6298         (call_value_direct_split): Likewise.
6299         (call_value_multiple_internal): Likewise.
6300         (call_value_multiple_split): Likewise.
6301
6302 2009-10-05  Eric Botcazou  <ebotcazou@adacore.com>
6303             Jakub Jelinek  <jakub@redhat.com>
6304
6305         PR rtl-optimization/41511
6306         * combine.c (record_value_for_reg): Pass explicit values as argument
6307         to get_last_value_validate.
6308         (get_last_value_validate): Document INSN parameter.
6309         For non-readonly MEMs, assume they might have been modified if INSN
6310         was in another basic block.
6311         (get_last_value): Minor reformatting.
6312
6313 2009-10-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6314
6315         PR tree-opt/40992
6316         * final.c (asm_str_count): Split out from asm_insn_count.
6317         * rtl.h (asm_str_count): New prototype.
6318         * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
6319         asm_str_count.
6320
6321 2009-10-05  Sriraman Tallam  <tmsriram@google.com>
6322
6323         * doc/plugins.texi: Change plugin_pass to register_pass_info.
6324
6325 2009-10-05  Basile Starynkevitch  <basile@starynkevitch.net>
6326             Rafael Espindola  <espindola@google.com>
6327
6328         * gengtype.c (write_types): Moved call to write_func_for_structure
6329         into seperate loops.
6330
6331 2009-10-05  Richard Guenther  <rguenther@suse.de>
6332
6333         PR lto/41281
6334         * lto-cgraph.c (output_cgraph): Output toplevel asms.
6335         (input_cgraph_1): Input toplevel asms.
6336
6337 2009-10-05  Richard Guenther  <rguenther@suse.de>
6338
6339         PR lto/40902
6340         * lto-symtab.c (lto_compatible_attributes_p): Remove.
6341         (external_aggregate_decl_p): Likewise.
6342         (lto_symtab_compatible): Re-structure.  Remove dead code.
6343         For variables ignore toplevel qualifiers when comparing types.
6344         Issue warnings, not errors for mismatched user-alignment.
6345
6346 2009-10-05  Richard Guenther  <rguenther@suse.de>
6347
6348         PR lto/41552
6349         PR lto/41487
6350         * lto-symtab.c (struct lto_symtab_base_def): Remove.
6351         (struct lto_symtab_identifier_def): Likewise.
6352         (struct lto_symtab_decl_def): Likewise.
6353         (struct lto_symtab_entry_def): New.
6354         (lto_symtab_identifier_t): Rename to ...
6355         (lto_symtab_entry_t): ... this.
6356         (lto_symtab_decls): Remove.
6357         (lto_symtab_base_hash): Rename to ...
6358         (lto_symtab_entry_hash): ... this.
6359         (lto_symtab_base_eq): Rename to ...
6360         (lto_symtab_entry_eq): ... this.
6361         (lto_symtab_base_marked_p): Rename to ...
6362         (lto_symtab_entry_marked_p): ... this.
6363         (lto_symtab_identifier_marked_p): Remove.
6364         (lto_symtab_decl_marked_p): Likewise.
6365         (lto_symtab_maybe_init_hash_tables): Rename to ...
6366         (lto_symtab_maybe_init_hash_table): ... this.
6367         (lto_symtab_set_resolution_and_file_data): Remove.
6368         (lto_symtab_register_decl): New function.
6369         (lto_symtab_get_identifier): Remove.
6370         (lto_symtab_get): New function.
6371         (lto_symtab_get_resolution): Adjust.
6372         (lto_symtab_get_identifier_decl): Remove.
6373         (lto_symtab_set_identifier_decl): Likewise.
6374         (lto_symtab_merge_decl): Rename to ...
6375         (lto_symtab_merge): ... this.  Rewrite.
6376         (lto_symtab_merge_var): Remove.
6377         (lto_symtab_merge_fn): Likewise.
6378         (lto_symtab_prevailing_decl): Adjust.
6379         (lto_cgraph_replace_node): New function.
6380         (lto_symtab_merge_decls_2): Likewise.
6381         (lto_symtab_merge_decls_1): Likewise.
6382         (lto_symtab_fixup_var_decls): Likewise.
6383         (lto_symtab_resolve_symbols): Likewise.
6384         (lto_symtab_merge_decls): Likewise.
6385         (lto_symtab_prevailing_decl): Adjust.
6386         (lto_symtab_get_symtab_def): Remove.
6387         (lto_symtab_get_file_data): Likewise.
6388         (lto_symtab_clear_resolution): Adjust.
6389         (lto_symtab_clear_resolution): Likewise.
6390         * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
6391         (input_cgraph_1): Likewise.
6392         * lto-streamer-in.c (get_resolution): Do not provide fake
6393         symbol resolutions here.
6394         (deferred_global_decls): Remove.
6395         (lto_register_deferred_decls_in_symtab): Likewise.
6396         (lto_register_var_decl_in_symtab): Change signature, register
6397         variable via lto_symtab_register_decl.
6398         (lto_register_function_decl_in_symtab): Likewise.
6399         (lto_read_tree): Adjust.
6400         * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
6401         (lto_symtab_merge_var): Likewise.
6402         (lto_symtab_merge_fn): Likewise.
6403         (lto_symtab_register_decl): Declare.
6404         (lto_symtab_merge_decls): Likewise.
6405
6406 2009-10-05  Richard Guenther  <rguenther@suse.de>
6407
6408         PR tree-optimization/23821
6409         * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
6410         * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
6411         simple IV increments.
6412
6413 2009-10-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6414
6415         * config/arm/arm.c (arm_override_options): Really initialize
6416         flag_dwarf2_cfi_asm to 0.
6417
6418 2009-10-05  Doug Kwan  <dougkwan@google.com>
6419
6420         PR rtl-optimization/41574
6421         * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
6422         floating point and we are not doing unsafe math optimizations.
6423
6424 2009-10-03  Simon Baldwin  <simonb@google.com>
6425             Cary Coutant  <ccoutant@google.com>
6426             Rafael Espindola  <espindola@google.com>
6427             Richard Guenther  <rguenther@suse.de>
6428             Jan Hubicka  <jh@suse.cz>
6429             Doug Kwan <dougkwan@google.com>
6430             H.J. Lu  <hongjiu.lu@intel.com>
6431             Bill Maddox  <maddox@google.com>
6432             Ryan Mansfield  <rmansfield@qnx.com>
6433             Diego Novillo  <dnovillo@google.com>
6434             Ollie Wild  <aaw@google.com>
6435             Kenneth Zadeck <zadeck@naturalbridge.com>
6436
6437         * lto-cgraph.c: New file.
6438         * lto-compress.c: New file.
6439         * lto-compress.h: New file.
6440         * lto-opts.c: New file.
6441         * lto-section-in.c: New file.
6442         * lto-section-out.c: New file.
6443         * lto-streamer-in.c: New file.
6444         * lto-streamer-out.c: New file.
6445         * lto-streamer.c: New file.
6446         * lto-streamer.h: New file.
6447         * lto-symtab.c: New file.
6448         * lto-wpa-fixup.c: New file.
6449         * lto-wrapper.c: New file.
6450
6451 2009-10-03  Simon Baldwin  <baldwin@google.com>
6452             Ben Elliston  <bje@au.ibm.com>
6453             Rafael Espindola  <espindola@google.com>
6454             Nathan Froyd  <froydnj@codesourcery.com>
6455             Jan Hubicka  <jh@suse.cz>
6456             Doug Kwan  <dougkwan@google.com>
6457             Diego Novillo  <dnovillo@google.com>
6458             Kenneth Zadeck  <zadeck@naturalbridge.com>
6459
6460         * Makefile.in (enable_lto): New.
6461         (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
6462         (LINKER_PLUGIN_API_H): Define.
6463         (LTO_SYMTAB_H): Define.
6464         (LTO_STREAMER_H): Define.
6465         (TREE_VECTORIZER_H): Define.
6466         (INCLUDES): Add LIBELFINC.
6467         (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
6468         lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
6469         lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
6470         (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
6471         (native): Add lto-wrapper$(exeext)
6472         (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
6473         lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
6474         lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
6475         (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
6476         (varasm.o): Add dependency on tree-iterator.h.
6477         (cgraph.o): Add dependency on cif-code.def.
6478         (ipa-reference.o): Add dependency on LTO_STREAMER_H.
6479         (ipa-pure-const.o): Likewise.
6480         (GTFILES): Add lto-symtab.c.
6481         (install-lto-wrapper): New.
6482         * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
6483         and enable_lto.  If LIBELFLIBS is set, define HAVE_libelf.
6484         * config.in: Regenerate.
6485
6486 2009-10-03  Rafael Espindola  <espindola@google.com>
6487             Diego Novillo  <dnovillo@google.com>
6488
6489         * cgraphunit.c (ipa_passes): Prevent lto1 from calling
6490         ipa_write_summaries.
6491         Call execute_ipa_summary_passes for all_regular_ipa_passes and
6492         all_lto_gen_passes.
6493         (cgraph_optimize): Make extern.
6494
6495 2009-10-03  Nathan Froyd  <froydnj@codesourcery.com>
6496             Kenneth Zadeck <zadeck@naturalbridge.com>
6497
6498         * toplev.c (in_lto_p): Declare.
6499         * collect2.c (scan_prog_file): Read all the output when reading
6500         information for LTO.
6501         (enum lto_mode_d): Declare.
6502
6503 2009-10-03  Richard Guenther  <rguenther@suse.de>
6504             Diego Novillo  <dnovillo@google.com>
6505
6506         * gimple.c: Include target.h and alias.h.
6507         (gimple_types): Declare.
6508         (type_hash_cache): Declare.
6509         (gimple_alloc_stat): Make extern.
6510         (gimple_build_eh_must_not_throw): Call
6511         gimple_eh_must_not_throw_set_fndecl.
6512         (struct type_pair_d): Declare.
6513         (type_pair_t): Declare.
6514         (type_pair_hash): New.
6515         (type_pair_eq): New.
6516         (lookup_type_pair): New.
6517         (gimple_force_type_merge): New.
6518         (compare_type_names_p): New.
6519         (compare_field_offset): New.
6520         (gimple_types_compatible_p): New.
6521         (struct sccs): Declare.
6522         (next_dfs_num): Declare.
6523         (iterative_hash_gimple_type): New.
6524         (visit): New.
6525         (iterative_hash_type_name): New.
6526         (iterative_hash_gimple_type): New.
6527         (gimple_type_hash): New.
6528         (gimple_type_eq): New.
6529         (gimple_register_type): New.
6530         (print_gimple_types_stats): New.
6531         (gimple_signed_or_unsigned_type): New.
6532         (gimple_unsigned_type): New.
6533         (gimple_signed_type): New.
6534         (gimple_get_alias_set): New.
6535         (gimple_decl_printable_name): Do not use DMGL_TYPES.
6536         * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
6537         (gimple_force_type_merge): Declare.
6538         (gimple_types_compatible_p): Declare.
6539         (gimple_register_type): Declare.
6540         (print_gimple_types_stats): Declare.
6541         (gimple_unsigned_type): Declare.
6542         (gimple_signed_type): Declare.
6543         (gimple_get_alias_set): Declare.
6544         (gimple_eh_must_not_throw_set_fndecl): New.
6545
6546 2009-10-03  Jan Hubicka  <jh@suse.cz>
6547             Kenneth Zadeck <zadeck@naturalbridge.com>
6548
6549         * ipa-pure-const.c: Include lto-streamer.h.
6550         (register_hooks): Factor out of ...
6551         (generate_summary): ... here.
6552         (pure_const_write_summary): New.
6553         (pure_const_read_summary): New.
6554         (pass_ipa_pure_const): Add pure_const_write_summary and
6555         pure_const_read_summary.
6556         * ipa-reference.c: Include lto-streamer.h.
6557         (add_new_function): New.
6558         (remove_node_data): New.
6559         (duplicate_node_data): New.
6560         (ipa_init): Guard against multiple calls.
6561         Move hook setup from analyze_function.
6562         (write_node_summary_p): New.
6563         (ipa_reference_write_summary): New.
6564         (ipa_reference_read_summary): New.
6565         (pass_ipa_reference): Add ipa_reference_write_summary and
6566         ipa_reference_read_summary.
6567         * cgraph.h (cgraph_local_info): Add field lto_file_data.
6568         (struct cgraph_edge): Add fields lto_stmt_uid and
6569         call_stmt_cannot_inline_p.
6570         (cgraph_optimize): Declare.
6571         (cgraph_decide_is_function_needed): Declare.
6572         (reset_inline_failed): Declare.
6573         (enum LTO_cgraph_tags): Declare.
6574         (LTO_cgraph_tag_names): Declare.
6575         (LCC_NOT_FOUND): Define.
6576
6577 2009-10-03  Doug Kwan  <dougkwan@google.com>
6578             Rafael Espindola  <espindola@google.com>
6579             Jan Hubicka  <jh@suse.cz>
6580             Diego Novillo  <dnovillo@google.com>
6581             Kenneth Zadeck  <zadeck@naturalbridge.com>
6582
6583         * passes.c (all_regular_ipa_passes): New.
6584         (all_ipa_passes): Rename to all_small_ipa_passes.
6585         (init_optimization_passes): Init all_regular_ipa_passes.
6586         * tree-pass.h (all_regular_ipa_passes): New.
6587         (all_ipa_passes): Rename to all_small_ipa_passes.
6588         * passes.c (all_lto_gen_passes): New.
6589         (init_optimization_passes): Initialize all_lto_gen_passes.
6590         (execute_ipa_summary_passes): Make non-static.
6591         (ipa_write_summaries_1): New.
6592         (ipa_write_summaries_2): New.
6593         (ipa_write_summaries): New.
6594         (ipa_write_summaries_of_cgraph_node_set): New.
6595         (ipa_read_summaries_1): New.
6596         (ipa_read_summaries): New.
6597         (execute_ipa_pass_list): Call cgraph_process_new_functions.
6598         (execute_regular_ipa_pass_list): Remove.
6599         (init_optimization_passes): Schedule
6600         pass_rebuild_cgraph_edges and pass_early_inline outside
6601         of pass_all_early_optimizations.  Document reason.
6602         (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
6603         pass_ipa_lto_finish_out): New pass.
6604         (pass_ipa_summary_passes): Start and stop timers if the pass has them.
6605         (execute_all_ipa_transforms): New.
6606         (execute_one_pass): Don't call execute_one_ipa_transform_pass.
6607         (dump_properties, debug_properties): New.
6608         * tree-optimize.c (gate_all_early_local_passes): Return
6609         false if we are in lto1.
6610         (tree_rest_of_compilation): Call execute_all_ipa_transforms.
6611         * tree-pass.h (execute_all_ipa_transforms): Declare.
6612         (pass_ipa_function_and_variable_visibility): Declare.
6613         (pass_ipa_early_inline): Declare.
6614         (pass_ipa_lto_gimple_out): Declare.
6615         (pass_ipa_lto_wpa_fixup): Declare.
6616         (pass_ipa_lto_finish_out): Declare.
6617         (all_small_ipa_passes, all_regular_ipa_passes,
6618         all_lto_gen_passes): Declare.
6619         (execute_ipa_summary_passes): Declare.
6620         (execute_all_ipa_transforms): Declare.
6621         (ipa_write_summaries): Declare
6622         (ipa_write_summaries_of_cgraph_node_set): Declare.
6623         (ipa_read_summaries): Declare.
6624
6625 2009-10-03  Doug Kwan  <dougkwan@google.com>
6626             Ollie Wild  <aaw@google.com>
6627
6628         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
6629
6630         * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
6631         (lto_mode): New variable.
6632         (maybe_run_lto_and_relink): Handle the -fwpa option.
6633         (main): Handle the -fwpa option.
6634         (maybe_unlink_list): New function.
6635         * gcc.c (link_lto_options): Replace -flto with -fwpa.
6636         * common.opt (flto): New flag.
6637         * toplev.c (flag_generate_lto): Declare.
6638
6639 2009-10-03  Simon Baldwin  <simonb@google.com>
6640
6641         * common.opt (flto-compression-level): New flag.
6642
6643         * opts.c: Include lto-opts.h.
6644         (handle_option): Call lto_register_user_option for each
6645         valid option handled.
6646         (decode_options): Clear registered options before the options
6647         handling loop.
6648
6649 2009-10-03  Cary Coutant  <ccoutant@google.com>
6650
6651         * collect2.c (is_elf): New function.
6652         (scan_prog_file): Require LTO object to be in ELF format.
6653
6654 2009-10-03  Rafael Espindola  <espindola@google.com>
6655
6656         * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
6657         libgcc to the linker.
6658
6659         * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
6660
6661         * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
6662         (collect_execute): Add flags argument. Pass flags to pex_run. Update
6663         all callers.
6664         * collect2.h (collect_execute): Add flags argument.
6665         * tlink.c (tlink_execute): Update call to collect_execute.
6666         * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
6667         (use_linker_plugin): New.
6668         (use_linker_plugin_spec_function): New.
6669         (LINK_COMMAND_SPEC): Pass plugin options to the linker.
6670         (linker_plugin_file_spec): New.
6671         (lto_wrapper_spec): New.
6672         (lto_gcc_spec): New.
6673         (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
6674         (static_spec_functions): Add use-linker-plugin.
6675         (process_command): Handle -use-linker-plugin.
6676         (main): Use lto_wrapper_spec instead of lto_wrapper. Set
6677         linker_plugin_file_spec and lto_gcc_spec.
6678         (use_linker_plugin_spec_function): New.
6679
6680 2009-10-03  Richard Guenther  <rguenther@suse.de>
6681
6682         PR lto/41547
6683         PR lto/41548
6684         * tree.h (is_lang_specific): Include LANG_TYPE.
6685         * tree.c (find_decls_types_r): Manually add interesting parts
6686         of TYPE_FIELDS.  Walk BINFO_VIRTUALS.  Do not walk TYPE_METHODS.
6687
6688         * gimple.c (type_pair_hash): Make symmetric.
6689         (type_pair_eq): Likewise.
6690         (lookup_type_pair): Increase initial hashtable size.
6691         (gimple_force_type_merge): Rely on type-pair symmetry.
6692         (visit): Remove excessive checking code.
6693         (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
6694         (gimple_register_type): Remove getenv calls, shrink initial
6695         hashtable size.
6696
6697         PR middle-end/41502
6698         * cgraphunit.c (ipa_passes): Do not remove bodies of extern
6699         inline functions if not generating lto output.
6700
6701         PR lto/41379
6702         * toplev.c (finalize): In WPA mode remove the asm file.
6703
6704 2009-10-03  Doug Kwan  <dougkwan@google.com>
6705
6706         * ipa-inline.c (cgraph_mark_inline): Check
6707         edge->call_stmt_cannot_inline_p instead of calling
6708         gimple_call_cannot_inline_p.
6709         (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
6710         (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
6711         (inline_generate_summary): Do nothing in LTRANS.
6712         * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
6713         exists before calling gimple_call_cannot_inline_p.
6714         (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
6715         (cgraph_clone_edge): Add argument STMT_UID.  Modify all callers.
6716         Update new_edge->lto_stmt_uid.
6717         * cgraphbuild.c (reset_inline_failed): New.
6718
6719         * common.opt (fwpa): New flag.
6720         (fltrans): New option.
6721         * gcc.c (gcc_lto_option_t): New type.
6722         (current_lto_option): New variable.
6723         (lto_single_spec_function): Remove and is replaced by ..
6724         (lto_option_spec_function): New function.
6725         (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
6726         passing the -flto flag.
6727         (cc1_options): Separate non-LTO related parts into ..
6728         (cc1_non_lto_options): Non-LTO related options shared by all FEs.
6729         (lto1_options): New spec for lto FE.
6730         (link_lto_options): New spec for handling LTO flags in linker.
6731         (invoke_lto_single): Re-format to fit in 80 column.  Replace
6732         lto-single with lto-option.
6733         (static_specs): Add cc1_non_lto_options, lto1_options and
6734         link_lto_options.
6735         (static_spec_function): Replace lto-single with lto-option.
6736         (process_command): Handle -flto, -fwpa and -fltran by setting
6737         current_lto_option and not passing it to subprocess unconditionally.
6738
6739 2009-10-03  Bill Maddox  <maddox@google.com>
6740
6741         Add `gcc' driver support for link-time code generation (LTO).
6742
6743         * collect2.c (enum pass): Add new literal PASS_LTOINFO.
6744         (lto_flag, lto_objects, lto_o_file): New variables.
6745         (struct lto_object, struct lto_object_list): New structures.
6746         (collect_exit, handler): Remove LTO temporary output file on exit.
6747         (add_lto_object): New function.
6748         (maybe_run_lto_and_relink): New function. Perform link time code
6749         generation and relinking for object files containing LTO information.
6750         (main): Invoke maybe_run_lto_and_relink().
6751         (dump_argv): New function.  For debugging, currently disabled.
6752         (scan_prog_file): Add LTO information pass.
6753         * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
6754         collect2.
6755         * toplev.c (compile_file): Emit assembler directive to create
6756         the `gnu_lto_v1' marker symbol when compiling with `-flto'.
6757
6758 2009-10-03  Diego Novillo  <dnovillo@google.com>
6759
6760         * c.opt: Add LTO to warn_abi and warn_psabi.
6761
6762         * tree.c (fld_worklist_push): Rename from PUSH.  Convert to static
6763         inline function.  Ignore language-specific nodes.  Update all users.
6764         (find_decls_types_r): Do not traverse the subtrees of
6765         language-specific nodes.  Do not traverse DECL_INITIAL for TYPE_DECLs.
6766         * tree.h (is_lang_specific): New.
6767         * langhooks.h (struct lang_hooks_for_decls): Remove
6768         may_need_assembler_name_p.  Update all users.
6769
6770         * c-common.c (set_builtin_user_assembler_name): Move ...
6771         * builtins.c (set_builtin_user_assembler_name): ... here.
6772         (is_builtin_name): Add comment
6773         (is_builtin_fn): New.
6774         * except.c (output_ttype): Only call
6775         lookup_type_for_runtime if TYPE is not a runtime type.
6776
6777         * passes.c (register_pass): Call position_pass on
6778         all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
6779         * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
6780         (TV_IPA_LTO_DECL_IO): Define.
6781         (TV_IPA_LTO_CGRAPH_IO): Define.
6782         (TV_LTO): Define.
6783         (TV_WHOPR_WPA): Define.
6784         (TV_WHOPR_WPA_IO): Define.
6785         (TV_WHOPR_LTRANS): Define.
6786         (TV_WHOPR_WPA_FIXUP): Define.
6787         (TV_WHOPR_WPA_LTRANS_EXEC): Define.
6788         * tree-cfg.c (tree_node_can_be_shared): Make extern.
6789         * tree-flow.h (tree_node_can_be_shared): Declare.
6790         * tree-inline.c (tree_can_inline_p): Check that E has a
6791         statement associated with it.
6792         * tree.c (free_lang_data_in_binf): Factor out of ...
6793         (free_lang_data_in_type): ... here.
6794         Call RECORD_OR_UNION_TYPE_P.
6795         (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
6796         set.  Call lang_hooks.decls.may_need_assembler_name_p if set.
6797         (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
6798         (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE.  Set
6799         write_symbols to NO_DEBUG.  Set debug_hooks to do_nothing_debug_hooks.
6800         (gate_free_lang_data): Return true if flag_generate_lto is set.
6801         (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
6802         * c-common.h (set_builtin_user_assembler_name): Move ...
6803         * tree.h (set_builtin_user_assembler_name): ... here.
6804
6805         * common.opt (flto-report): New flag.
6806         * opts.c (complain_wrong_lang): Do not complain if running lto1.
6807         * collect2.c (scan_prog_file): Send the error output of
6808         'nm' to HOST_BIT_BUCKET.
6809
6810 2009-10-03  Ollie Wild  <aaw@google.com>
6811
6812         * langhooks-def.h (lhd_begin_section): New function declaration.
6813         (lhd_write_section): New function declaration.
6814         (lhd_end_section): New function declaration.
6815         (LANG_HOOKS_BEGIN_SECTION): New macro.
6816         (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
6817         (LANG_HOOKS_END_SECTION): New macro.
6818         (LANG_HOOKS_LTO): New macro.
6819         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
6820         * langhooks.c (output.h): Add include.
6821         (saved_section): New static variable.
6822         (lhd_begin_section): New function.
6823         (lhd_write_section_data): New function.
6824         (lhd_end_section): New function.
6825         * langhooks.h (struct lang_hooks_for_lto): New structure.
6826         (struct lang_hooks): Add member lto.
6827         * Makefile.in (langhooks.o): Add dependency on output.h.
6828
6829         * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
6830
6831 2009-10-03  Richard Guenther  <rguenther@suse.de>
6832
6833         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
6834         Handle LTO.
6835
6836 2009-10-03  Simon Baldwin  <simonb@google.com>
6837             Richard Guenther  <rguenther@suse.de>
6838             Janis Johnson  <janis187@us.ibm.com>
6839             Doug Kwan  <dougkwan@google.com>
6840             Diego Novillo  <dnovillo@google.com>
6841             Ramana Radhakrishnan  <ramana.r@gmail.com>
6842             Ollie Wild  <aaw@google.com>
6843
6844         * doc/install.texi: Add documentation for libelf and --enable-lto.
6845         * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
6846         -flto-report, -flto-compression-level and -use-linker-plugin.
6847         * doc/sourcebuild.texi: Document use of zlib.  Document lto-plugin.
6848         Add section for LTO Testing.
6849
6850 2009-10-02  Cary Coutant  <ccoutant@google.com>
6851
6852         Add support for comdat type sections for DWARF v4.
6853         Merge from dwarf4 branch.
6854
6855         * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
6856         (dw_die_ref): Define vector type.
6857         (enum dw_val_class): Add dw_val_class_data8.
6858         (struct dw_val_struct): Add v.val_data8.
6859         (comdat_type_node_ref): New type.
6860         (struct die_struct): Move die_symbol into a union; add new field
6861         die_type_node.  Change all uses.
6862         (comdat_type_node): New type.
6863         (skeleton_chain_node): New type.
6864         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
6865         (comdat_type_list): New variable.
6866         (dwarf_tag_name): Add DW_TAG_type_unit.
6867         (dwarf_attr_name): Add DW_AT_signature.
6868         (add_AT_data8): New function.
6869         (replace_child): New function.
6870         (move_all_children): New function.
6871         (print_signature): New function.
6872         (print_die): Print signature information; add dw_val_class_data8.
6873         (attr_checksum): Support dw_val_class_data8.
6874         (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
6875         (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
6876         (checksum_sleb128, checksum_uleb128): New functions.
6877         (checksum_die_context): New function.
6878         (loc_checksum_ordered): New function.
6879         (attr_checksum_ordered): New function.
6880         (struct checksum_attributes): New structure.
6881         (collect_checksum_attributes): New function.
6882         (die_checksum_ordered): New function.
6883         (generate_type_signature): New function.
6884         (same_dw_val_p): Add dw_val_class_data8.
6885         (is_symbol_die): Use new is_declaration_die function.
6886         (is_declaration_die): New function.
6887         (should_move_die_to_comdat): New function.
6888         (clone_die): New function.
6889         (clone_tree): New function.
6890         (clone_as_declaration): New function.
6891         (copy_declaration_context): New function.
6892         (generate_skeleton_ancestor_tree): New function.
6893         (generate_skeleton_bottom_up): New function.
6894         (generate_skeleton): New function.
6895         (remove_child_or_replace_with_skeleton): New function.
6896         (break_out_comdat_types): New function.
6897         (struct decl_table_entry): New type.
6898         (htab_decl_hash): New function.
6899         (htab_decl_eq): New function.
6900         (htab_decl_del): New function.
6901         (copy_ancestor_tree): New function.
6902         (copy_decls_walk): New function.
6903         (copy_decls_for_unworthy_types): New function.
6904         (build_abbrev_table): Don't assert on missing die_symbol when doing
6905         comdat type sections.
6906         (size_of_die): Use DW_FORM_sig8 for external references.  Add
6907         dw_val_class_data8.
6908         (unmark_dies): Don't assert for unmarked dies when doing comdat
6909         type sections.
6910         (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
6911         (output_signature): New function.
6912         (output_die): Likewise.
6913         (output_compilation_unit_header): Mark output as DWARF version 3
6914         even if generating DWARF 4.
6915         (output_comdat_type_unit): New function.
6916         (output_line_info): Mark output as DWARF version 3 even if generating
6917         DWARF 4.
6918         (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
6919         DWARF-4.
6920         (dwarf2out_end_source_file): Likewise.
6921         (prune_unused_types_walk_attribs): Don't follow references into
6922         comdat type sections.
6923         (prune_unused_types_mark): When generating type units, do not mark
6924         children of non-defining declarations of types; do mark children of
6925         type entries.
6926         (prune_unused_types): Process comdat type sections.
6927         (htab_ct_hash): New function.
6928         (htab_ct_eq): New function.
6929         (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
6930         Add a pointer to the line table from type unit entries so
6931         DW_AT_decl_file has meaning.
6932         * varasm.c (default_elf_asm_named_section): Use identifier name as
6933         comdat key instead of lang hook.
6934
6935 2009-10-02  Neil Vachharajani  <nvachhar@google.com>
6936
6937         * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
6938
6939 2009-10-02  Uros Bizjak  <ubizjak@gmail.com>
6940
6941         * config/i386/i386.md (SWIM248): New mode iterator.
6942         (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
6943         divmodhi4 patterns using SWIM248 macro.
6944         (*divmod<mode>4): Macroize insn_and_split pattern from
6945         *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
6946         and their corresponding splitters usign SWIM248 macro.  Split SImode
6947         insn to generate cltd and DImode insn to generate cqto instead of
6948         move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
6949         (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
6950         (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
6951         *divmodsi_noext patterns using SWIM248 macro.
6952         (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
6953         udivmodhi4 patterns using SWIM248 macro.
6954         (*udivmod<mode>4): Macroize insn_and_split pattern from
6955         *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
6956         corresponding splitters using SWIM248 macro.
6957         (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
6958         *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
6959
6960 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
6961
6962         * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
6963         of zero-sized element is zero-sized regardless of its extent.
6964
6965 2009-10-02  Jakub Jelinek  <jakub@redhat.com>
6966
6967         PR debug/40521
6968         * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
6969         * configure: Regenerated.
6970         * config.in: Regenerated.
6971         * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
6972         !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
6973         (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
6974         not emitting .eh_frame, emit .cfi_sections .debug_frame
6975         directive.
6976
6977         PR debug/41404
6978         PR debug/41353
6979         * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
6980         CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
6981         with '\0'.
6982         (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
6983         vars use DECL_RTL with resetting it back to NULL afterwards.
6984         * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
6985         rtx_equal_p instead of asserting it is a SYMBOL_REF.
6986         (value_format): For dw_val_class_addr only use DW_FORM_addr if
6987         the attribute type allows it, otherwise use DW_FORM_dataN.
6988         (mem_loc_descriptor): Handle CONST_STRING.
6989         (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
6990         Handle MEM with CONST_STRING address using add_AT_string.
6991         (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
6992         CONST_STRING for const arrays initialized with a string literal.
6993         (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
6994         (dwarf2out_finish): Call resolve_addr.
6995
6996 2009-10-02  Andreas Schwab  <schwab@linux-m68k.org>
6997             Maxim Kuvyrkov  <maxim@codesourcery.com>
6998
6999         * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
7000
7001 2009-10-02  Nick Clifton  <nickc@redhat.com>
7002
7003         * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
7004         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
7005
7006 2009-10-01  Jan Hubicka  <jh@suse.cz>
7007
7008         * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
7009         (cgraph_create_virtual_clone): Just pass redirect_callers
7010         around.
7011         * cgraph.h (cgraph_clone_node): Update prototype.
7012         * ipa-pure-const.c (self_recursive_p): New function.
7013         (propagate): Use it.
7014         * ipa-inline.c (cgraph_clone_inlined_nodes,
7015         cgraph_decide_recursive_inlining): Update.
7016
7017 2009-10-01  David Daney  <ddaney@caviumnetworks.com>
7018
7019         * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
7020         instructions for TARGET_OCTEON.
7021
7022 2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7023
7024         * config/arm/arm.c (arm_override_options): Turn off
7025         flag_dwarf2_cfi_asm for AAPCS variants.
7026
7027 2009-10-01  Martin Jambor  <mjambor@suse.cz>
7028
7029         PR middle-end/12392
7030         * tree-sra.c (convert_callers): Do not call
7031         compute_inline_parameters on one caller more than once.
7032
7033 2009-10-01  Nick Clifton  <nickc@redhat.com>
7034
7035         * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
7036         an empty string if not already defined.
7037
7038 2009-10-01  Martin Jambor  <mjambor@suse.cz>
7039
7040         PR bootstrap/41395
7041         * tree-sra.c (is_va_list_type): New function.
7042         (find_var_candidates): Call is_va_list_type.
7043         (find_param_candidates): Check that the type or the type pointed
7044         to are not va_list types.
7045
7046 2009-10-01  Martin Jambor  <mjambor@suse.cz>
7047
7048         PR c++/41503
7049         * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
7050         DECL_ARTIFICIAL (param_decl) is true.
7051
7052 2009-09-30  Gabriel Dos Reis  <gdr@cs.tamu.edu>
7053
7054         * tree.h (tree_decl_common::lang_flag_8): New.
7055         * c-common.c (c_common_reswords): Include "constexpr" as C++0x
7056         keyword.
7057         * c-common.h (RID_CONSTEXPR): New.
7058
7059 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
7060
7061         * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
7062         Use ref-all pointers.
7063         (alpha_gimplify_va_arg): Ditto.
7064
7065 2009-09-30  Jakub Jelinek  <jakub@redhat.com>
7066
7067         PR target/41279
7068         * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
7069         before insn counting loop now that BB_END (bb) is counted.  Ensure
7070         the return value isn't zero.
7071
7072 2009-09-30  Nick Clifton  <nickc@redhat.com>
7073
7074         * config.gcc (sh-symbianelf): Replace definition of extra_objs
7075         with separate definitions of c_target_objs and cxx_target_objs.
7076         * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
7077         and symbian-base.o.
7078         * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
7079         sh_symbian_import_export_class.
7080         * config/sh/sh-protos.h: Fix names of exported symbian functions.
7081         * config/sh/symbian.c: Delete, moving code into...
7082         * config/sh/symbian-base.c: ... here
7083         * config/sh/symbian-c.c: ... and here
7084         * config/sh/symbian-cxx.c: ... and here.
7085
7086 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
7087
7088         PR target/22093
7089         * config/alpha/alpha.md (unaligned_storehi_be): Force operand
7090         of plus RTX into register.
7091
7092 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7093
7094         * doc/install.texi: Linguistic and markup fixes.
7095         (Configuration) <--disable-cpp>: Remove description.
7096         <--enable-maintainer-mode>: Autotools files are affected, too.
7097         <--with-sysroot>: Improve description.
7098         (Building): Bump required GNU make version.
7099
7100 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
7101
7102         * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
7103         (x86_64-*-*): Ditto.
7104
7105         * config/i386/fma4intrin.h: New file, provide common x86 compiler
7106         intrinisics for FMA4.
7107         * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
7108         * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
7109         Add FMA4 check and fma4intrin.h.
7110         * config/i386/i386-c.c(ix86_target_macros_internal): Check
7111         ISA_FLAG for FMA4.
7112         * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
7113         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
7114         constant for FMA4 support.
7115         (UNSPEC_FMA4_FMADDSUB): Ditto.
7116         (UNSPEC_FMA4_FMSUBADD): Ditto.
7117         * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
7118         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
7119         (ix86_expand_fma4_multiple_memory): Ditto.
7120         * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
7121         (OPTION_MASK_ISA_FMA4_UNSET): New.
7122         (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
7123         (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
7124         (ix86_handle_option): Handle -mfma4.
7125         (isa_opts): Handle -mfma4.
7126         (enum pta_flags): Add PTA_FMA4.
7127         (override_options): Add FMA4 support.
7128         (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
7129         (IX86_BUILTIN_VFMADDSD): Ditto.
7130         (IX86_BUILTIN_VFMADDPS): Ditto.
7131         (IX86_BUILTIN_VFMADDPD): Ditto.
7132         (IX86_BUILTIN_VFMSUBSS): Ditto.
7133         (IX86_BUILTIN_VFMSUBSD): Ditto.
7134         (IX86_BUILTIN_VFMSUBPS): Ditto.
7135         (IX86_BUILTIN_VFMSUBPD): Ditto.
7136         (IX86_BUILTIN_VFMADDSUBPS): Ditto.
7137         (IX86_BUILTIN_VFMADDSUBPD): Ditto.
7138         (IX86_BUILTIN_VFMSUBADDPS): Ditto.
7139         (IX86_BUILTIN_VFMSUBADDPD): Ditto.
7140         (IX86_BUILTIN_VFNMADDSS): Ditto.
7141         (IX86_BUILTIN_VFNMADDSD): Ditto.
7142         (IX86_BUILTIN_VFNMADDPS): Ditto.
7143         (IX86_BUILTIN_VFNMADDPD): Ditto.
7144         (IX86_BUILTIN_VFNMSUBSS): Ditto.
7145         (IX86_BUILTIN_VFNMSUBSD): Ditto.
7146         (IX86_BUILTIN_VFNMSUBPS): Ditto.
7147         (IX86_BUILTIN_VFNMSUBPD): Ditto.
7148         (IX86_BUILTIN_VFMADDPS256): Ditto.
7149         (IX86_BUILTIN_VFMADDPD256): Ditto.
7150         (IX86_BUILTIN_VFMSUBPS256): Ditto.
7151         (IX86_BUILTIN_VFMSUBPD256): Ditto.
7152         (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
7153         (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
7154         (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
7155         (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
7156         (IX86_BUILTIN_VFNMADDPS256): Ditto.
7157         (IX86_BUILTIN_VFNMADDPD256): Ditto.
7158         (IX86_BUILTIN_VFNMSUBPS256): Ditto.
7159         (IX86_BUILTIN_VFNMSUBPD256): Ditto.
7160         (enum multi_arg_type): New enum for describing the various FMA4
7161         intrinsic argument types.
7162         (bdesc_multi_arg): New table for FMA4 intrinsics.
7163         (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
7164         (ix86_expand_multi_arg_builtin): New function for creating FMA4
7165         intrinsics.
7166         (ix86_expand_builtin): Add FMA4 intrinsic support.
7167         (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
7168         operand instructions.
7169         (ix86_expand_fma4_multiple_memory): New function to split the
7170         second memory reference from FMA4 instructions.
7171         * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
7172         (ssemodesuffixf2s): Ditto.
7173         (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
7174         instructions.
7175         (fma4_fmsub<mode>4): Ditto.
7176         (fma4_fnmadd<mode>4): Ditto.
7177         (fma4_fnmsub<mode>4): Ditto.
7178         (fma4_vmfmadd<mode>4): Ditto.
7179         (fma4_vmfmsub<mode>4): Ditto.
7180         (fma4_vmfnmadd<mode>4): Ditto.
7181         (fma4_vmfnmsub<mode>4): Ditto.
7182         (fma4_fmadd<mode>4256): Ditto.
7183         (fma4_fmsub<mode>4256): Ditto.
7184         (fma4_fnmadd<mode>4256): Ditto.
7185         (fma4_fnmsub<mode>4256): Ditto.
7186         (fma4_fmaddsubv8sf4): Ditto.
7187         (fma4_fmaddsubv4sf4): Ditto.
7188         (fma4_fmaddsubv4df4): Ditto.
7189         (fma4_fmaddsubv2df4): Ditto.
7190         (fma4_fmsubaddv8sf4): Ditto.
7191         (fma4_fmsubaddv4sf4): Ditto.
7192         (fma4_fmsubaddv4df4): Ditto.
7193         (fma4_fmsubaddv2df4): Ditto.
7194         (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
7195         instructions for intrinsics.
7196         (fma4i_fmsub<mode>4): Ditto.
7197         (fma4i_fnmadd<mode>4): Ditto.
7198         (fma4i_fnmsub<mode>4): Ditto.
7199         (fma4i_vmfmadd<mode>4): Ditto.
7200         (fma4i_vmfmsub<mode>4): Ditto.
7201         (fma4i_vmfnmadd<mode>4): Ditto.
7202         (fma4i_vmfnmsub<mode>4): Ditto.
7203         (fma4i_fmadd<mode>4256): Ditto.
7204         (fma4i_fmsub<mode>4256): Ditto.
7205         (fma4i_fnmadd<mode>4256): Ditto.
7206         (fma4i_fnmsub<mode>4256): Ditto.
7207         (fma4i_fmaddsubv8sf4): Ditto.
7208         (fma4i_fmaddsubv4sf4): Ditto.
7209         (fma4i_fmaddsubv4df4): Ditto.
7210         (fma4i_fmaddsubv2df4): Ditto.
7211         (fma4i_fmsubaddv8sf4): Ditto.
7212         (fma4i_fmsubaddv4sf4): Ditto.
7213         (fma4i_fmsubaddv4df4): Ditto.
7214         (fma4i_fmsubaddv2df4): Ditto.
7215
7216         * doc/invoke.texi (-mfma4): Add documentation.
7217         * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
7218
7219 2009-09-29  Richard Henderson  <rth@redhat.com>
7220
7221         * tree-eh.c (unsplit_eh): Do not unsplit if there's already
7222         an edge to the new destination block.
7223
7224 2009-09-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7225
7226         PR target/41393
7227         * pa.c (hppa_profile_hook): Use
7228         make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
7229
7230 2009-09-29  Steve Ellcey  <sje@cup.hp.com>
7231             Alexander Monakov  <amonakov@ispras.ru>
7232
7233         PR target/41365
7234         * config/ia64/predicates.md (not_postinc_destination_operand): New.
7235         (not_postinc_memory_operand): New.
7236         (not_postinc_move_operand): New.
7237         * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
7238         (*cmovsi_internal): Ditto.
7239
7240 2009-09-29  Pat Haugen  <pthaugen@us.ibm.com>
7241
7242         * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
7243         restrict issue_rate in first pass when scheduling for register
7244         pressure.
7245
7246 2009-09-29  Basile Starynkevitch  <basile@starynkevitch.net>
7247             Rafael Avila de Espindola  <espindola@google.com>
7248
7249         * gengtype.c (plugin_output): New.
7250         (get_output_file_with_visibility): Return plugin_output for plugins.
7251         (main): Parse and use the -P option.
7252         * gty.texi: Update the command line format.
7253
7254 2009-09-29  Jakub Jelinek  <jakub@redhat.com>
7255
7256         PR debug/41438
7257         * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
7258         functions.
7259         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
7260         out if !const_ok_for_output.
7261
7262         PR debug/41474
7263         * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
7264         case VAR_LOCATION>: Remove gcc_unreachable ().
7265
7266 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
7267
7268         * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
7269         (x86_64-*-*): Ditto.
7270         * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
7271         back to smmintrin.h.
7272         * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
7273         * config/i386/x86intrin.h: Remove SSE5.
7274         * config/i386/mmintrin-common.h: Delete file.
7275         * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
7276
7277 2009-09-29  Richard Guenther  <rguenther@suse.de>
7278
7279         * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
7280         resulting from stack temporaries on STRICT_ALIGNMENT targets.
7281
7282 2009-09-29  Nick Clifton  <nickc@redhat.com>
7283
7284         * function.c (current_function_name): If there is no current
7285         function just return "<none>".
7286
7287 2009-09-28  Sriraman Tallam  <tmsriram@google.com>
7288
7289         * tree-pass.h (register_pass_info): New structure.
7290         (pass_positioning_ops): Move enum from gcc-plugin.h.
7291         (register_pass): New function.
7292         * gcc-plugin.h (plugin_pass): Delete structure.
7293         (pass_positioning_ops): Delete enum.
7294         * plugin.c (regsiter_pass): Delete function.
7295         (position_pass): Delete function.
7296         (added_pass_nodes): Delete variable.
7297         (prev_added_pass_nodes): Delete variable.
7298         (pass_list_node): Delete structure.
7299         * passes.c (make_pass_instance): New function.
7300         (next_pass_1): Change to call make_pass_instance.
7301         (pass_list_node): Move structure from gcc-plugin.h.
7302         (added_pass_nodes): Move variable from plugin.c.
7303         (prev_added_pass_nodes): Move variable from plugin.c.
7304         (position_pass): New function.
7305         (register_pass): New function.
7306
7307 2009-09-28  Easwaran Raman  <eraman@google.com>
7308
7309         * ifcvt.c (noce_try_abs): Recognize pattern and call
7310         expand_one_cmpl_abs_nojump.
7311         * optabs.c (expand_one_cmpl_abs_nojump): New function.
7312         * optabs.h (expand_one_cmpl_abs_nojump): Declare.
7313
7314 2009-09-28  Ian Lance Taylor  <iant@google.com>
7315
7316         PR middle-end/40500
7317         * c-opts.c (c_common_handle_option): Don't set
7318         warn_jump_misses_init for -Wall.
7319         * doc/invoke.texi (Warning Options): Update documentation.
7320
7321 2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7322
7323         * Makefile.in ($(out_object_file)): Depend on
7324         gt-$(basename $(notdir $(out_file))).h.
7325
7326 2009-09-28  Richard Henderson  <rth@redhat.com>
7327
7328         * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
7329         * except.c (gen_eh_region): Set it.
7330         (duplicate_eh_regions_1): Copy it.
7331         * tree-eh.c (lower_resx): Use it to determine which function
7332         to call to resume.
7333
7334         * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
7335         * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
7336         * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
7337         * tree.c (build_common_builtin_nodes): Remove parameter.  Build
7338         BUILT_IN_CXA_END_CLEANUP if necessary.
7339
7340         * c-common.c (c_define_builtins): Update call to
7341         build_common_builtin_nodes.
7342
7343 2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7344
7345         * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
7346
7347 2009-09-28  Michael Matz  <matz@suse.de>
7348
7349         * builtins.c (interclass_mathfn_icode): New helper.
7350         (expand_builtin_interclass_mathfn): Use it here, and split folding
7351         into ...
7352         (fold_builtin_interclass_mathfn): ... this new folder.
7353         (build_call_nofold_loc): New static helper.
7354         (build_call_nofold): New wrapper macro for above.
7355         (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
7356         (expand_builtin_pow): Ditto.
7357         (expand_builtin_memset_args): Ditto.
7358         (expand_builtin_printf): Ditto.
7359         (expand_builtin_fprintf): Ditto.
7360         (expand_builtin_sprintf): Ditto.
7361         (expand_builtin_memory_chk): Ditto.
7362         (expand_builtin_mempcpy_args): Ditto and don't call folders.
7363         (expand_builtin_stpcpy): Ditto.
7364         (expand_builtin_strcmp): Ditto.
7365         (expand_builtin_strncmp): Ditto.
7366         (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
7367         (expand_builtin_strcpy_args): Don't call folders.
7368         (expand_builtin_memcmp): Ditto.
7369         (expand_builtin_strncpy): Ditto, and use target.
7370         (expand_builtin_memcpy): Ditto.
7371         (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
7372         expand_builtin_strpbrk, expand_builtin_memmove,
7373         expand_builtin_memmove_args, expand_builtin_bcopy,
7374         expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
7375         expand_builtin_strspn, expand_builtin_strcspn,
7376         expand_builtin_fputs): Remove these.
7377         (expand_builtin): Don't call the above, change calls to other
7378         expanders that changed prototype.
7379         (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
7380         (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
7381         fold_builtin_interclass_mathfn.
7382         (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
7383         (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
7384
7385         * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
7386         * passes.c (init_optimization_passes): Move pass_fold_builtins
7387         after last phiopt pass.
7388         * tree-inline.c (fold_marked_statements): When folding builtins
7389         iterate over all instruction potentially generated.
7390         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
7391         earlier.
7392         (fold_gimple_call): Use it to always fold calls (into potentially
7393         multiple instructions).
7394         * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
7395         calls into zero at this time.
7396         * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
7397         statements generated by builtin folding.
7398
7399 2009-09-28  Nick Clifton  <nickc@redhat.com>
7400
7401         * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
7402
7403 2009-09-28  Duncan Sands  <baldrick@free.fr>
7404
7405         * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
7406         * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
7407         (register_callback): Dispatch it.
7408         (invoke_plugin_callbacks): Incorporate in sanity check.
7409         * ggc.h (ggc_register_cache_tab): Add declaration.
7410         * ggc-common.c (ggc_register_root_tab): Simplify.
7411         (const_ggc_cache_tab_t): New typedef.
7412         (extra_cache_vec): New vector of dynamically added cache tables.
7413         (ggc_register_cache_tab): New function.
7414         (ggc_scan_cache_tab): New function.
7415         (ggc_mark_roots): Simplify dynamic roots.  Handle dynamic caches.
7416         * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
7417
7418 2009-09-27  Richard Henderson  <rth@redhat.com>
7419
7420         * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
7421         which we remove __builtin_stack_restore.
7422
7423 2009-09-27  Bernd Schmidt  <bernd.schmidt@analog.com>
7424
7425         * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
7426         to test for GRD_INVARIANT.
7427         (simple_rhs_p): Anything that's function_invariant_p is fine.
7428
7429 2009-09-27  Rafael Avila de Espindola  <espindola@google.com>
7430
7431         * gengtype.c (main): Use plunge_files instead of plugin_output.
7432
7433 2009-09-27  Basile Starynkevitch  <basile@starynkevitch.net>
7434             Rafael Avila de Espindola  <espindola@google.com>
7435
7436         * gengtype.c (write_root, write_roots): Add a emit_pch argument.
7437         Don't print pch related info if it is false.
7438         (main): Don't print pch info in plugin mode.
7439
7440 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
7441
7442         * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
7443         with dw_val_class_const_double.
7444         (struct dw_val_struct): Replace val_long_long with val_double and
7445         adjust for above change.
7446         (output_loc_operands): Likewise.
7447         (add_AT_long_long): Rename into...
7448         (add_AT_double): ...this.
7449         (print_die): Replace dw_val_class_long_long with
7450         dw_val_class_const_double and adjust.
7451         (attr_checksum): Likewise.
7452         (same_dw_val_p): Likewise.
7453         (size_of_die): Likewise.
7454         (value_format): Likewise.
7455         (output_die): Likewise.
7456         (loc_descriptor) <CONST_DOUBLE>: Likewise.
7457         (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
7458         instead of add_AT_long_long.
7459         (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
7460         value with the precision of its type.
7461
7462 2009-09-27  Andreas Schwab  <schwab@linux-m68k.org>
7463
7464         PR c/41476
7465         * c-typeck.c (build_conditional_expr): Use the readonly and
7466         volatile flags of the operand types, not of the operands itself.
7467
7468 2009-09-27  Peter O'Gorman  <pogma@thewrittenword.com>
7469
7470         * collect2.c (main): Look for -brtl before adding libraries.
7471
7472 2009-09-27  Jonathan Gray  <jsg@openbsd.org>
7473
7474         * config.gcc: Update OpenBSD targets.
7475         * config/openbsd-stdint.h: New file.
7476         * config/openbsd-libpthread.h: New file.
7477         * config/openbsd.h: Update and break out LIB_SPEC definition.
7478         * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
7479         * config/i386/openbsdelf.h: Correct types.
7480         * config/m68k/openbsd.h: Likewise.
7481         * config/mips/openbsd.h: Likewise.
7482         * config/vax/openbsd.h: Likewise.
7483
7484 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
7485
7486         * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
7487         (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
7488         * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
7489         of the length and zero.
7490
7491 2009-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7492
7493         * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
7494         (FLAGS_H): Add options.h $(REAL_H).
7495         (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
7496         (TREE_VECTORIZER_H): New.
7497         (EBITMAP_H): Renamed from EBIMAP_H.
7498         (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
7499         (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
7500         (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
7501         (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
7502         (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
7503         (graphite-clast-to-gimple.o, graphite-dependences.o)
7504         (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
7505         (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
7506         (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
7507         (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
7508         (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
7509         (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
7510         (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
7511         (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
7512         (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
7513         updated and fixed as per above changes and per
7514         check_makefile_deps.sh output.
7515
7516         PR bootstrap/40928
7517         * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
7518         * configure: Regenerate.
7519
7520 2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7521
7522         * doc/install.texi: Update minimum MPC version to 0.7.
7523
7524 2009-09-26  Gerald Pfeifer  <gerald@pfeifer.com>
7525
7526         * doc/install.texi (Binaries): Remove reference to the binary
7527         distribution CD-ROM from the FSF.
7528
7529 2009-09-26  Michael Matz  <matz@suse.de>
7530
7531         PR lto/40758
7532         PR middle-end/41470
7533         * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
7534         that are mentioned in the body.
7535
7536 2009-09-26  Michael Matz  <matz@suse.de>
7537
7538         PR tree-optimization/41454
7539         * tree-ssa-dom (stmts_to_rescan): Remove variable.
7540         (tree_ssa_dominator_optimize): Don't allocate and free it.
7541         (dom_opt_leave_block): Don't iterate over it.
7542         (eliminate_redundant_computations): Don't return a value.
7543         (cprop_operand, cprop_into_stmt): Ditto.
7544         (optimize_stmt): Don't defer updating stmts.
7545
7546 2009-09-25  Dodji Seketeli  <dodji@redhat.com>
7547
7548         * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
7549         generic_parameter_die, template_parameter_pack_die,
7550         gen_formal_parameter_die, gen_subprogram_die): Adjust after
7551         renaming DW_TAG_formal_parameter_pack and
7552         DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
7553         and DW_TAG_GNU_template_parameter_pack.
7554
7555 2009-09-25  Anatoly Sokolov  <aesok@post.ru>
7556
7557         * config/v850/v850.h (FUNCTION_VALUE): Remove.
7558         * config/v850/v850.c (v850_function_value): New function.
7559         (TARGET_FUNCTION_VALUE): Define.
7560
7561 2009-09-25  Jakub Jelinek  <jakub@redhat.com>
7562
7563         * tree-vect-stmts.c (vectorizable_call): Call
7564         mark_symbols_for_renaming after vect_finish_stmt_generation.
7565
7566         * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
7567         to loc_descriptor_from_tree.
7568         (add_location_or_const_value_attribute): Pass 0 instead of 2
7569         for decl_by_reference_p decls.
7570
7571 2009-09-25  Richard Guenther  <rguenther@suse.de>
7572
7573         PR middle-end/41463
7574         * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
7575         arrays again.
7576
7577 2009-09-25  Ben Elliston  <bje@au.ibm.com>
7578
7579         * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
7580         after `power7'.
7581
7582 2009-09-25  Alan Modra  <amodra@bigpond.net.au>
7583
7584         * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
7585         form of instruction.
7586
7587 2009-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7588
7589         PR middle-end/41435
7590         * fold-const.c (const_binop): Handle complex int division.
7591         * tree-complex.c (expand_complex_div_straight,
7592         expand_complex_div_wide): Update comments.
7593
7594 2009-09-24  DJ Delorie  <dj@redhat.com>
7595
7596         PR target/41456
7597         * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
7598         (reg_class): Likewise.
7599         (REG_CLASS_NAMES): Likewise.
7600         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
7601         (m32c_override_options): Disable -fivopts for M32C.
7602
7603 2009-09-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
7604
7605         * config/rs6000/predicates.md (indexed_or_indirect_operand):
7606         Delete VSX load/store with update support.
7607         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
7608         * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
7609         (vsx_movti): Ditto.
7610         (VSX_U): Delete.
7611         (VSbit): Ditto.
7612         (VStype_load_update): Ditto.
7613         (VStype_store_update): Ditto.
7614         (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
7615         (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
7616
7617         * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
7618         load/store with update builtins.
7619
7620 2009-09-24  Kai Tietz  <kai.tietz@onevision.com>
7621
7622         * libgcc2.c (L_trampoline): Prototype for getpagesize
7623         and mprotect in WINNT case.
7624
7625 2009-09-24  Anatoly Sokolov  <aesok@post.ru>
7626
7627         * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
7628         * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
7629         * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
7630         'outgoing' argument.
7631         (TARGET_FUNCTION_VALUE): Define.
7632
7633 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
7634
7635         * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
7636
7637 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
7638
7639         PR bootstrap/41405
7640         * common.opt: Initialize dwarf_strict to -1.
7641         * toplev.c (process_options): Catch unset dwarf_strict
7642         and set to 0 for all targets not overriding.
7643         * config/darwin.c (darwin_override_options): Catch unset
7644         dwarf_strict and override to 1.
7645
7646 2009-09-24  Jeff Law  <law@redhat.com>
7647
7648         * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
7649
7650 2009-09-24  Richard Guenther  <rguenther@suse.de>
7651
7652         PR tree-optimization/36143
7653         PR tree-optimization/38747
7654         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
7655         create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
7656
7657 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
7658
7659         PR bootstrap/41457
7660         * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
7661         return false instead of gcc_unreachable ().  For CONST return the
7662         value returned by recursive call instead of always returning true.
7663         (tree_add_const_value_attribute): Return the value returned by
7664         add_const_value_attribute instead of always returning true if rtl
7665         is non-NULL.
7666
7667 2009-09-23  Justin Seyster  <jrseys@gmail.com>
7668
7669         * Makefile.in (PLUGIN_HEADERS): Include real.h.
7670
7671 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
7672
7673         * cgraphunit.c (cgraph_lower_function): Revert last change.
7674         * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
7675         instead of DECL_NO_STATIC_CHAIN.
7676         * tree-cfg.c (verify_gimple_call): Likewise.
7677         * tree-nested.c (get_chain_decl, get_chain_field,
7678         convert_tramp_reference_op, convert_gimple_call): Likewise.
7679         (convert_all_function_calls): Likewise.  Always set or clear
7680         DECL_STATIC_CHAIN initially, for !n->outer clear it.
7681         (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
7682         * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
7683         if nested.
7684         * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
7685         DECL_NO_STATIC_CHAIN.
7686         * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
7687         instead of DECL_NO_STATIC_CHAIN.
7688         (ix86_function_regparm, find_drap_reg): Likewise.  Don't test
7689         decl_function_context.
7690         * varasm.c (initializer_constant_valid_p): Likewise.
7691         * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
7692         (DECL_STATIC_CHAIN): ... this.
7693         * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
7694         instead of DECL_NO_STATIC_CHAIN.
7695
7696 2009-09-23  Basile Starynkevitch  <basile@starynkevitch.net>
7697             Rafael Avila de Espindola  <espindola@google.com>
7698
7699         * gengtype.c (nb_plugin_files): Make it unsigned to match
7700         num_gt_files. Adjust other variables to avoid warnings.
7701         (main): Allocate an all zero lang_bitmap before each plugin file name
7702         to match regular file names.
7703
7704 2009-09-23  Richard Henderson  <rth@redhat.com>
7705
7706         * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
7707         (TARGET_STATIC_CHAIN): Mention that this hook must be used for
7708         static chain passed in memory.
7709         * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
7710         * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
7711         STATIC_CHAIN_INCOMING.  Issue a sorry if there's no
7712         STATIC_CHAIN_REGNUM defined.
7713
7714         * config/picochip/picochip-protos.h: s/class/klass/.
7715         * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
7716         (picochip_static_chain): New.
7717         * config/picochip/picochip.h (STATIC_CHAIN): Remove.
7718         (STATIC_CHAIN_INCOMING): Remove.
7719
7720         * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
7721         (xtensa_static_chain): New.
7722         * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
7723         (STATIC_CHAIN_INCOMING): Remove.
7724
7725 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
7726
7727         * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
7728         * config/pa/pa-protos.h (function_value): Remove.
7729         * config/pa/pa.c (pa_function_value): Rename from function_value.
7730         Make static, add 'outgoing' argument.
7731         (TARGET_FUNCTION_VALUE): Define.
7732
7733 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
7734
7735         * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
7736         instead of cfun->machine->is_leaf.
7737         * config/avr/avr.h (machine_function): Remove is_leaf field.
7738
7739 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
7740
7741         PR debug/41439
7742         * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
7743         DW_OP_piece after DW_OP_stack_value, adjust size calculations
7744         for it, when DW_OP_stack_value and DW_OP_implicit_value has
7745         the same size, prefer DW_OP_stack_value.
7746         (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
7747         loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
7748
7749 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
7750
7751         PR debug/41353
7752         * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
7753
7754 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
7755
7756         PR debug/41248
7757         * cfgexpand.c (convert_debug_memory_address): New.
7758         (expand_debug_expr): Convert base address and offset to the same
7759         mode.  Use it to convert addresses to other modes.  Accept
7760         ptr_mode addresses.
7761
7762 2009-09-23  Dodji Seketeli <dodji@redhat.com>
7763
7764         PR debug/41065
7765         * function.h (types_used_by_vars_hash): Declare new hash table.
7766         (types_used_by_vars_eq, types_used_by_var_decl_insert): Declare
7767         equality and hash function for the hash table.
7768         (types_used_by_cur_var_decl): Declare a new global chained list.
7769         (types_used_by_var_decl_insert): Declare new function.
7770         * function.c (types_used_by_vars_hash): Define the hashtable ...
7771         (types_used_by_vars_eq, types_used_by_vars_do_hash): ... as well as
7772         its equality and hash functions.
7773         (hash_types_used_by_vars_entry): New hash helper.
7774         (types_used_by_cur_var_decl): Define the global chained list.
7775         (used_types_insert): Update the list of types used by the global
7776         variable being parsed.
7777         (types_used_by_var_decl_insert): Define new function.
7778         * c-common.h (record_types_used_by_current_var_decl): Declare ...
7779         * c-common.c (record_types_used_by_current_var_decl): ... new
7780         function.
7781         * c-decl.c (finish_decl): Record the types used by the global
7782         variable declaration we've just parsed.
7783         * dwarf2out.c (premark_used_types): Insert a new line between
7784         comment and function.
7785         (premark_used_types_helper): Fix comment.
7786         (premark_types_used_by_global_vars_helper,
7787         premark_types_used_by_global_vars): New functions.
7788         (prune_unused_types): Do not prune types used by global variables.
7789
7790 2009-09-23  Richard Guenther  <rguenther@suse.de>
7791
7792         * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
7793         produced for bigendian targets with promoted subregs.
7794
7795 2009-09-23  Richard Guenther  <rguenther@suse.de>
7796
7797         * value-prof.c (gimple_ic): Purge old EH edges only after building
7798         the new ones.
7799
7800 2009-09-23  Nick Clifton  <nickc@redhat.com>
7801
7802         * config/arc/arc.c (arc_trampoline_init): Fix typo.
7803
7804 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
7805
7806         PR bootstrap/41405
7807         * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
7808
7809         PR bootstrap/41436
7810         * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
7811         on non-nested functions.
7812
7813 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
7814             Jan Hubicka  <jh@suse.cz>
7815
7816         * dwarf2out.c (loc_list_plus_const): Only define if
7817         DWARF2_DEBUGGING_INFO.
7818         (address_of_int_loc_descriptor): Likewise.
7819
7820         PR debug/41411
7821         * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
7822
7823 2009-09-23  Uros Bizjak  <ubizjak@gmail.com>
7824
7825         PR c/39779
7826         * c-typeck.c (build_binary_op) <short_shift>: Check that integer
7827         constant is more than zero.
7828
7829 2009-09-23  Alan Modra  <amodra@bigpond.net.au>
7830
7831         PR target/40473
7832         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
7833         call final to emit non-scheduled prologue, instead insert at entry.
7834
7835 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
7836             Joseph S. Myers  <joseph@codesourcery.com>
7837
7838         * doc/install.texi (*-*-freebsd*): Add proper format codes.
7839
7840 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
7841             Rafael Avila de Espindola  <espindola@google.com>
7842
7843         * gengtype.c (is_file_equal): New function.
7844         (close_output_files): Use is_file_equal. Free of->buf.
7845
7846 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
7847             Rafael Avila de Espindola  <espindola@google.com>
7848
7849         * gengtype.c (write_types, write_local): Add the output_header
7850         argument. Update all callers.
7851
7852 2009-09-22  Dodji Seketeli  <dodji@redhat.com>
7853
7854         * dwarf2out.c (template_parameter_pack_die,
7855         gen_formal_parameter_pack_die ): New functions.
7856         (make_ith_pack_parameter_name): Remove this function.
7857         (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
7858         DW_TAG_formal_parameter_pack.
7859         (gen_generic_params_dies): Represent each template parameter pack
7860         by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
7861         represented by usual DW_TAG_template_*_parameter DIEs that are
7862         children of the DW_TAG_template_parameter_pack element DIE.
7863         (generic_parameter_die): This doesn't deal with parameter pack
7864         names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
7865         of parameter pack DIEs.
7866         (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
7867         in certain cases, e.g. for pack elements.
7868         (gen_formal_types_die, gen_decl_die): Adjust usage of
7869         gen_formal_parameter_die.
7870         (gen_subprogram_die): Represent each function parameter pack by a
7871         DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
7872         represented by usual DW_TAG_formal_parameter DIEs that are children
7873         of the DW_TAG_formal_parameter_pack DIE. Remove references to
7874         ____builtin_va_alist decls as no part of the compiler uses those
7875         anymore.
7876         * langhooks.h (struct lang_hooks_for_decls): Add
7877         function_parm_expanded_from_pack_p, get_generic_function_decl
7878         and function_parameter_pack_p hooks.  Fix comment for
7879         get_innermost_generic_parms hook.
7880         * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
7881         LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
7882         macros and use them to initialize lang_hook.
7883
7884 2009-09-22  Richard Henderson  <rth@redhat.com>
7885
7886         * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
7887         (TRAMPOLINE_ADJUST_ADDRESS): Poison.
7888         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
7889         on TRAMPOLINE_TEMPLATE.
7890         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
7891         TRAMPOLINE_ADJUST_ADDRESS.
7892         * targhooks.c (default_asm_trampoline_template): Remove.
7893         (default_trampoline_adjust_address): Remove.
7894         (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
7895         * targhooks.h: Update decls.
7896
7897 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
7898
7899         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
7900         * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
7901         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
7902
7903 2009-09-22  Alexandre Oliva  <aoliva@redhat.com>
7904
7905         PR debug/41295
7906         * reload1.c (reload): Reset debug insns with pseudos without
7907         equivalences.
7908
7909 2009-09-22  Janis Johnson  <janis187@us.ibm.com>
7910
7911         * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
7912         unconditional true for decimal float modes.
7913         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
7914         * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
7915
7916 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
7917
7918         * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
7919         Enable a new case for __FreeBSD__ >= 7.
7920         * crtstuff.c:  Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
7921         * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
7922         * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
7923         and USE_LD_AS_NEEDED.
7924
7925         * doc/install.texi (*-*-freebsd*): Update target information.
7926
7927 2009-09-22  Richard Guenther  <rguenther@suse.de>
7928
7929         PR middle-end/41395
7930         * tree-dfa.c (get_ref_base_and_extent): Handle trailing
7931         arrays really properly.
7932
7933 2009-09-22  Richard Henderson  <rth@redhat.com>
7934
7935         PR target/41246
7936         * target.h (struct gcc_target): Add asm_out.trampoline_template,
7937         calls.static_chain, calls.trampoline_init,
7938         calls.trampoline_adjust_address.
7939         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7940         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
7941         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
7942         * builtins.c (expand_builtin_setjmp_receiver): Use
7943         targetm.calls.static_chain; only clobber registers.
7944         (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
7945         set up memory attributes properly for the trampoline block.
7946         (expand_builtin_adjust_trampoline): Use
7947         targetm.calls.trampoline_adjust_address.
7948         * calls.c (prepare_call_address): Add fndecl argument.  Use
7949         targetm.calls.static_chain.
7950         * df-scan.c (df_need_static_chain_reg): Remove.
7951         (df_get_entry_block_def_set): Use targetm.calls.static_chain;
7952         consolodate static chain handling.
7953         * doc/tm.texi: Document new hooks.
7954         * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
7955         (init_emit_regs): Don't initialize them.
7956         * expr.h (prepare_call_address): Update decl.
7957         * final.c (profile_function): Use targetm.calls.static_chain.
7958         * function.c (expand_function_start): Likewise.
7959         * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
7960         * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
7961         only clobber registers.
7962         * targhooks.c (default_static_chain): New.
7963         (default_asm_trampoline_template, default_trampoline_init): New.
7964         (default_trampoline_adjust_address): New.
7965         * targhooks.h: Declare them.
7966         * varasm.c (assemble_trampoline_template): Use
7967         targetm.asm_out.trampoline_template.  Make the memory block const
7968         and set its size.
7969
7970         * config/alpha/alpha.c (alpha_trampoline_init): Rename from
7971         alpha_initialize_trampoline.  Make static.  Merge VMS parameter
7972         differences into the TARGET_ABI_OPEN_VMS code block.
7973         (TARGET_TRAMPOLINE_INIT): New.
7974         * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
7975         (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
7976         * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
7977         (INITIALIZE_TRAMPOLINE): Remove.
7978
7979         * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
7980         (TRAMPOLINE_TEMPLATE): Merge with ...
7981         (INITIALIZE_TRAMPOLINE): ... this and move ...
7982         * config/arc/arc.c (arc_trampoline_init): ... here.
7983         (TARGET_TRAMPOLINE_INIT): New.
7984
7985         * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7986         (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
7987         (arm_asm_trampoline_template): New.
7988         (arm_trampoline_init, arm_trampoline_adjust_address): New.
7989         * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
7990         THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
7991         code to arm_asm_trampoline_template.
7992         (TRAMPOLINE_ADJUST_ADDRESS): Move code to
7993         arm_trampoline_adjust_address.
7994         (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
7995         adjust for target hook parameters.
7996
7997         * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
7998         Remove.
7999
8000         * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
8001         * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
8002         (bfin_trampoline_init): Rename from initialize_trampoline;
8003         make static; update for target hook parameters.
8004         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
8005         * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
8006         bfin_asm_trampoline_template.
8007         (INITIALIZE_TRAMPOLINE): Remove.
8008
8009         * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
8010         TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
8011         cris_trampoline_init): New.
8012         * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
8013         cris_asm_trampoline_template.
8014         (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
8015         adjust for target hook parameters.
8016
8017         * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
8018
8019         * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
8020         TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
8021         fr30_trampoline_init): New.
8022         * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
8023         fr30_asm_trampoline_template.
8024         (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
8025         adjust for target hook parameters.
8026
8027         * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
8028         (frv_trampoline_init): Rename from frv_initialize_trampoline;
8029         make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
8030         * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
8031         * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
8032
8033         * config/h8300/h8300.c (h8300_trampoline_init): New.
8034         (TARGET_TRAMPOLINE_INIT): New.
8035         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
8036         to h8300_trampoline_init and adjust for hook parameters.
8037
8038         * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
8039         * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
8040         (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
8041         make static; adjust for hook parameters.
8042         * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
8043
8044         * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8045         (TARGET_TRAMPOLINE_INIT): New.
8046         (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
8047         * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
8048         iq2000_asm_trampoline_template.
8049         (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
8050         (TRAMPOLINE_CODE_SIZE): New.
8051         (TRAMPOLINE_SIZE): Use it.
8052         (TRAMPOLINE_ALIGNMENT): Follow Pmode.
8053
8054         * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
8055         * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
8056         (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
8057         adjust for hook parameters.
8058         * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
8059
8060         * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
8061         (m32r_trampoline_init): New.
8062         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
8063         m32r_trampoline_init.
8064
8065         * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
8066         (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
8067         make static; update for hook parameters.
8068         * config/m68hc11/m68hc11-protos.h: Update.
8069         * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
8070
8071         * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8072         (TARGET_TRAMPOLINE_INIT): New.
8073         (mcore_function_value): Fix typo.
8074         (mcore_asm_trampoline_template, mcore_trampoline_init): New.
8075         * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
8076         to mcore_asm_trampoline_template.
8077         (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
8078
8079         * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
8080         * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
8081         (mep_trampoline_init): Rename from mep_init_trampoline; make static;
8082         update for hook parameters.
8083         * config/mep/mep-protos.h (mep_init_trampoline): Remove.
8084
8085         * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
8086         mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
8087         mips_trampoline_init): New.
8088         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
8089         mips_asm_trampoline_template.
8090         (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
8091         update for hook parameters.
8092
8093         * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8094         (TARGET_TRAMPOLINE_INIT): New.
8095         (mmix_trampoline_size): Remove.
8096         (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
8097         make static.  Remove out-of-date tetra vs octa comment.
8098         (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
8099         make static; update for hook parameters.
8100         * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
8101         (INITIALIZE_TRAMPOLINE): Remove.
8102         (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
8103         (TRAMPOLINE_ALIGNMENT): New.
8104         * gcc/config/mmix/mmix-protos.h: Update.
8105
8106         * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
8107         mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
8108         mn10300_trampoline_init): New.
8109         * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
8110         mn10300_asm_trampoline_template.
8111         (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
8112
8113         * config/moxie/moxie.c (moxie_static_chain,
8114         moxie_asm_trampoline_template, moxie_trampoline_init,
8115         TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
8116         TARGET_TRAMPOLINE_INIT): New.
8117         * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
8118         moxie_trampoline_init.
8119         (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
8120         (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
8121
8122         * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
8123         pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
8124         pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
8125         pa_trampoline_adjust_address): New.
8126         * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
8127         pa_asm_trampoline_template.
8128         (TRAMPOLINE_ALIGNMENT): New.
8129         (TRAMPOLINE_CODE_SIZE): Move to pa.c.
8130         (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
8131         adjust for hook parameters.
8132         (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
8133
8134         * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
8135         (TARGET_TRAMPOLINE_INIT): New.
8136         * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
8137         (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
8138
8139         * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
8140
8141         * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
8142         * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
8143         (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
8144         make static; adjust parameters for the hook.
8145         * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
8146
8147         * config/s390/s390.c (s390_asm_trampoline_template): Rename from
8148         s390_trampoline_template; make static.
8149         (s390_trampoline_init): Rename from s390_initialize_trampoline;
8150         make static; adjust for target hook.
8151         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
8152         * config/s390/s390-protos.h: Remove trampoline decls.
8153         * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
8154         (TRAMPOLINE_TEMPLATE): Remove.
8155         (TRAMPOLINE_ALIGNMENT): New.
8156
8157         * config/score/score-protos.h (score_initialize_trampoline): Remove.
8158         * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8159         (TARGET_TRAMPOLINE_INIT): New.
8160         (score_asm_trampoline_template): New.
8161         (score_trampoline_init): Rename from score_initialize_trampoline;
8162         make static; adjust for hook parameters.
8163         * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
8164         score[37]_asm_trampoline_template.
8165         (INITIALIZE_TRAMPOLINE): Remove.
8166         * config/score/score3.c (score3_asm_trampoline_template): New.
8167         (score3_trampoline_init): Rename from score3_initialize_trampoline;
8168         adjust for target hook.
8169         * config/score/score7.c (score7_asm_trampoline_template): New.
8170         (score7_trampoline_init): Rename from score7_initialize_trampoline;
8171         adjust for target hook.
8172         * config/score/score3.h, config/score/score7.h: Update.
8173
8174         * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
8175         * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
8176         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
8177         (sh_trampoline_init): Rename from sh_initialize_trampoline;
8178         make static; adjust for target hook parameters.
8179         (sh_trampoline_adjust_address): New.
8180         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
8181         (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
8182
8183         * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
8184         (sparc32_initialize_trampoline): Rename from
8185         sparc_initialize_trampoline; make static; replace tramp parameter
8186         with m_tramp and update memory accesses.
8187         (sparc64_initialize_trampoline): Similarly.
8188         (sparc_trampoline_init): New.
8189         * config/sparc/sparc-protos.h: Remove trampoline decls.
8190         * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
8191         * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
8192
8193         * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
8194         (array_to_constant): Make ARR parameter const.
8195         (spu_trampoline_init): Rename from spu_initialize_trampoline;
8196         make static; update for hook parameters.
8197         * config/spu/spu-protos.h: Update decls.
8198         * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
8199
8200         * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
8201         from xstormy16_initialize_trampoline; make static; update for
8202         hook parameters.
8203         (TARGET_TRAMPOLINE_INIT): New.
8204         * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
8205
8206         * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8207         (TARGET_TRAMPOLINE_INIT): New.
8208         (v850_can_eliminate): Make static.
8209         (v850_asm_trampoline_template, v850_trampoline_init): New.
8210         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
8211         v850_asm_trampoline_template.
8212         (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
8213         and adjust for target hook parameters.
8214
8215         * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8216         (TARGET_TRAMPOLINE_INIT): New.
8217         (vax_asm_trampoline_template, vax_trampoline_init): New.
8218         * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
8219         vax_asm_trampoline_template.
8220         (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
8221
8222         * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8223         (TARGET_TRAMPOLINE_INIT): New.
8224         (xtensa_asm_trampoline_template): Rename from
8225         xtensa_trampoline_template; make static.
8226         (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
8227         make static; update for hook parameters.
8228         * config/xtensa/xtensa-protos.h: Remove trampoline decls.
8229         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
8230         (INITIALIZE_TRAMPOLINE): Remove.
8231
8232         * config/i386/i386.c (ix86_function_regparm): Do not issue an
8233         error for nested functions with regparm=3.
8234         (ix86_compute_frame_layout): Adjust frame pointer offset for
8235         ix86_static_chain_on_stack.
8236         (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
8237         (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
8238         don't reset to UNITS_PER_WORD.
8239         (ix86_emit_leave): Adjust ix86_cfa_state.
8240         (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
8241         (ix86_static_chain): New.
8242         (ix86_trampoline_init): Rename from x86_initialize_trampoline;
8243         make static; update for target hook parameters; use ix86_static_chain.
8244         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
8245         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
8246         (INITIALIZE_TRAMPOLINE): Remove.
8247         (TRAMPOLINE_SIZE): Use 24 for 64-bit.
8248         (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
8249         to the end.  Add static_chain_on_stack.
8250         (ix86_static_chain_on_stack): New.
8251
8252         * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
8253         (m68k_output_mi_thunk): Don't use static_chain_rtx.
8254         (m68k_trampoline_init): New.
8255         * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
8256         m68k_trampoline_init and adjust for hook parameters.
8257         * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
8258         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
8259
8260 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
8261
8262         * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
8263         for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
8264
8265         * reload1.c (reload): Call wrap_constant when substituting
8266         reg for equiv inside of DEBUG_INSNs.
8267
8268         PR bootstrap/41405
8269         * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
8270         add_call_src_coords_attributes, add_high_low_attributes,
8271         gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
8272         gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
8273         dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
8274         when -gdwarf-2 -gstrict-dwarf.
8275         (loc_list_from_tree): Likewise.  Avoid using DWARF4 additions when
8276         -gdwarf-[23] -gstrict-dwarf.
8277         (address_of_int_loc_descriptor, loc_descriptor,
8278         loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
8279         DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
8280         * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
8281
8282 2009-09-22  Richard Guenther  <rguenther@suse.de>
8283
8284         PR tree-optimization/41428
8285         * tree-ssa-ccp.c (ccp_fold_stmt): New function.
8286         (ccp_finalize): Pass it to substitute_and_fold.
8287
8288 2009-09-22  Richard Guenther  <rguenther@suse.de>
8289
8290         * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
8291         (substitute_and_fold): Adjust prototype.
8292         * tree-vrp.c (vrp_evaluate_conditional): Make static.
8293         (simplify_stmt_using_ranges): Likewise.
8294         (fold_predicate_in): Move here from tree-ssa-propagate.c.
8295         (vrp_fold_stmt): New function.
8296         (vrp_finalize): Pass it to substitute_and_fold.
8297         * tree-flow.h (vrp_evaluate_conditional): Remove.
8298         (simplify_stmt_using_ranges): Likewise.
8299         * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
8300         * tree-ssa-copy.c (fini_copy_prop): Likewise.
8301         * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
8302         member.
8303         (fold_predicate_in): Move to tree-vrp.c.
8304         (substitute_and_fold): Use the callback instead of calling into
8305         tree-vrp.c functions directly.
8306
8307 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
8308
8309         * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
8310         comparison warning on rs6000.
8311
8312         PR middle-end/41429
8313         * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
8314         GIMPLE_EH_MUST_NOT_THROW cleanup.
8315         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
8316
8317 2009-09-22  Jack Howarth  <howarth@bromo.med.uc.edu>
8318
8319         PR middle-end/41260
8320         * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
8321         * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
8322         LIB_SPEC for darwin10 and later since it always uses the unwinder in
8323         libSystem which is derived from the gcc 4.2.1 unwinder.
8324
8325 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
8326
8327         PR middle-end/41357
8328         * varasm.c (default_encode_section_info): Copy TLS model into
8329         sym_ref flags regardless of backend support for TLS, for all
8330         model types except TLS_MODEL_EMULATED.
8331
8332 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
8333
8334         PR bootstrap/41404
8335         * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
8336         we can handle it correctly.
8337
8338 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
8339
8340         * doc/install.texi (os2): Remove section.
8341
8342 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
8343
8344         * doc/standards.texi (Objective-C): Adjust two URLs.
8345
8346 2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>
8347
8348         * tree-tailcall.c (process_assignment): Don't check if a
8349         multiplication or an addition are already present.
8350         (find_tail_calls): Combine multiple additions and multiplications.
8351         (adjust_accumulator_values): Emit accumulators.
8352
8353 2009-09-21  Kai Tietz  <kai.tietz@onevision.com>
8354
8355         * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
8356         xmm register restore.
8357
8358 2009-09-21  Jan Hubicka  <jh@suse.cz>
8359
8360         * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
8361         (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
8362         restore at the end.
8363
8364 2009-09-21  Eric Botcazou  <ebotcazou@adacore.com>
8365
8366         * stor-layout.c (layout_type): Remove obsolete code.
8367
8368 2009-09-20  H.J. Lu  <hongjiu.lu@intel.com>
8369
8370         PR middle-end/41395
8371         * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
8372
8373 2009-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8374
8375         PR middle-end/30789
8376         * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
8377         (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
8378         (fold_builtin_2, do_mpc_arg1): Update accordingly.
8379         * fold-const.c (const_binop): Likewise.
8380         * real.h (do_mpc_arg2): Update prototype.
8381
8382 2009-09-20  Jan Hubicka  <jh@suse.cz>
8383
8384         * dwarf2out.c (add_const_value_attribute): Return true if successful.
8385         (add_location_or_const_value_attribute): Rewrite using
8386         loc_list_from_tree.
8387         (tree_add_const_value_attribute): Return true if successful.
8388         (tree_add_const_value_attribute_for_decl): Likewise.
8389
8390         * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
8391         (loc_descriptor): ... here;
8392         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
8393         (cst_pool_loc_descr): Break out from ...; do not reffer constant
8394         pool items that was not marked for output.
8395         (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
8396         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
8397         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
8398         handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
8399         IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
8400         CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
8401         DW_OP_stack_value to get address of items that are not available
8402         as addresses.
8403         (dw_loc_list): Handle single element lists correctly.
8404
8405 2009-09-20  Kai Tietz  <kai.tietz@onevision.com>
8406             Pascal Obry  <obry@adacore.com>
8407
8408         * unwind-dw2-fde.c (classify_object_over_fdes):
8409         Cast the constant 1 to _Unwind_Ptr.
8410         (add_fdes): Likewise.
8411         (linear_search_fdes): Likewise.
8412
8413 2009-09-20  Eric Botcazou  <ebotcazou@adacore.com>
8414
8415         * stor-layout.c (set_sizetype): Avoid useless type copy.
8416
8417 2009-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
8418
8419         * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
8420         feature check.
8421         (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
8422         * configure, config.in: Regenerate.
8423         * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
8424         DW_EH_PE_absptr.
8425         * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
8426         (ASM_PREFERRED_EH_DATA_FORMAT): Define.  Use MIPS_EH_INDIRECT
8427         for global data if the output could be used in a shared library.
8428         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
8429         to 0 if TARGET_WRITABLE_EH_FRAME.
8430
8431 2009-09-20  Paolo Bonzini <bonzini@gnu.org>
8432
8433         PR rtl-optimization/39886
8434         * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
8435         just when insn is equal to BB_END (bb).
8436
8437 2009-09-19  Adam Nemet  <anemet@caviumnetworks.com>
8438
8439         * config/mips/mips.opt (mrelax-pic-calls): New option.
8440         * config/mips/mips.c (mips_strip_unspec_address): Move it up in
8441         the file.
8442         (mips_unspec_call): Change "unspec_call" expander into this.
8443         (mips_strip_unspec_call): New function.
8444         (mips_got_load): Call mips_unspec_call instead of
8445         gen_unspec_call<mode>.
8446         (mips16_build_call_stub): Fix comment for fp_code.  Adjust call to
8447         MIPS_CALL.
8448         (mips_cfg_in_reorg): New function.
8449         (mips16_lay_out_constants): Use it to decide whether to call
8450         CFG-aware insn splitting.
8451         (r10k_insert_cache_barriers): Move CFG set-up code from here to
8452         mips_reorg.  Move DF set-up code from here ...
8453         (mips_df_reorg): ... to here.  Call r10k_insert_cache_barriers
8454         from here.
8455         (mips_reorg): Call mips_df_reorg instead of
8456         r10k_insert_cache_barriers.  Move CFG set-up code here from
8457         r10k_insert_cache_barriers.
8458         (mips_call_expr_from_insn): New function.
8459         (mips_pic_call_symbol_from_set): Likewise.
8460         (mips_find_pic_call_symbol): Likewise.
8461         (mips_annotate_pic_call_expr): Likewise.
8462         (mips_get_pic_call_symbol): Likewise.
8463         (mips_annotate_pic_calls): Likewise.
8464         (mips_override_options): Disable -mrelax-pic-calls unless PIC
8465         calls are used.
8466         (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
8467         * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
8468         * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
8469         directive.
8470         * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
8471         (unspec_call<mode>): Remove it.
8472         (sibcall_internal, sibcall_value_internal,
8473         sibcall_value_multiple_internal, call_internal, call_split,
8474         call_value_internal, call_value_split,
8475         call_value_multiple_internal, call_value_multiple_split): Pass
8476         SIZE_OPNO to MIPS_CALL.
8477         (call_internal_direct, call_direct_split,
8478         call_value_internal_direct, call_value_direct_split): Pass -1 as
8479         SIZE_OPNO to MIPS_CALL.
8480         * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
8481         * configure: Regenerate.
8482         * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
8483         and -mno-relax-pic-calls.
8484         (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
8485
8486 2009-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8487
8488         PR bootstrap/35619
8489         * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
8490         in the directory this rule is called from, rather than the
8491         toplevel 'gcc' directory, to fix in-tree build.
8492
8493 2009-09-19  Chris Demetriou  <cgd@google.com>
8494
8495         PR preprocessor/28435:
8496         * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
8497         to cpplib that the preprocessor output is needed.
8498
8499 2009-09-19  Jakub Jelinek  <jakub@redhat.com>
8500
8501         * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
8502         *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
8503         *return_and_restore_fpregs_<mode>,
8504         *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
8505
8506         PR bootstrap/41397
8507         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
8508         instead of assuming it has always a REG inside of it.
8509
8510 2009-09-18  Gerald Pfeifer  <gerald@pfeifer.com>
8511
8512         * config/freebsd.h: Update comment on types.
8513         (WINT_TYPE): Define.
8514
8515 2009-09-18  Jason Merrill  <jason@redhat.com>
8516
8517         * c.opt: Add -fno-deduce-init-list.
8518
8519 2009-09-18  Neil Vachharajani  <nvachhar@google.com>
8520
8521         * value-prof.c (interesting_stringop_to_profile_p): Added output
8522         argument to indicate which parameter is the size parameter.
8523         * value-prof.c (gimple_stringop_fixed_value): Use
8524         INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
8525         * value-prof.c (gimple_stringops_transform): Update call sites to
8526         INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
8527
8528 2009-09-18  Uros Bizjak  <ubizjak@gmail.com>
8529
8530         PR target/38288
8531         From David Binderman <dcb314@hotmail.com>:
8532         * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
8533         local variable f.  Remove stale comments.
8534         (ix86_compute_frame_layout): Remove useless local variable total_size.
8535         Remove #if 0'd code.
8536         (legitimate_address_p): Remove useless local variables
8537         reason_rtx and reason.
8538         (ix86_split_copysign_const): Remove useless local variable op1.
8539         (scale_counter): Remove useless local variable piece_size_mask.
8540
8541 2009-09-18  Jakub Jelinek  <jakub@redhat.com>
8542
8543         * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
8544         output decl.
8545
8546 2009-09-17  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
8547
8548         PR target/40913
8549         * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
8550
8551 2009-09-17  Jakub Jelinek  <jakub@redhat.com>
8552
8553         * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
8554         TYPE_STUB_DECL.
8555
8556 2009-09-17  Alexandre Oliva  <aoliva@redhat.com>
8557
8558         * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
8559         DW_OP_implicit_value even without dwarf_version 4.
8560
8561 2009-09-17  Jan Hubicka  <jh@suse.cz>
8562
8563         * dwarf2out.c: Include tree-pass.h and gimple.h.
8564         (loc_list_plus_const): New function.
8565         (loc_descriptor_from_tree_1): Rename to ...
8566         (loc_descriptor_from_tree): ... remove original.
8567         (loc_list_from_tree): New function.
8568         (add_AT_location_description): Accept location list.
8569         (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
8570         (concatn_mem_loc_descriptor): Remove.
8571         (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
8572         returning NULL.
8573         (secname_for_decl): Move up.
8574         (hidden_reference_p): New function; break out from ...
8575         (loc_by_refernece): ... here; move up.
8576         (dw_loc_list): New function.
8577         (single_element_loc_list): New function.
8578         (single_element_loc_list_p): New function.
8579         (add_loc_descr_to_each): New function.
8580         (add_loc_list): New function.
8581         (loc_descr_from_tree): Make wraper of loc_list_from_tree.
8582         (loc_list_from_tree): Reroganized from loc_descr_from_tree;
8583         add diagnostics why expansion failed.
8584         (add_location_or_const_value_attribute): Support location lists.
8585         (add_bound_info): Likewise.
8586         (descr_info_loc): Update call of loc_descriptor_from_tree.
8587         (gen_variable_die): Work on location lists.
8588         * final.c (pass_final): Add dump file.
8589         * Makefile.in (dwarf2out.o): Add new dependencies.
8590
8591 2009-09-17  Janis Johnson  <janis187@us.ibm.com>
8592
8593         PR c/41049
8594         * real.c decimal_from_integer, decimal_integer_string): New.
8595         (real_from_integer): Use them as special case for decimal float.
8596         * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
8597         (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
8598         Do not append zero after the decimal point in string to convert.
8599
8600 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
8601
8602         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
8603         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
8604
8605 2009-09-17  Martin Jambor  <mjambor@suse.cz>
8606
8607         * common.opt (fipa-sra): New switch.
8608         * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
8609         * timevar.def (TV_IPA_SRA): New timevar.
8610         * params.def (ipa-sra-ptr-growth-factor): New parameter.
8611         * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
8612         * tree-sra.c: Include cgraph.c.
8613         (enum sra_mode): Added SRA_MODE_EARLY_IPA.
8614         (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
8615         and grp_not_necessarilly_dereferenced.
8616         (func_param_count): New variable.
8617         (encountered_apply_args): New variable.
8618         (bb_dereferences): New variable.
8619         (final_bbs): New variable.
8620         (no_accesses_representant): New variable.
8621         (no_accesses_p): New function.
8622         (dump_access): Dump the new fields.
8623         (sra_initialize): Set encountered_apply_args to false.
8624         (get_ssa_base_param): New function.
8625         (mark_parm_dereference): New function.
8626         (create_access): Caring for INIDRECT_REFs and different handling of
8627         varialble length accesses in early IPA SRA.  Store the stmt - a new
8628         parameter - to the new access.
8629         (build_access_from_expr_1): New parameter stmt, passed to
8630         create_access.  Handle INDIRECT_REFs.
8631         (build_access_from_expr): Pass the current statement to
8632         build_access_from_expr_1.
8633         (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
8634         passes.
8635         (build_accesses_from_assign): Pass the current statement to
8636         build_access_from_expr_1.  Do not create assign links in IPA-SRA.
8637         (scan_function): Call handle_ssa_defs on phi nodes.  Set bits in
8638         final_bbs when necessary.  Check for calls to __builtin_apply_args.
8639         Fixup EH info if anythng was changed.
8640         (is_unused_scalar_param): New function.
8641         (ptr_parm_has_direct_uses): New function.
8642         (find_param_candidates): New function.
8643         (mark_maybe_modified): New function.
8644         (analyze_modified_params): New function.
8645         (propagate_dereference_distances): New function.
8646         (dump_dereferences_table): New function.
8647         (analyze_caller_dereference_legality): New function.
8648         (unmodified_by_ref_scalar_representative): New function.
8649         (splice_param_accesses): New function.
8650         (decide_one_param_reduction): New function.
8651         (enum ipa_splicing_result): New type.
8652         (splice_all_param_accesses): New function.
8653         (get_param_index): New function.
8654         (turn_representatives_into_adjustments): New function.
8655         (analyze_all_param_acesses): New function.
8656         (get_replaced_param_substitute): New function.
8657         (get_adjustment_for_base): New function.
8658         (replace_removed_params_ssa_names): New function.
8659         (sra_ipa_reset_debug_stmts): New function.
8660         (sra_ipa_modify_expr): New function.
8661         (sra_ipa_modify_assign): New function.
8662         (convert_callers): New function.
8663         (modify_function): New function.
8664         (ipa_sra_preliminary_function_checks): New function.
8665         (ipa_early_sra): New function.
8666         (ipa_early_sra_gate): New function.
8667         (pass_early_ipa_sra): New variable.
8668         * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
8669
8670 2009-09-17  Michael Matz  <matz@suse.de>
8671
8672         PR middle-end/41347
8673         * tree.c (build_type_attribute_qual_variant): Export.
8674         * tree.h (build_type_attribute_qual_variant): Declare.
8675         * tree-inline.c (remap_type_1): Use it to build variants with
8676         the original qualifiers and attributes.
8677
8678 2009-09-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8679
8680         * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
8681         without a fallthrough edge.
8682
8683 2009-09-16  DJ Delorie  <dj@redhat.com>
8684
8685         * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
8686         chip and ignore the "fast_interrupt" attribute if so.
8687
8688 2009-09-16  Richard Henderson  <rth@redhat.com>
8689
8690         PR middle-end/41360
8691         * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
8692         barrier fix.
8693
8694 2009-09-16  Richard Henderson  <rth@redhat.com>
8695
8696         PR target/41246
8697         * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
8698         is set only if DECL_NO_STATIC_CHAIN is unset.
8699         * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
8700         (FOR_EACH_NEST_INFO): New.
8701         (walk_all_functions): Use it.
8702         (finalize_nesting_tree): Likewise.
8703         (unnest_nesting_tree): Likewise.
8704         (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
8705         (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
8706         (convert_gimple_call): Early out if gimple_call_chain already set.
8707         (convert_all_function_calls): Iterate until no new functions
8708         require a static chain.
8709         (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
8710         when building a trampoline.  Use dump_function_to_file instead
8711         of dump_function.
8712         (lower_nested_functions): Open dump_file.  Validate that decls
8713         that have DECL_NO_STATIC_CHAIN from the front end don't have that
8714         bit reset by this pass.
8715
8716 2009-09-16  Michael Matz  <matz@suse.de>
8717
8718         PR fortran/41212
8719         * tree.h (struct tree_decl_common): Add decl_restricted_flag,
8720         shorten decl_common_unused.
8721         (DECL_RESTRICTED_P): New accessor.
8722         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
8723         to disambiguate marked decls and restrict pointers.
8724
8725 2009-09-16  Richard Henderson  <rth@redhat.com>
8726
8727         PR middle-end/41360
8728         * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
8729
8730 2009-09-16  Jakub Jelinek  <jakub@redhat.com>
8731
8732         * integrate.c (set_block_abstract_flags): Call
8733         set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
8734
8735 2009-09-16  Richard Guenther  <rguenther@suse.de>
8736
8737         PR middle-end/34011
8738         * tree-flow-inline.h (may_be_aliased): Compute readonly variables
8739         as non-aliased.
8740
8741 2009-09-16  DJ Delorie  <dj@redhat.com>
8742             Kaz Kojima  <kkojima@gcc.gnu.org>
8743
8744         * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
8745         (sh_expand_prologue): Update calls to output_stack_adjust.
8746         (sh_expand_epilogue): Likewise.
8747
8748 2009-09-15  Adam Nemet  <anemet@caviumnetworks.com>
8749
8750         PR bootstrap/41349
8751         * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
8752         trying to limit the extent of searches in the insn stream.
8753
8754 2009-09-15  Nathan Froyd  <froydnj@codesourcery.com>
8755             Jakub Jelinek  <jakub@redhat.com>
8756
8757         PR target/41175
8758         PR target/40677
8759         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
8760         problem.
8761         (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
8762         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
8763         (rs6000_savres_strategy): Always save FP registers inline if the
8764         target doesn't support hardware double-precision.  Set the above
8765         bits in return value when needed.
8766         (rs6000_savres_routine_sym): Fix computation for cache selector.
8767         Mark the generated symbol as a function.  Rename exitp argument to
8768         lr.  Move code for determining the name of the symbol...
8769         (rs6000_savres_routine_name): ...here.  New function.  Add cases for
8770         getting the names right on AIX and 64-bit Linux.
8771         (savres_routine_name): New variable.
8772         (rs6000_make_savres_rtx): Rename exitp argument to lr.  Don't assert
8773         lr isn't set when savep.  Use r12 resp. r1 instead of r11 depending
8774         on what the target routine uses as a base register.  If savep && lr
8775         describe saving of r0 into memory slot.
8776         (rs6000_emit_prologue): Correct use of call_used_regs.  Fix out of
8777         line calls for AIX ABI.
8778         (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
8779         determine FP save/restore functions.
8780         (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
8781         frame_reg_rtx != sp_reg_rtx.  Use gen_add3_insn instead of
8782         gen_addsi3.
8783         (rs6000_emit_epilogue): Adjust computation of restore_lr.
8784         Duplicate restoration of LR and execute the appropriate one
8785         depending on whether GPRs are being restored inline.  Set r11 from
8786         offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
8787         r11, adjust sp_offset.  Use gen_add3_insn instead of gen_addsi3.
8788         Fix out of line calls for AIX ABI.
8789         * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
8790         New insn.
8791         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
8792         register 11.
8793         (*restore_gpregs_spe): Likewise.
8794         (*return_and_restore_gpregs_spe): Likewise.
8795         * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
8796         Define to empty string unconditionally.
8797         * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
8798         Define to empty string unconditionally.
8799         (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
8800         !TARGET_64BIT.
8801
8802 2009-09-15  Jan Hubicka  <jh@suse.cz>
8803
8804         * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
8805         * params.def (inline-insns-auto): Likewise.
8806
8807 2009-09-15  Martin Jambor  <mjambor@suse.cz>
8808
8809         * ipa-inline.c (estimate_function_body_sizes): Dump info about
8810         individual statements only at TDF_DETAILS dump level.  Format
8811         source for 80 characters per line.
8812
8813 2009-09-15  Christian Bruel  <christian.bruel@st.com>
8814
8815         * regrename.c (do_replace): Update REG_DEAD notes.
8816
8817 2009-09-15  Revital Eres  <eres@il.ibm.com>
8818
8819         * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
8820         * targhooks.c (default_builtin_support_vector_misalignment):
8821         New builtin function.
8822         * targhooks.h (default_builtin_support_vector_misalignment):
8823         Declare.
8824         * target.h (builtin_support_vector_misalignment):
8825         New field in struct gcc_target.
8826         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
8827         new builtin function.
8828         * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
8829         Define.
8830         * config/rs6000/rs6000.c
8831         (rs6000_builtin_support_vector_misalignment): New function.
8832         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
8833
8834 2009-09-15  Jie Zhang  <jie.zhang@analog.com>
8835
8836         * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
8837         instead of INSN_P.
8838         (bfin_optimize_loop): Likewise.
8839         (bfin_gen_bundles): Likewise.
8840         (workaround_speculation): Likewise.
8841         (find_load): Return NULL_RTX for debug_insn.
8842
8843 2009-09-15  Uros Bizjak  <ubizjak@gmail.com>
8844
8845         * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
8846         (sminsf3): Ditto.
8847
8848 2009-09-14  DJ Delorie  <dj@redhat.com>
8849
8850         * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
8851         * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
8852         VLIW mode.
8853
8854 2009-09-14  Richard Henderson  <rth@redhat.com>
8855             Jakub Jelinek  <jakub@redhat.com>
8856
8857         * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
8858         * cfgbuild.c (make_edges): Handle asm goto.
8859         * cfglayout.c (fixup_reorder_chain): Likewise.
8860         * cfgrtl.c (patch_jump_insn): Likewise.
8861         * gimple-pretty-print.c (dump_gimple_asm): Likewise.
8862         * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
8863         (gimple_build_asm_vec): Add and use labels parameter.
8864         (gimple_build_asm): Remove.
8865         (walk_gimple_asm): Walk labels too.
8866         * gimple.def (GIMPLE_ASM): Update docs.
8867         * gimple.h: Update decls.
8868         (struct gimple_statement_asm): Change nc to use unsigned char;
8869         add nl member.
8870         (gimple_asm_nlabels): New.
8871         (gimple_asm_label_op, gimple_asm_set_label_op): New.
8872         * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
8873         into gimple_build_asm_vec.
8874         * jump.c (mark_jump_label_asm): New.
8875         (mark_jump_label): Use it.
8876         (redirect_jump_1): Handle asm goto.
8877         (invert_jump_1): Soft fail if X is null.
8878         * recog.c (extract_asm_operands): New.
8879         (asm_noperands): Use it; handle asm labels.
8880         (decode_asm_operands): Use extract_asm_operands.
8881         (asm_operand_ok): Properly handle empty string.
8882         * reg-stack.c (get_asm_operands_in_out): Rename from
8883         get_asm_operand_n_inputs; use extract_asm_operands; return both
8884         inputs and outputs by reference; update all callers.
8885         * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
8886         * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
8887         (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
8888         (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
8889         (extract_asm_operands): Declare.
8890         * stmt.c (expand_asm_operands): Add and use labels parameter.
8891         (check_unique_operand_names): Likewise.
8892         (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
8893         (expand_asm_stmt): Handle asm labels.
8894         * tree-cfg.c (make_gimple_asm_edges): New.
8895         (make_edges): Use it.
8896         (cleanup_dead_labels): Handle asm labels.
8897         (is_ctrl_altering_stmt): Likewise.
8898         (gimple_redirect_edge_and_branch): Likewise.
8899         * tree.def (ASM_EXPR): Add 5th operand.
8900         * tree.h (ASM_LABELS): New.
8901         (resolve_asm_operand_names): Update decl.
8902
8903         * c-parser.c (c_parser_asm_statement): Parse asm goto.
8904         (c_parser_asm_goto_operands): New.
8905         * c-tree.h (build_asm_expr): Update decl.
8906         * c-typeck.c (build_asm_expr): Add and use labels parameter.
8907         * doc/extend.texi: Document asm goto.
8908
8909 2009-09-14  Richard Henderson  <rth@redhat.com>
8910
8911         * except.h: Update declarations.
8912         (struct pointer_map_t): Forward declare.
8913         (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
8914         (struct eh_landing_pad_d, eh_landing_pad): New.
8915         (struct eh_catch_d, eh_catch): New.
8916         (struct eh_region_d): Remove next_region_sharing_label, aka,
8917         label, tree_label, landing_pad, post_landing_pad, resume,
8918         may_contain_throw.  Rename region_number to index.  Remove
8919         u.eh_catch, u.eh_throw.  Rename u.eh_try.eh_catch to first_catch.
8920         Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
8921         (VEC(eh_landing_pad,gc)): New.
8922         (struct eh_status): Remove last_region_number.  Add lp_array,
8923         throw_stmt_table, ttype_data, ehspec_data.
8924         (ehr_next, FOR_ALL_EH_REGION_AT): New.
8925         (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
8926         * except.c (lang_protect_cleanup_actions): Return tree.
8927         (struct ehl_map_entry): Remove.
8928         (init_eh_for_function): Push zero entries for region and lp_array.
8929         (gen_eh_region): Add to region_array immediately.
8930         (gen_eh_region_catch): Operate on eh_catch objects.
8931         (gen_eh_landing_pad): New.
8932         (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
8933         (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
8934         (get_eh_region_from_number, get_eh_region_from_number_fn): New.
8935         (get_eh_landing_pad_from_number_fn): New.
8936         (get_eh_landing_pad_from_number): New.
8937         (get_eh_region_from_lp_number_fn): New.
8938         (get_eh_region_from_lp_number): New.
8939         (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
8940         (get_exception_pointer, get_exception_filter): Remove.
8941         (collect_eh_region_array, can_be_reached_by_runtime): Remove.
8942         (current_function_has_exception_handlers): Simplify.
8943         (bring_to_root, eh_region_replaceable_by_p): Remove.
8944         (replace_region, hash_type_list, hash_eh_region): Remove.
8945         (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
8946         (label_to_region_map, num_eh_regions): Remove.
8947         (get_next_region_sharing_label, must_not_throw_labels): Remove.
8948         (find_exception_handler_labels): Remove.
8949         (duplicate_eh_regions_0, find_prev_try): Remove.
8950         (struct duplicate_eh_regions_data): New.
8951         (duplicate_eh_regions_1): Rewrite.
8952         (duplicate_eh_regions): Return a pointer map instead of an
8953         integer offset.
8954         (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
8955         (redirect_eh_edge_to_label): Remove.
8956         (eh_region_outermost): Rewrite using eh_region pointers
8957         instead of integers.
8958         (add_ttypes_entry): Update for ttype_data move to eh_status.
8959         (add_ehspec_entry): Rewrite with VEC instead of varray.
8960         (assign_filter_values): Likewise.  Export.
8961         (build_post_landing_pads, connect_post_landing_pads): Remove.
8962         (dw2_build_landing_pads): Rewrite to use lp_array.
8963         (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
8964         (sjlj_assign_call_site_values): Rewrite to use lp_array.
8965         (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
8966         (sjlj_mark_call_sites): Update for landing pad numbers.
8967         (finish_eh_generation): Rewrite.
8968         (gate_handle_eh): Do nothing for no eh tree.
8969         (pass_rtl_eh): Move up near finish_eh_generation.
8970         (remove_eh_landing_pad): New.
8971         (remove_eh_handler): Export.
8972         (remove_eh_region, remove_eh_handler_and_replace): Remove.
8973         (for_each_eh_label): Rewrite to use lp_array.
8974         (make_reg_eh_region_note): New.
8975         (make_reg_eh_region_note_nothrow_nononlocal): New.
8976         (insn_could_throw_p): New.
8977         (copy_reg_eh_region_note_forward): New.
8978         (copy_reg_eh_region_note_backward): New.
8979         (check_handled, add_reachable_handler): Remove.
8980         (reachable_next_level, foreach_reachable_handler): Remove.
8981         (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
8982         (get_eh_region_and_lp_from_rtx): New.
8983         (get_eh_region_from_rtx): New.
8984         (can_throw_internal_1, can_throw_external_1): Remove.
8985         (can_throw_internal): Use get_eh_region_from_rtx.
8986         (can_throw_external): Use get_eh_region_and_lp_from_rtx.
8987         (insn_nothrow_p, can_nonlocal_goto): New.
8988         (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
8989         (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
8990         (add_action_record): Use VEC not varray.
8991         (collect_one_action_chain): Update for eh_region changes.
8992         (convert_to_eh_region_ranges): Make static.  Use VEC not varray.
8993         Use get_eh_region_and_lp_from_rtx.
8994         (gate_convert_to_eh_region_ranges): New.
8995         (pass_convert_to_eh_region_ranges): Use it.
8996         (push_uleb128, push_sleb128): Use VEC not varray.
8997         (output_one_function_exception_table): Likewise.
8998         (dump_eh_tree): Update for eh_region changes.
8999         (verify_eh_tree): Likewise.
9000         (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
9001         * tree-eh.c: Include target.h.
9002         (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
9003         Don't disallow GIMPLE_RESX; adjust argument check.
9004         (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
9005         (record_stmt_eh_region): Update for landing pad numbers;
9006         generate a landing pad if necessary.
9007         (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
9008         (remove_stmt_from_eh_lp_fn): Similarly.
9009         (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
9010         Update for lp numbers; don't special case missing throw_stmt_table.
9011         (lookup_expr_eh_lp): Similarly.
9012         (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
9013         (eh_seq, eh_region_may_contain_throw): New.
9014         (struct leh_state): Add ehp_region.
9015         (struct leh_tf_state): Remove eh_label.
9016         (emit_post_landing_pad): New.
9017         (emit_resx, emit_eh_dispatch): New.
9018         (note_eh_region_may_contain_throw): New.
9019         (frob_into_branch_around): Take eh_region not eh label;
9020         emit eh code into eh_seq.
9021         (honor_protect_cleanup_actions): Early exit for no actions.  Don't
9022         handle EXC_PTR_EXPR, FILTER_EXPR.  Use gimple_build_eh_must_not_throw,
9023         lower_eh_must_not_throw.  Emit code to eh_seq.
9024         (lower_try_finally_nofallthru): Emit eh code to eh_seq.
9025         (lower_try_finally_onedest): Likewise.
9026         (lower_try_finally_copy): Likewise.
9027         (lower_try_finally_switch): Likewise.
9028         (lower_try_finally): Initialize ehp_region.
9029         (lower_catch): Update for eh_catch objects.
9030         (lower_eh_filter): Don't handle must_not_throw.
9031         (lower_eh_must_not_throw): New.
9032         (lower_cleanup): Don't set eh_label.
9033         (lower_eh_constructs_2): Resolve eh builtins.
9034         Handle GIMPLE_EH_MUST_NOT_THROW.
9035         (lower_eh_constructs): Initialize eh_region_may_contain_throw.
9036         Add eh_seq to the end of the function body.
9037         (make_eh_dispatch_edges): New.
9038         (make_eh_edge): Remove.
9039         (make_eh_edges): Simplify for landing pads.
9040         (redirect_eh_edge_1): New.
9041         (redirect_eh_edge): Use it.
9042         (redirect_eh_dispatch_edge): New.
9043         (stmt_could_throw_p): Use a switch.  Allow RESX.
9044         (stmt_can_throw_external): Use lookup_stmt_eh_lp.
9045         (stmt_can_throw_internal): Likewise.
9046         (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
9047         (maybe_clean_or_replace_eh_stmt): Update for landing pads.
9048         (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
9049         (gate_refactor_eh): New.
9050         (pass_refactor_eh): Use it.
9051         (lower_resx, execute_lower_resx, pass_lower_resx): New.
9052         (lower_eh_dispatch, execute_lower_eh_dispatch): New.
9053         (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
9054         (remove_unreachable_handlers): Rename from
9055         tree_remove_unreachable_handlers; rewrite for landing pads;
9056         call remove_eh_handler directly.
9057         (remove_unreachable_handlers_no_lp): New.
9058         (unsplit_eh, unsplit_all_eh): New.
9059         (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
9060         (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
9061         (cleanup_empty_eh_unsplit): New.
9062         (cleanup_empty_eh): Rewrite.
9063         (cleanup_all_empty_eh): New.
9064         (execute_cleanup_eh): Rename from cleanup_eh.  Remove unreachable
9065         handlers first.  Use unsplit_all_eh, cleanup_all_empty_eh.
9066         (gate_cleanup_eh): New.
9067         (pass_cleanup_eh): Use it.
9068         (verify_eh_edges): Move later in file.  Expect one EH edge.
9069         (verify_eh_dispatch_edge): New.
9070
9071         * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
9072         (gtype-desc.o): Add TARGET_H.
9073         (tree.o): Use EXCEPT_H, not except.h.
9074         (cfgbuild.o): Add EXPR_H.
9075         (GTFILES): Add vecprim.h.
9076         * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
9077         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
9078         * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
9079         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
9080         * calls.c (emit_call_1): Use make_reg_eh_region_note.
9081         * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
9082         calls to can_throw_internal.
9083         (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
9084         (make_edges): Don't handle RESX; use can_nonlocal_goto.
9085         * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
9086         (expand_gimple_stmt): Use make_reg_eh_region_note.
9087         (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
9088         (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
9089         or find_exception_handler_labels.
9090         * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX.  Assert
9091         there is exacly one EH edge.  Use can_nonlocal_goto and
9092         can_throw_internal.
9093         * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
9094         (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
9095         * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
9096         * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
9097         * dce.c (deletable_insn_p_1): Don't test may_trap_p.
9098         (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
9099         * dse.c (scan_insn): Use insn_could_throw_p.
9100         * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
9101         * expr.c (expand_expr_real): Use make_reg_eh_region_note.
9102         (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
9103         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
9104         EXC_PTR_EXPR or FILTER_EXPR.
9105         (tree_expr_nonzero_warnv_p): Likewise.
9106         * function.h: Include vecprim.h, not varray.h
9107         (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
9108         move ttype_data and ehspec_data members to struct eh_status; change
9109         action_record_data member to a VEC.
9110         * gcse.c (hash_scan_set): Use can_throw_internal.
9111         * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
9112         * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
9113         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
9114         (block_may_fallthru): Don't handle RESX_EXPR.
9115         * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
9116         (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
9117         (dump_gimple_stmt): Dump landing pad information with TDF_EH;
9118         handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
9119         * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
9120         GIMPLE_EH_DISPATCH, GIMPLE_RESX.
9121         (gimple_size): Likewise.
9122         (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
9123         (gimple_build_resx): Use gimple_build_with_ops.
9124         (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
9125         (is_gimple_val): Likewise.
9126         (is_gimple_stmt): Remove RESX_EXPR.
9127         * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
9128         (GIMPLE_RESX): Reorder with other EH constructs.
9129         * gimple.h (struct gimple_statement_eh_mnt): New.
9130         (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
9131         (gimple_eh_filter_must_not_throw): Remove.
9132         (gimple_eh_filter_set_must_not_throw): Remove.
9133         (gimple_eh_must_not_throw_fndecl): New.
9134         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
9135         (is_gimple_resx): New.
9136         * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
9137         Don't copy EH_FILTER_MUST_NOT_THROW.
9138         * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
9139         * ipa-inline.c (estimate_function_body_sizes): Don't try to
9140         handle must_not_throw_labels specially.
9141         * ipa-pure-const.c (check_call): Update debug statement for LP.
9142         * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
9143         * ipa-utils.c (get_base_var): Likewise.
9144         * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
9145         * lower-subreg.c (move_eh_region_note): Remove.
9146         (resolve_simple_move): Use copy_reg_eh_region_note_forward.
9147         * omp-low.c (new_omp_context): Update for eh_lp_nr.
9148         (create_task_copyfn): Likewise.
9149         (maybe_catch_exception): Use gimple_build_eh_filter.
9150         * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
9151         REG_EH_REGION.  Use make_reg_eh_region_note_nothrow_nononlocal.
9152         * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
9153         and pass_lower_resx.
9154         * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
9155         * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
9156         can_throw_internal, can_nonlocal_goto.
9157         * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
9158         copy_reg_eh_region_note_forward.
9159         (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
9160         (emit_output_reload_insns): Likewise.
9161         (copy_eh_notes): Remove.
9162         * rtl.def (RESX): Remove.
9163         * rtl.h: Update declarations.
9164         * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
9165         * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
9166         (update_eh_label): Remove.
9167         (cleanup_dead_labels_eh): New.
9168         (cleanup_deal_labels): Use it instead of update_eh_label.
9169         (gimple_merge_blocks): Update landing pad data structure when
9170         removing a landing pad label.
9171         (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
9172         test; handle GIMPLE_EH_MUST_NOT_THROW.
9173         (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
9174         (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
9175         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
9176         (verify_stmt): Likewise.  Verify landing pads.
9177         (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
9178         (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
9179         (struct move_stmt_d): Add eh_map.
9180         (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
9181         (move_stmt_r): Remap eh region numbers in builtin calls,
9182         resx and eh_dispatch.
9183         (move_block_to_fn): Remove eh_offset parameter.  Use
9184         maybe_duplicate_eh_stmt_fn.
9185         (find_outermost_region_in_block): Operate on eh_region pointers
9186         instead of region numbers.
9187         (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
9188         duplicate_eh_regions.
9189         * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
9190         test earlier.  Disallow EH landing pads.
9191         * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
9192         * tree-flow.h: Update declarations.
9193         (struct tree_ann_common_d): Replace rn with lp_nr.
9194         * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
9195         (remap_eh_region_nr, remap_eh_region_tree_nr): New.
9196         (remap_gimple_stmt): Remap eh region numbers in builtin calls,
9197         resx and eh_dispatch.
9198         (copy_bb): Use maybe_duplicate_eh_stmt_fn.
9199         (copy_edges_for_bb): Use make_eh_dispatch_edges.
9200         (copy_cfg_body): Expect eh_map instead of eh_region_offset
9201         from duplicate_eh_regions.
9202         (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
9203         update RESX; handle EH_DISPATCH.
9204         (expand_call_inline): Set eh_lp_nr, not eh_region.
9205         (maybe_inline_call_in_expr): Likewise.
9206         * tree-inline.h (struct copy_body_data): Replace eh_region with
9207         eh_lp_nr, eh_region_offset with eh_map.
9208         * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
9209         * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
9210         * tree-pretty-print.c (dump_generic_node): Don't handle
9211         EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
9212         * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
9213         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
9214         EXC_PTR_EXPR, FILTER_EXPR.
9215         * tree-ssa-operands.c (get_expr_operands): Likewise.
9216         * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
9217         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9218         (ao_ref_init_from_vn_reference): Likewise.
9219         * tree-ssa-sink.c (statement_sink_location): Likewise.
9220         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9221         (mark_virtual_phi_result_for_renaming): Export.  Tidy.
9222         * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
9223         EXC_PTR_EXPR, FILTER_EXPR.
9224         (is_exception_related): Remove.
9225         (compute_avail): Don't call it.
9226         * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
9227         * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
9228         (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
9229         (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
9230         Build EH builtins.
9231         (build_resx): Remove.
9232         * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
9233         * tree.h: Update declarations.
9234         (EH_FILTER_MUST_NOT_THROW): Remove.
9235         (struct tree_label_decl): Add eh_landing_pad_nr.
9236         (EH_LANDING_PAD_NR): New.
9237         * value-prof.c (gimple_ic): Tidy variable names.  Update for
9238         landing pad numbers.
9239         (gimple_stringop_fixed_value): Tidy variable names.  Assert
9240         that neither call stmt can throw.
9241         * vecprim.h (uchar): New.
9242         (VEC(uchar,heap), VEC(uchar,gc)): New.
9243
9244         * c-common.c (c_define_builtins): Update call to
9245         build_common_builtin_nodes.
9246         * c-parser.c (c_parse_file): Don't call
9247         default_init_unwind_resume_libfunc.
9248
9249 2009-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
9250
9251         * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
9252         (mips_cprestore_address_p): Likewise.
9253         (mips_save_gp_to_cprestore_slot): Likewise.
9254         (mips_restore_gp): Rename to...
9255         (mips_restore_gp_from_cprestore_slot): ...this.
9256         (mips_must_initialize_gp_p): Declare.
9257         (mips_emit_save_slot_move): Likewise.
9258         (mips_output_load_label): Return nothing.
9259         (mips_eh_uses): Declare.
9260         * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
9261         (TARGET_CPRESTORE_DIRECTIVE): New macro.
9262         (TARGET_ABSOLUTE_JUMPS): Likewise.
9263         (EH_USES): Likewise.
9264         (FIRST_PSEUDO_REGISTER): Update comment.
9265         (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
9266         (MIPS_CALL): ...here.
9267         (REGISTER_NAMES): Add $cprestore.
9268         * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
9269         Add load_label_length, has_inflexible_gp_insn_p,
9270         has_flexible_gp_insn_p, must_initialize_gp_p and
9271         must_restore_gp_when_clobbered_p.
9272         (mips_expand_call): Don't generate split instructions here.
9273         (mips_split_call): Update the call to mips_restore_gp after
9274         the above name change.
9275         (mips16_cfun_returns_in_fpr_p): Move earlier in file.
9276         (mips_find_gp_ref): New function.
9277         (mips_insn_has_inflexible_gp_ref_p): Likewise.
9278         (mips_cfun_has_inflexible_gp_ref_p): Likewise.
9279         (mips_insn_has_flexible_gp_ref_p): Likewise.
9280         (mips_cfun_has_flexible_gp_ref_p): Likewise.
9281         (mips_function_has_gp_insn): Delete.
9282         (mips_global_pointer): Drop the df_regs_ever_live_p check.
9283         Use the new functions above.  Only return INVALID_REGNUM
9284         for TARGET_ABSOLUTE_JUMPS.
9285         (mips_must_initialize_gp_p): New function.
9286         (mips_get_cprestore_base_and_offset): New function, extracted from...
9287         (mips_cprestore_slot): ...here.  Take a bool parameter.
9288         (mips_cfun_has_cprestore_slot_p): New function.
9289         (mips_cprestore_address_p): Likewise.
9290         (mips_save_gp_to_cprestore_slot): Likewise.
9291         (mips_restore_gp): Rename to...
9292         (mips_restore_gp_from_cprestore_slot): ...this.  Assert
9293         epilogue_completed.  Update the call to mips_cprestore_slot.
9294         Test cfun->machine->must_restore_gp_when_clobbered_p.
9295         (mips_direct_save_slot_move_p): New function.
9296         (mips_emit_save_slot_move): Likewise.
9297         (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
9298         of cfun->machine->global_pointer.
9299         (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
9300         (mips_save_reg): Use mips_emit_save_slot_move.
9301         (mips_expand_prologue): Set must_initialize_gp_p.
9302         Use mips_cfun_has_cprestore_slot_p.  Use gen_potential_cprestore
9303         for all cprestore saves.  Emit a use_cprestore instruction after
9304         setting up the cprestore slot.
9305         (mips_restore_reg): Use mips_emit_save_slot_move.
9306         (mips_process_load_label): New function.
9307         (mips_load_label_length): Likewise.
9308         (mips_output_load_label): Don't return asm: output it here instead.
9309         Use mips_process_load_label.
9310         (mips_adjust_insn_length): Adjust the length of branch instructions
9311         that have length MAX_PIC_BRANCH_LENGTH.
9312         (mips_output_conditional_branch): Update the call to
9313         mips_output_load_label.  Assume the branch target is OPERANDS[0]
9314         rather than OPERANDS[1].  Use MIPS_ABSOLUTE_JUMP for absolute jumps.
9315         (mips_output_order_conditional_branch): Swap the meaning of
9316         OPERANDS[0] and OPERANDS[1].
9317         (mips_variable_issue): Don't count ghost instructions.
9318         (mips_expand_ghost_gp_insns): New function.
9319         (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
9320         (mips_output_mi_thunk): Set must_initialize_gp_p.
9321         (mips_eh_uses): New function.
9322         * config/mips/predicates.md (cprestore_save_slot_operand)
9323         (cprestore_load_slot_operand): New predicates.
9324         * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
9325         (UNSPEC_MOVE_GP): Likewise.
9326         (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
9327         (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
9328         (CPRESTORE_SLOT_REGNUM): New register.
9329         (MAX_PIC_BRANCH_LENGTH): New constant.
9330         (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
9331         (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
9332         branches.  Fix commentary.
9333         (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
9334         Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
9335         Change type to "ghost".
9336         (loadgp_absolute_<mode>): Likewise.
9337         (loadgp_rtp_<mode>): Likewise.
9338         (copygp_mips16): Likewise.
9339         (loadgp_blockage): Remove redundant mode attribute.
9340         (potential_cprestore): New instruction.
9341         (cprestore): Turn into an unspec set.
9342         (use_cprestore): New instruction.
9343         (*branch_fp): Swap operands 0 and 1.  Remove redundant mode attribute.
9344         (*branch_fp_inverted): Likewise.
9345         (*branch_order<mode>): Likewise.
9346         (*branch_order<mode>_inverted): Likewise.
9347         (*branch_equality<mode>): Likewise.
9348         (*branch_equality<mode>_inverted): Likewise.
9349         (*branch_bit<bbv><mode>): Likewise.
9350         (*branch_bit<bbv><mode>_inverted): Likewise.
9351         (*branch_equality<mode>_mips16): Remove redundant mode.
9352         (jump): Turn into a define_expand.
9353         (*jump_absolute): New instruction.
9354         (*jump_pic): Likewise.
9355         (*jump_mips16): Rename previously-unnamed pattern.  Remove
9356         redundant mode attribute.
9357         (restore_gp): Split on epilogue_completed rather than
9358         reload_completed.  Change type to "ghost".
9359         (move_gp<mode>): New instruction.
9360         * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
9361         Remove redundant mode attribute.
9362         * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
9363         (bc1any4f, bc1any2t, bc1any2f): Likewise.
9364         (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
9365
9366 2009-09-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9367
9368         PR target/41210
9369         * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
9370         are returned in the same register (vs34 or v2) that Altivec vector
9371         types are returned in.
9372         (rs6000_libcall_value): Ditto.
9373
9374         PR target/41331
9375         * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
9376         instead of explicit addsi3/adddi3 calls.
9377         (rs6000_split_multireg_move): Ditto.
9378         (rs6000_emit_allocate_stack): Ditto.
9379         (rs6000_emit_prologue): Ditto.
9380         (rs6000_output_mi_thunk): Ditto.
9381
9382         * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
9383         size is 64 bits if we can use 64-bit registers.
9384
9385 2009-09-14  Bernd Schmidt  <bernd.schmidt@analog.com>
9386
9387         * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
9388         symbols.
9389
9390         From Jie Zhang <jie.zhang@analog.com>:
9391         * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
9392         save FP and RETS with saveall attribute.
9393         (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
9394         with saveall attribute.
9395
9396         * config/bfin/bfin.c (bfin_expand_builtin,
9397         case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
9398         operands.
9399
9400         From Jie Zhang <jie.zhang@analog.com>:
9401         * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
9402         before use in two places.
9403         * config/bfin/bfin.md (AREG): Define mode iterator.
9404         (reload_in, reload_out): Use mode iterator AREG.
9405
9406 2009-09-14  Richard Guenther  <rguenther@suse.de>
9407
9408         PR middle-end/41350
9409         * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
9410         EH personality path.
9411
9412 2009-09-13  Richard Guenther  <rguenther@suse.de>
9413             Rafael Avila de Espindola  <espindola@google.com>
9414
9415         * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
9416         (LANG_HOOKS_EH_PERSONALITY): Likewise.
9417         (LANG_HOOKS_INITIALIZER): Adjust.
9418         (lhd_pass_through_t): Declare.
9419         * langhooks.h (struct lang_hooks): Add eh_runtime_type and
9420         eh_personality.
9421         * langhooks.c (lhd_pass_through_t): New function.
9422         * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
9423         dwarf2out_begin_prologue): Use personality from current_function_decl.
9424         * expr.h (get_personality_function): Declare.
9425         * expr.c (get_personality_function): New function.
9426         (build_personality_function): Likewise.
9427         * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
9428         (eh_personality_libfunc): Remove.
9429         * optabs.c (build_libfunc_function): New function split out from ...
9430         (init_one_libfunc): ... here.
9431         * tree.h (DECL_FUNCTION_PERSONALITY): New.
9432         (tree_function_decl): Add personality.
9433         (lhd_gcc_personality): Declare.
9434         (build_personality_function): Likewise.
9435         * tree.c (gcc_eh_personality_decl): New.
9436         (lhd_gcc_personality): New function.
9437         * except.h (lang_eh_runtime_type): Remove.
9438         (enum eh_personality_kind): New.
9439         (build_personality_function): Declare.
9440         (function_needs_eh_personality): Declare.
9441         * except.c (lang_eh_runtime_type): Remove.
9442         (function_needs_eh_personality): New function.
9443         (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
9444         (sjlj_emit_function_enter, output_function_exception_table):
9445         Use personality from current_function_decl.
9446         * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
9447         * tree-inline.c (tree_can_inline_p): Do not inline across different
9448         EH personalities.
9449         (expand_call_inline): Likewise.  Adjust the callers EH personality.
9450         (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
9451         * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
9452         * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
9453         (c-parser.o): Likewise
9454         * c-tree.h (c_eh_initialized_p): Remove.
9455         (c_maybe_initialize_eh): Likewise.
9456         * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
9457         (finish_decl): Don't call c_maybe_initialize_eh.
9458         (c_eh_initialized_p): Remove.
9459         (c_maybe_initialize_eh): Likewise.
9460         * c-parser.c (c_parser_omp_construct): Likewise.
9461         (c_parse_file): Initialize exception handling.
9462
9463 2009-09-13  Kai Tietz  <kai.tietz@onevision.com>
9464
9465         * config.gcc (tm_file): Remove i386/biarch32.h
9466         for i?86-w64-mingw* case.
9467         (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
9468         support.
9469         * config.host: Set for x64 mingw the option
9470         use_long_long_for_widest_fast_int to yes.
9471
9472 2009-09-13  Eric Botcazou  <ebotcazou@adacore.com>
9473
9474         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
9475         * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
9476         (dbxout_begin_function): Likewise.
9477         * final.c (dwarf2_debug_info_emitted_p): New predicate.
9478         (final_start_function): Do not emit debug info if DECL_IGNORED_P is
9479         set on the function.
9480         (final_end_function): Likewise.
9481         (final_scan_insn): Likewise.
9482         (rest_of_handle_final): Likewise.
9483         * varasm.c (assemble_start_function): Likewise.
9484         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
9485
9486 2009-09-12  Jason Merrill  <jason@redhat.com>
9487
9488         * dbgcnt.c (dbg_cnt_process_single_pair): constify.
9489         * opts.c (common_handle_option): constify.
9490
9491 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
9492
9493         * doc/install.texi (avr): Remove obsolete reference site.
9494
9495 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
9496
9497         * doc/install.texi (Binaries): Adjust AIX link.
9498
9499 2009-09-12  Akim Demaille  <demaille@gostai.com>
9500
9501         * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
9502         Use an imperative sentence.
9503
9504 2009-09-11  Richard Henderson  <rth@redhat.com>
9505
9506         * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
9507         structure-name and has-tree-operands arguments; update all entries.
9508         * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
9509         update all entries.
9510         * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
9511         (gsstruct_code_size): New.
9512         (gss_for_code_): New.
9513         (gss_for_code): Remove.
9514         (gimple_size): Rewrite using gsstruct_code_size.
9515         (gimple_statement_structure): Move to gimple.h.
9516         * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
9517         (gss_for_code, gimple_statement_structure): New.
9518         (gimple_ops): Use new arrays; tidy.
9519
9520 2009-09-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9521
9522         * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
9523         operand to be a PLUS expression.
9524         * config/pa/pa.c (pa_secondary_reload): Likewise.
9525
9526 2009-09-11  Jakub Jelinek  <jakub@redhat.com>
9527
9528         * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
9529
9530         * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
9531         XEXP (in_rtx, 8).
9532
9533 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
9534
9535         From Jie Zhang <jie.zhang@analog.com>:
9536         * doc/extend.texi (node Function Attributes): Document l2
9537         function attribute.
9538         (node Blackfin Variable Attributes): Document l2 variable attributes.
9539
9540 2009-09-11  Loren J. Rittle  <ljrittle@acm.org>
9541
9542         * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
9543         to match the system compiler's configuration at inflection point.
9544         Add comment to remark a remaining difference with system compiler.
9545
9546         * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
9547         * configure: Regenerate.
9548
9549 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
9550
9551         From Jie Zhang <jie.zhang@analog.com>:
9552         * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
9553         (bfin_handle_l2_attribute): New.
9554         (bfin_attribute_table): Add l2 attribute.
9555
9556 2009-09-11  Michael Matz  <matz@suse.de>
9557
9558         PR middle-end/41275
9559         * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
9560         on the local_decls list.
9561
9562 2009-09-11  Alexandre Oliva  <aoliva@redhat.com>
9563
9564         PR debug/41276
9565         PR debug/41307
9566         * cselib.c (cselib_expand_value_rtx_cb): Document callback
9567         interface.
9568         (cselib_expand_value_rtx_1): Use callback for SUBREGs.  Adjust
9569         for VALUEs, to implement the documented interface.
9570         * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
9571         Adjust for VALUEs and anything else, to implement the
9572         documented interface.
9573
9574 2009-09-10  Nathan Froyd  <froydnj@codesourcery.com>
9575
9576         * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
9577         with actual SPE/paired vector modes before using 64-bit alignment.
9578         Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
9579
9580 2009-09-10  DJ Delorie  <dj@redhat.com>
9581
9582         * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
9583         emitted.
9584
9585         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
9586         * config/mep/mep.c (mep_legitimate_constant_p): New.
9587         * config/mep/mep-protos.h: Prototype it.
9588
9589 2009-09-10  Richard Henderson  <rth@redhat.com>
9590
9591         * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
9592
9593 2009-09-10  Jason Merrill  <jason@redhat.com>
9594
9595         * tree.c (chain_index): New fn.
9596         * tree.h: Declare it.
9597
9598 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9599
9600         * config/sol2-c.c (cmn_err_length_specs): Initialize
9601         scalar_identity_flag.
9602
9603 2009-09-10  Richard Henderson  <rth@redhat.com>
9604
9605         * tree.h (struct tree_decl_common): Move align member earlier;
9606         move label_decl_uid member ...
9607         (struct tree_label_decl): ... here.
9608         (LABEL_DECL_UID): Update to match.
9609
9610         * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
9611         not TDF_DETAILS.
9612
9613         * tree-cfg.c (gimple_redirect_edge_and_branch): Do
9614         gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
9615
9616         * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
9617         dest_prev if the edge is complex.
9618
9619         * tree-cfg.c (is_ctrl_stmt): Use a switch.
9620
9621         * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
9622         loop latch tests earlier.
9623
9624         * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
9625         before GIMPLE_RETURN, not after its predecessor; insert
9626         before GIMPLE_RESX.
9627
9628         * gimple-iterator.c (gimple_find_edge_insert_loc): Use
9629         gimple_seq_empty_p to test for no PHI nodes.
9630         * tree-cfg.c (split_critical_edges): Likewise.
9631
9632         * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
9633
9634 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
9635
9636         * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
9637         introduced by the VTA branch merge.
9638
9639 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
9640
9641         * ira-conflicts.c: Use fputs or putc instead of fprintf
9642         where appropriate.
9643         * cfg.c: Ditto.
9644         * toplev.c: Ditto.
9645         * tree-switch-conversion.c: Ditto.
9646
9647 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
9648
9649         * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
9650         introduced by the VTA branch merge.
9651
9652 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
9653
9654         Revert:
9655         2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
9656
9657         PR rtl-optimization/39779
9658         * expr.c (convert_modes): Return when mode == oldmode after
9659         CONST_INTs are processed.
9660
9661 2009-09-10  Nick Clifton  <nickc@redhat.com>
9662
9663         * config/mep/mep.c (mep_encode_section_info): Copy weakness
9664         attribute and referring decl when creating renamed symbol.
9665
9666 2009-09-10  Richard Guenther  <rguenther@suse.de>
9667
9668         PR middle-end/41257
9669         * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
9670         reachable nodes.
9671         (cgraph_finalize_compilation_unit): Compute reachability
9672         before emitting thunks.  Properly process aliases before
9673         possibly removing unreachable nodes.
9674
9675 2009-09-10  Richard Guenther  <rguenther@suse.de>
9676
9677         PR middle-end/41254
9678         * tree.c (struct free_lang_data_d): Add worklist member.
9679         (find_decls_types_r): Push onto the worklist instead of recursing.
9680         Handle TREE_BINFOs properly.
9681         (find_decls_types): New function wrapped around find_decls_types_r
9682         to process the worklist.
9683         (find_decls_types_in_eh_region): Use it.
9684         (find_decls_types_in_node): Likewise.
9685         (find_decls_types_in_var): Likewise.
9686         (free_lang_data_in_cgraph): Likewise.  Free the worklist.
9687         * tree.h (RECORD_OR_UNION_TYPE_P): New.
9688         (AGGREGATE_TYPE_P): Adjust.
9689
9690 2009-09-09  Jason Merrill  <jason@redhat.com>
9691
9692         * configure.ac: Check glibc version even if we have an in-tree
9693         assembler.
9694
9695 2009-09-09  Anthony Green  <green@moxielogic.com>
9696
9697         * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
9698         the constant 0 when appropriate.
9699         * config/moxie/constraints.md: Add constraint O.
9700
9701         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
9702         to pass up to 6 32-bit argument values in registers.
9703         (moxie_function_arg): Ditto.
9704         (moxie_arg_partial_bytes): Ditto.
9705         * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
9706         (REG_PARM_STACK_SPACE): Ditto.
9707         (FUNCTION_ARG_REGNO_P): Ditto.
9708
9709         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
9710         instruction to allocate stack space.
9711
9712 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
9713
9714         * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
9715         unnecessarily stringent constraints.  Fix address
9716         calculation in the splitters.
9717
9718 2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
9719
9720         PR rtl-optimization/39779
9721         * expr.c (convert_modes): Return when mode == oldmode after
9722         CONST_INTs are processed.
9723
9724 2009-09-09  Kai Tietz  <kai.tietz@onevision.com>
9725
9726         PR/41315
9727         * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
9728         (ix86_expand_prologue): Take frame.padding0 into logic of
9729         to_allocate checks.
9730         (ix86_expand_epilogue): Likewise.
9731
9732 2009-09-09  Jakub Jelinek  <jakub@redhat.com>
9733
9734         * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
9735         New variables.
9736         (SHLIB_LINK, SHLIB_INSTALL): Use them.
9737         * config/t-slibgcc-libgcc: New file.
9738         * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
9739
9740 2009-09-09  Martin Jambor  <mjambor@suse.cz>
9741
9742         PR tree-optimization/41089
9743         * tree-sra.c (find_var_candidates): Do not consider va_lists in
9744         early SRA.
9745
9746 2009-09-09  Richard Henderson  <rth@redhat.com>
9747
9748         * gimple.h (CASE_GIMPLE_OMP): New.
9749         (is_gimple_omp): Use it.
9750         * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
9751         (verify_gimple_debug): Likewise.
9752
9753 2009-09-09  Richard Guenther  <rguenther@suse.de>
9754
9755         PR tree-optimization/41101
9756         * tree-ssa-pre.c (maximal_set): Remove.
9757         (compute_antic_aux): Treat the maximal set as implicitly all ones.
9758         Defer all blocks we didn't visit at least one successor.
9759         (add_to_exp_gen): Do not add to the maximal set.
9760         (make_values_for_phi): Likewise.
9761         (compute_avail): Likewise.
9762         (init_pre): Do not allocate the maximal set.
9763         (execute_pre): Do not dump it.
9764
9765 2009-09-09  Martin Jambor  <mjambor@suse.cz>
9766
9767         * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
9768         an SSA_NAME rather than a is_gimple_variable.
9769
9770 2009-09-09  Richard Guenther  <rguenther@suse.de>
9771
9772         PR middle-end/41317
9773         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
9774         code dealing with plain pointer bases.
9775         (maybe_fold_offset_to_reference): Likewise.
9776         (maybe_fold_stmt_addition): Adjust.
9777
9778 2009-09-09  Richard Guenther  <rguenther@suse.de>
9779
9780         * tree.c (free_lang_data_in_type): Do not free the type variant
9781         chains.
9782         (free_lang_data): Merge char_type_node with its properly signed
9783         variant.
9784         (pass_ipa_free): Collect after freeing language specific data.
9785
9786 2009-09-09  Michael Matz  <matz@suse.de>
9787
9788         PR middle-end/41268
9789         * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
9790         SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
9791         * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
9792         to reflect reality.
9793
9794 2009-09-08  DJ Delorie  <dj@redhat.com>
9795
9796         * config/mep/mep.c (conversions[]): Add "ml" pattern.
9797
9798 2009-09-04  Jason Merrill  <jason@redhat.com>
9799
9800         * tree.c (tree_find_value): Remove.
9801         * tree.h: Remove prototype.
9802         * varasm.c (assemble_external): Use value_member instead.
9803
9804 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9805
9806         * toplev.c (process_options): Choose default debugging type when
9807         gtoggle enables debug info and type is unset.
9808
9809 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9810
9811         PR debug/41276
9812         PR debug/41307
9813         * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
9814         invalid subreg.
9815
9816 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9817
9818         * configure: Rebuilt with modified libtool.m4.
9819
9820 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9821
9822         PR debug/41229
9823         PR debug/41291
9824         PR debug/41300
9825         * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
9826
9827 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9828
9829         * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
9830         (remove_statement): Likewise.
9831         (rewrite_use_nonlinear_expr): Adjust.
9832         (remove_unused_ivs): Collect SSA NAMEs to remove and call...
9833         * tree-ssa.c (release_defs_bitset): ... this.  New.
9834         * tree-flow.h (release_defs_bitset): Declare.
9835
9836 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9837
9838         PR debug/41232
9839         * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
9840         in the middle block.
9841
9842 2009-09-08  Kai Tietz  <kai.tietz@onevision.com>
9843
9844         * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
9845         via intptr_t to long type.
9846         (insert_operand_rank): Cast long type via intptr_t to
9847         pointer type.
9848         * genattrtab.c (RTL_HASH): Use intptr_t to cast from
9849         pointer to scalar.
9850         * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
9851         from pointer to unsigned via uintptr_t.
9852
9853         * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
9854         uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
9855         and HAVE_INTPTR_T.
9856         * configure: Regenerated.
9857         * config.in: Regenerated
9858         * system.h (stdint.h): Add include.
9859         (inttypes.h): Likewise.
9860         * Makefile.in (aclocal): Add config/stdint.m4.
9861         * aclocal.m4: Regenerated.
9862
9863 2009-09-08  Bernd Schmidt  <bernd.schmidt@analog.com>
9864
9865         * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
9866         variables.
9867         (note_np_check_stores): New function.
9868         (harmless_null_pointer_p): New function.
9869         (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH.  Callers
9870         changed.  Take into account whether we're in the shadow of a condjump
9871         that tested NP_REG for NULL.
9872         Lose all code that tested for SEQUENCEs.
9873         (workaround_speculation): Avoid inserting NOPs for loads that are
9874         either always executed or a NULL pointer.
9875
9876 2009-09-08  Jan Hubicka  <jh@suse.cz>
9877
9878         * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
9879         * params.def (early-inlining-insns): Likewise.
9880
9881 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
9882
9883         PR rtl-optimization/41239
9884         * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
9885         * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
9886         lists.
9887         * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
9888         across calls, as the calls might not always return normally.
9889         (call_may_noreturn_p): New function.
9890         (deps_analyze_insn): Update last_function_call_may_noreturn list.
9891         (init_deps): Initialize it.
9892         (remove_from_deps): Also remove calls from
9893         last_function_call_may_noreturn list.
9894
9895 2009-09-07  Richard Henderson  <rth@redhat.com>
9896
9897         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
9898         more VR->OPERANDS than LHS operands.  Free LHS before returning.
9899
9900 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
9901
9902         * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
9903         (attr "addrtype"): New member "spreg".
9904         Use it if mem_spfp_address_operand is true for the address.
9905         (attr "type"): New entry "stall".
9906         (cpu_unit "load"): New.
9907         (insn_reservations "load32", "loadp", "loadi"): Add reservation of
9908         "load".
9909         (insn_reservation "loadsp"): New.
9910         (insn_reservation "load_stall1"): New.
9911         (insn_reservation "load_stall3"): New.
9912         (stall): New insn.
9913         * config/bfin/predicates.md (const1_operand, const3_operand): New.
9914         (mem_p_address_operand): Exclude stack and frame pointer based
9915         addresses.
9916         (mem_spfp_address_operand): New; match them here.
9917         * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
9918         (bfin_reorg): Call it if scheduling insns.
9919         (bfin_gen_bundles): Remove dummy insns created by
9920         add_sched_insns_for_speculation.
9921
9922         From Jie Zhang <jie.zhang@analog.com>:
9923         * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
9924         bfin_si_revision, bfin_workarounds): Move these ...
9925         * config/bfin/bfin.h: ... here.
9926
9927         From Mike Frysinger  <michael.frysinger@analog.com>
9928         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
9929         BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
9930         * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
9931         bf547m, bf548m, and bf549m.
9932         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
9933         for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
9934         __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
9935         BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
9936         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
9937         bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
9938         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
9939         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
9940         * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
9941         bf542m, bf544m, bf547m, bf548m, and bf549m.
9942
9943         From Jie Zhang <jie.zhang@analog.com>:
9944         * config/bfin/predicates.md (p_register_operand): New predicate.
9945         (dp_register_operand): New predicate.
9946         * config/bfin/bfin-protos.h (WA_05000074): Define.
9947         (ENABLE_WA_05000074): Define.
9948         * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
9949         (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
9950         * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
9951         (define_attr addrtype): Allow load/store register to be P register.
9952         (define_attr storereg): New.
9953         (define_cpu_unit anomaly_05000074): New.
9954         (define_insn_reservation dsp32shiftimm): New.
9955         (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
9956         (define_insn_reservation loadp): Cannot use slot2.
9957         (define_insn_reservation loadsp): Cannot use slot2.
9958         (define_insn_reservation storep): Cannot use slot2. Does not
9959         apply when working around 05000074.
9960         (define_insn_reservation storep_anomaly_05000074): New.
9961         (define_insn_reservation storei): Does not apply when working
9962         around 05000074.
9963         (define_insn_reservation storei_anomaly_05000074): New.
9964         (define_attr length): Add dsp32shiftimm case.
9965         (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
9966         ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
9967         movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
9968         ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
9969         Set type as dsp32shiftimm for dsp32shiftimm alternatives.
9970
9971 2009-09-07  Martin Jambor  <mjambor@suse.cz>
9972
9973         PR middle-end/41282
9974         * tree-sra.c (create_artificial_child_access): Return NULL if
9975         build_ref_for_offset fails.
9976         (propagate_subacesses_accross_link): Allow build_ref_for_offset
9977         and create_artificial_child_access to fail.
9978
9979 2009-09-06  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
9980
9981         PR c++/41214
9982         * unwind-dw2.c (uw_init_context_1): Mark noinline.
9983         * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
9984         * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
9985
9986 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
9987
9988         * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
9989         block, ensure it has an exit edge.  Emit a barrier after a jump.
9990
9991 2009-09-07  Nick Clifton  <nickc@redhat.com>
9992
9993         * gcc.c (this_is_linker_script): New variable.  Like
9994         this_is_library_file but for the %T constructor.
9995         (end_going_arg): If this_is_linker_script is set then locate the
9996         script and insert a --script switch before it
9997         (do_spec_2): Initialise this_is_linker_script.
9998         (do_spec_1): Likewise.  Handle %T construct.
9999         (eval_spec_function): Preserve this_is_linker_script.
10000         * doc/invoke.texi: Document %T construct in spec files.
10001         * config/m32c/m32c.h (LIB_SPEC): Use it.
10002
10003 2009-09-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10004
10005         * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
10006         * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
10007         when volatile flag is set.
10008         * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
10009
10010 2009-09-06  Eric Botcazou  <ebotcazou@adacore.com>
10011
10012         PR bootstrap/41241
10013         * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
10014         (combine_stack_adjustments_for_block): Allow insns between stack
10015         adjustments and stores with corresponding pre-(dec|inc)rement or
10016         pre-modify operation.
10017
10018 2009-09-06  Jakub Jelinek  <jakub@redhat.com>
10019
10020         PR bootstrap/41241
10021         * combine-stack-adj.c (struct csa_memlist): Rename to...
10022         (struct csa_reflist): ... this.  Rename mem field to ref.
10023         (free_csa_memlist): Rename to...
10024         (free_csa_reflist): ... this.
10025         (record_one_stack_memref): Rename to...
10026         (record_one_stack_ref): ... this.  Handle also REG_P.
10027         (try_apply_stack_adjustment): Handle also REG_P.
10028         (struct record_stack_memrefs_data): Rename to...
10029         (struct record_stack_refs_data): ... this.  Rename memlist field to
10030         reflist.
10031         (record_stack_memrefs): Rename to...
10032         (record_stack_refs): ... this.  For DEBUG_INSNs keep traversing
10033         subexpressions instead of failing when a MEM contains SP references.
10034         For SP itself in DEBUG_INSNs queue it also onto reflist chain.
10035         (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
10036
10037 2009-09-06  Richard Guenther  <rguenther@suse.de>
10038
10039         PR middle-end/41144
10040         * tree.c (build_array_type): Do not record types marked
10041         with structural equality in the canonical type hashtable.
10042
10043 2009-09-06  Richard Guenther  <rguenther@suse.de>
10044
10045         PR middle-end/41261
10046         * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
10047
10048 2009-09-05  Richard Guenther  <rguenther@suse.de>
10049
10050         PR middle-end/41181
10051         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
10052
10053 2009-09-05  Richard Guenther  <rguenther@suse.de>
10054
10055         PR debug/41273
10056         * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
10057
10058 2009-09-05  Richard Guenther  <rguenther@suse.de>
10059
10060         PR middle-end/41271
10061         * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
10062         before comparing function argument types.
10063
10064 2009-09-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10065
10066         PR target/41024
10067         * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
10068         the assembler.
10069
10070 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
10071
10072         Revert:
10073         2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
10074
10075         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
10076         locators before emit_insn is called.
10077
10078 2009-09-04  Vladimir Makarov  <vmakarov@redhat.com>
10079
10080         PR bootstrap/41241
10081         * ira.c (update_equiv_reg): Revert my previous patch for the PR.
10082         * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
10083         (reginfo_init): Don't call allocate_reg_info.
10084
10085 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
10086
10087         PR target/41262
10088         * config/alpha/alpha.c (alpha_does_function_need_gp): Use
10089         NONDEBUG_INSN_P instead of INSN_P.
10090
10091 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
10092
10093         PR debug/41225
10094         * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
10095
10096 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
10097
10098         PR target/41252
10099         * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
10100         pattern of the split.
10101
10102 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
10103
10104         * toplev.c (process_options): Move setter of flag_var_tracking
10105         before other tests that depend on it.  Move down setter of
10106         flag_rename_registers.  Don't enable var-tracking-assignments
10107         by default if selective scheduling is enabled.  Warn if both
10108         are enabled.
10109
10110 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
10111
10112         * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
10113         comment.  Use switch statement to catch overlaps between rtx
10114         and tree codes.  Accept FUNCTION_DECLs in addition to those in...
10115         (IS_DECL_CODE): ... here. Remove.
10116         (check_value_is_not_decl): Remove.
10117         (dv_from_decl, dv_from_value): Check after conversion.
10118
10119 2009-09-04  Richard Guenther  <rguenther@suse.de>
10120
10121         PR middle-end/41257
10122         * (cgraph_finalize_compilation_unit): Move finalizing aliases
10123         after emitting tunks.  Move emitting thunks and ctors from ...
10124         (cgraph_optimize): ... here.  Remove redundant
10125         cgraph_analyze_functions.
10126         * varasm.c (find_decl_and_mark_needed): Remove no longer
10127         necessary check.
10128         (finish_aliases_1): Adjust check for thunk aliases.
10129
10130 2009-09-04  Daniel Gutson  <dgutson@codesourcery.com>
10131
10132         * config/arm/arm.md (ctzsi2): Added braces
10133         to avoid warning that broke booststrap.
10134
10135 2009-09-04  Martin Jambor  <mjambor@suse.cz>
10136
10137         PR tree-optimization/41112
10138         * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
10139         handle variable-bounded arrays.
10140         (expr_with_var_bounded_array_refs_p): New function.
10141         (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
10142
10143 2009-09-04  Wolfgang Gellerich  <gellerich@de.ibm.com>
10144
10145         * config/s390/2097.md: Removed two incorrect bypasses.
10146         (z10_fsimpdf): Fixed latency.
10147         (z10_fhex): New insn_reservation.
10148         (z10_floaddf): Fixed latency.
10149         (z10_floadsf): Fixed latency.
10150         (z10_ftrunctf): Fixed latency.
10151         (z10_ftruncdf): Fixed latency.
10152         * config/s390/s390.c (z10_cost): Fixed values.
10153         (s390_adjust_priority): Added z10 path.
10154         * config/s390/s390.md (type): Added fhex.
10155         (*mov<mode>_64dfp): Updated type attribute.
10156         (*mov<mode>_64): Updated type attribute.
10157         (*mov<mode>_31): Updated type attribute.
10158         (*mov<mode>"): Likewise.
10159         * config/s390/2084.md (x_fsimpdf): Updated condition.
10160
10161 2009-09-04  Andreas Krebbel  <krebbel1@de.ibm.com>
10162
10163         * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
10164         RTXs in the predicate for operand 1.
10165
10166 2009-09-03  Daniel Gutson  <dgutson@codesourcery.com>
10167
10168         * config/arm/arm.md (UNSPEC_RBIT): New constant.
10169         (rbitsi2): New insn.
10170         (ctzsi2): New expand.
10171         * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
10172
10173 2009-09-03  Martin Jambor  <mjambor@suse.cz>
10174
10175         * tree-sra.c (duplicate_expr_for_different_base): Removed.
10176         (create_artificial_child_access): Use build_ref_for_offset instead
10177         of duplicate_expr_for_different_base.
10178         (propagate_subacesses_accross_link): Likewise.
10179
10180 2009-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
10181
10182         * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
10183         of INSN_P.
10184         (mips16e_collect_argument_saves): Skip debug instructions.
10185         (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
10186         (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
10187         (r10k_insert_cache_barriers): Likewise.
10188         (mips_reorg_process_insns): Likewise.
10189
10190 2009-09-03  Vladimir Makarov  <vmakarov@redhat.com>
10191
10192         PR bootstrap/41241
10193         * ira.c (update_equiv_reg): Remove check on class likely spill.
10194
10195 2009-09-03  Jakub Jelinek  <jakub@redhat.com>
10196
10197         PR debug/41236
10198         * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
10199         SIGN_EXTEND or ZERO_EXTEND.  Don't assume there is a REG inside of
10200         it or SUBREG.
10201
10202         PR debug/41238
10203         * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
10204         the stack slot if it is passed by invisible reference.
10205         * var-tracking.c (vt_add_function_parameters): Handle arguments passed
10206         by invisible reference.
10207
10208 2009-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
10209
10210         * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
10211         * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
10212         * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
10213         0.
10214         * config/bfin/sync.md: New file.
10215         * config/bfin/bfin.md: Include it.
10216         (UNSPEC_ATOMIC): New.
10217         (UNSPEC_ONES): Provide a unique number.
10218
10219         From Jie Zhang <jie.zhang@analog.com>:
10220         * config/bfin/bfin.c (ret_regs): New.
10221         (must_save_fp_p): Don't return true because of frame_pointer_needed.
10222         (must_save_rets_p): New.
10223         (n_regs_saved_by_prologue): Use must_save_rets_p instead of
10224         current_function_is_leaf.
10225         (do_link): Likewise.
10226         (do_unlink): Likewise.
10227         (expand_interrupt_handler_prologue): Use ret_regs array.
10228         (expand_interrupt_handler_epilogue): Use ret_regs array and
10229         pass return register to gen_return_internal.
10230         (bfin_expand_epilogue): Pass return register to
10231         gen_return_internal.
10232         (bfin_expand_call): Explicitly clobber RETS.
10233         * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
10234         * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
10235         call_insn_fdpic, call_value_insn_fdpic, call_symbol,
10236         call_value_symbol, call_insn, call_value_insn): Explicitly clobber
10237         RETS.
10238         (return_internal): Take a reg rtx rather than the register number.
10239
10240 2009-09-03  H.J. Lu  <hongjiu.lu@intel.com>
10241
10242         * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
10243         when comparing against estimated_loop_iterations_int return.
10244
10245 2009-09-03  Richard Guenther  <rguenther@suse.de>
10246
10247         * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
10248         eh_personality_libfunc.
10249
10250 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
10251
10252         * tree-parloops.c (separate_decls_in_region): Add space.
10253
10254 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
10255
10256         * tree-parloops.c (separate_decls_in_region): Change the condition
10257         checking if there are reductions in the loop.
10258
10259 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
10260
10261         PR tree-optimization/38275
10262         * tree-parloops.c (parallelize_loops): Replace profitability condition
10263         for expected number of iterations.
10264
10265 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
10266
10267         * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
10268         (bootstrap-debug): Explain conditions in which it becomes default.
10269         (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
10270         make it add to it.
10271
10272 2009-09-03  Namhyung Kim  <namhyung@gmail.com>
10273
10274         * doc/invoke.texi (Optimize Options): Move
10275         -finline-small-functions to the -O2 list.
10276
10277 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
10278
10279         * toplev.c (process_options): Enable var-tracking-assignments
10280         by default if var-tracking is enabled.
10281
10282 2009-09-02  David Daney  <ddaney@caviumnetworks.com>
10283
10284         * cfgbuild.c (find_bb_boundaries): Split blocks containing a
10285         barrier.
10286         * emit-rtl.c (prev_nonnote_insn_bb): New function.
10287         * rtl.h (prev_nonnote_insn_bb): Declare it.
10288
10289 2009-09-03  Diego Novillo  <dnovillo@google.com>
10290
10291         * cgraph.c (cgraph_node_for_decl): New.
10292         * cgraph.h (cgraph_node_for_decl): Declare.
10293         * tree.c (host_integerp): Return 0 if T is NULL.
10294
10295 2009-09-03  Diego Novillo  <dnovillo@google.com>
10296
10297         * tree.h (struct alias_pair): Move from varasm.c.
10298         (alias_pairs): Likewise.
10299         (TYPE_MAXVAL): Define.
10300         (TYPE_MINVAL): Define.
10301         (iterative_hash_host_wide_int): Declare.
10302         (remove_unreachable_alias_pairs): Declare.
10303         * tree-pass.h (pass_ipa_free_lang_data): Declare.
10304         * diagnostic.c (default_diagnostic_starter): Make extern.
10305         (default_diagnostic_finalizer): Make extern.
10306         * diagnostic.h (default_diagnostic_starter): Declare.
10307         (default_diagnostic_finalizer): Declare.
10308         (default_tree_printer): Declare.
10309         * toplev.c (default_tree_printer): Make extern.
10310
10311 2009-09-03  Richard Guenther  <rguenther@suse.de>
10312             Diego Novillo  <dnovillo@google.com>
10313
10314         * cgraph.c (cgraph_add_new_function): Remove gimplification.
10315         * cgraphunit.c (cgraph_expand_function): Do not emit
10316         associated thunks from here.
10317         (cgraph_emit_thunks): New.
10318         (cgraph_optimize): Call it.
10319         Return if any IPA pass finds an error.
10320         * varasm.c (finish_aliases_1): Ignore errorneous aliases used
10321         by thunks.
10322
10323 2009-09-03  Simon Baldwin  <simonb@google.com>
10324             Rafael Espindola  <espindola@google.com>
10325             Richard Guenther  <rguenther@suse.de>
10326             Doug Kwan  <dougkwan@google.com>
10327             Diego Novillo  <dnovillo@google.com>
10328
10329         * tree.c: Include tree-pass.h, langhooks-def.h,
10330         diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
10331         (free_lang_data_in_type): New.
10332         (need_assembler_name_p): New.
10333         (free_lang_data_in_block): New.
10334         (free_lang_data_in_decl): New.
10335         (struct free_lang_data_d): New.
10336         (add_tree_to_fld_list): New.
10337         (find_decls_types_r): New.
10338         (get_eh_types_for_runtime): New.
10339         (find_decls_types_in_eh_region): New.
10340         (find_decls_types_in_node): New.
10341         (find_decls_types_in_var): New.
10342         (free_lang_data_in_cgraph): New.
10343         (free_lang_data): New.
10344         (gate_free_lang_data): New.
10345         (pass_ipa_free_lang_data): New.
10346
10347 2009-09-03  Diego Novillo  <dnovillo@google.com>
10348
10349         * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
10350         * langhooks.h (struct lang_hooks): Add field free_lang_data.
10351         (lang_hooks): Remove const qualifier.
10352         * ipa.c (cgraph_remove_unreachable_nodes): Call
10353         remove_unreachable_alias_pairs.
10354         * except.c (add_type_for_runtime): Check if TYPE has
10355         already been converted.
10356         (lookup_type_for_runtime): Likewise.
10357         (check_handled): Handle converted types.
10358         * varasm.c (remove_unreachable_alias_pairs): New.
10359         * gimple.c: Include demangle.h.
10360         (gimple_decl_printable_name): New.
10361         (gimple_fold_obj_type_ref): New.
10362         * gimple.h (gimple_decl_printable_name): Declare.
10363         (gimple_fold_obj_type_ref): Declare.
10364         * passes.c (init_optimization_passes): Add pass
10365         pass_ipa_free_lang_data.
10366         * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
10367         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
10368
10369 2009-09-03  Diego Novillo  <dnovillo@google.com>
10370
10371         * c-lang.c (lang_hooks): Remove const qualifier.
10372
10373 2009-09-02  Loren James Rittle  <ljrittle@acm.org>
10374
10375         * doc/install.texi (*-*-freebsd*): Update target information.
10376
10377 2009-09-02  Anatoly Sokolov  <aesok@post.ru>
10378
10379         * hard-reg-set.h (call_fixed_regs): Remove.
10380         * reginfo.c (call_fixed_regs): Remove.
10381         (init_reg_sets_1): Remove initialization of call_fixed_regs.
10382         (globalize_reg): Don't use call_fixed_regs.
10383         * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
10384         call_fixed_regs.
10385
10386 2009-09-01  Michael Matz  <matz@suse.de>
10387
10388         * expr.h (emit_storent_insn, expand_expr_real_1,
10389         expand_expr_real_2): Declare.
10390         * expr.c (emit_storent_insn, expand_expr_real_1,
10391         expand_expr_real_2): Export.
10392         (store_expr): Setting and evaluating dont_return_target is useless.
10393         (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
10394         LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
10395         * except.c (expand_resx_expr): Rename to ...
10396         (expand_resx_stmt): ... this.  Rewrite to take gimple statement.
10397         * except.h (expand_resx_stmt): Declare.
10398         * stmt.c: Add include gimple.h
10399         (expand_asm_expr): Rename to ...
10400         (expand_asm_stmt): ... this. Rewrite to take gimple statement.
10401         (expand_case): Rewrite to take gimple statement.
10402         * tree.h (expand_asm_stmt): Declare.
10403         (expand_case): Change prototype.
10404         * Makefile.in (stmt.o): Depend on gimple.h.
10405         * builtins.c (expand_builtin_synchronize): Build gimple asm
10406         statement, not an ASM_EXPR.
10407         * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
10408         gimple_to_tree, release_stmt_tree): Remove.
10409         (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
10410         ggc_free, but hold comparison code and operands separately.
10411         Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
10412         (expand_call_stmt, expand_gimple_stmt_1,
10413         expand_gimple_stmt): New helpers.
10414         (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
10415         release_stmt_tree.  Call expand_gimple_stmt instead.
10416         (expand_gimple_basic_block): Ditto.
10417
10418         * calls.c (emit_call_1): Don't look at EH regions here, make
10419         fntree parameter useless.
10420         (expand_call): New local rettype for TREE_TYPE(exp), use it
10421         throughout.  Remove local p, use addr instead.
10422         Don't look at EH regions here.
10423
10424 2009-09-02  Vladimir Makarov  <vmakarov@redhat.com>
10425
10426         * doc/invoke.texi (-fsched-pressure): Document it.
10427         (-fsched-reg-pressure-heuristic): Remove it.
10428
10429         * reload.c (ira.h): Include.
10430         (find_reloads): Add choosing reload on number of small spilled
10431         classes.
10432
10433         * haifa-sched.c (ira.h): Include.
10434         (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
10435         saved_reg_pressure, curr_reg_live, saved_reg_live,
10436         region_ref_regs): New variables.
10437         (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
10438         initiate_reg_pressure_info, setup_ref_regs,
10439         initiate_bb_reg_pressure_info, save_reg_pressure,
10440         restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
10441         functions.
10442         (setup_insn_reg_pressure_info): New function.
10443         (rank_for_schedule): Add pressure checking and insn issue time.
10444         Remove comparison of insn reg weights.
10445         (ready_sort): Set insn reg pressure info.
10446         (update_register_pressure, setup_insn_max_reg_pressure,
10447         update_reg_and_insn_max_reg_pressure,
10448         sched_setup_bb_reg_pressure_info): New functions.
10449         (schedule_insn): Add code for printing and updating reg pressure info.
10450         (find_set_reg_weight, find_insn_reg_weight): Remove.
10451         (ok_for_early_queue_removal): Do nothing if pressure_only_p.
10452         (debug_ready_list): Print reg pressure info.
10453         (schedule_block): Ditto.  Check insn issue time.
10454         (sched_init): Set up sched_pressure_p.  Allocate and set up some
10455         reg pressure related info.
10456         (sched_finish): Free some reg pressure related info.
10457         (fix_tick_ready): Make insn always ready if pressure_p.
10458         (init_h_i_d): Don't call find_insn_reg_weight.
10459         (haifa_finish_h_i_d): Free insn reg pressure info.
10460
10461         * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
10462         ira_memory_move_cost, ira_class_hard_regs,
10463         ira_class_hard_regs_num, ira_no_alloc_regs,
10464         ira_available_class_regs, ira_reg_class_cover_size,
10465         ira_reg_class_cover, ira_class_translate): Move to ira.h.
10466
10467         * ira-lives.c (single_reg_class): Check mode to find how many
10468         registers are necessary for operand.
10469         (ira_implicitly_set_insn_hard_regs): New.
10470
10471         * common.opt (fsched-pressure): New options.
10472         (fsched-reg-pressure-heuristic): Remove.
10473
10474         * ira.c (setup_eliminable_regset): Rename to
10475         ira_setup_eliminable_regset.  Make it external.
10476         (expand_reg_info): Pass cover class to setup_reg_classes.
10477         (ira): Call resize_reg_info instead of allocate_reg_info.
10478
10479         * sched-deps.c: Include ira.h.
10480         (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
10481         (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
10482         reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
10483         mark_insn_hard_regno_birth, mark_insn_reg_birth,
10484         mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
10485         mark_insn_reg_store, mark_insn_reg_clobber,
10486         setup_insn_reg_pressure_info): New.
10487         (sched_analyze_1): Update implicit_reg_pending_uses.
10488         (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
10489         Use them to create dependencies.  Set insn reg uses and pressure
10490         info.  Process reg_pending_uses in one place.
10491         (free_deps): Free implicit sets.
10492         (remove_from_deps): Remove implicit sets if necessary.  Check
10493         implicit sets when clearing reg_last_in_use.
10494         (init_deps_global): Clear implicit_reg_pending_clobbers and
10495         implicit_reg_pending_uses.
10496
10497         * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
10498         ira_memory_move_cost, ira_class_hard_regs,
10499         ira_class_hard_regs_num, ira_no_alloc_regs,
10500         ira_available_class_regs, ira_reg_class_cover_size,
10501         ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
10502         (ira_setup_eliminable_regset, ira_set_pseudo_classes,
10503         ira_implicitly_set_insn_hard_regs): New prototypes.
10504
10505         * ira-costs.c (pseudo_classes_defined_p, allocno_p,
10506         cost_elements_num): New variables.
10507         (allocno_costs, total_costs): Rename to costs and
10508         total_allocno_costs.
10509         (COSTS_OF_ALLOCNO): Rename to COSTS.
10510         (allocno_pref): Rename to pref.
10511         (allocno_pref_buffer): Rename to pref_buffer.
10512         (common_classes): Rename to regno_cover_class.
10513         (COST_INDEX): New.
10514         (record_reg_classes): Set allocno attributes only if allocno_p.
10515         (record_address_regs): Ditto.  Use COST_INDEX instead of ALLOCNO_NUM.
10516         (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
10517         and COSTS_OF_ALLOCNO.
10518         (print_costs): Rename to print_allocno_costs.
10519         (print_pseudo_costs): New.
10520         (process_bb_node_for_costs): Split into 2 functions with new
10521         function process_bb_for_costs.  Pass BB to process_bb_for_costs.
10522         (find_allocno_class_costs): Rename to find_costs_and_classes.  Add
10523         new parameter dump_file.  Use cost_elements_num instead of
10524         ira_allocnos_num.  Make one iteration if preferred classes were
10525         already calculated for scheduler.  Make 2 versions of code
10526         depending on allocno_p.
10527         (setup_allocno_cover_class_and_costs): Check allocno_p.  Use
10528         regno_cover_class and COSTS instead of common_classes and
10529         COSTS_OF_ALLOCNO.
10530         (init_costs, finish_costs): New.
10531         (ira_costs): Set up allocno_p and cost_elements_num.  Call
10532         init_costs and finish_costs.
10533         (ira_set_pseudo_classes): New.
10534
10535         * rtl.h (allocate_reg_info): Remove.
10536         (resize_reg_info): Change return type.
10537         (reg_cover_class): New.
10538         (setup_reg_classes): Add new parameter.
10539
10540         * sched-int.h (struct deps_reg): New member implicit_sets.
10541         (sched_pressure_p, sched_regno_cover_class): New external definitions.
10542         (INCREASE_BITS): New macro.
10543         (struct reg_pressure_data, struct reg_use_data): New.
10544         (struct _haifa_insn_data): Remove reg_weight.  Add members
10545         reg_pressure, reg_use_list, reg_set_list, and
10546         reg_pressure_excess_cost_change.
10547         (struct deps): New member implicit_sets.
10548         (pressure_p): New variable.
10549         (COVER_CLASS_BITS, INCREASE_BITS): New macros.
10550         (struct reg_pressure_data, struct reg_use_data): New.
10551         (INSN_REG_WEIGHT): Remove.
10552         (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
10553         INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
10554         (sched_init_region_reg_pressure_info,
10555         sched_setup_bb_reg_pressure_info): New prototypes.
10556
10557         * reginfo.c (struct reg_pref): New member coverclass.
10558         (reg_cover_class): New function.
10559         (reginfo_init, pass_reginfo_init): Move after free_reg_info.
10560         (reg_info_size): New variable.
10561         (allocate_reg_info): Make static.  Setup reg_info_size.
10562         (resize_reg_info): Use reg_info_size.  Return flag of resizing.
10563         (setup_reg_classes): Add a new parameter.  Setup cover class too.
10564
10565         * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
10566         the dependencies.
10567
10568         * sched-rgn.c (deps_join): Set up implicit_sets.
10569         (schedule_region): Set up region and basic blocks pressure
10570         relative info.
10571
10572         * passes.c (init_optimization_passes): Move
10573         pass_subregs_of_mode_init before pass_sched.
10574
10575 2009-09-02  Martin Jambor  <mjambor@suse.cz>
10576
10577         * tree-sra.c (struct access): New field grp_hint.
10578         (dump_access): Dump grp_hint.
10579         (sort_and_splice_var_accesses): Set grp_hint if a group is read
10580         multiple times.
10581         (analyze_access_subtree): Only scalarize accesses with grp_hint set or
10582         those which have been specifically read and somehow written to.
10583         (propagate_subacesses_accross_link): Set grp_hint of right child and
10584         also possibly of the left child.
10585
10586 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
10587
10588         * tree-object-size.c (addr_object_size): Always use object_size_type
10589         0 or 2 when determining the pointer pointed object size.
10590
10591 2009-09-02  Richard Guenther  <rguenther@suse.de>
10592
10593         Revert
10594         2009-08-31  Richard Guenther  <rguenther@suse.de>
10595
10596         * builtins.c (fold_builtin_memory_op): Use the alias oracle
10597         to query if the memory regions for memmove overlap.
10598         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
10599         asserts on pointers, instead deal with odd trees.
10600         (ptr_derefs_may_alias_p): Likewise.
10601         (refs_may_alias_p_1): Constructor bases also never alias.
10602
10603 2009-08-01  Christian Bruel  <christian.bruel@st.com>
10604
10605         Revert:
10606         2009-07-31  Christian Bruel  <christian.bruel@st.com>
10607         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
10608
10609 2009-09-01  Alexandre Oliva  <aoliva@redhat.com>
10610
10611         * doc/invoke.texi (-fvar-tracking-assignments): New.
10612         (-fvar-tracking-assignments-toggle): New.
10613         (-fdump-final-insns=file): Mark filename as optional.
10614         (--param min-nondebug-insn-uid): New.
10615         (-gdwarf-@{version}): Mention version 4.
10616         * opts.c (common_handle_option): Accept it.
10617         * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
10618         * regrename.c (regrename_optimize): Drop last.  Don't count debug
10619         insns as uses.  Don't reject change because of debug insn.
10620         (do_replace): Reject DEBUG_INSN as chain starter.  Take base_regno
10621         from the chain starter, and check for inexact matches in DEBUG_INSNS.
10622         (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
10623         (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
10624         * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
10625         * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
10626         * doc/gimple.texi (is_gimple_debug): New.
10627         (gimple_debug_bind_p): New.
10628         (is_gimple_call, gimple_assign_cast_p): End sentence with period.
10629         * doc/install.texi (bootstrap-debug): More details.
10630         (bootstrap-debug-big, bootstrap-debug-lean): Document.
10631         (bootstrap-debug-lib): More details.
10632         (bootstrap-debug-ckovw): Update.
10633         (bootstrap-time): New.
10634         * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
10635         (insert_phi_nodes_for): Insert debug stmts.
10636         (rewrite_stmt): Take iterator.  Insert debug stmts.
10637         (rewrite_enter_block): Adjust.
10638         (maybe_replace_use_in_debug_stmt): New.
10639         (rewrite_update_stmt): Use it.
10640         (mark_use_interesting): Return early for debug stmts.
10641         * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
10642         stmts before replacing stmt.
10643         (move_computations_stmt): Likewise.
10644         * ira-conflicts.c (add_copies): Skip debug insns.
10645         * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
10646         (regstat_bb_compute_ri): Skip debug insns.
10647         * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
10648         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
10649         check_loop_closed_ssa_stmt): Skip debug stmts.
10650         * tree-tailcall.c (find_tail_calls): Likewise.
10651         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
10652         * tree.h (MAY_HAVE_DEBUG_STMTS): New.
10653         (build_var_debug_value_stat): Declare.
10654         (build_var_debug_value): Define.
10655         (target_for_debug_bind): Declare.
10656         * reload.c (find_equiv_reg): Skip debug insns.
10657         * rtlanal.c (reg_used_between_p): Skip debug insns.
10658         (side_effects_p): Likewise.
10659         (canonicalize_condition): Likewise.
10660         * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
10661         insns never depend on debug insns.
10662         (create_ddg_dep_no_link): Likewise.
10663         (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
10664         Don't add inter-loop dependencies for debug insns.
10665         (build_intra_loop_deps): Likewise.
10666         (create_ddg): Count debug insns.
10667         * ddg.h (struct ddg::num_debug): New.
10668         (num_backargs): Pair up with previous int field.
10669         * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
10670         -fcompare-debug-second.
10671         * final.c (get_attr_length_1): Skip debug insns.
10672         (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
10673         * gcc.c (invoke_as): Call compare-debug-dump-opt.
10674         (driver_self_specs): Map -fdump-final-insns to
10675         -fdump-final-insns=..
10676         (get_local_tick): New.
10677         (compare_debug_dump_opt_spec_function): Test for . argument and
10678         compute output name.  Compute temp output spec without flag name.
10679         Compute -frandom-seed.
10680         (OPT): Undef after use.
10681         * cfgloopanal.c (num_loop_insns): Skip debug insns.
10682         (average_num_loop_insns): Likewise.
10683         * params.h (MIN_NONDEBUG_INSN_UID): New.
10684         * gimple.def (GIMPLE_DEBUG): New.
10685         * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
10686         * auto-inc-dec.c (merge_in_block): Skip debug insns.
10687         (merge_in_block): Fix whitespace.
10688         * toplev.c (flag_var_tracking): Update comment.
10689         (flag_var_tracking_assignments): New.
10690         (flag_var_tracking_assignments_toggle): New.
10691         (process_options): Don't open final insns dump file if we're not
10692         going to write to it.  Compute defaults for var_tracking.
10693         * df-scan.c (df_insn_rescan_debug_internal): New.
10694         (df_uses_record): Handle debug insns.
10695         * haifa-sched.c (ready): Initialize n_debug.
10696         (contributes_to_priority): Skip debug insns.
10697         (dep_list_size): New.
10698         (priority): Use it.
10699         (rank_for_schedule): Likewise.  Schedule debug insns as soon as
10700         they're ready.  Disregard previous debug insns to make decisions.
10701         (queue_insn): Never queue debug insns.
10702         (ready_add, ready_remove_first, ready_remove): Count debug insns.
10703         (schedule_insn): Don't reject debug insns because of issue rate.
10704         (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
10705         (queue_to_ready): Skip and discount debug insns.
10706         (choose_ready): Let debug insns through.
10707         (schedule_block): Check boundary debug insns.  Discount debug
10708         insns, schedule them early.  Adjust whitespace.
10709         (set_priorities): Check for boundary debug insns.
10710         (add_jump_dependencies): Use dep_list_size.
10711         (prev_non_location_insn): New.
10712         (check_cfg): Use it.
10713         * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
10714         stmts.
10715         (remove_unused_ivs): Reset debug stmts.
10716         * modulo-sched.c (const_iteration_count): Skip debug insns.
10717         (res_MII): Discount debug insns.
10718         (loop_single_full_bb_p): Skip debug insns.
10719         (sms_schedule): Likewise.
10720         (sms_schedule_by_order): Likewise.
10721         (ps_has_conflicts): Likewise.
10722         * caller-save.c (refmarker_fn): New.
10723         (save_call_clobbered_regs): Replace regs with saved mem in
10724         debug insns.
10725         (mark_referenced_regs): Take pointer, mark and arg.  Adjust.
10726         Call refmarker_fn mark for hardregnos.
10727         (mark_reg_as_referenced): New.
10728         (replace_reg_with_saved_mem): New.
10729         * ipa-pure-const.c (check_stmt): Skip debug stmts.
10730         * cse.c (cse_insn): Canonicalize debug insns.  Skip them when
10731         searching back.
10732         (cse_extended_basic_block): Skip debug insns.
10733         (count_reg_usage): Likewise.
10734         (is_dead_reg): New, split out of...
10735         (set_live_p): ... here.
10736         (insn_live_p): Use it for debug insns.
10737         * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
10738         (execute_optimize_stdarg): Likewise.
10739         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
10740         * tree-ssa-propagate.c (substitute_and_fold): Don't regard
10741         changes in debug stmts as changes.
10742         * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
10743         (moveup_expr): Don't move across debug insns.  Don't move
10744         debug insn if it would create a bookkeeping block.
10745         (moveup_expr_cached): Don't use cache for debug insns that
10746         are heads of blocks.
10747         (compute_av_set_inside_bb): Skip debug insns.
10748         (sel_rank_for_schedule): Schedule debug insns first.  Remove
10749         dead code.
10750         (block_valid_for_bookkeeping_p); Support lax searches.
10751         (create_block_for_bookkeeping): Adjust block numbers when
10752         encountering debug-only blocks.
10753         (find_place_for_bookkeeping): Deal with debug-only blocks.
10754         (generate_bookkeeping_insn): Accept no place to insert.
10755         (remove_temp_moveop_nops): New argument full_tidying.
10756         (prepare_place_to_insert): Deal with debug insns.
10757         (advance_state_on_fence): Debug insns don't start cycles.
10758         (update_boundaries): Take fence as argument.  Deal with
10759         debug insns.
10760         (schedule_expr_on_boundary): No full_tidying on debug insns.
10761         (fill_insns): Deal with debug insns.
10762         (track_scheduled_insns_and_blocks): Don't count debug insns.
10763         (need_nop_to_preserve_insn_bb): New, split out of...
10764         (remove_insn_from_stream): ... this.
10765         (fur_orig_expr_not_found): Skip debug insns.
10766         * rtl.def (VALUE): Move up.
10767         (DEBUG_INSN): New.
10768         * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
10769         (nearest_common_dominator_of_uses): Take debug_stmts argument.
10770         Set it if debug stmts are found.
10771         (statement_sink_location): Skip debug stmts.  Propagate
10772         moving defs into debug stmts.
10773         * ifcvt.c (first_active_insn): Skip debug insns.
10774         (last_active_insns): Likewise.
10775         (cond_exec_process_insns): Likewise.
10776         (noce_process_if_block): Likewise.
10777         (check_cond_move_block): Likewise.
10778         (cond_move_convert_if_block): Likewise.
10779         (block_jumps_and_fallthru_p): Likewise.
10780         (dead_or_predicable): Likewise.
10781         * dwarf2out.c (debug_str_hash_forced): New.
10782         (find_AT_string): Add comment.
10783         (gen_label_for_indirect_string): New.
10784         (get_debug_string_label): New.
10785         (AT_string_form): Use it.
10786         (mem_loc_descriptor): Handle non-TLS symbols.  Handle MINUS , DIV,
10787         MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING.  Accept but
10788         discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
10789         several operations that cannot be represented with DWARF opcodes.
10790         (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND.  Require
10791         dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
10792         (dwarf2out_var_location): Take during-call mark into account.
10793         (output_indirect_string): Update comment.  Output if there are
10794         label and references.
10795         (prune_indirect_string): New.
10796         (prune_unused_types): Call it if debug_str_hash_forced.
10797         More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
10798         (dw_long_long_const): Remove.
10799         (struct dw_val_struct): Change val_long_long type to rtx.
10800         (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
10801         val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
10802         (output_die): Likewise.  Use HOST_BITS_PER_WIDE_INT size of each
10803         component instead of HOST_BITS_PER_LONG.
10804         (output_loc_operands): Likewise.  For const8* assert
10805         HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
10806         (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
10807         rather than HOST_BITS_PER_LONG is >= 64.
10808         (add_AT_long_long): Remove val_hi and val_lo arguments, add
10809         val_const_double.
10810         (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
10811         HOST_BITS_PER_LONG for dw_val_class_long_long.
10812         (add_const_value_attribute): Adjust add_AT_long_long caller.  Don't
10813         handle TLS SYMBOL_REFs.  If CONST wraps a constant, tail recurse.
10814         (dwarf_stack_op_name): Handle DW_OP_implicit_value and
10815         DW_OP_stack_value.
10816         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
10817         Handle DW_OP_implicit_value.
10818         (extract_int): Move prototype earlier.
10819         (mem_loc_descriptor): For SUBREG punt if inner
10820         mode size is wider than DWARF2_ADDR_SIZE.  Handle SIGN_EXTEND
10821         and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}.  Handle
10822         EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
10823         UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
10824         (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
10825         instead of Pmode size.
10826         (loc_descriptor): Add MODE argument.  Handle CONST_INT, CONST_DOUBLE,
10827         CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
10828         attempt to handle other expressions.  Don't handle TLS SYMBOL_REFs.
10829         (concat_loc_descriptor, concatn_loc_descriptor,
10830         loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
10831         (add_location_or_const_value_attribute): Likewise.  For single
10832         location loc_lists attempt to use add_const_value_attribute
10833         for constant decls.  Add DW_AT_const_value even if
10834         NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
10835         in its expression.
10836         * cfgbuild.c (inside_basic_block_p): Handle debug insns.
10837         (control_flow_insn_p): Likewise.
10838         * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
10839         (separate_decls_in_region_debug_bind): New.
10840         (separate_decls_in_region): Process debug bind stmts afterwards.
10841         * recog.c (verify_changes): Handle debug insns.
10842         (extract_insn): Likewise.
10843         (peephole2_optimize): Skip debug insns.
10844         * dse.c (scan_insn): Skip debug insns.
10845         * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
10846         Pass it on.
10847         (setup_id_for_insn): Handle debug insns.
10848         (maybe_tidy_empty_bb): Adjust whitespace.
10849         (tidy_control_flow): Skip debug insns.
10850         (sel_remove_insn): Adjust for debug insns.
10851         (sel_estimate_number_of_insns): Skip debug insns.
10852         (create_insn_rtx_from_pattern): Handle debug insns.
10853         (create_copy_of_insn_rtx): Likewise.
10854         * sel-sched-.h (sel_bb_end): Declare.
10855         (sel_bb_empty_or_nop_p): New.
10856         (get_all_loop_exits): Use it.
10857         (_eligible_successor_edge_p): Likewise.
10858         (return_nop_to_pool): Adjust.
10859         * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
10860         * ira-lives.c (process_bb_node_lives): Skip debug insns.
10861         * gimple-pretty-print.c (dump_gimple_debug): New.
10862         (dump_gimple_stmt): Use it.
10863         (dump_bb_header): Skip gimple debug stmts.
10864         * regmove.c (optimize_reg_copy_1): Discount debug insns.
10865         (fixup_match_2): Likewise.
10866         (regmove_backward_pass): Likewise.  Simplify combined
10867         replacement.  Handle debug insns.
10868         * function.c (instantiate_virtual_regs): Handle debug insns.
10869         * function.h (struct emit_status): Add x_cur_debug_insn_uid.
10870         * print-rtl.h: Include cselib.h.
10871         (print_rtx): Print VALUEs.  Split out and recurse for VAR_LOCATIONs.
10872         * df.h (df_inns_rescan_debug_internal): Declare.
10873         * gcse.c (alloc_hash_table): Estimate n_insns.
10874         (cprop_insn): Don't regard debug insns as changes.
10875         (bypass_conditional_jumps): Skip debug insns.
10876         (one_pre_gcse_pass): Adjust.
10877         (one_code_hoisting_pass): Likewise.
10878         (compute_ld_motion_mems): Skip debug insns.
10879         (one_cprop_pass): Adjust.
10880         * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
10881         (if_convertible_stmt_p): Handle debug stmts.
10882         * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
10883         * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
10884         * ira-build.c (create_bb_allocnos): Skip debug insns.
10885         * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
10886         (has_single_use): Likewise.
10887         (single_imm_use): Likewise.
10888         (num_imm_uses): Likewise.
10889         * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
10890         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
10891         (create_outofssa_var_map): Likewise.
10892         * lower-subreg.c (adjust_decomposed_uses): New.
10893         (resolve_debug): New.
10894         (decompose_multiword_subregs): Use it.
10895         * tree-dfa.c (find_referenced_vars): Skip debug stmts.
10896         * emit-rtl.c: Include params.h.
10897         (cur_debug_insn_uid): Define.
10898         (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
10899         (copy_rtx_if_shared_1): Handle debug insns.
10900         (reset_used_flags): Likewise.
10901         (set_used_flags): LIkewise.
10902         (get_max_insn_count): New.
10903         (next_nondebug_insn): New.
10904         (prev_nondebug_insn): New.
10905         (make_debug_insn_raw): New.
10906         (emit_insn_before_noloc): Handle debug insns.
10907         (emit_jump_insn_before_noloc): Likewise.
10908         (emit_call_insn_before_noloc): Likewise.
10909         (emit_debug_insn_before_noloc): New.
10910         (emit_insn_after_noloc): Handle debug insns.
10911         (emit_jump_insn_after_noloc): Likewise.
10912         (emit_call_insn_after_noloc): Likewise.
10913         (emit_debug_insn_after_noloc): Likewise.
10914         (emit_insn_after): Take loc from earlier non-debug insn.
10915         (emit_jump_insn_after): Likewise.
10916         (emit_call_insn_after): Likewise.
10917         (emit_debug_insn_after_setloc): New.
10918         (emit_debug_insn_after): New.
10919         (emit_insn_before): Take loc from later non-debug insn.
10920         (emit_jump_insn_before): Likewise.
10921         (emit_call_insn_before): Likewise.
10922         (emit_debug_insn_before_setloc): New.
10923         (emit_debug_insn_before): New.
10924         (emit_insn): Handle debug insns.
10925         (emit_debug_insn): New.
10926         (emit_jump_insn): Handle debug insns.
10927         (emit_call_insn): Likewise.
10928         (emit): Likewise.
10929         (init_emit): Take min-nondebug-insn-uid into account.
10930         Initialize cur_debug_insn_uid.
10931         (emit_copy_of_insn_after): Handle debug insns.
10932         * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
10933         location of single rhs in place.
10934         (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
10935         (floor_sdiv_adjust): New.
10936         (cell_sdiv_adjust): New.
10937         (cell_udiv_adjust): New.
10938         (round_sdiv_adjust): New.
10939         (round_udiv_adjust): New.
10940         (wrap_constant): Moved from cselib.
10941         (unwrap_constant): New.
10942         (expand_debug_expr): New.
10943         (expand_debug_locations): New.
10944         (expand_gimple_basic_block): Drop hiding redeclaration.  Expand
10945         debug bind stmts.
10946         (gimple_expand_cfg): Expand debug locations.
10947         * cselib.c: Include tree-pass.h.
10948         (struct expand_value_data): New.
10949         (cselib_record_sets_hook): New.
10950         (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
10951         (cselib_clear_table): Move, and implemnet in terms of...
10952         (cselib_reset_table_with_next_value): ... this.
10953         (cselib_get_next_unknown_value): New.
10954         (discard_useless_locs): Don't discard preserved values.
10955         (cselib_preserve_value): New.
10956         (cselib_preserved_value_p): New.
10957         (cselib_preserve_definitely): New.
10958         (cselib_clear_preserve): New.
10959         (cselib_preserve_only_values): New.
10960         (new_cselib_val): Take rtx argument.  Dump it in details.
10961         (cselib_lookup_mem): Adjust.
10962         (expand_loc): Take regs_active in struct.  Adjust.  Silence
10963         dumps unless details are requested.
10964         (cselib_expand_value_rtx_cb): New.
10965         (cselib_expand_value_rtx): Rename and reimplment in terms of...
10966         (cselib_expand_value_rtx_1): ... this.  Adjust.  Silence dumps
10967         without details.  Copy more subregs.  Try to resolve values
10968         using a callback.  Wrap constants.
10969         (cselib_subst_to_values): Adjust.
10970         (cselib_log_lookup): New.
10971         (cselib_lookup): Call it.
10972         (cselib_invalidate_regno): Don't count preserved values as useless.
10973         (cselib_invalidate_mem): Likewise.
10974         (cselib_record_set): Likewise.
10975         (struct set): Renamed to cselib_set, moved to cselib.h.
10976         (cselib_record_sets): Adjust.  Call hook.
10977         (cselib_process_insn): Reset table when it would be cleared.
10978         (dump_cselib_val): New.
10979         (dump_cselib_table): New.
10980         * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
10981         (remove_forwarder_block): Support moving debug stmts.
10982         * cselib.h (cselib_record_sets_hook): Declare.
10983         (cselib_expand_callback): New type.
10984         (cselib_expand_value_rtx_cb): Declare.
10985         (cselib_reset_table_with_next_value): Declare.
10986         (cselib_get_next_unknown_value): Declare.
10987         (cselib_preserve_value): Declare.
10988         (cselib_preserved_value_p): Declare.
10989         (cselib_preserve_only_values): Declare.
10990         (dump_cselib_table): Declare.
10991         * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
10992         (try_crossjump_to_edge): Likewise.
10993         (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
10994         dominated blocks when debug stmts are present.
10995         * simplify-rtx.c (delegitimize_mem_from_attrs): New.
10996         * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
10997         (set_var_live_on_entry): Likewise.
10998         * loop-invariant.c (find_invariants_bb): Skip debug insns.
10999         * cfglayout.c (curr_location, last_location): Make static.
11000         (set_curr_insn_source_location): Don't avoid bouncing.
11001         (get_curr_insn_source_location): New.
11002         (get_curr_insn_block): New.
11003         (duplicate_insn_chain): Handle debug insns.
11004         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
11005         into debug stmts.
11006         * common.opt (fcompare-debug): Move to sort order.
11007         (fdump-unnumbered-links): Likewise.
11008         (fvar-tracking-assignments): New.
11009         (fvar-tracking-assignments-toggle): New.
11010         * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
11011         because of debug stmts.
11012         (mark_stmt_if_obviously_necessary): Mark debug stmts.
11013         (eliminate_unnecessary_stmts): Walk dominated blocks before
11014         dominators.
11015         * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
11016         * ira.c (memref_used_between_p): Skip debug insns.
11017         (update_equiv_regs): Likewise.
11018         * sched-deps.c (sd_lists_size): Accept empty list.
11019         (sd_init_insn): Mark debug insns.
11020         (sd_finish_insn): Unmark them.
11021         (sd_add_dep): Reject non-debug deps on debug insns.
11022         (fixup_sched_groups): Give debug insns group treatment.
11023         Skip debug insns.
11024         (sched_analyze_reg): Don't mark debug insns for sched before call.
11025         (sched_analyze_2): Handle debug insns.
11026         (sched_analyze_insn): Compute next non-debug insn.  Handle debug
11027         insns.
11028         (deps_analyze_insn): Handle debug insns.
11029         (deps_start_bb): Skip debug insns.
11030         (init_deps): Initialize last_debug_insn.
11031         * tree-ssa.c (target_for_debug_bind): New.
11032         (find_released_ssa_name): New.
11033         (propagate_var_def_into_debug_stmts): New.
11034         (propagate_defs_into_debug_stmts): New.
11035         (verify_ssa): Skip debug bind stmts without values.
11036         (warn_uninialized_vars): Skip debug stmts.
11037         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
11038         * rtl.c (rtx_equal_p_cb): Handle VALUEs.
11039         (rtx_equal_p): Likewise.
11040         * ira-costs.c (scan_one_insn): Skip debug insns.
11041         (process_bb_node_for_hard_reg_moves): Likewise.
11042         * rtl.h (DEBUG_INSN_P): New.
11043         (NONDEBUG_INSN_P): New.
11044         (MAY_HAVE_DEBUG_INSNS): New.
11045         (INSN_P): Accept debug insns.
11046         (RTX_FRAME_RELATED_P): Likewise.
11047         (INSN_DELETED_P): Likewise
11048         (PAT_VAR_LOCATION_DECL): New.
11049         (PAT_VAR_LOCATION_LOC): New.
11050         (PAT_VAR_OCATION_STATUS): New.
11051         (NOTE_VAR_LOCATION_DECL): Reimplement.
11052         (NOTE_VAR_LOCATION_LOC): Likewise.
11053         (NOTE_VAR_LOCATION_STATUS): Likewise.
11054         (INSN_VAR_LOCATION): New.
11055         (INSN_VAR_LOCATION_DECL): New.
11056         (INSN_VAR_LOCATION_LOC): New.
11057         (INSN_VAR_LOCATION_STATUS): New.
11058         (gen_rtx_UNKNOWN_VAR_LOC): New.
11059         (VAR_LOC_UNKNOWN_P): New.
11060         (NOTE_DURING_CALL_P): New.
11061         (SCHED_GROUP_P): Accept debug insns.
11062         (emit_debug_insn_before): Declare.
11063         (emit_debug_insn_before_noloc): Declare.
11064         (emit_debug_insn_beore_setloc): Declare.
11065         (emit_debug_insn_after): Declare.
11066         (emit_debug_insn_after_noloc): Declare.
11067         (emit_debug_insn_after_setloc): Declare.
11068         (emit_debug_insn): Declare.
11069         (make_debug_insn_raw): Declare.
11070         (prev_nondebug_insn): Declare.
11071         (next_nondebug_insn): Declare.
11072         (delegitimize_mem_from_attrs): Declare.
11073         (get_max_insn_count): Declare.
11074         (wrap_constant): Declare.
11075         (unwrap_constant): Declare.
11076         (get_curr_insn_source_location): Declare.
11077         (get_curr_insn_block): Declare.
11078         * tree-inline.c (insert_debug_decl_map): New.
11079         (processing_debug_stmt): New.
11080         (remap_decl): Don't create new mappings in debug stmts.
11081         (remap_gimple_op_r): Don't add references in debug stmts.
11082         (copy_tree_body_r): Likewise.
11083         (remap_gimple_stmt): Handle debug bind stmts.
11084         (copy_bb): Skip debug stmts.
11085         (copy_edges_for_bb): Likewise.
11086         (copy_debug_stmt): New.
11087         (copy_debug_stmts): New.
11088         (copy_body): Copy debug stmts at the end.
11089         (insert_init_debug_bind): New.
11090         (insert_init_stmt): Take id.  Skip and emit debug stmts.
11091         (setup_one_parameter): Remap variable earlier, register debug mapping.
11092         (estimate_num_insns): Skip debug stmts.
11093         (expand_call_inline): Preserve debug_map.
11094         (optimize_inline_calls): Check for no debug_stmts left-overs.
11095         (unsave_expr_now): Preserve debug_map.
11096         (copy_gimple_seq_and_replace_locals): Likewise.
11097         (tree_function_versioning): Check for no debug_stmts left-overs.
11098         Init and destroy debug_map as needed.  Split edges unconditionally.
11099         (build_duplicate_type): Init and destroy debug_map as needed.
11100         * tree-inline.h: Include gimple.h instead of pointer-set.h.
11101         (struct copy_body_data): Add debug_stmts and debug_map.
11102         * sched-int.h (struct ready_list): Add n_debug.
11103         (struct deps): Add last_debug_insn.
11104         (DEBUG_INSN_SCHED_P): New.
11105         (BOUNDARY_DEBUG_INSN_P): New.
11106         (SCHEDULE_DEBUG_INSN_P): New.
11107         (sd_iterator_cond): Accept empty list.
11108         * combine.c (create_log_links): Skip debug insns.
11109         (combine_instructions): Likewise.
11110         (cleanup_auto_inc_dec): New.  From Jakub Jelinek: Make sure the
11111         return value is always unshared.
11112         (struct rtx_subst_pair): New.
11113         (auto_adjust_pair): New.
11114         (propagate_for_debug_subst): New.
11115         (propagate_for_debug): New.
11116         (try_combine): Skip debug insns.  Propagate removed defs into
11117         debug insns.
11118         (next_nonnote_nondebug_insn): New.
11119         (distribute_notes): Use it.  Skip debug insns.
11120         (distribute_links): Skip debug insns.
11121         * tree-outof-ssa.c (set_location_for_edge): Likewise.
11122         * resource.c (mark_target_live_regs): Likewise.
11123         * var-tracking.c: Include cselib.h and target.h.
11124         (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
11125         MO_VAL_SET.
11126         (micro_operation_type_name): New.
11127         (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
11128         (struct micro_operation_def): Update comments.
11129         (decl_or_value): New type.  Use instead of decls.
11130         (struct emit_note_data_def): Add vars.
11131         (struct attrs_def): Use decl_or_value.
11132         (struct variable_tracking_info_def): Add permp, flooded.
11133         (struct location_chain_def): Update comment.
11134         (struct variable_part_def): Use decl_or_value.
11135         (struct variable_def): Make var_part a variable length array.
11136         (valvar_pool): New.
11137         (scratch_regs): New.
11138         (cselib_hook_called): New.
11139         (dv_is_decl_p): New.
11140         (dv_is_value_p): New.
11141         (dv_as_decl): New.
11142         (dv_as_value): New.
11143         (dv_as_opaque): New.
11144         (dv_onepart_p): New.
11145         (dv_pool): New.
11146         (IS_DECL_CODE): New.
11147         (check_value_is_not_decl): New.
11148         (dv_from_decl): New.
11149         (dv_from_value): New.
11150         (dv_htab_hash): New.
11151         (variable_htab_hash): Use it.
11152         (variable_htab_eq): Support values.
11153         (variable_htab_free): Free from the right pool.
11154         (attrs_list_member, attrs_list_insert): Use decl_or_value.
11155         (attrs_list_union): Adjust.
11156         (attrs_list_mpdv_union): New.
11157         (tie_break_pointers): New.
11158         (canon_value_cmp): New.
11159         (unshare_variable): Return possibly-modified slot.
11160         (vars_copy_1): Adjust.
11161         (var_reg_decl_set): Adjust.  Split out of...
11162         (var_reg_set): ... this.
11163         (get_init_value): Adjust.
11164         (var_reg_delete_and_set): Adjust.
11165         (var_reg_delete): Adjust.
11166         (var_regno_delete): Adjust.
11167         (var_mem_decl_set): Split out of...
11168         (var_mem_set): ... this.
11169         (var_mem_delete_and_set): Adjust.
11170         (var_mem_delete): Adjust.
11171         (val_store): New.
11172         (val_reset): New.
11173         (val_resolve): New.
11174         (variable_union): Adjust.  Speed up merge of 1-part vars.
11175         (variable_canonicalize): Use unshared slot.
11176         (VALUED_RECURSED_INTO): New.
11177         (find_loc_in_1pdv): New.
11178         (struct dfset_merge): New.
11179         (insert_into_intersection): New.
11180         (intersect_loc_chains): New.
11181         (loc_cmp): New.
11182         (canonicalize_loc_order_check): New.
11183         (canonicalize_values_mark): New.
11184         (canonicalize_values_star): New.
11185         (variable_merge_over_cur): New.
11186         (variable_merge_over_src): New.
11187         (dataflow_set_merge): New.
11188         (dataflow_set_equiv_regs): New.
11189         (remove_duplicate_values): New.
11190         (struct dfset_post_merge): New.
11191         (variable_post_merge_new_vals): New.
11192         (variable_post_merge_perm_vals): New.
11193         (dataflow_post_merge_adjust): New.
11194         (find_mem_expr_in_1pdv): New.
11195         (dataflow_set_preserve_mem_locs): New.
11196         (dataflow_set_remove_mem_locs): New.
11197         (dataflow_set_clear_at_call): New.
11198         (onepart_variable_different_p): New.
11199         (variable_different_p): Use it.
11200         (dataflow_set_different_1): Adjust.  Make detailed dump more verbose.
11201         (track_expr_p): Add need_rtl parameter.  Don't generate rtl
11202         if not needed.
11203         (track_loc_p): Pass it true.
11204         (struct count_use_info): New.
11205         (find_use_val): New.
11206         (replace_expr_with_values): New.
11207         (log_op_type): New.
11208         (use_type): New, partially split out of...
11209         (count_uses): ... this.  Count new micro-ops.
11210         (count_uses_1): Adjust.
11211         (count_stores): Adjust.
11212         (count_with_sets): New.
11213         (VAL_NEEDS_RESOLUTION): New.
11214         (VAL_HOLDS_TRACK_EXPR): New.
11215         (VAL_EXPR_IS_COPIED): New.
11216         (VAL_EXPR_IS_CLOBBERED): New.
11217         (add_uses): Adjust.  Generate new micro-ops.
11218         (add_uses_1): Adjust.
11219         (add_stores): Generate new micro-ops.
11220         (add_with_sets): New.
11221         (find_src_status): Adjust.
11222         (find_src_set_src): Adjust.
11223         (compute_bb_dataflow): Use dataflow_set_clear_at_call.
11224         Handle new micro-ops.  Canonicalize value equivalances.
11225         (vt_find_locations): Compute total size of hash tables for
11226         dumping.  Perform merge for var-tracking-assignments.  Don't
11227         disregard single-block loops.
11228         (dump_attrs_list): Handle decl_or_value.
11229         (dump_variable): Take variable.  Deal with decl_or_value.
11230         (dump_variable_slot): New.
11231         (dump_vars): Use it.
11232         (dump_dataflow_sets): Adjust.
11233         (set_slot_part): New, extended to support one-part variables
11234         after splitting out of...
11235         (set_variable_part): ... this.
11236         (clobber_slot_part): New, split out of...
11237         (clobber_variable_part): ... this.
11238         (delete_slot_part): New, split out of...
11239         (delete_variable_part): .... this.
11240         (check_wrap_constant): New.
11241         (vt_expand_loc_callback): New.
11242         (vt_expand_loc): New.
11243         (emit_note_insn_var_location): Adjust.  Handle values.  Handle
11244         EMIT_NOTE_AFTER_CALL_INSN.
11245         (emit_notes_for_differences_1): Adjust.  Handle values.
11246         (emit_notes_for_differences_2): Likewise.
11247         (emit_notes_for_differences): Adjust.
11248         (emit_notes_in_bb): Take pointer to set.  Emit AFTER_CALL_INSN notes.
11249         Adjust.  Handle new micro-ops.
11250         (vt_add_function_parameters): Adjust.  Create and bind values.
11251         (vt_initialize): Adjust.  Initialize scratch_regs and
11252         valvar_pool, flooded and perm..  Initialize and use cselib.  Log
11253         operations.  Move some code to count_with_sets and add_with_sets.
11254         (delete_debug_insns): New.
11255         (vt_debug_insns_local): New.
11256         (vt_finalize): Release permp, valvar_pool, scratch_regs.  Finish
11257         cselib.
11258         (var_tracking_main): If var-tracking-assignments is enabled
11259         but var-tracking isn't, delete debug insns and leave.  Likewise
11260         if we exceed limits or fail the stack adjustments tests, and
11261         after all var-tracking processing.
11262         More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
11263         (dataflow_set): Add traversed_vars.
11264         (value_chain, const_value_chain): New typedefs.
11265         (value_chain_pool, value_chains): New variables.
11266         (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
11267         add_value_chains, add_cselib_value_chains, remove_value_chain,
11268         remove_value_chains, remove_cselib_value_chains): New functions.
11269         (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
11270         shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
11271         static inlines.
11272         (shared_hash_find_slot_unshare, shared_hash_find_slot,
11273         shared_hash_find_slot_noinsert, shared_hash_find): Update.
11274         (dst_can_be_shared): New variable.
11275         (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
11276         Clear dst_can_be_shared.  If set->traversed_vars is non-NULL and
11277         different from set->vars, look up slot again instead of using the
11278         passed in slot.
11279         (dataflow_set_init): Initialize traversed_vars.
11280         (variable_union): Use shared_hash_*.  Use initially NO_INSERT
11281         lookup if set->vars is shared.  Don't keep slot cleared before
11282         calling unshare_variable.  Unshare set->vars if needed.  Adjust
11283         unshare_variable callers.  Clear dst_can_be_shared if needed.
11284         Even ->refcount == 1 vars must be unshared if set->vars is shared
11285         and var needs to be modified.
11286         (dataflow_set_union): Set traversed_vars during canonicalization.
11287         (VALUE_CHANGED, DECL_CHANGED): Define.
11288         (set_dv_changed, dv_changed_p): New static inlines.
11289         (track_expr_p): Clear DECL_CHANGED.
11290         (dump_dataflow_sets): Set it.
11291         (variable_was_changed): Call set_dv_changed.
11292         (emit_note_insn_var_location): Likewise.
11293         (changed_variables_stack): New variable.
11294         (check_changed_vars_1, check_changed_vars_2): New functions.
11295         (emit_notes_for_changes): Do nothing if changed_variables is
11296         empty.  Traverse changed_variables with check_changed_vars_1,
11297         call check_changed_vars_2 on each changed_variables_stack entry.
11298         (emit_notes_in_bb): Add SET argument.  Just clear it at the
11299         beginning, use it instead of local &set, don't destroy it at the end.
11300         (vt_emit_notes): Call dataflow_set_clear early on all
11301         VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
11302         computed set, dataflow_set_clear also VTI(bb)->in when we are
11303         done with the basic block.  Initialize changed_variables_stack,
11304         free it afterwards.  If ENABLE_CHECKING verify that after noting
11305         differences to an empty set value_chains hash table is empty.
11306         (vt_initialize): Initialize value_chains and value_chain_pool.
11307         (vt_finalize): Delete value_chains htab, free value_chain_pool.
11308         (variable_tracking_main): Call dump_dataflow_sets before calling
11309         vt_emit_notes, not after it.
11310         * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
11311         (propagate_var_def_into_debug_stmts): Declare.
11312         * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
11313         (df_set_note): Reject debug insns.
11314         (df_whole_mw_reg_dead_p): Take added_notes_p argument.  Don't
11315         add notes to debug insns.
11316         (df_note_bb_compute): Adjust.  Likewise.
11317         (df_simulate_uses): Skip debug insns.
11318         (df_simulate_initialize_backwards): Likewise.
11319         * reg-stack.c (subst_stack_regs_in_debug_insn): New.
11320         (subst_stack_regs_pat): Reject debug insns.
11321         (convert_regs_1): Handle debug insns.
11322         * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
11323         (print-rtl.o): Depend on cselib.h.
11324         (cselib.o): Depend on TREE_PASS_H.
11325         (var-tracking.o): Depend on cselib.h and TARGET_H.
11326         * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
11327         (init_ready_list): Skip boundary debug insns.
11328         (add_branch_dependences): Skip debug insns.
11329         (free_block_dependencies): Check for blocks with only debug insns.
11330         (compute_priorities): Likewise.
11331         * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
11332         (gimple_build_with_ops_stat): Take subcode as unsigned.  Adjust
11333         all callers.
11334         (gimple_build_debug_bind_stat): New.
11335         (empty_body_p): Skip debug stmts.
11336         (gimple_has_side_effects): Likewise.
11337         (gimple_rhs_has_side_effects): Likewise.
11338         * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
11339         (gimple_build_debug_bind_stat): Declare.
11340         (gimple_build_debug_bind): Define.
11341         (is_gimple_debug): New.
11342         (gimple_debug_bind_p): New.
11343         (gimple_debug_bind_get_var): New.
11344         (gimple_debug_bind_get_value): New.
11345         (gimple_debug_bind_get_value_ptr): New.
11346         (gimple_debug_bind_set_var): New.
11347         (gimple_debug_bind_set_value): New.
11348         (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
11349         (gimple_debug_bind_reset_value): New.
11350         (gimple_debug_bind_has_value_p): New.
11351         (gsi_next_nondebug): New.
11352         (gsi_prev_nondebug): New.
11353         (gsi_start_nondebug_bb): New.
11354         (gsi_last_nondebug_bb): New.
11355         * sched-vis.c (print_pattern): Handle VAR_LOCATION.
11356         (print_insn): Handle DEBUG_INSN.
11357         * tree-cfg.c (remove_bb): Walk stmts backwards.  Let loc
11358         of first insn prevail.
11359         (first_stmt): Skip debug stmts.
11360         (first_non_label_stmt): Likewise.
11361         (last_stmt): Likewise.
11362         (has_zero_uses_1): New.
11363         (single_imm_use_1): New.
11364         (verify_gimple_debug): New.
11365         (verify_types_in_gimple_stmt): Handle debug stmts.
11366         (verify_stmt): Likewise.
11367         (debug_loop_num): Skip debug stmts.
11368         (remove_edge_and_dominated_blocks): Remove dominators last.
11369         * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
11370         (linearize_expr): Likewise.
11371         * config/i386/i386.c (ix86_delegitimize_address): Call
11372         default implementation.
11373         * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
11374         (group_barrier_needed): Skip debug insns.
11375         (emit_insn_group_barriers): Likewise.
11376         (emit_all_insn_group_barriers): Likewise.
11377         (ia64_variable_issue): Handle debug insns.
11378         (ia64_dfa_new_cycle): Likewise.
11379         (final_emit_insn_group_barriers): Skip debug insns.
11380         (ia64_dwarf2out_def_steady_cfa): Take frame argument.  Don't
11381         def cfa without frame.
11382         (process_set): Likewise.
11383         (process_for_unwind_directive): Pass frame on.
11384         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
11385         (rs6000_delegitimize_address): New.
11386         (rs6000_debug_adjust_cost): Handle debug insns.
11387         (is_microcoded_insn): Likewise.
11388         (is_cracked_insn): Likewise.
11389         (is_nonpipeline_insn): Likewise.
11390         (insn_must_be_first_in_group): Likewise.
11391         (insn_must_be_last_in_group): Likewise.
11392         (force_new_group): Likewise.
11393         * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
11394         contains only debug insns.
11395         (rtl_merge_blocks): Skip debug insns.
11396         (purge_dead_edges): Likewise.
11397         (rtl_block_ends_with_call_p): Skip debug insns.
11398         * dce.c (deletable_insn_p): Handle VAR_LOCATION.
11399         (mark_reg_dependencies): Skip debug insns.
11400         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
11401         * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
11402         * tree-ssa-threadedge.c
11403         (record_temporary_equivalences_from_stmts): Skip debug stmts.
11404         * regcprop.c (replace_oldest_value_addr): Skip debug insns.
11405         (replace_oldest_value_mem): Use ALL_REGS for debug insns.
11406         (copyprop_hardreg_forward_1): Handle debug insns.
11407         * reload1.c (reload): Skip debug insns.  Replace unassigned
11408         pseudos in debug insns with their equivalences.
11409         (eliminate_regs_in_insn): Skip debug insns.
11410         (emit_input_reload_insns): Skip debug insns at first, adjust
11411         them later.
11412         * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
11413         (get_indirect_ref_operands): Pass opf_no_vops on.
11414         (get_expr_operands): Likewise.  Skip debug stmts.
11415         (parse_ssa_operands): Scan debug insns with opf_no_vops.
11416
11417 2009-09-01  Richard Henderson  <rth@redhat.com>
11418
11419         * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
11420         stmt_ends_pp_p statements at least once.
11421         * tree-vrp.c (vrp_initialize): Likewise.
11422         (vrp_visit_stmt): Be prepared for non-interesting stmts.
11423
11424 2009-09-01  Dodji Seketeli  <dodji@redhat.com>
11425
11426         PR bootstrap/41205
11427         Fix AIX bootstrap after PR debug/30161
11428         * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
11429         that is a GNU extension.
11430         (tmpl_value_parm_die_table): Move the definition of this global
11431         outside #ifdef DWARF2_DEBUGGING_INFO region.
11432
11433 2009-09-01  Richard Guenther  <rguenther@suse.de>
11434
11435         * tree.c (tree_expr_size): New function.
11436         * tree.h (tree_expr_size): Declare.
11437         * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
11438         * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
11439         * langhooks.c (lhd_expr_size): Remove.
11440         * langhooks.h (struct lang_hooks): Remove expr_size.
11441         * explow.c (expr_size): Use tree_expr_size.
11442         (int_expr_size): Likewise.
11443         * langhooks-def.h (lhd_expr_size): Remove.
11444         (LANG_HOOKS_EXPR_SIZE): Likewise.
11445         (LANG_HOOKS_INITIALIZER): Adjust.
11446
11447 2009-09-01  Richard Guenther  <rguenther@suse.de>
11448
11449         * tree-flow.h (mark_addressable): Move declaration ...
11450         * tree.h (mark_addressable): ... here.
11451         * stmt.c (expand_asm_operands): Use mark_addressable, not
11452         lang_hooks.mark_addressable.
11453         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
11454         LANG_HOOKS_MARK_ADDRESSABLE.
11455         * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
11456         * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
11457
11458 2009-08-31  Chris Demetriou  <cgd@google.com>
11459
11460         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
11461         vectorize if not TARGET_SSE2.
11462
11463 2009-08-31  DJ Delorie  <dj@redhat.com>
11464
11465         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
11466         registers if no coprocessor is enabled.
11467
11468 2009-08-31  Dodji Seketeli  <dodji@redhat.com>
11469
11470         PR debug/30161
11471         * cgraph.h (cgraph_get_node): Declare ...
11472         * cgraph.c (cgraph_get_node): ... new function.
11473         * dwarf2out.c (gen_generic_params_dies,
11474         generic_parameter_die, tree_add_const_value_attribute_for_decl,
11475         make_ith_pack_parameter_name,
11476         append_entry_to_tmpl_value_parm_die_table,
11477         gen_remaining_tmpl_value_param_die_attribute): New functions.
11478         (gen_subprogram_die): Generate debug info for template parameters
11479         if debug info level is higher than DINFO_LEVEL_TERSE.
11480         Use tree_add_const_value_attribute_for_decl instead of
11481         tree_add_const_value_attribute.
11482         (gen_const_die): Use tree_add_const_value_attribute_for_decl
11483         instead of tree_add_const_value_attribute.
11484         (gen_struct_or_union_type_die): Generate debug
11485         info for template parameters if debug info level is higher than
11486         DINFO_LEVEL_TERSE.
11487         (tree_add_const_value_attribute): Handle integral and pointer
11488         constants. Update comment.
11489         (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
11490         (dwarf_attr_name): Support DW_AT_GNU_template_name.
11491         (reference_to_unused): Fix thinko. Remove redundant predicates from
11492         tests.
11493         (tree_add_const_value_attribute): Make this work for constant
11494         expressions only.
11495         tree_add_const_value_attribute_for_decl is to be used for variable
11496         DECLs now.
11497         (add_location_or_const_value_attribute): Use
11498         tree_add_const_value_attribute_for_decl now.
11499         (dwarf2out_finish): Emit the DW_AT_const_value attribute of
11500         DW_TAG_template_value_param DIEs after function DIEs have been
11501         emitted.
11502         * langhooks.h (lang_hooks_for_types): Add
11503         get_argument_pack_elems.
11504         (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
11505         (lang_hooks): Added get_innermost_generic_parms,
11506         get_innermost_generic_args.
11507         * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
11508         LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
11509         LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
11510         LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
11511
11512 2009-08-31  DJ Delorie  <dj@redhat.com>
11513
11514         * config/mep/mep.c (machine_function): Add frame_locked flag.  Set
11515         it once we start generating the prologue or epilogue.
11516         (mep_call_saves_register): If the frame is locked, re-use
11517         cached values.
11518         (mep_assign_save_slots): New, broken out from mep_expand_prologue.
11519         (mep_expand_prologue): Call it.
11520         (mep_expand_epilogue): Likewise.
11521         (mep_start_function): Use the same logic as mep_expand_prologue.
11522         (mep_pass_by_reference): Make logic more readable.
11523         (mep_return_in_memory): Zero-sized objects are passed in memory.
11524         (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
11525
11526 2009-08-31  Richard Guenther  <rguenther@suse.de>
11527
11528         * builtins.c (fold_builtin_memory_op): Use the alias oracle
11529         to query if the memory regions for memmove overlap.
11530         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
11531         asserts on pointers, instead deal with odd trees.
11532         (ptr_derefs_may_alias_p): Likewise.
11533         (refs_may_alias_p_1): Constructor bases also never alias.
11534
11535 2009-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
11536
11537         * doc/install.texi (Final install): Adjust reference on where to
11538         order printed manuals.
11539
11540 2009-08-30  Olivier Hainque  <hainque@adacore.com>
11541
11542         * dwarf2out.c (switch_to_frame_table_section): Move
11543         definition prior to first use.
11544
11545 2009-08-30  Richard Guenther  <rguenther@suse.de>
11546
11547         PR tree-optimization/41186
11548         * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
11549         (ao_ref_init_from_ptr_and_size): New function.
11550         (ref_maybe_used_by_call_p_1): Be more precise tracking
11551         used ranges for builtin functions.
11552         (ref_maybe_used_by_call_p): Adjust.
11553         (call_may_clobber_ref_p_1): Be more precise tracking clobbered
11554         ranges for builtin functions.
11555         * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
11556
11557 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
11558
11559         PR target/41081
11560         * fwprop.c (get_reg_use_in): Delete.
11561         (free_load_extend): New function.
11562         (forward_propagate_subreg): Use it.
11563
11564 2009-08-29  Kaz Kojima  <kkojima@gcc.gnu.org>
11565
11566         * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
11567
11568 2009-08-29  Kai Tietz<kai.tietz@onevision.com>
11569
11570         PR/41184
11571         * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
11572         padding.
11573
11574 2009-08-29  Douglas B Rupp  <rupp@gnat.com>
11575
11576         * crtstuff.c (__do_global_dtors_aux): Use atexit if no
11577         fini or fini_array section.
11578
11579 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11580
11581         * graphite-dependences.c (graphite_legal_transform_bb): Call
11582         pbb_remove_duplicate_pdrs.
11583         * graphite-poly.c (can_collapse_pdr): Removed.
11584         (pdr_find_duplicate): Removed.
11585         (can_collapse_pdrs): New.
11586         (pbb_remove_duplicate_pdrs): New.
11587         (new_poly_dr): Do not look for duplicates.
11588         * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
11589         (PBB_PDR_DUPLICATES_REMOVED): New.
11590         (pbb_remove_duplicate_pdrs): Declared.
11591
11592 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11593
11594         * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
11595         the strides by multiplying by PDR_NB_REFS.
11596         * graphite-poly.c (can_collapse_pdr): New.
11597         (pdr_find_duplicate): New.
11598         (new_poly_dr): Call pdr_find_duplicate.  Collapse duplicate PDRs.
11599         Initialize PDR_NB_REFS.
11600         * graphite-poly.h (struct poly_dr): Add field nb_refs.
11601         (PDR_NB_REFS): New.
11602         (new_poly_dr): Number of subscripts is a graphite_dim_t.
11603
11604 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11605
11606         PR middle-end/40965
11607         * graphite-poly.c (apply_poly_transforms): Remove legality test before
11608         any transform.
11609
11610 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11611
11612         * graphite-dependences.c (pddr_original_scattering): Return NULL
11613         for read-read dependence relations.
11614         * graphite-poly.h (enum poly_dr_type): Fix comment.
11615         (pdr_read_p): New.
11616         (pdr_write_p): New.
11617         (pdr_may_write_p): New.
11618
11619 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11620
11621         * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
11622         (struct poly_dr): Same.
11623         (new_poly_dr): Same.
11624         * graphite-poly.c (new_poly_dr): Same.
11625         * graphite-dependences.c (dot_deps): Disable call to system.
11626
11627 2009-08-28  Cary Coutant  <ccoutant@google.com>
11628
11629         PR debug/41063
11630         * dwarf2out.c (gen_type_die_with_usage): Use proper context for
11631         struct/union/enum types local to a function.
11632
11633 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
11634             Sebastian Pop  <sebastian.pop@amd.com>
11635
11636         * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
11637         pbb_strip_mine_time_depth.  Changed the implementation so that
11638         transformation is expressed as a transformation on
11639         time (scatttering) dimensions.  Also, ensures that the 2d+1
11640         scheduling format is preserved.
11641         (pbb_strip_mine_profitable_p): Profitability is based on the
11642         iteration number of a given time (scattering) dimension,
11643         and not on a original loop depth dimension.
11644         (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
11645         (pbb_do_strip_mine): Call psct_dynamic_dim.
11646         * graphite-poly.c (pbb_number_of_iterations_at_time): New.
11647         * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
11648         (pbb_nb_dynamic_scattering_transform): New.
11649         (psct_dynamic_dim): New.
11650
11651 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
11652
11653         * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
11654         * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
11655         * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
11656         * graphite-interchange.c (build_linearized_memory_access): Same.
11657         (memory_stride_in_loop): Same.
11658
11659 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11660
11661         * graphite-dependences.c (pddr_original_scattering): New.
11662         (graphite_legal_transform_dr): Call pddr_original_scattering.
11663         (dot_deps_1): New.
11664         (dot_deps): New.
11665         * graphite-dependences.h (dot_deps): Declared.
11666         * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
11667         (print_pdr): Print PDR_ID.
11668         * graphite-poly.h (struct poly_dr): Add field id.
11669         (PDR_ID): New.
11670         (pbb_index): New.
11671         * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
11672
11673 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11674
11675         * graphite-dependences.c (graphite_carried_dependence_level_k): Do
11676         not delete the original dependence relation.
11677
11678 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11679
11680         * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
11681         (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
11682         (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
11683         (free_poly_ddr): New.
11684         (pddr_is_empty): New.
11685         (dependence_polyhedron_1): Now returns a poly_ddr_p.
11686         (dependence_polyhedron): Same.  Remove useless gcc_assert.
11687         Remove fprintfs.
11688         (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
11689         (graphite_carried_dependence_level_k): Call pddr_is_empty.
11690         * graphite-dependences.h (enum poly_dependence_kind): New.
11691         (poly_dr_pair): Renamed poly_ddr.  Added a field kind.
11692         (PDRP_SOURCE): Renamed PDDR_SOURCE.
11693         (PDRP_SINK): Renamed PDDR_SINK.
11694         (PDRP_DDP): Renamed PDDR_DDP.
11695         (PDDR_KIND): New.
11696         (free_poly_ddr): Declared.
11697         * graphite-poly.c (new_scop): Use the new hash function names.
11698         * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
11699         into original_pddrs.
11700         (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
11701
11702 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11703
11704         * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
11705         bounds with LT_EXPR to make niter analysis more precise on code
11706         generated by Graphite.
11707
11708 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11709
11710         * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
11711         (graphite_legal_transform_bb): Same.
11712         (poly_drs_may_alias_p): Same.
11713
11714 2009-08-28  Richard Guenther  <rguenther@suse.de>
11715
11716         * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
11717
11718 2009-08-28  Jan Beulich  <jbeulich@novell.com>
11719
11720         * config/i386/netware.c: Include langhooks.h.
11721         (i386_nlm_encode_section_info): Simplify.
11722         (netware_override_options): Delete.
11723         * config/i386/netware.h (netware_override_options): Delete
11724         declaration.
11725         (OVERRIDE_OPTIONS): Delete definition.
11726         (SUBTARGET_OVERRIDE_OPTIONS): Define.
11727         (ASM_COMMENT_START): Define.
11728         * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
11729
11730 2009-08-28  Jan Beulich  <jbeulich@novell.com>
11731
11732         * configure.ac: For in-tree ld, do a plain version check to
11733         determine whether comdat groups are supported.
11734         * configure: Regenerate.
11735
11736 2009-08-28  Olivier Hainque  <hainque@adacore.com>
11737
11738         * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
11739         always defined.  Reflect definition or absence of such for
11740         COLLECT_EXPORT_LIST.  Readability helper.
11741         (scanfilter): New enum, to help control what symbols
11742         are to be considered or ignored by scan_prog_file.
11743         (enum pass): Rename as "scanpass", moved together with scanfilter
11744         prior to scan_prog_file's prototype.
11745         (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
11746         Group prototype with the scanpass/scanfilter definitions, factorize
11747         head comments for the several implementations at the prototype.
11748         (main): Reorganize the first pass link control to let AIX
11749         drag only the needed frame tables in executables.  Prevent
11750         frame tables collection during the scan aimed at static ctors.
11751         Pre-link and scan for frame tables later to compensate.
11752         * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
11753         A C statement to issue assembly directives that create a reference
11754         to the given DWARF table identifier label from the current function
11755         section.
11756         * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
11757         to differentiate first time section entry.  Only emit a .data
11758         tables start identifier label the first time around.
11759         (switch_to_frame_table_section): New function.  Helper for
11760         output_call_frame_info to switch possibly BACK into the eh_frame
11761         or the debug_frame section depending on FOR_EH.
11762         (output_call_frame_info): Use helper to first enter the proper
11763         frame section.
11764         (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
11765         emit a link to the frame table start label from each function
11766         section.
11767         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
11768         New function.  Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
11769         * config/rs6000/rs6000-protos.h: Declare it.
11770         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
11771
11772 2009-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
11773
11774         * config/sh/sh.c (split_branches): Check the result of
11775         next_active_insn.
11776
11777 2009-08-27  Steve Ellcey  <sje@cup.hp.com>
11778
11779         * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
11780         using -pthread -fopenmp
11781
11782 2009-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
11783
11784         * doc/service.texi (service directory): Update URL.
11785
11786 2009-08-27  Uros Bizjak  <ubizjak@gmail.com>
11787
11788         PR rtl-optimization/40861
11789         * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
11790         extract word from a multi-word subreg for negative byte positions.
11791
11792 2009-08-27  Tristan Gingold  <gingold@adacore.com>
11793             Douglas B Rupp  <rupp@gnat.com>
11794
11795         * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
11796         (SECTION_VMS_OVERLAY): Define.
11797         (ia64_vms_common_object_attribute): Added.  Handle the "common_object"
11798         attribute.
11799         (ia64_vms_elf_asm_named_section): Added.  Generate .section pseudo-op
11800         for common_object.
11801         (ia64_vms_output_aligned_decl_common): Added.  Generate pseudo-op for
11802         common_object declarations.
11803         (ia64_section_type_flags): Set section flag for common_object.
11804         * config/ia64/ia64-protos.h
11805         (ia64_vms_output_aligned_decl_common): Declare.
11806         (ia64_vms_elf_asm_named_section): Declare.
11807
11808 2009-08-27  Michael Matz  <matz@suse.de>
11809
11810         * expr.c (expand_expr_real_2): New function taking exploded
11811         unary or binary expression, split out from ...
11812         (expand_expr_real_1): ... here.  Move over all unary/binary
11813         switch parts to above function, in particular these codes:
11814         PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
11815         MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
11816         ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
11817         FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
11818         FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
11819         BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
11820         BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
11821         LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
11822         NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
11823         UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
11824         WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
11825         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
11826         VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
11827         VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
11828         VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
11829         VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
11830         VEC_PACK_FIX_TRUNC_EXPR.
11831         (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
11832         full expression.
11833
11834 2009-08-27  Richard Guenther  <rguenther@suse.de>
11835
11836         * gengtype.c (main): Handle uint64_t.
11837         * ipa-utils.c (get_base_var): Indent properly.
11838         * tree-ssa-live.c (debug_scope_block): New function.
11839         * tree-flow.h (debug_scope_block): Declare.
11840         * tree-ssa-copy.c (replace_exp_1): Add vertical space.
11841         * basic-block.h (enum profile_status): Rename to
11842         enum profile_status_d.
11843         (x_profile_status): Adjust type.
11844
11845 2009-08-27  Dodji Seketeli  <dodji@redhat.com>
11846
11847         PR debug/41170
11848         * dwarf2out.c (get_context_die): Declare this static function.
11849         (gen_type_die_with_usage): Make sure a DIE is a generated for
11850         the context of a typedef.
11851
11852 2009-08-26  Anatoly Sokolov  <aesok@post.ru>
11853
11854         * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
11855         switch.
11856
11857 2009-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
11858
11859         * config/mips/mips-protos.h (mips_output_sync): Declare.
11860         (mips_sync_loop_insns): Likewise.
11861         (mips_output_sync_loop): Replace first two parameters with an rtx.
11862         * config/mips/mips.c (mips_multi_member): New structure.
11863         (mips_multi_members): New variable.
11864         (mips_multi_start): New function.
11865         (mips_multi_add): Likewise.
11866         (mips_multi_add_insn): Likewise.
11867         (mips_multi_add_label): Likewise.
11868         (mips_multi_last_index): Likewise.
11869         (mips_multi_copy_insn): Likewise.
11870         (mips_multi_set_operand): Likewise.
11871         (mips_multi_write): Likewise.
11872         (mips_print_operand_punctuation): Remove '%|' and '%-'.
11873         (mips_init_print_operand_punct): Update accordingly.
11874         (mips_start_ll_sc_sync_block): New function.
11875         (mips_end_ll_sc_sync_block): Likewise.
11876         (mips_output_sync): Likewise.
11877         (mips_sync_insn1_template): Likewise.
11878         (mips_sync_insn2_template): Likewise.
11879         (mips_get_sync_operand): Likewise.
11880         (mips_process_sync_loop): Likewise.
11881         (mips_output_sync_loop): Use mips_process_sync_loop.
11882         (mips_sync_loop_insns): New function.
11883         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
11884         (MIPS_COMPARE_AND_SWAP_12): Likewise.
11885         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
11886         (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
11887         (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
11888         (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
11889         (MIPS_SYNC_OLD_OP_12): Likewise.
11890         (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
11891         (MIPS_SYNC_NEW_OP_12): Likewise.
11892         (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
11893         (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
11894         (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
11895         (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
11896         (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
11897         (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
11898         * config/mips/mips.md (sync_mem): New attribute.
11899         (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
11900         (sync_exclusive_mask, sync_required_oldval): Likewise.
11901         (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
11902         (sync_release_barrier): Likewise.
11903         (length): Handle sync loops.
11904         (sync): Use mips_output_sync.
11905         * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
11906         (sync_compare_and_swap<mode>): Set the new sync_* attributes
11907         and use mips_output_sync_loop.
11908         (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
11909         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
11910         (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
11911         (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
11912         (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
11913         (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
11914         (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
11915         (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
11916         (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
11917
11918 2009-08-26  Richard Guenther  <rguenther@suse.de>
11919
11920         PR middle-end/41163
11921         * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
11922         the types to not match.
11923         * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
11924         verification.
11925         * tree-ssa.c (useless_type_conversion_p): Conversions to
11926         pointers to unprototyped functions are useless.
11927
11928 2009-08-26  Richard Guenther  <rguenther@suse.de>
11929
11930         * tree-ssa-structalias.c (create_variable_info_for): Remove strange
11931         whole-program condition, prepare to be called for non-globals.
11932         (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
11933         params build a representative with known type and track its fields.
11934
11935 2009-08-26  Uros Bizjak  <ubizjak@gmail.com>
11936
11937         * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
11938         clearing by a taken branch.
11939         (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
11940         effectively after bbro pass.
11941         (sync_nand<mode>): Ditto.
11942         (sync_old_<fetchop_name><mode>): Ditto.
11943         (sync_old_nand<mode>): Ditto.
11944         (sync_new_<fetchop_name><mode>): Dito.
11945         (sync_new_nand<mode>): Ditto.
11946         (sync_compare_and_swap<mode>_1): Ditto.
11947         (*sync_compare_and_swap<mode>): Ditto.
11948         (sync_lock_test_and_set<mode>_1): Ditto.
11949         ("sync_lock_test_and_set<mode>): Ditto.
11950
11951 2009-08-25  Douglas B Rupp  <rupp@gnat.com>
11952
11953         * hwint.h (HOST_LONG_FORMAT): New macro
11954         * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
11955         Use HOST_PTR_PRINTF.
11956         * system.h (HOST_PTR_PRINTF): Resurrect old macro
11957         * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
11958         (HOST_PTR_PRINTF): Document.
11959
11960 2009-08-25 Jan Hubicka  <jh@suse.cz>
11961
11962         * config/i386/bmmintrin.h: Replace by #error.
11963
11964         Revert:
11965         Michael Meissner  <michael.meissner@amd.com>
11966         Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
11967         Tony Linthicum  <tony.linthicum@amd.com>
11968
11969         * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
11970         (TARGET_ROUND): New macro for the round/ptest instructions which
11971         are shared between SSE4.1 and SSE5.
11972         (OPTION_MASK_ISA_ROUND): Ditto.
11973         (OPTION_ISA_ROUND): Ditto.
11974         (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
11975         (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
11976
11977         * config/i386/i386.opt (-msse5): New switch for SSE5 support.
11978         (-mfused-madd): New switch to give users control over whether the
11979         compiler optimizes to use the multiply/add SSE5 instructions.
11980
11981         * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
11982         (ix86_handle_option): Turn off 3dnow if -msse5.
11983         (override_options): Add SSE5 support.
11984         (print_operand): %Y prints comparison codes for SSE5 com/pcom
11985         instructions.
11986         (ix86_expand_sse_movcc): Add SSE5 support.
11987         (ix86_expand_sse5_unpack): New function to use pperm to unpack a
11988         vector type to the next largest size.
11989         (ix86_expand_sse5_pack): New function to use pperm to pack a
11990         vector type to the next smallest size.
11991         (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
11992         (IX86_BUILTIN_FMADDSD): Ditto.
11993         (IX86_BUILTIN_FMADDPS): Ditto.
11994         (IX86_BUILTIN_FMADDPD): Ditto.
11995         (IX86_BUILTIN_FMSUBSS): Ditto.
11996         (IX86_BUILTIN_FMSUBSD): Ditto.
11997         (IX86_BUILTIN_FMSUBPS): Ditto.
11998         (IX86_BUILTIN_FMSUBPD): Ditto.
11999         (IX86_BUILTIN_FNMADDSS): Ditto.
12000         (IX86_BUILTIN_FNMADDSD): Ditto.
12001         (IX86_BUILTIN_FNMADDPS): Ditto.
12002         (IX86_BUILTIN_FNMADDPD): Ditto.
12003         (IX86_BUILTIN_FNMSUBSS): Ditto.
12004         (IX86_BUILTIN_FNMSUBSD): Ditto.
12005         (IX86_BUILTIN_FNMSUBPS): Ditto.
12006         (IX86_BUILTIN_FNMSUBPD): Ditto.
12007         (IX86_BUILTIN_PCMOV_V2DI): Ditto.
12008         (IX86_BUILTIN_PCMOV_V4SI): Ditto.
12009         (IX86_BUILTIN_PCMOV_V8HI): Ditto.
12010         (IX86_BUILTIN_PCMOV_V16QI): Ditto.
12011         (IX86_BUILTIN_PCMOV_V4SF): Ditto.
12012         (IX86_BUILTIN_PCMOV_V2DF): Ditto.
12013         (IX86_BUILTIN_PPERM): Ditto.
12014         (IX86_BUILTIN_PERMPS): Ditto.
12015         (IX86_BUILTIN_PERMPD): Ditto.
12016         (IX86_BUILTIN_PMACSSWW): Ditto.
12017         (IX86_BUILTIN_PMACSWW): Ditto.
12018         (IX86_BUILTIN_PMACSSWD): Ditto.
12019         (IX86_BUILTIN_PMACSWD): Ditto.
12020         (IX86_BUILTIN_PMACSSDD): Ditto.
12021         (IX86_BUILTIN_PMACSDD): Ditto.
12022         (IX86_BUILTIN_PMACSSDQL): Ditto.
12023         (IX86_BUILTIN_PMACSSDQH): Ditto.
12024         (IX86_BUILTIN_PMACSDQL): Ditto.
12025         (IX86_BUILTIN_PMACSDQH): Ditto.
12026         (IX86_BUILTIN_PMADCSSWD): Ditto.
12027         (IX86_BUILTIN_PMADCSWD): Ditto.
12028         (IX86_BUILTIN_PHADDBW): Ditto.
12029         (IX86_BUILTIN_PHADDBD): Ditto.
12030         (IX86_BUILTIN_PHADDBQ): Ditto.
12031         (IX86_BUILTIN_PHADDWD): Ditto.
12032         (IX86_BUILTIN_PHADDWQ): Ditto.
12033         (IX86_BUILTIN_PHADDDQ): Ditto.
12034         (IX86_BUILTIN_PHADDUBW): Ditto.
12035         (IX86_BUILTIN_PHADDUBD): Ditto.
12036         (IX86_BUILTIN_PHADDUBQ): Ditto.
12037         (IX86_BUILTIN_PHADDUWD): Ditto.
12038         (IX86_BUILTIN_PHADDUWQ): Ditto.
12039         (IX86_BUILTIN_PHADDUDQ): Ditto.
12040         (IX86_BUILTIN_PHSUBBW): Ditto.
12041         (IX86_BUILTIN_PHSUBWD): Ditto.
12042         (IX86_BUILTIN_PHSUBDQ): Ditto.
12043         (IX86_BUILTIN_PROTB): Ditto.
12044         (IX86_BUILTIN_PROTW): Ditto.
12045         (IX86_BUILTIN_PROTD): Ditto.
12046         (IX86_BUILTIN_PROTQ): Ditto.
12047         (IX86_BUILTIN_PROTB_IMM): Ditto.
12048         (IX86_BUILTIN_PROTW_IMM): Ditto.
12049         (IX86_BUILTIN_PROTD_IMM): Ditto.
12050         (IX86_BUILTIN_PROTQ_IMM): Ditto.
12051         (IX86_BUILTIN_PSHLB): Ditto.
12052         (IX86_BUILTIN_PSHLW): Ditto.
12053         (IX86_BUILTIN_PSHLD): Ditto.
12054         (IX86_BUILTIN_PSHLQ): Ditto.
12055         (IX86_BUILTIN_PSHAB): Ditto.
12056         (IX86_BUILTIN_PSHAW): Ditto.
12057         (IX86_BUILTIN_PSHAD): Ditto.
12058         (IX86_BUILTIN_PSHAQ): Ditto.
12059         (IX86_BUILTIN_FRCZSS): Ditto.
12060         (IX86_BUILTIN_FRCZSD): Ditto.
12061         (IX86_BUILTIN_FRCZPS): Ditto.
12062         (IX86_BUILTIN_FRCZPD): Ditto.
12063         (IX86_BUILTIN_CVTPH2PS): Ditto.
12064         (IX86_BUILTIN_CVTPS2PH): Ditto.
12065         (IX86_BUILTIN_COMEQSS): Ditto.
12066         (IX86_BUILTIN_COMNESS): Ditto.
12067         (IX86_BUILTIN_COMLTSS): Ditto.
12068         (IX86_BUILTIN_COMLESS): Ditto.
12069         (IX86_BUILTIN_COMGTSS): Ditto.
12070         (IX86_BUILTIN_COMGESS): Ditto.
12071         (IX86_BUILTIN_COMUEQSS): Ditto.
12072         (IX86_BUILTIN_COMUNESS): Ditto.
12073         (IX86_BUILTIN_COMULTSS): Ditto.
12074         (IX86_BUILTIN_COMULESS): Ditto.
12075         (IX86_BUILTIN_COMUGTSS): Ditto.
12076         (IX86_BUILTIN_COMUGESS): Ditto.
12077         (IX86_BUILTIN_COMORDSS): Ditto.
12078         (IX86_BUILTIN_COMUNORDSS): Ditto.
12079         (IX86_BUILTIN_COMFALSESS): Ditto.
12080         (IX86_BUILTIN_COMTRUESS): Ditto.
12081         (IX86_BUILTIN_COMEQSD): Ditto.
12082         (IX86_BUILTIN_COMNESD): Ditto.
12083         (IX86_BUILTIN_COMLTSD): Ditto.
12084         (IX86_BUILTIN_COMLESD): Ditto.
12085         (IX86_BUILTIN_COMGTSD): Ditto.
12086         (IX86_BUILTIN_COMGESD): Ditto.
12087         (IX86_BUILTIN_COMUEQSD): Ditto.
12088         (IX86_BUILTIN_COMUNESD): Ditto.
12089         (IX86_BUILTIN_COMULTSD): Ditto.
12090         (IX86_BUILTIN_COMULESD): Ditto.
12091         (IX86_BUILTIN_COMUGTSD): Ditto.
12092         (IX86_BUILTIN_COMUGESD): Ditto.
12093         (IX86_BUILTIN_COMORDSD): Ditto.
12094         (IX86_BUILTIN_COMUNORDSD): Ditto.
12095         (IX86_BUILTIN_COMFALSESD): Ditto.
12096         (IX86_BUILTIN_COMTRUESD): Ditto.
12097         (IX86_BUILTIN_COMEQPS): Ditto.
12098         (IX86_BUILTIN_COMNEPS): Ditto.
12099         (IX86_BUILTIN_COMLTPS): Ditto.
12100         (IX86_BUILTIN_COMLEPS): Ditto.
12101         (IX86_BUILTIN_COMGTPS): Ditto.
12102         (IX86_BUILTIN_COMGEPS): Ditto.
12103         (IX86_BUILTIN_COMUEQPS): Ditto.
12104         (IX86_BUILTIN_COMUNEPS): Ditto.
12105         (IX86_BUILTIN_COMULTPS): Ditto.
12106         (IX86_BUILTIN_COMULEPS): Ditto.
12107         (IX86_BUILTIN_COMUGTPS): Ditto.
12108         (IX86_BUILTIN_COMUGEPS): Ditto.
12109         (IX86_BUILTIN_COMORDPS): Ditto.
12110         (IX86_BUILTIN_COMUNORDPS): Ditto.
12111         (IX86_BUILTIN_COMFALSEPS): Ditto.
12112         (IX86_BUILTIN_COMTRUEPS): Ditto.
12113         (IX86_BUILTIN_COMEQPD): Ditto.
12114         (IX86_BUILTIN_COMNEPD): Ditto.
12115         (IX86_BUILTIN_COMLTPD): Ditto.
12116         (IX86_BUILTIN_COMLEPD): Ditto.
12117         (IX86_BUILTIN_COMGTPD): Ditto.
12118         (IX86_BUILTIN_COMGEPD): Ditto.
12119         (IX86_BUILTIN_COMUEQPD): Ditto.
12120         (IX86_BUILTIN_COMUNEPD): Ditto.
12121         (IX86_BUILTIN_COMULTPD): Ditto.
12122         (IX86_BUILTIN_COMULEPD): Ditto.
12123         (IX86_BUILTIN_COMUGTPD): Ditto.
12124         (IX86_BUILTIN_COMUGEPD): Ditto.
12125         (IX86_BUILTIN_COMORDPD): Ditto.
12126         (IX86_BUILTIN_COMUNORDPD): Ditto.
12127         (IX86_BUILTIN_COMFALSEPD): Ditto.
12128         (IX86_BUILTIN_COMTRUEPD): Ditto.
12129         (IX86_BUILTIN_PCOMEQUB): Ditto.
12130         (IX86_BUILTIN_PCOMNEUB): Ditto.
12131         (IX86_BUILTIN_PCOMLTUB): Ditto.
12132         (IX86_BUILTIN_PCOMLEUB): Ditto.
12133         (IX86_BUILTIN_PCOMGTUB): Ditto.
12134         (IX86_BUILTIN_PCOMGEUB): Ditto.
12135         (IX86_BUILTIN_PCOMFALSEUB): Ditto.
12136         (IX86_BUILTIN_PCOMTRUEUB): Ditto.
12137         (IX86_BUILTIN_PCOMEQUW): Ditto.
12138         (IX86_BUILTIN_PCOMNEUW): Ditto.
12139         (IX86_BUILTIN_PCOMLTUW): Ditto.
12140         (IX86_BUILTIN_PCOMLEUW): Ditto.
12141         (IX86_BUILTIN_PCOMGTUW): Ditto.
12142         (IX86_BUILTIN_PCOMGEUW): Ditto.
12143         (IX86_BUILTIN_PCOMFALSEUW): Ditto.
12144         (IX86_BUILTIN_PCOMTRUEUW): Ditto.
12145         (IX86_BUILTIN_PCOMEQUD): Ditto.
12146         (IX86_BUILTIN_PCOMNEUD): Ditto.
12147         (IX86_BUILTIN_PCOMLTUD): Ditto.
12148         (IX86_BUILTIN_PCOMLEUD): Ditto.
12149         (IX86_BUILTIN_PCOMGTUD): Ditto.
12150         (IX86_BUILTIN_PCOMGEUD): Ditto.
12151         (IX86_BUILTIN_PCOMFALSEUD): Ditto.
12152         (IX86_BUILTIN_PCOMTRUEUD): Ditto.
12153         (IX86_BUILTIN_PCOMEQUQ): Ditto.
12154         (IX86_BUILTIN_PCOMNEUQ): Ditto.
12155         (IX86_BUILTIN_PCOMLTUQ): Ditto.
12156         (IX86_BUILTIN_PCOMLEUQ): Ditto.
12157         (IX86_BUILTIN_PCOMGTUQ): Ditto.
12158         (IX86_BUILTIN_PCOMGEUQ): Ditto.
12159         (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
12160         (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
12161         (IX86_BUILTIN_PCOMEQB): Ditto.
12162         (IX86_BUILTIN_PCOMNEB): Ditto.
12163         (IX86_BUILTIN_PCOMLTB): Ditto.
12164         (IX86_BUILTIN_PCOMLEB): Ditto.
12165         (IX86_BUILTIN_PCOMGTB): Ditto.
12166         (IX86_BUILTIN_PCOMGEB): Ditto.
12167         (IX86_BUILTIN_PCOMFALSEB): Ditto.
12168         (IX86_BUILTIN_PCOMTRUEB): Ditto.
12169         (IX86_BUILTIN_PCOMEQW): Ditto.
12170         (IX86_BUILTIN_PCOMNEW): Ditto.
12171         (IX86_BUILTIN_PCOMLTW): Ditto.
12172         (IX86_BUILTIN_PCOMLEW): Ditto.
12173         (IX86_BUILTIN_PCOMGTW): Ditto.
12174         (IX86_BUILTIN_PCOMGEW): Ditto.
12175         (IX86_BUILTIN_PCOMFALSEW): Ditto.
12176         (IX86_BUILTIN_PCOMTRUEW): Ditto.
12177         (IX86_BUILTIN_PCOMEQD): Ditto.
12178         (IX86_BUILTIN_PCOMNED): Ditto.
12179         (IX86_BUILTIN_PCOMLTD): Ditto.
12180         (IX86_BUILTIN_PCOMLED): Ditto.
12181         (IX86_BUILTIN_PCOMGTD): Ditto.
12182         (IX86_BUILTIN_PCOMGED): Ditto.
12183         (IX86_BUILTIN_PCOMFALSED): Ditto.
12184         (IX86_BUILTIN_PCOMTRUED): Ditto.
12185         (IX86_BUILTIN_PCOMEQQ): Ditto.
12186         (IX86_BUILTIN_PCOMNEQ): Ditto.
12187         (IX86_BUILTIN_PCOMLTQ): Ditto.
12188         (IX86_BUILTIN_PCOMLEQ): Ditto.
12189         (IX86_BUILTIN_PCOMGTQ): Ditto.
12190         (IX86_BUILTIN_PCOMGEQ): Ditto.
12191         (IX86_BUILTIN_PCOMFALSEQ): Ditto.
12192         (IX86_BUILTIN_PCOMTRUEQ): Ditto.
12193         (enum multi_arg_type): New enum for describing the various SSE5
12194         intrinsic argument types.
12195         (bdesc_multi_arg): New table for SSE5 intrinsics.
12196         (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
12197         (ix86_expand_multi_arg_builtin): New function for creating SSE5
12198         intrinsics.
12199         (ix86_expand_builtin): Add SSE5 intrinsic support.
12200         (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
12201         operand instructions.
12202         (ix86_expand_sse5_multiple_memory): New function to split the
12203         second memory reference from SSE5 instructions.
12204         (type_has_variadic_args_p): Delete in favor of stdarg_p.
12205         (ix86_return_pops_args): Use stdarg_p to determine if the function
12206         has variable arguments.
12207         (ix86_setup_incoming_varargs): Ditto.
12208         (x86_this_parameter): Ditto.
12209
12210         * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
12211         declaration.
12212         (ix86_expand_sse5_pack): Ditto.
12213         (ix86_sse5_valid_op_p): Ditto.
12214         (ix86_expand_sse5_multiple_memory): Ditto.
12215
12216         * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
12217         constant for SSE5 support.
12218         (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
12219         (UNSPEC_SSE5_TRUEFALSE): Ditto.
12220         (UNSPEC_SSE5_PERMUTE): Ditto.
12221         (UNSPEC_SSE5_ASHIFT): Ditto.
12222         (UNSPEC_SSE5_LSHIFT): Ditto.
12223         (UNSPEC_FRCZ): Ditto.
12224         (UNSPEC_CVTPH2PS): Ditto.
12225         (UNSPEC_CVTPS2PH): Ditto.
12226         (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
12227         (PCOM_TRUE): Ditto.
12228         (COM_FALSE_S): Ditto.
12229         (COM_FALSE_P): Ditto.
12230         (COM_TRUE_S): Ditto.
12231         (COM_TRUE_P): Ditto.
12232         (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
12233         (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
12234         types.
12235         (memory attribute): Ditto.
12236         (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
12237         Use SSE4_1_ROUND_* constants instead of hard coded numbers.
12238         (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
12239         (floor<mode>2): Ditto.
12240         (ceil<mode>2): Ditto.
12241         (btrunc<mode>2): Ditto.
12242         (nearbyintdf2): Ditto.
12243         (nearbyintsf2): Ditto.
12244         (sse_setccsf): Disable if SSE5.
12245         (sse_setccdf): Ditto.
12246         (sse5_setcc<mode>): New support for SSE5 conditional move.
12247         (sse5_pcmov_<mode>): Ditto.
12248
12249         * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
12250         (SSEMODEF4): Ditto.
12251         (SSEMODEF2P): Ditto.
12252         (ssemodesuffixf4): New mode attribute for SSE5.
12253         (ssemodesuffixf2s): Ditto.
12254         (ssemodesuffixf2c): Ditto.
12255         (sserotatemax): Ditto.
12256         (ssescalarmode): Ditto.
12257         (sse_maskcmpv4sf3): Disable if SSE5.
12258         (sse_maskcmpv2df3): Ditto.
12259         (sse_vmmaskcmpv4sf3): Ditto.
12260         (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
12261         (sse5_vmfmadd<mode>4): Ditto.
12262         (sse5_fmsub<mode>4): Ditto.
12263         (sse5_vmfmsub<mode>4): Ditto.
12264         (sse5_fnmadd<mode>4): Ditto.
12265         (sse5_vmfnmadd<mode>4): Ditto.
12266         (sse5_fnmsub<mode>4): Ditto.
12267         (sse5_vmfnmsub<mode>4): Ditto.
12268         (sse5i_fmadd<mode>4): Ditto.
12269         (sse5i_fmsub<mode>4): Ditto.
12270         (sse5i_fnmadd<mode>4): Ditto.
12271         (sse5i_fnmsub<mode>4): Ditto.
12272         (sse5i_vmfmadd<mode>4): Ditto.
12273         (sse5i_vmfmsub<mode>4): Ditto.
12274         (sse5i_vmfnmadd<mode>4): Ditto.
12275         (sse5i_vmfnmsub<mode>4): Ditto.
12276         (mulv16qi3): Add SSE5 support.
12277         (mulv4si3): Ditto.
12278         (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
12279         (sse2_mulv4si3): Disable if SSE5.
12280         (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
12281         (sse4_1_roundps): Ditto.
12282         (sse4_1_roundsd): Ditto.
12283         (sse4_1_roundss): Ditto.
12284         (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
12285         be generated.
12286         (sse_maskcmpsf3): Ditto.
12287         (sse_vmmaskcmpv4sf3): Ditto.
12288         (sse2_maskcmpv2df3): Ditto.
12289         (sse2_maskcmpdf3): Ditto.
12290         (sse2_vmmaskcmpv2df3): Ditto.
12291         (sse2_eq<mode>3): Ditto.
12292         (sse2_gt<mode>3): Ditto.
12293         (sse5_pcmov_<mode>): Add SSE5 support.
12294         (vec_unpacku_hi_v16qi): Ditto.
12295         (vec_unpacks_hi_v16qi): Ditto.
12296         (vec_unpacku_lo_v16qi): Ditto.
12297         (vec_unpacks_lo_v16qi): Ditto.
12298         (vec_unpacku_hi_v8hi): Ditto.
12299         (vec_unpacks_hi_v8hi): Ditto.
12300         (vec_unpacku_lo_v8hi): Ditto.
12301         (vec_unpacks_lo_v8hi): Ditto.
12302         (vec_unpacku_hi_v4si): Ditto.
12303         (vec_unpacks_hi_v4si): Ditto.
12304         (vec_unpacku_lo_v4si): Ditto.
12305         (vec_unpacks_lo_v4si): Ditto.
12306         (sse5_pmacsww): New SSE5 intrinsic insn.
12307         (sse5_pmacssww): Ditto.
12308         (sse5_pmacsdd): Ditto.
12309         (sse5_pmacssdd): Ditto.
12310         (sse5_pmacssdql): Ditto.
12311         (sse5_pmacssdqh): Ditto.
12312         (sse5_pmacsdqh): Ditto.
12313         (sse5_pmacsswd): Ditto.
12314         (sse5_pmacswd): Ditto.
12315         (sse5_pmadcsswd): Ditto.
12316         (sse5_pmadcswd): Ditto.
12317         (sse5_pcmov_<move>): Conditional move support on SSE5.
12318         (sse5_phaddbw): New SSE5 intrinsic insn.
12319         (sse5_phaddbd): Ditto.
12320         (sse5_phaddbq): Ditto.
12321         (sse5_phaddwd): Ditto.
12322         (sse5_phaddwq): Ditto.
12323         (sse5_phadddq): Ditto.
12324         (sse5_phaddubw): Ditto.
12325         (sse5_phaddubd): Ditto.
12326         (sse5_phaddubq): Ditto.
12327         (sse5_phadduwd): Ditto.
12328         (sse5_phadduwq): Ditto.
12329         (sse5_phaddudq): Ditto.
12330         (sse5_phsubbw): Ditto.
12331         (sse5_phsubwd): Ditto.
12332         (sse5_phsubdq): Ditto.
12333         (sse5_pperm): Ditto.
12334         (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
12335         (sse5_pperm_zero_v16qi_v8hi): Ditto.
12336         (sse5_pperm_sign_v8hi_v4si): Ditto.
12337         (sse5_pperm_zero_v8hi_v4si): Ditto.
12338         (sse5_pperm_sign_v4si_v2di): Ditto.
12339         (sse5_pperm_sign_v4si_v2di): Ditto.
12340         (sse5_pperm_pack_v2di_v4si): Ditto.
12341         (sse5_pperm_pack_v4si_v8hi): Ditto.
12342         (sse5_pperm_pack_v8hi_v16qi): Ditto.
12343         (sse5_perm<mode>): New SSE5 intrinsic insn.
12344         (rotl<mode>3): Ditto.
12345         (sse5_rotl<mode>3): Ditto.
12346         (sse5_ashl<mode>3): Ditto.
12347         (sse5_lshl<mode>3): Ditto.
12348         (sse5_frcz<mode>2): Ditto.
12349         (sse5s_frcz<mode>2): Ditto.
12350         (sse5_cvtph2ps): Ditto.
12351         (sse5_cvtps2ph): Ditto.
12352         (sse5_vmmaskcmp<mode>3): Ditto.
12353         (sse5_com_tf<mode>3): Ditto.
12354         (sse5_maskcmp<mode>3): Ditto.
12355         (sse5_maskcmp_uns<mode>3): Ditto.
12356         (sse5_maskcmp_uns2<mode>3): Ditto.
12357         (sse5_pcom_tf<mode>3): Ditto.
12358
12359         * config/i386/predicates.md (sse5_comparison_float_operator):
12360         New predicate to match the comparison operators supported by
12361         the SSE5 com instruction.
12362         (ix86_comparison_int_operator): New predicate to match just the
12363         signed int comparisons.
12364         (ix86_comparison_uns_operator): New predicate to match just the
12365         unsigned int comparisons.
12366
12367         * doc/invoke.texi (-msse5): Add documentation.
12368         (-mfused-madd): Ditto.
12369
12370         * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
12371
12372         * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
12373         mmintrin-common.h.
12374         (x86_64-*-*): Ditto.
12375
12376         * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
12377
12378         * config/i386/bmmintrin.h: New file, provide common x86 compiler
12379         intrinisics for SSE5.
12380
12381         * config/i386/smmintrin.h: Move instructions shared with SSE5 to
12382         mmintrin-common.h.
12383
12384         * config/i386/mmintrin-common.h: New file, to contain common
12385         instructions between SSE4.1 and SSE5.
12386
12387         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
12388         FOREACH_FUNCTION_ARGS to iterate over the argument list.
12389         (gen_regparm_prefix): Ditto.
12390
12391         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
12392         FOREACH_FUNCTION_ARGS to iterate over the argument list.  Use
12393         prototype_p to determine if a function is prototyped.
12394
12395 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
12396
12397         * c-common.c (c_common_reswords) add the alignof keyword,
12398         with same RID as __alignof and __alignof__
12399
12400 2009-08-25  Anatoly Sokolov  <aesok@post.ru>
12401
12402         * hooks.h (hook_bool_const_int_const_int_true): Declare.
12403         * hooks.c (hook_bool_const_int_const_int_true): New function.
12404         * target.h (struct gcc_target): Add can_eliminate field.
12405         * target-def.h (TARGET_CAN_ELIMINATE): Define.
12406         (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
12407         * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
12408         * reload1.c (update_eliminables, init_elim_table): (Ditto.).
12409         (elim_table): Revise comment.
12410         * system.h (CAN_ELIMINATE): Poison.
12411         * defaults.h (CAN_ELIMINATE): Remove.
12412         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
12413
12414         * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
12415         * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
12416         Define macro.
12417         (alpha_vms_can_eliminate): Declare as static, change return type to
12418         bool.
12419         * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
12420
12421         * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
12422         * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
12423         (arm_can_eliminate): New function.
12424
12425         * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
12426         * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
12427         (avr_can_eliminate): Declare as static.
12428         * config/avr/avr-protos.h (avr_can_eliminate): Remove.
12429
12430         * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
12431         * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
12432         (bfin_can_eliminate): New function.
12433
12434         * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
12435         * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
12436         (crx_can_eliminate): New function.
12437
12438         * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
12439         * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
12440         (fr30_can_eliminate): New function.
12441
12442         * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
12443         * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
12444         (frv_can_eliminate): New function.
12445
12446         * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
12447         * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
12448         (h8300_can_eliminate): New function.
12449
12450         * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
12451         * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
12452         (i386_can_eliminate): Declare as static, change return type to bool.
12453         * config/i386/i386-protos.h (i386_can_eliminate): Remove.
12454
12455         * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
12456         * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
12457         (ia64_can_eliminate): New function.
12458
12459         * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
12460         * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
12461         (iq2000_can_eliminate): New function.
12462
12463         * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
12464         * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
12465         (m32r_can_eliminate): New function.
12466
12467         * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
12468         * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
12469         (m68hc11_can_eliminate): New function.
12470
12471         * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
12472         * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
12473         (m68k_can_eliminate): New function.
12474
12475         * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
12476         * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
12477         (mep_can_eliminate): New function.
12478
12479         * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
12480         * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
12481         (mips_can_eliminate): New function.
12482
12483         * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
12484         * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
12485         (rs6000_can_eliminate): New function.
12486
12487         * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
12488         * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
12489         (s390_can_eliminate): Declare as static.
12490         * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
12491
12492         * config/score/score.h (CAN_ELIMINATE): Remove macro.
12493         * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
12494         (score_can_eliminate): New function.
12495
12496         * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
12497         * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
12498         (sparc_can_eliminate): Declare as static.
12499         * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
12500
12501         * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
12502         * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
12503         (xstormy16_can_eliminate): New function.
12504
12505         * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
12506         * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
12507         (v850_can_eliminate): New function.
12508
12509 2009-08-25  Uros Bizjak  <ubizjak@gmail.com>
12510
12511         * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
12512         (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
12513         (*movdfcc_ext[1234]): Disable for IEEE mode.
12514
12515 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
12516
12517         * gimplify.c (prepare_gimple_addressable): New static function.
12518         (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
12519         it addressable.
12520         (gimplify_addr_expr): Invoke it similarly on the operand instead of
12521         manually fiddling with it.
12522
12523 2009-08-25  Michael Matz  <matz@suse.de>
12524
12525         * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
12526         * dojump.c (do_jump_by_parts_greater): Take two operands instead of
12527         full expression.
12528         (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
12529         (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
12530         (do_jump): Split out code for simple binary comparisons into ...
12531         (do_jump_1): ... this, taking the individual operands and code.
12532         Change callers to helper function above accordingly.
12533         * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
12534         comparisons.
12535
12536 2009-08-25  Michael Matz  <matz@suse.de>
12537
12538         * expr.h (struct separate_ops, sepops): New type for passing
12539         around an exploded simple expression.
12540         * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
12541         Use this structure instead of expression tree.
12542         (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
12543         expression, only its type.
12544         (expand_vec_cond_expr): Take type and individual operands instead
12545         of full expression.
12546         * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
12547         expand_vec_shift_expr): Change prototype accordingly.
12548         * tree-vect-stmts.c (vectorizable_condition): Change call of
12549         expand_vec_cond_expr_p to pass only type.
12550         * expr.c (do_store_flags): Change prototype and implementation
12551         to take an exploded expression.
12552         (expand_expr_real_1): New local ops initialized with details
12553         of the full expression.  Use it instead of full
12554         expression in calls to do_store_flags, expand_vec_cond_expr,
12555         expand_widen_pattern_expr and expand_vec_shift_expr.
12556
12557 2009-08-25  Michael Matz  <matz@suse.de>
12558
12559         * expr.c (expand_expr_real_1): New local treeop0, treeop1,
12560         treeop2 initialized with first three operands of the full expression.
12561         Substitute all TREE_OPERAND (exp, [012]) calls with them.
12562
12563 2009-08-25  Kai Tietz  <kai.tietz@onevision.com>
12564
12565         * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
12566         (__gthread_objc_condition_allocate): Mark arguments as unused.
12567         (__gthread_objc_condition_deallocate): Likewise.
12568         (__gthread_objc_condition_wait): Likewise.
12569         (__gthread_objc_condition_broadcast): Likewise.
12570         (__gthread_objc_condition_signal): Likewise.
12571         (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
12572         (__gthread_objc_thread_id): Likewise.
12573
12574 2009-08-25  Janus Weil  <janus@gcc.gnu.org>
12575
12576         PR middle-end/41149
12577         * tree-pretty-print.c (print_call_name): Print the correct call name
12578         for procedure pointer components.
12579
12580 2009-08-24  Steve Ellcey  <sje@cup.hp.com>
12581
12582         * config/ia64/ia64.c (ia64_promote_function_mode): Call
12583         default_promote_function_mode when not VMS.
12584
12585 2009-08-24  Olivier Hainque  <hainque@adacore.com>
12586
12587         * convert.c (convert_to_integer): Don't assume an input pointer is
12588         POINTER_SIZE wide.  Fetch from the type instead.
12589
12590 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12591
12592         * configure.ac (AC_PREREQ): Bump to 2.64.
12593
12594 2009-08-24  Rafael Avila de Espindola  <espindola@google.com>
12595
12596         * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
12597         (process_command): Don't search standard_exec_prefix_1 and
12598         standard_exec_prefix_2.
12599
12600 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12601
12602         * config/arm/arm.c (output_return_instruction): Handle for
12603         unified syntax.
12604
12605 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12606
12607         * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
12608
12609 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12610
12611         * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
12612         (*arm_movdf_vfp): Likewise.
12613
12614 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12615
12616         * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
12617         (vashr<mode>3): Rename from ashr<mode>3.
12618         (vlshr<mode>3): Rename from lshr<mode>3.
12619
12620 2009-08-24  Kai Tietz  <kai.tietz@onevision.com>
12621
12622         PR/40786
12623         * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
12624         (check_format_info_main): Use scalar_identify_flag.
12625         (check_format_types): Check for scalar size identity if
12626         scalar_identify_flag is set.
12627         (printf_length_specs): Extend by new field.
12628         (asm_fprintf_length_specs): Likewise.
12629         (gcc_diag_length_specs): Likewise.
12630         (scanf_length_specs): Likewise.
12631         (strfmon_length_specs): Likewise.
12632         (gcc_gfc_length_specs): Likewise.
12633         * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
12634         (ms_printf_flag_specs): Likewise.
12635         * c-format.h (format_length_info): Add new member scalar_identity_flag.
12636
12637 2009-08-23  Uros Bizjak  <ubizjak@gmail.com>
12638
12639         PR target/40718
12640         * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
12641         (*call_value_pop_1): Ditto.
12642         (*sibcall_pop_1): New insn pattern.
12643         (*sibcall_value_pop_1): Ditto.
12644
12645 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
12646
12647         PR target/41081
12648         * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
12649         ashrsi3_64): New.
12650
12651 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
12652
12653         PR target/41081
12654         * fwprop.c (try_fwprop_subst): Allow multiple sets.
12655         (get_reg_use_in): New function.
12656         (forward_propagate_subreg): Propagate through subreg of zero_extend
12657         or sign_extend.
12658
12659 2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>
12660
12661         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
12662         * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
12663
12664 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12665
12666         * configure.ac: Remove --with-datarootdir, --with-docdir,
12667         --with-htmldir switches.  No need to call AC_SUBST for
12668         datarootdir, docdir, htmldir any more.
12669         * configure: Regenerate.
12670         * doc/install.texi (Configuration): Document --datarootdir,
12671         --docdir, --htmldir, --pdfdir; update documentation for
12672         --infodir, --mandir.
12673         (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
12674         M4 to 1.4.6.
12675
12676         * aclocal.m4: Regenerate.
12677         * config.in: Regenerate.
12678         * configure: Regenerate.
12679
12680 2009-08-21  Douglas B Rupp  <rupp@gnat.com>
12681             Olivier Hainque  <hainque@adacore.com>
12682
12683         * config/ia64/ia64.c: Include libfuncs.h.
12684         (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
12685         (ia64_expand_call): Use reg 25 on VMS.
12686         (ia64_initialize_trampoline): Fix for VMS ABI.
12687         (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
12688         (ia64_function_arg): Initialize reg 25 on VMS.
12689         Fix OpenVMS ABI issues for varargs.
12690         For OpenVMS, emit the Argument Information register set in the
12691         incoming/sibcall case as well.
12692         (ia64_arg_type): New function.
12693         (ia64_function_arg_advance): Keep track of cum->words.
12694         Fix OpenVMS ABI issues for varargs.
12695         (ia64_function_value): On VMS, promote mode of non-aggregate types.
12696         (ia64_override_options): Set flag_no_common on VMS.
12697         (ia64_init_builtins): Disable FWRITE builtin.
12698         (ia64_asm_output_external): Call DO_CRTL_NAMES.
12699         (ia64_vms_init_libfuncs): Add decc$ routines.
12700         (ia64_vms_valid_pointer_mode): New function.
12701         (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
12702         (ia64_promote_function_mode): New function
12703         * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
12704         (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
12705         (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
12706         (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
12707         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
12708         (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
12709         Suppress trailing '#' if VALUE is numeric.
12710         * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
12711         ia64_promote_function_mode.
12712         (TARGET_VALID_POINTER_MODE): Define.
12713
12714 2009-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
12715
12716         PR target/40671
12717         * config/rs6000/rs6000.c (rs6000_override_options): Use
12718         TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
12719
12720         PR target/41145
12721         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
12722         reporting of vector + decimal/boolean/complex error.
12723
12724 2009-08-21  Jakub Jelinek  <jakub@redhat.com>
12725
12726         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
12727         __vector double TYPE_DECL.
12728
12729 2009-08-21  Richard Earnshaw  <rearnsha@arm.com>
12730
12731         * arm.h (MACHMODE): New define.  Include insn-modes.h if available.
12732         (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
12733         * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
12734         to pointer to enum machine_mode.  Update all callers as needed.
12735
12736 2009-08-21  Uros Bizjak  <ubizjak@gmail.com>
12737
12738         * config/alpha/alpha.md (exception_receiver): Emit alternative
12739         GP load sequence if flag_reorder_blocks_and_partition is set.
12740         (*exception_receiver_2): Also enable when
12741         flag_reorder_blocks_and_partition is set.
12742
12743 2009-08-20  Matt Rice  <ratmice@gmail.com>
12744             Diego Novillo  <dnovillo@google.com>
12745
12746         * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
12747         tree-ssa-sccvn.h.
12748
12749 2009-08-20  Richard Guenther  <rguenther@suse.de>
12750
12751         * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
12752         * c-tree.h (c_dup_lang_specific_decl): Remove.
12753         (struct lang_decl, struct lang_type): Move definitions ...
12754         * c-lang.h: ... here.  New file.
12755         * c-decl.c: Include c-lang.h.
12756         (c_dup_lang_specific_decl): Remove.
12757         * c-typeck.c: Include c-lang.h.
12758         * Makefile.in (c-decl.o): Add c-lang.h dependency.
12759         (c-typeck.o): Likewise.
12760         * c-config-lang.in (gtfiles): Add c-lang.h.
12761         * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
12762         like c-tree.h.
12763
12764 2009-08-20  Uros Bizjak  <ubizjak@gmail.com>
12765
12766         * config/alpha/alpha.c (alpha_end_function): Do not clear
12767         crtl->emit structure and free insn locators if cfun->is_thunk is true,
12768         this is now handled in generic code.
12769
12770 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
12771
12772         * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
12773         (s390_z10_fix_long_loop_prediction): New function.
12774         (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
12775         (s390_reorg): Walk over the INSNs and invoke
12776         s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
12777
12778 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
12779
12780         * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
12781         "*brx_64bit", "*brx_31bit"): New patterns.
12782         * config/s390/s390.c ('E'): New output modifier.
12783
12784 2009-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12785             Richard Earnshaw  <richard.earnshaw@arm.com>
12786
12787         * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
12788         * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
12789
12790 2009-08-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12791
12792         * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
12793         patterns.
12794         * pa.c (emit_move_sequence): Check if address of operand1 is valid
12795         for mode mode of operand0 when doing secondary reload for SAR.
12796
12797 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
12798
12799         PR middle-end/41123
12800         * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
12801         of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
12802
12803 2009-08-19  Jason Merrill  <jason@redhat.com>
12804
12805         * doc/invoke.texi (C++ Dialect Options): Note change of minimum
12806         supported template depth in C++0x.
12807
12808 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
12809
12810         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
12811         free_after_compilation.
12812         * config/score/score7.c (score7_output_mi_thunk): Likewise.
12813         * config/score/score3.c (score3_output_mi_thunk): Likewise.
12814         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
12815         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
12816         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12817         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
12818         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
12819
12820 2009-08-19  Ian Lance Taylor  <iant@google.com>
12821
12822         * doc/md.texi (Insn Canonicalizations): Correct canonicalization
12823         of (plus (mult (neg B) C) A).
12824
12825 2009-08-18  Michael Matz  <matz@suse.de>
12826
12827         * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
12828         instead of comparing TYPE_MAIN_VARIANT for equality.
12829         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
12830         vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
12831         * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
12832         * gimplify.c (goa_lhs_expr_p): Ditto and use
12833         STRIP_USELESS_TYPE_CONVERSION.
12834
12835 2009-08-18  Michael Matz  <matz@suse.de>
12836
12837         * tree-ssa-structalias.c (create_variable_info_for): Also mark
12838         first field in a struct.
12839         (intra_create_variable_infos): Don't deal with flag_argument_noalias.
12840
12841 2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
12842
12843         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
12844         locators before emit_insn is called.  Remove assert that
12845         cfun->is_thunk.
12846         (alpha_end_function): Clear crtl->emit structure and free insn
12847         locators if cfun->is_thunk is true.
12848
12849 2009-08-18  Jason Merrill  <jason@redhat.com>
12850
12851         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
12852         type if available.
12853         * configure.ac: Test for it.
12854         * configure, config.in: Regenerate.
12855         * doc/install.texi: Document --enable-gnu-unique-object.
12856
12857 2009-08-18  Richard Guenther  <rguenther@suse.de>
12858
12859         PR middle-end/41094
12860         * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
12861         pow(x,y*z) only if x is nonnegative.
12862
12863 2009-08-18  Jakub Jelinek  <jakub@redhat.com>
12864
12865         * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
12866         on jumps.
12867
12868         PR target/40971
12869         * config/rs6000/rs6000.c (rs6000_legitimize_address): For
12870         [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
12871
12872 2009-08-17  DJ Delorie  <dj@redhat.com>
12873
12874         * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
12875         * config/m32c/prologue.md (epilogue_freit): New.
12876         (fset_b): New.
12877         * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
12878         (bank_switch_p): Likewise.
12879         (fast_interrupt_p): Likewise.
12880         (interrupt_p): Likewise.
12881         (m32c_conditional_register_usage): Round memregs size up.
12882         (need_to_save): We only need to save $a0 when we use ENTER.
12883         (interrupt_p): Check for fast_interrupt too.
12884         (bank_switch_p): New.
12885         (fast_interrupt_p): New.
12886         (m32c_attribute_table): Add bank_switch and fast_interrupt.
12887         (m32c_emit_prolog): Support bank switching and fast interrupts.
12888         * doc/extend.texi (Function Attributes): Add bank_switch and
12889         fast_interrupt.
12890
12891 2009-08-17  Douglas B Rupp  <rupp@gnat.com>
12892
12893         * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
12894         * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
12895
12896 2009-08-16  Douglas B Rupp  <rupp@gnat.com>
12897
12898         * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
12899         (menu): Add IA-64/VMS Options.
12900         (IA-64/VMS Options): Likewise.
12901
12902 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
12903
12904         PR target/38599
12905         * config/mips/mips.md (*lwxs): Use :P for pointer values.
12906
12907 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
12908
12909         * config/mips/mips-protos.h (mips_push_asm_switch): New function.
12910         (mips_pop_asm_switch): Likewise.
12911         * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
12912         with...
12913         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
12914         (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
12915         (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
12916         (mips_print_operand_punctuation): Use them.  Check mips_noreorder
12917         instead of set_noreorder.
12918         (mips_output_function_prologue): Use the new functions.
12919         (mips_output_function_epilogue): Likewise.
12920         (mips_need_noat_wrapper_p): New function, split out from...
12921         (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
12922         Use mips_push_asm_switch and mips_pop_asm_switch.
12923         * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
12924         and mips_pop_asm_switch.
12925         (ASM_OUTPUT_REG_POP): Likewise.
12926         (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
12927         Use mips_pop_asm_switch.
12928         (mips_asm_switch): New structure.
12929         (set_noreorder, set_nomacro): Replace with...
12930         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
12931         * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
12932         instead of set_nomacro.
12933         (fix_truncsfsi2_macro): Likewise.
12934         (cprestore): Likewise.
12935         (hazard): Use mips_noreorder instead of set_noreorder.
12936         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
12937
12938 2009-08-16  Uros Bizjak  <ubizjak@gmail.com>
12939
12940         * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
12941         from prev_active_insn.
12942
12943 2009-08-16  Anatoly Sokolov  <aesok@post.ru>
12944
12945         * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
12946         * config/avr/avr.c (avr_override_options): Initialize
12947         avr_current_arch variable.
12948         (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
12949         __AVR_HAVE_16BIT_SP__ according to the device type.
12950         (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
12951         TARGET_TINY_STACK.
12952         (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
12953         Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
12954
12955 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
12956
12957         PR debug/37801
12958         * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
12959         generating inlined subroutine die only. We shouldn't be
12960         called for anything else.
12961         (gen_block_die): Don't generate inline subroutine debug info for
12962         abstract blocks.
12963
12964 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
12965
12966         * graphite-poly.c (print_pbb): Print PBB index.
12967
12968 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
12969
12970         PR middle-end/40981
12971         * graphite-interchange.c (ppl_max_for_le): Moved...
12972         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
12973         * graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
12974         ppl_Pointset_Powerset_C_Polyhedron_maximize.
12975         * graphite-ppl.h (ppl_max_for_le): Declared.
12976
12977 2009-08-14  Olatunji Ruwase <tjruwase@google.com>
12978
12979         * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
12980         supported on all platforms.
12981         * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
12982         * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
12983         * c-pragma.c: Likewise.
12984         * target-def.h (TARGET_INITIALIZER): Remove
12985         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
12986         * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
12987
12988 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
12989
12990         * config/ia64/fde-vms.c: New file.
12991         * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
12992         * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
12993         (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
12994         (uw_frame_state_for): Only register a personality routine if it is
12995         known to be compatible with our expectations.
12996         (_Unwind_FindEnclosingFunction, uw_frame_state_for):
12997         Declare unw_table_entry stack variable and
12998         mod all calls to _Unwind_FindTableEntry to add arg.
12999         * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
13000         (_Unwind_FindTableEntry): Add arg to prototype.
13001
13002 2009-08-14  Eric Botcazou  <ebotcazou@adacore.com>
13003
13004         * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
13005         field 'signal_pfs_loc'.
13006         (uw_frame_state_for): Remove duplicate code dealing with leaf
13007         procedures without unwind info.
13008         If in the frame after unwinding through a signal handler, restore
13009         the AR.PFS register instead of the CFM if AR.PFS has not been saved.
13010         * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
13011         'pfs_loc' to the AR.PFS location in the signal context; instead
13012         set 'signal_pfs_loc'.
13013         Manually generate the unwind info for the AR.PFS register.
13014         (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
13015         ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
13016         (ia64_handle_unwabi): Test 'fs->unwabi' against them.
13017         Do not set 'pfs_loc' to the AR.PFS location in the signal context;
13018         instead set 'signal_pfs_loc'.
13019         Remove code preventing the AR.PFS register from being restored
13020         from the signal context.
13021
13022 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
13023             Tristan Gingold  <gingold@adacore.com>
13024
13025         * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
13026         * config/ia64/t-vms: New file.
13027         * config/ia64/vms64.h: New file.
13028         * config/ia64/vms.h: New file.
13029         * config/ia64/vms-crtinit.asm: New file.
13030         * config/ia64/vms_symvec_libgcc_s.opt: New file.
13031         * config/ia64/vms-unwind.h: New file.
13032
13033 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
13034
13035         * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
13036         TFmode compares.
13037
13038 2009-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13039
13040         PR middle-end/30789
13041         * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
13042         Move declaration...
13043         * real.h (do_mpc_arg2): ... here.
13044         * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
13045         and RDIV_EXPR.
13046
13047 2009-08-14  Rafael Avila de Espindola  <espindola@google.com>
13048
13049         * final.c (add_debug_prefix_map): Don't use GC memory for
13050         old_prefix and new_prefix.
13051
13052 2009-08-14  Richard Guenther  <rguenther@suse.de>
13053
13054         * ipa-prop.c (compute_complex_pass_through): If we cannot
13055         compute a non-varying offset for IPA_JF_ANCESTOR punt.
13056
13057 2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13058
13059         * c-lex.c (c_lex_with_flags): Increase size of local variable
13060         to avoid memory clobber.
13061
13062 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
13063
13064         PR target/40934
13065         * config/i386/i386.c (ix86_fp_comparison_strategy):
13066         Only enable/disable sahf at function granularity.
13067
13068 2009-08-14  Hans-Peter Nilsson  <hp@axis.com>
13069
13070         PR rtl-optimization/41064
13071         * reload1.c (reload_as_needed): Don't call extract_insn
13072         for known invalid replacements after calling
13073         validate_replace_rtx_group and verify_changes.
13074
13075 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
13076
13077         PR target/41019
13078         * config/i386/sse.md (SSEMODE124C8): New mode iterator.
13079         (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
13080         ix86_expand_fp_vcond.
13081         (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
13082         Assert that operation is supported by ix86_expand_int_vcond.
13083         (vcondu<SSEMODE124C8:mode>): Ditto.
13084
13085 2009-08-13  DJ Delorie  <dj@redhat.com>
13086
13087         * config/i386/djgpp-stdint.h: New.
13088         * config.gcc (djgpp): Use it.
13089
13090 2009-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
13091
13092         * config/sh/sh.c (sh_override_options): When flag_exceptions or
13093         flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
13094
13095 2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
13096
13097         * tree-ssa-loop-prefetch.c
13098         (prune_ref_by_group_reuse): Enhance probabilistic analysis
13099         for long-stride pruning.
13100         (compute_miss_rate): New function to compute the probability
13101         that two memory references access different cache lines.
13102
13103 2009-08-13  Dave Korn  <dave.korn.cygwin@gmail.com>
13104
13105         * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
13106
13107 2009-08-13  Richard Guenther  <rguenther@suse.de>
13108
13109         PR middle-end/41047
13110         * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
13111         use the constant pointer type.
13112         * gimplify.c (canonicalize_addr_expr): Canonicalize independent
13113         of CV qualifiers on the target pointer type.
13114         * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
13115         conversion check before restrict check.
13116
13117 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
13118
13119         PR target/41029
13120         * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
13121
13122 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
13123
13124         * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
13125
13126 2009-08-12  Richard Guenther  <rguenther@suse.de>
13127
13128         PR tree-optimization/41011
13129         * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
13130         and reference constructing.
13131
13132 2009-08-12  Xinliang David Li  <davidxl@google.com>
13133
13134         PR tree-optimization/41012
13135         * tree-flow.h : New external interface.
13136         * gimple-low.c (check_call_arg): Change to public function.
13137         Remove argument mismatch check in lowering.
13138         * tree-inline.h (tree_can_inline_p): Interface change.
13139         * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
13140         into this function.
13141         * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
13142         Call change to tree_can_inline_p function.
13143         (cgraph_decide_inlining_incrementally): Ditto.
13144
13145 2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
13146
13147         PR tree-optimization/41031
13148         * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
13149         on the partition variable rather than promote_mode on the source
13150         type.  Assert that the partition variable's type has the same
13151         mode as the source value's.
13152
13153 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
13154
13155         * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
13156         for for_return == 2.
13157         * function.c (assign_parm_setup_reg): Use for_return == 2, improve
13158         comments.
13159         * calls.c (expand_call): Fix typo.
13160         * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
13161         and PARM_DECL.
13162         * stmt.c (expand_value_return): Use promote_function_mode to copy out
13163         of pseudo.
13164         * targhooks.c (default_promote_function_mode): Handle for_return == 2.
13165         * config/cris/cris.c (cris_promote_function_mode): Likewise.
13166         * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
13167         * config/pa/pa.c (pa_promote_function_mode): Likewise.
13168
13169 2009-08-12  Andrew Haley  <aph@redhat.com>
13170
13171         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
13172
13173 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
13174
13175         PR bootstrap/40103
13176         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
13177
13178 2009-08-12  Richard Guenther  <rguenther@suse.de>
13179
13180         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
13181         * gimplify.c (gimplify_modify_expr): Do not use
13182         lang_hooks.types_compatible_p.
13183         * tree-ssa.c (useless_type_conversion_p): For aggregates
13184         just return false if the canonical types differ.
13185
13186 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
13187
13188         PR middle-end/40980
13189         * sese.c (convert_for_phi_arg): New.
13190         (add_guard_exit_phis): Use convert_for_phi_arg.
13191
13192 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
13193
13194         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
13195         unknown subscript upper bounds.
13196
13197 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
13198             Pranav Garg  <pranav.garg2107@gmail.com>
13199
13200         * graphite-interchange.c (gather_access_strides): Removed.
13201         (ppl_max_for_le): New.
13202         (build_linearized_memory_access): New.
13203         (memory_stride_in_loop): New.
13204         (pbb_interchange_profitable_p): Reimplemented.
13205         * graphite-ppl.h (ppl_new_id_map): New.
13206         (ppl_interchange): New.
13207
13208 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
13209
13210         * graphite-interchange.c (compute_subscript): Removed.
13211         (compute_array_size_cstr): Removed.
13212         (compute_array_size_poly): Removed.
13213         (compute_array_size): Removed.
13214         (gather_access_strides_poly): Removed.
13215         (gather_access_strides): Empty.
13216
13217 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
13218
13219         * graphite-dependences.c (dependence_polyhedron_1): Replace
13220         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
13221         (graphite_legal_transform_dr): Same.
13222         (graphite_carried_dependence_level_k): Same.
13223         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
13224         Initialize PDR_NB_SUBSCRIPTS.
13225         (print_pdr_access_layout): Replace pdr_nb_subscripts with
13226         PDR_NB_SUBSCRIPTS.
13227         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
13228         (PDR_NB_SUBSCRIPTS): New.
13229         (pdr_nb_subscripts): Removed.
13230         (pdr_dim): Simplified.
13231         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
13232         with PDR_NB_SUBSCRIPTS.
13233
13234 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
13235
13236         * graphite-interchange.c (compute_array_size): Remove use of
13237         PDR_DATA_CONTAINER.
13238         * graphite-poly.c (new_poly_dr): Remove argument data_container.
13239         Do not initialize PDR_DATA_CONTAINER.
13240         (print_pdr): Do not print PDR_DATA_CONTAINER.
13241         * graphite-poly.h (struct poly_dr): Remove data_container field.
13242         (PDR_DATA_CONTAINER): Removed.
13243         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
13244         PDR_DATA_CONTAINER.
13245         (build_poly_dr): Same.
13246
13247 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
13248             Sebastian Pop  <sebastian.pop@amd.com>
13249
13250         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
13251         copy of the dependence polyhedron.  Free the temporary objects.
13252         (graphite_carried_dependence_level_k): Free unused objects before
13253         returning.
13254
13255 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
13256
13257         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
13258         Early return without analyzing the data dependences if no
13259         transform has been done.  Call restore_scattering if the transform
13260         is not legal.
13261         (graphite-interchange.c): Same.
13262         * graphite-poly.c (print_scattering_function): Test for
13263         PBB_TRANSFORMED.
13264         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
13265         (apply_poly_transforms): Do not gcc_assert that
13266         the transform is legal.
13267         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
13268         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
13269         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
13270         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
13271         * graphite-poly.h (struct poly_scattering): New.
13272         (struct poly_bb): Add original, transformed, and saved fields.
13273         Remove transformed_scattering, original_scattering,
13274         nb_local_variables and nb_scattering_transform fields.
13275         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
13276         (poly_scattering_new): New.
13277         (poly_scattering_free): New.
13278         (poly_scattering_copy): New.
13279         (store_scattering_pbb): New.
13280         (store_scattering): New.
13281         (restore_scattering_pbb): New.
13282         (restore_scattering): New.
13283         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
13284         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
13285
13286 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
13287
13288         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
13289         (print_scop): Same.
13290
13291 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
13292
13293         * Makefile.in (graphite.o): Depends on PREDICT_H.
13294         * graphite.c: Include predict.h.
13295         (graphite_finalize): Call tree_estimate_probability.
13296         * predict.c (predict_loops): Do not call scev_initialize and
13297         scev_finalize.
13298         (tree_estimate_probability_bb): New.
13299         (tree_estimate_probability): Do not initialize loops: move that
13300         code to the driver.  Call tree_estimate_probability_bb.
13301         (tree_estimate_probability_driver): New.
13302         (pass_profile): Use tree_estimate_probability_driver.
13303         * predict.h (tree_estimate_probability): Declared.
13304
13305 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
13306
13307         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
13308         * graphite-dependences.c (graphite_legal_transform): Add time to
13309         TV_GRAPHITE_DATA_DEPS.
13310         (dependency_between_pbbs_p): Same.
13311         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
13312
13313 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
13314
13315         PR rtl-optimization/41033
13316         * alias.c (nonoverlapping_component_refs_p): Punt when strict
13317         aliasing is disabled.
13318
13319 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
13320
13321         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
13322         si_mask_operand, and_load_operand, low_bitmask_operand,
13323         and_reg_operand, and_operand): New predicates.
13324         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
13325         * config/mips/mips.c (and_operands_ok): New function.
13326         * config/mips/mips-protos.h (and_operands_ok): Declare it.
13327         * config/mips/mips.md (move_type): Add ext_ins and logical.
13328         (type): Handle them.
13329         (and<mode>3): Use and_reg_operand as the second operand's predicate.
13330         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
13331         shift_shift.  Remove commutative constraint modifier.
13332         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
13333         shift_shift.
13334         (*clear_upper32_dext): Remove define_insn_and_split.
13335         (*clear_upper32): Turn this define_insn_and_split ...
13336         (splitter for ANDing register with 0xffff_ffff): .. into this.
13337
13338 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
13339
13340         * combine.c (try_widen_shift_mode): Factor out code to check if an
13341         integer constant is a low-order bitmask from here ...
13342         * rtlanal.c (low_bitmask_len): ... to here.
13343         * rtl.h (low_bitmask_len): Declare.
13344
13345 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
13346
13347         PR target/8603
13348         * config/alpha/alpha.md (addsi3): Remove expander.
13349         (addsi3): Rename from *addsi3_internal insn pattern.
13350         (subsi3): Remove expander.
13351         (subsi3): Rename from *subsi3_internal insn pattern.
13352
13353 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
13354
13355         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
13356         FWRITE_UNLOCKED.
13357
13358 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
13359             Eric Botcazou  <botcazou@adacore.com>
13360             Douglas B Rupp  <rupp@gnat.com>
13361
13362         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
13363         that records that fit in 64 bits are returned by immediate value,
13364         as required by OpenVMS Calling Standard.
13365         (function_value): Adjust for above modification.
13366         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
13367         virtual_incoming_args_rtx as base object, not next_arg.
13368         * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
13369
13370 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13371
13372         * reload.c (find_reloads_subreg_address): Check the original
13373         req_equiv_mem address to detect the case where an address is
13374         not valid in the outer mode.
13375
13376 2009-08-11  Richard Guenther  <rguenther@suse.de>
13377
13378         PR bootstrap/40788
13379         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
13380
13381 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
13382
13383         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
13384         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
13385
13386 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
13387             Douglas B Rupp  <rupp@gnat.com>
13388
13389         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
13390         PT_STACK when frame_pointer_needed on OpenVMS.
13391         (alpha_pv_save_size, alpha_using_fp): Remove.
13392         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
13393         with proper processing for PT_NULL.
13394         (alpha_vms_initial_elimination_offset): New function. Support for
13395         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
13396         (alpha_sa_size): Force procedure type to PT_STACK when
13397         frame_pointer_needed on OpenVMS.
13398         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
13399         (alpha_using_fp): Likewise.
13400         (alpha_vms_can_eliminate): Add prototype.
13401         (alpha_vms_initial_elimination_offset): Likewise.
13402         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
13403         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
13404
13405 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
13406             Douglas B Rupp  <rupp@gnat.com>
13407
13408         * config/alpha/alpha.c (common_object_handler): New function.
13409         (vms_attribute_table): Declare a single attribute "common_object".
13410         (vms_output_aligned_decl_common): New global function.
13411         (SECTION_VMS_OVERLAY): Delete.
13412         (SECTION_VMS_GLOBAL): Likewise.
13413         (SECTION_VMS_INITIALIZE): Likewise.
13414         (vms_asm_named_section): Remove support for above flags.
13415         (vms_section_type_flags): Delete.
13416         (TARGET_SECTION_TYPE_FLAGS): Likewise.
13417         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
13418         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
13419         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
13420
13421 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
13422
13423         PR target/41015
13424         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
13425         (sub_ddmmss): Likewise.
13426
13427 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
13428
13429         PR bootstrap/41018
13430         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
13431         year.
13432
13433 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13434
13435         PR target/37053
13436         * reload1.c (reload_as_needed): Use cancel_changes to completely
13437         undo a failed replacement attempt.
13438
13439 2009-08-10  Richard Guenther  <rguenther@suse.de>
13440
13441         PR middle-end/41006
13442         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
13443         (useless_type_conversion_p): ... here.  Require pointer targets
13444         to be compatible.
13445
13446 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
13447
13448         PR c++/40866
13449         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
13450         loose the original type of the statement list.
13451
13452 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
13453
13454         * config/alpha/alpha.c: Include libfuncs.h
13455         (avms_asm_output_extern): New function.
13456         (alpha_init_libfuncs): Init some decc libfuncs.
13457         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
13458         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
13459         (DO_CRTL_NAMES): Define.
13460         (LIB_SPEC): Remove.
13461         * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
13462         (LONG_TYPE_SIZE): Define.
13463         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
13464         (SUBTARGET_SWITCHES): Define malloc64 switch.
13465         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
13466         (MASK_RETURN_ADDR): Define.
13467         doc/invoke.texi (mmalloc64): Document switch.
13468
13469 2009-08-09  Olivier Hainque  <hainque@adacore.com>
13470             Douglas B Rupp  <rupp@gnat.com>
13471
13472         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
13473         uses_condition_handler.
13474         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
13475         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
13476         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
13477         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
13478         (code_for_builtin): New insn codes for the new alpha_builtins.
13479         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
13480         (alpha_sa_size): Account for uses_condition_handler.
13481         (alpha_expand_prologue): Likewise.
13482         (alpha_start_function): Likewise.
13483         (alpha_expand_epilogue): Likewise.
13484         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
13485         establish/revert expanders.
13486         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
13487         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
13488         New expander, resorting to the alpha.c associated function.
13489         (builtin_revert_vms_condition_handler): Likewise.
13490         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
13491         __gcc_shell_handler, the static VMS condition handler used as
13492         an indirection wrapper to the current dynamically established
13493         handler.
13494         * config/alpha/vms-unwind.h: Complete rewrite.
13495         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
13496         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
13497
13498 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
13499             Douglas B Rupp  <rupp@gnat.com>
13500
13501         * config/alpha/alpha.c (alpha_links): Add 'target' field.
13502         (alpha_need_linkage): Handle aliases.  Return function symbol.
13503         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
13504         Use ultimate alias target for the linkage name.
13505         * config/alpha/alpha.md (movmemdi): Use the symbol returned
13506         by alpha_need_linkage for the function symbol.
13507         (setmemdi): Likewise.
13508
13509 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
13510
13511         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
13512         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
13513         (ASM_WEAKEN_LABEL): Define.
13514         (CRT_CALL_STATIC_FUNCTION): Define.
13515         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
13516         (ENDFILE_SPEC): Define.
13517         (INIT_SECTION_ASM_OP): Define.
13518         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
13519         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
13520         crtend.o crtendS.o.
13521         (MULTILIB_OSDIRNAMES): Define.
13522         (shlib_version): Define.
13523         (SHLIB_EXT): Define.
13524         (SHLIB_OBJS): Define.
13525         (SHLIB_NAME): Define.
13526         (SHLIB_MULTILIB): Define.
13527         (SHLIB_INSTALL): Define.
13528         (SHLIB_SYMVEC): Define.
13529         (SHLIB_SYMVECX2): Define.
13530         (SHLIB_LINK): Define.
13531
13532 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
13533
13534         * config/alpha/alpha.c (alpha_initialize_trampoline):
13535         Initialize VMS trampoline IAW ABI for bounded procedure calls.
13536         (alpha_start_function): Emit transfer address on nested functions
13537         for VMS trampoline call.
13538         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
13539         since no longer used.
13540         * config/alpha/vms-tramp.asm: Remove.
13541         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
13542         since now only data initialized at runtime.
13543
13544 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
13545
13546         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
13547         (LINK_GCC_C_SEQUENCE_SPEC): Define.
13548         (MD_EXEC_PREFIX): Remove, no longer used.
13549         (MD_STARTFILE_PREFIX): Likewise.
13550         (INCLUDE_DEFAULTS): Likewise.
13551         * config/alpha/t-vms:
13552         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
13553
13554 2009-08-09  Richard Guenther  <rguenther@suse.de>
13555
13556         PR tree-optimization/41016
13557         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
13558         (operand_precision): Remove.
13559         (integral_operand_p): Likewise.
13560         (recognize_single_bit_test): Adjust.
13561
13562 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
13563
13564         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
13565         operation overflows.  Likewise non-cast unary arithmetic.
13566         If one arm of a conditional expression is always taken,
13567         inhibit evaluation warnings for the other arm.  Likewise inhibit
13568         evaluation warnings for the second && or || operand if the first
13569         operand is enough to determine the result.
13570         * c-typeck.c (build_conditional_expr): Apply the same inhibition
13571         rules here.
13572         (build_binary_op): Prevent duplicate evaluation warnings.
13573
13574 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
13575
13576         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
13577         and destination have different modes, Use promote_mode to
13578         determine the signedness of the conversion.  Assert that the
13579         promoted source mode matches the destination mode.  Don't pass
13580         the destination and destination mode to expand_expr if the source
13581         mode is different.  Simplify conversion logic.
13582
13583 2009-08-09  Ira Rosen  <irar@il.ibm.com>
13584
13585         PR tree-optimization/41008
13586         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
13587         from condition only in case it's a comparison. Adjust checks.
13588
13589 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
13590
13591         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
13592         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
13593         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
13594         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
13595         (dump_cand): Handle them.
13596         (struct iv_cand): New members COST_STEP and AINC_USE.
13597         (stmt_after_increment): Likewise.
13598         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
13599         callers changed.  Use gimple_uid comparison instead of scanning.
13600         (add_candidate_1): When looking for identical candidates, take
13601         AINC_USE into account.  Set it for new candidates.
13602         (force_expr_to_var_cost): Cast target_spill_cost to int.
13603         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
13604         All callers changed.  Check for availability of autoinc addressing
13605         modes, both in general for a given mode, and in the specific use case.
13606         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
13607         changed.
13608         (get_computation_cost): Likewise.
13609         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
13610         add_autoinc_candidates): New static functions.
13611         (add_candidate): Call add_autoinc_candidates for candidates based on
13612         a USE_ADDRESS use.
13613         (find_iv_candidates): Call set_autoinc_for_original_candidates.
13614         (determine_use_iv_cost_address): If we have an autoinc candidate at
13615         the matching use, verify autoinc is possible and subtract the cost
13616         of the candidate's step from the cost.
13617         (determine_iv_cost): Record the cost of the increment in the COST_STEP
13618         member of the candidate.
13619         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
13620         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
13621
13622 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
13623
13624         * config.build (ia64-hp-*vms*): New target.
13625         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
13626         with ia64-hp-*vms*.
13627         * config.gcc (ia64-hp-*vms*): New target.
13628         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
13629         with ia64-hp-*vms*.
13630         * config.host (ia64-hp-*vms*): New target.
13631         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
13632         with ia64-hp-*vms*.
13633
13634 2009-08-08  Richard Guenther  <rguenther@suse.de>
13635
13636         PR tree-optimization/40991
13637         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
13638
13639 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
13640
13641         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
13642         mode check.  Do truncations in an integer mode.
13643         (force_to_mode): Handle subregs for all mode types.  Only do
13644         arithmetic simplifications on integer modes.
13645
13646 2009-08-07  Richard Guenther  <rguenther@suse.de>
13647
13648         PR tree-optimization/40999
13649         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
13650         (maybe_fold_reference): Lookup constant initializers.
13651         (fold_gimple_assign): Likewise.
13652
13653 2009-08-07  Richard Guenther  <rguenther@suse.de>
13654
13655         * tree-ssa.c (useless_type_conversion_p_1): Only for types
13656         that require structural equality defer to the langhook.
13657
13658 2009-08-07  Martin Jambor  <mjambor@suse.cz>
13659
13660         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
13661         comments.
13662         (struct ipa_pass_through_data): New type.
13663         (struct ipa_ancestor_jf_data): New type.
13664         (union jump_func_value): Removed field formal_id, added fields
13665         pass_through and ancestor.
13666         (struct ipa_param_call_note): Changed type of formal_id to int from
13667         unsigned.
13668         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
13669         operations jump functions and ancestor jump functions.
13670         (compute_complex_pass_through): New function.
13671         (compute_scalar_jump_functions): Call compute_complex_pass_through,
13672         reflect changes in the jump function strucutre.
13673         (update_jump_functions_after_inlining): Ignore complex pass-through
13674         and ancestor jump functions.
13675         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
13676         polynomial pass-through with operation jump functions.
13677
13678 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
13679
13680         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
13681         fde->dw_fde_begin as begin label instead of hot/cold label.
13682         Use LLSDAC label instead of LLSDA for second section lsda.
13683         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
13684         label instead of LLSDA if it is true.
13685         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
13686         callers.
13687         * except.c (add_call_site, dw2_size_of_call_site_table): Add
13688         SECTION argument.  Use it as index into crtl->eh.call_site_record
13689         array.
13690         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
13691         use it to determine how to print table entries instead of using
13692         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
13693         label instead of normal begin label as base.
13694         (sjlj_assign_call_site_values): Adjust add_call_site caller.
13695         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
13696         ensure no EH range spans between sections and that landing pads
13697         are always in the corresponding section.
13698         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
13699         for crtl->eh.call_site_record being an array rather than scalar.
13700         (output_one_function_exception_table): New function, copied
13701         from output_function_exception_table.  Adjust
13702         dw2_size_of_call_site_table, dw2_output_call_site_table
13703         callers.  For SECOND section use *C suffixed labels.
13704         (output_function_exception_table): Call
13705         output_one_function_exception_table and, when doing hot/cold
13706         partitioning, also another time for the second section.
13707         * opts.c: Include except.h.
13708         (decode_options): Allow -freorder-blocks-and-partition with
13709         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
13710         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
13711         * function.h (struct rtl_eh): Change call_site_record from
13712         scalar into array of 2 elements.
13713
13714 2009-08-07  Martin Jambor  <mjambor@suse.cz>
13715
13716         * ipa-prop.c (count_formal_params_1): New function.
13717         (ipa_get_vector_of_formal_parms): New function.
13718         (get_vector_of_formal_parm_types): New function.
13719         (ipa_modify_formal_parameters): New function.
13720         (ipa_modify_call_arguments): New function.
13721         (index_in_adjustments_multiple_times_p): New function.
13722         (ipa_combine_adjustments): New function.
13723         (ipa_dump_param_adjustments): New function.
13724         * ipa-prop.h (struct ipa_parm_adjustment): New type.
13725         (ipa_get_vector_of_formal_parms): Declare.
13726         (ipa_modify_formal_parameters): Declare.
13727         (ipa_modify_call_arguments): Declare.
13728         (ipa_combine_adjustments): Declare.
13729         (ipa_dump_param_adjustments): Declare.
13730         (build_ref_for_offset): Declare.
13731         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
13732         * tree-sra.c: Include ipa-prop.c.
13733         (build_ref_for_offset): Make public.
13734
13735 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
13736
13737         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
13738
13739 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
13740
13741         * gcc/doc/extend.texi (__builtin_extract_return_address)
13742         (__builtin_frob_return_address): Document.
13743
13744 2009-08-06  Paul Brook  <paul@codesourcery.com>
13745
13746         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
13747         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
13748         implementation on ARMv6-M.
13749
13750 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
13751
13752         * doc/extend.texi (pcs): Document new attribute for ARM.
13753
13754 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
13755
13756         * arm.c (pcs_attribute_args): Comment out unsupported attribute
13757         variants.
13758
13759 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
13760
13761         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
13762         warning ().
13763
13764 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
13765
13766         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
13767
13768 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
13769
13770         Merge ARM/hard_vfp_branch to trunk.
13771
13772         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
13773
13774         * arm.c (libcall_eq): New function.
13775         (libcall_hash): New function.
13776         (add_libcall): New function.
13777         (arm_libcall_uses_aapcs_base): New function.
13778         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
13779         libcalls using the base PCS.
13780         (arm_init_cumulative_args): Likewise.
13781
13782         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
13783
13784         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
13785         Use base ABI for conversion libfuncs between HFmode and SFmode.
13786
13787         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
13788
13789         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
13790         V4SImode as representatives of all 64-bit and 128-bit vector
13791         types.  Allow vector types without vector modes.
13792         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
13793         without vector modes like BLKmode.
13794         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
13795         BLKmode.  Avoid unsupported vector modes or TImode moves for
13796         non-TARGET_NEON.
13797         (aapcs_vfp_allocate_return_reg): Likewise.
13798         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
13799         V8QImode if TARGET_NEON || TARGET_IWMMXT.
13800
13801         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
13802
13803         * config/arm/arm.c (arm_handle_pcs_attribute): New.
13804         (arm_get_pcs_model): Pass attribute arguments to
13805         arm_pcs_from_attribute.
13806         (arm_init_cumulative_args): Use base AAPCS for conversions from
13807         floating-point types to DImode.
13808         (arm_attribute_table): Add pcs attribute.
13809         (arm_handle_pcs_attribute): New.
13810         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
13811         conversions from floating-point types to DImode, also declare them
13812         to use base AAPCS and declare functions they call to use base
13813         AAPCS and their RTABI names.
13814
13815         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
13816
13817         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
13818         -mfloat-abi=hard not being supported for VFP.
13819
13820         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
13821
13822         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
13823         SYMBOL_REF to hard_libcall_value.
13824
13825         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
13826             Richard Earnshaw  <rearnsha@arm.com>
13827
13828         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
13829         has been put on the stack, all remaining co-processory arguments for
13830         that co-processor also go on the stack.
13831
13832         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
13833
13834         * config/arm/arm.c (arm_return_in_memory): Handle returning
13835         vectors of suitable size in registers also for AAPCS case.
13836
13837         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
13838
13839         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
13840
13841         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
13842
13843         ARM Hard-VFP calling convention
13844         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
13845         * target.h (gcc_target): Add libcall_value to table of call hooks.
13846         * targhooks.h (default_libcall_value): Default implementation.
13847         * targhooks.c (default_libcall_value): Likewise.
13848         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
13849         * optabs.c (expand_unop): Use it.
13850         * expr.h (hard_libcall_value): Pass the function RTX through.
13851         * calls.c (emit_library_call_value_1): Update call to
13852         hard_libcall_value.
13853         * explow.c (hard_libcall_value): Use new target hook.
13854         * config/arm/arm.c: Include cgraph.h
13855         (TARGET_FUNCTION_VALUE): Override default hook.
13856         (arm_pcs_default): New variable.
13857         (arm_override_options): Don't fault hard calling convention with VFP.
13858         Add support for AAPCS variants.
13859         (arm_function_value): Make static.  Handle AAPCS variants.
13860         (arm_libcall_value): New function.
13861         (arm_apply_result_size): Handle VFP registers in results.
13862         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
13863         conventions.
13864         (pcs_attribute_args): New variable.
13865         (arm_pcs_from_attribute): New function.
13866         (arm_get_pcs_model): New function.
13867         (aapcs_vfp_cum_init): New function.
13868         (aapcs_vfp_sub_candidate): New function.
13869         (aapcs_vfp_is_return_candidate): New function.
13870         (aapcs_vfp_is_call_candidate): New function.
13871         (aapcs_vfp_allocate): New function.
13872         (aapcs_vfp_allocate_return_reg): New function.
13873         (aapcs_vfp_advance): New function.
13874         (aapcs_cp_arg_layout): New variable.
13875         (aapcs_select_call_coproc): New function.
13876         (aapcs_select_return_coproc): New function.
13877         (aapcs_allocate_return_reg): New function.
13878         (aapcs_libcall_value): New function.
13879         (aapcs_layout_arg): New function.
13880         (arm_init_cumulative_args): Initialize AAPCS args data.
13881         (arm_function_arg): Handle AAPCS variants using new interface.
13882         (arm_arg_parital_bytes): Likewise.
13883         (arm_function_arg_advance): New function.
13884         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
13885         calling conventions.
13886         (arm_setup_incoming_varargs): Handle new AAPCS args data.
13887         * arm.h (NUM_VFP_ARG_REGS): Define.
13888         (LIBCALL_VALUE): Update.
13889         (FUNCTION_VALUE): Delete.
13890         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
13891         (arm_pcs): New enum.
13892         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
13893         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
13894         (FUNCTION_ARG_REGNO_P): Add VFP regs.
13895         * arm-protos.h (arm_function_arg_advance): Add.
13896         (aapcs_libcall_value): Add.
13897         (arm_function_value): Delete.
13898
13899 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
13900             H.J. Lu  <hongjiu.lu@intel.com>
13901
13902         PR target/40957
13903         * config/i386/i386.c (standard_sse_mode_p): Remove.
13904         (standard_sse_constant_p): Return 2 for integer mode
13905         vector_all_ones_operand when SSE2 is enabled.
13906         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
13907         (ix86_expand_vector_move): Do not check for negative values from
13908         standard_sse_constant_p.
13909
13910 2009-08-06  Richard Guenther  <rguenther@suse.de>
13911
13912         * tree-ssa.c (useless_type_conversion_p_1): Make function and
13913         array type comparisons frontend independent.
13914         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
13915         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
13916         out array reference lower bound and element size operands.
13917         (ao_ref_init_from_vn_reference): Properly compute the offset
13918         for ARRAY_RANGE_REF.
13919         (vn_reference_fold_indirect): Fill out array reference lower
13920         bound and element size operands.
13921         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
13922         a non gimple valued reference operand which can happen for
13923         array reference lower bound or element size.
13924         (create_component_ref_by_pieces_1): Properly generate the
13925         element size operand for array references.
13926
13927 2009-08-06  Richard Guenther  <rguenther@suse.de>
13928
13929         PR tree-optimization/40964
13930         * tree.c (iterative_hash_host_wide_int): Export.
13931         * tree.h (iterative_hash_host_wide_int): Declare.
13932         * tree-ssa-structalias.c (heapvar_map): New struct.
13933         (heapvar_map_eq): New function.
13934         (heapvar_map_hash): Likewise.
13935         (heapvar_lookup): Adjust.
13936         (heapvar_insert): Likewise.
13937         (make_constraint_from_heapvar): Allow multiple heap variables
13938         per decl at different offsets.
13939         (init_alias_heapvars): Adjust.
13940
13941 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
13942
13943         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
13944         * mips_output_sync_loop (mips_output_sync_loop): Only emit
13945         trailing sync if TARGET_SYNC_AFTER_SC.
13946
13947 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
13948
13949         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
13950         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
13951         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
13952         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
13953         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
13954         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
13955         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
13956         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
13957         test_and_set_12): Rewrite calls to mips_output_sync_loop.
13958         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
13959         the prototype declaration match the definition.
13960         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
13961         instructions explicitly.  Add barrier_before and operands
13962         parameters.
13963         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
13964         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
13965         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
13966         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
13967         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
13968         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
13969
13970 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
13971
13972         * tree-ssa-alias.c: Fix intervals to use [) syntax.
13973
13974 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
13975             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
13976
13977         PR target/40906
13978         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
13979         source operand.
13980
13981 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
13982
13983         PR rtl-optimization/40924
13984         * dse.c (canon_address): Before calling cselib_expand_value_rtx
13985         make sure canon_rtx (mem_address) isn't simpler than
13986         canon_rtx (expanded_mem_address).
13987
13988 2009-08-05  Li Feng  <nemokingdom@gmail.com>
13989
13990         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
13991         for each poly_bb_p.
13992         (build_scop_drs): Build alias set for each SCoP.
13993
13994 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
13995
13996         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
13997         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
13998         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
13999         (MIPS_ARCH_FLOAT_SPEC): Likewise.
14000         (BASE_DRIVER_SELF_SPECS): Likewise.
14001
14002 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
14003
14004         * tree-ssa-alias.c: Fix some comment typos.
14005
14006 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
14007
14008         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
14009         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
14010
14011 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
14012
14013         PR c/39902
14014         * simplify-rtx.c (simplify_binary_operation_1): Disable
14015         simplifications for decimal float operations.
14016
14017 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
14018
14019         PR middle-end/40943
14020         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
14021         operand of INDIRECT_REF.
14022
14023 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
14024
14025         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
14026         constants referencing TLS symbols.
14027
14028 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
14029
14030         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
14031         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
14032
14033 2009-08-03  Richard Guenther  <rguenther@suse.de>
14034
14035         * tree.c (make_vector_type): Build a main variant first,
14036         get the canonical one and then build the variant.
14037         * tree-ssa.c (useless_type_conversion_p_1): Handle
14038         fixed-point types.
14039         (useless_type_conversion_p): Conversions to pointers to
14040         incomplete record types are useless.
14041
14042 2009-08-03  Richard Guenther  <rguenther@suse.de>
14043
14044         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
14045         file will be created.
14046         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
14047         * toplev.c (compile_file): Adjust comment.
14048
14049 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
14050
14051         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
14052         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
14053         (TARGET_PROMOTE_FUNCTION_MODE): Define.
14054         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
14055         (sh_promote_function_mode): Fix typo.
14056
14057 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
14058
14059         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
14060
14061 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14062
14063         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
14064         declaration arguments.
14065
14066 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
14067
14068         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
14069         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
14070         (ix86_split_ashl): Ditto.
14071         (ix86_expand_vector_init_one_nonzero): Ditto.
14072         (ix86_expand_vector_set): Ditto.
14073         (ix86_expand_reduc_v4sf): Ditto.
14074
14075 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
14076
14077         * explow.c (promote_function_mode): Remove assert.
14078         * config/sh/sh.c (sh_promote_function_mode): Declare.
14079
14080 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14081
14082         * config/pa/pa.c (pa_promote_function_mode): Declare.
14083         Change to static.  Fix promote_mode call.
14084
14085         * gthr-dce.h (CONST_CAST2): Define if not defined.
14086         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
14087
14088         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
14089
14090 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
14091
14092         * expr.c (store_constructor): Use promote_decl_mode.  Remove
14093         now write-only variable unsignedp.
14094         (expand_expr_real_1): Use promote_decl_mode.
14095         * expr.h (promote_function_mode, promote_decl_mode): New.
14096         (promote_mode): Remove last argument.
14097         * function.c (assign_temp): Drop last argument of promote_mode.
14098         (assign_parm_find_data_types): Use promote_function_mode.
14099         (assign_parm_setup_reg): Likewise.
14100         (expand_function_end): Use promote_function_mode.
14101         * calls.c (initialize_argument_information): Use promote_function_mode.
14102         (precompute_arguments): Use promote_mode instead of checking if
14103         only PROMOTE_FUNCTION_MODE is defined.
14104         (expand_call): When making sibcall decisions, use promote_function_mode.
14105         Below, remove an if for targetm.calls.promote_function_return and
14106         and use promote_function_mode.
14107         (emit_library_call_value_1): Use promote_function_mode, fix bug
14108         where promote_mode was passed FOR_CALL == 0 for a return value in an
14109         assertion.
14110         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
14111         * explow.c (promote_function_mode, promote_decl_mode): New.
14112         (promote_mode): Keep only the FOR_CALL == 0 case.
14113         * combine.c (setup_incoming_promotion): Remove test of
14114         promote_function_args.  Use promote_function_mode.
14115         * stmt.c (expand_value_return): Use promote_decl_mode.
14116         (expand_decl): Use promote_decl_mode.
14117
14118         * expr.c (store_constructor): Use promote_decl_mode.  Remove
14119         now write-only variable unsignedp.
14120         (expand_expr_real_1): Use promote_decl_mode.
14121         * expr.h (promote_function_mode, promote_decl_mode): New.
14122         (promote_mode): Remove last argument.
14123         * function.c (assign_temp): Drop last argument of promote_mode.
14124         (assign_parm_find_data_types): Use promote_function_mode.
14125         (assign_parm_setup_reg): Likewise.
14126         (expand_function_end): Use promote_function_mode.
14127         * calls.c (initialize_argument_information): Use promote_function_mode.
14128         (precompute_arguments): Use promote_mode instead of checking if
14129         only PROMOTE_FUNCTION_MODE is defined.
14130         (expand_call): When making sibcall decisions, use promote_function_mode.
14131         Below, remove an if for targetm.calls.promote_function_return and
14132         and use promote_function_mode.
14133         (emit_library_call_value_1): Use promote_function_mode, fix bug
14134         where promote_mode was passed FOR_CALL == 0 for a return value in an
14135         assertion.
14136         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
14137         * explow.c (promote_function_mode, promote_decl_mode): New.
14138         (promote_mode): Keep only the FOR_CALL == 0 case.
14139         * combine.c (setup_incoming_promotion): Remove test of
14140         promote_function_args.  Use promote_function_mode.
14141         * stmt.c (expand_value_return): Use promote_decl_mode.
14142         (expand_decl): Use promote_decl_mode.
14143
14144         * explow.c (promote_function_mode): Just call the target hook.
14145         * targhooks.c (default_promote_function_mode,
14146         default_promote_function_mode_always_promote): New.
14147         * targhooks.h (default_promote_function_mode,
14148         default_promote_function_mode_always_promote): Declare.
14149         * target.h (promote_function_args, promote_function_return): Remove.
14150         (promote_function_mode): New.
14151         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
14152         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14153         (TARGET_PROMOTE_FUNCTION_MODE): New.
14154         (TARGET_CALLS): Adjust.
14155         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
14156         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
14157
14158         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
14159         * config/s390/s390.c (s390_promote_function_mode): ... here,
14160         with pointer handling.
14161         (TARGET_PROMOTE_FUNCTION_MODE): Define.
14162         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14163
14164         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
14165         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
14166         with pointer handling.
14167         (TARGET_PROMOTE_FUNCTION_MODE): Define.
14168         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14169
14170         * config/sh/sh-protos.h (sh_promote_function_mode): New.
14171         * config/sh/sh.c (sh_promote_function_mode): New.
14172         (TARGET_PROMOTE_FUNCTION_MODE): Define.
14173         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14174
14175         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
14176         * config/cris/cris.c (cris_promote_function_mode): ... here.
14177         (TARGET_PROMOTE_FUNCTION_MODE): Define.
14178         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
14179
14180         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
14181         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
14182         (TARGET_PROMOTE_FUNCTION_MODE): Define.
14183         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
14184
14185         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
14186         * config/arm/arm.c (arm_promote_function_mode): ... here, without
14187         complex type handling.
14188         (TARGET_PROMOTE_FUNCTION_MODE): Define.
14189         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14190
14191         * config/pa/pa.c (pa_promote_function_mode): New.
14192         (TARGET_PROMOTE_FUNCTION_MODE): Define.
14193         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14194
14195         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
14196         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14197         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
14198         * config/xtensa/xtensa.c: Likewise.
14199         * config/stormy16/stormy16.c: Likewise.
14200         * config/iq2000/iq2000.c: Likewise.
14201         * config/rs6000/rs6000.c: Likewise.
14202         * config/picochip/picochip.c: Likewise.
14203         * config/arc/arc.c: Likewise.
14204         * config/mcore/mcore.c: Likewise.
14205         * config/score/score.c: Likewise.
14206         * config/mips/mips.c: Likewise.
14207         * config/bfin/bfin.c: Likewise.
14208         * config/ia64/ia64.c: Likewise (disabled though).
14209
14210         * config/frv/frv.h: Remove pointless remark.
14211
14212         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
14213         TARGET_PROMOTE_FUNCTION_ARGS,
14214         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
14215         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
14216
14217 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
14218
14219         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
14220         -floop-parallelize-all.
14221         * toplev.c (process_options): Rename flag_graphite_force_parallel to
14222         flag_loop_parallelize_all.
14223         * tree-ssa-loop.c (gate_graphite_transforms): Same.
14224         * graphite.c (graphite_transform_loops): Same.
14225         * common.opt: Same.
14226         * graphite-poly.c (apply_poly_transforms): Same.
14227
14228 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
14229
14230         PR tree-optimization/40914
14231         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
14232         if set, then check the delta field of the PMF record.
14233         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
14234         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
14235         call is stored in the delta.
14236
14237 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
14238
14239         * config/mips/mips.md (*clear_upper32_dext): New pattern.
14240
14241 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
14242
14243         * config/i386/bsd.h (ASM_BYTE): New define.
14244         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
14245         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
14246         .byte.  Use fputs or putc instead of fprintf where appropriate.
14247         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
14248         fputs or putc instead of fprintf where appropriate.
14249         * config/i386/i386elf.h: Ditto.
14250         * config/i386/sysv4.h: Ditto.
14251
14252         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
14253         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
14254         (*tls_global_dynamic_64): Ditto.
14255
14256 2009-07-31  Christian Bruel  <christian.bruel@st.com>
14257
14258         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
14259
14260 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14261
14262         * config/arm/arm.c (arm_arm_address_cost): Fix typo.
14263         Remove dead code for MINUS.
14264
14265 2009-07-31  Anthony Green  <green@moxielogic.com>
14266
14267         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
14268         $r12 in prologue.
14269         (moxie_expand_epilogue): Ditto for epilogue.
14270         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
14271         incoming arguments.
14272         (moxie_function_arg): Ditto.
14273         (moxie_pass_by_reference): Ditto.
14274         (moxie_arg_partial_bytes): Ditto.
14275         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
14276         (FUNCTION_ARG_ADVANCE) Ditto.
14277         (REG_PARM_STACK_SPACE) Ditto.
14278         (FUNCTION_ARG_REGNO_P) Dito.
14279
14280         * config.gcc: Add moxie linux config support.
14281         * gcc/config/moxie/uclinux.h: New file.
14282
14283 2009-07-31  DJ Delorie  <dj@redhat.com>
14284
14285         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
14286         (UNSPECV_SP_SWITCH_E): New.
14287         (sp_switch_1): Change to an unspec.
14288         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
14289         replace $r15.
14290         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
14291         reference the new stack's address
14292
14293 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
14294
14295         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
14296         graphite-clast-to-gimple.o, graphite-dependences.o,
14297         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
14298         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
14299         (graphite-blocking.o,
14300         graphite-clast-to-gimple.o, graphite-dependences.o,
14301         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
14302         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
14303         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
14304         * cfgloop.h (struct loop): Add can_be_parallel field.
14305         * common.opt (fgraphite-identity): Moved up.
14306         (fgraphite-force-parallel): New flag.
14307         * graphite.c: Rewrite.
14308         * graphite.h: Rewrite.
14309         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
14310         after Graphite.
14311         * toplev.c (graphite_out_file): New file descriptor.
14312         (graphite_in_file): New.
14313         (process_options): flag_graphite_force_parallel cannot be used without
14314         Graphite.
14315         * tree-ssa-loop.c: Include toplev.h.
14316         (gate_graphite_transforms): Enable flag_graphite for
14317         flag_graphite_force_parallel.
14318
14319 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
14320
14321         * ChangeLog.graphite: New.
14322         * graphite-blocking.c: New.
14323         * graphite-clast-to-gimple.c: New.
14324         * graphite-clast-to-gimple.h: New.
14325         * graphite-dependences.c: New.
14326         * graphite-dependences.h: New.
14327         * graphite-interchange.c: New.
14328         * graphite-poly.c: New.
14329         * graphite-poly.h: New.
14330         * graphite-ppl.c: New.
14331         * graphite-ppl.h: New.
14332         * graphite-scop-detection.c: New.
14333         * graphite-scop-detection.h: New.
14334         * graphite-sese-to-poly.c: New.
14335         * graphite-sese-to-poly.h: New.
14336         * sese.c: New.
14337         * sese.h: New.
14338
14339 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
14340
14341         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
14342         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
14343
14344 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
14345
14346         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
14347         (scev_is_linear_expression): Return false if the evolution is not
14348         affine multivariate.
14349
14350 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
14351
14352         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
14353         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
14354
14355 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
14356
14357         * tree-data-ref.c (debug_data_references): New.
14358         (debug_data_reference): New.
14359         * tree-data-ref.h (debug_data_references): Declared.
14360         (debug_data_reference): Declared.
14361
14362 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
14363
14364         * tree-data-ref.c (stmt_simple_memref_p: Removed.
14365         * tree-data-ref.h (scop_p): Removed.
14366         (struct data_reference): Remove field scop.
14367         (DR_SCOP): Removed.
14368         (stmt_simple_memref_p): Removed.
14369
14370 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
14371
14372         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
14373         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
14374         basic block empty.
14375
14376 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
14377
14378         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
14379
14380 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
14381
14382         * doc/invoke.texi (-fgraphite-identity): Documented.
14383
14384 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
14385
14386         * tree-scalar-evolution.c: Fix comment.
14387         (instantiate_scev_1): Return unknow from scev instantiation if the
14388         result is not above instantiate_below.
14389
14390 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
14391
14392         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
14393         static anymore.  Instantiate the symbols that may have been introduced
14394         by chrec_apply.
14395         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
14396         Declared.
14397
14398 2009-07-30  DJ Delorie  <dj@redhat.com>
14399
14400         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
14401         .vliw directive to VLIW sections.
14402
14403 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14404
14405         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
14406         New variables.
14407         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
14408         (AUTOHEADER): New variable.
14409         ($(srcdir)/cstamp-h.in): Use it.
14410
14411 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
14412             Pat Haugen  <pthaugen@us.ibm.com>
14413             Revital Eres <ERES@il.ibm.com>
14414
14415         * config/rs6000/vector.md (VEC_F): Add VSX support.
14416         (VEC_A): Ditto.
14417         (VEC_N): Ditto.
14418         (mov<mode>): Ditto.
14419         (vector_load_<mode>): Ditto.
14420         (vector_store_<mode>): Ditto.
14421         (vector GPR move split): Ditto.
14422         (vec_reload_and_plus_<mptrsize>): Ditto.
14423         (vec_reload_and_reg_<mptrsize>): Ditto.
14424         (add<mode>3): Ditto.
14425         (sub<mode>3): Ditto.
14426         (mul<mode>3): Ditto.
14427         (neg<mode>2): Ditto.
14428         (abs<mode>2): Ditto.
14429         (smin<mode>3): Ditto.
14430         (smax<mode>3): Ditto.
14431         (vector_eq<mode>): Ditto.
14432         (vector_gt<mode>): Ditto.
14433         (vector_ge<mode>): Ditto.
14434         (vector_gtu<mode>): Ditto.
14435         (vector_select_<mode>_uns): Ditto.
14436         (vector_eq_<mode>_p): Ditto.
14437         (vector_gt_<mode>_p): Ditto.
14438         (vector_ge_<mode>_p): Ditto.
14439         (vector_gtu_<mode>_p): Ditto.
14440         (cr6_test_for_zero): Ditto.
14441         (cr6_test_for_zero_reverse): Ditto.
14442         (cr6_test_for_lt): Ditto.
14443         (cr6_test_for_lt_reverse): Ditto.
14444         (xor<mode>3): Ditto.
14445         (ior<mode>3): Ditto.
14446         (and<mode>3): Ditto.
14447         (one_cmpl<mode>2): Ditto.
14448         (nor<mode>2): Ditto.
14449         (andc<mode>2): Ditto.
14450         (float<VEC_int<mode>2): Ditto.
14451         (unsigned_float<VEC_int><mode>2): Ditto.
14452         (fix_trunc<mode><VEC_int>2): Ditto.
14453         (fixuns_trunc<mode><VEC_int>2): Ditto.
14454         (vec_init<mode>):
14455         (vec_set<mode>): Ditto.
14456         (vec_extract<mode>): Ditto.
14457         (vec_interleave_highv4sf): Ditto.
14458         (vec_interleave_lowv4sf): Ditto.
14459         (vec_realign_load_<mode>): Ditto.
14460         (vec_shl_<mode>): Ditto.
14461         (vec_shr_<mode>): Ditto.
14462         (div<mode>3): New patterns for VSX.
14463         (vec_interleave_highv2df): Ditto.
14464         (vec_interleave_lowv2df): Ditto.
14465         (vec_pack_trunc_v2df): Ditto.
14466         (vec_pack_sfix_trunc_v2df): Ditto.
14467         (vec_pack_ufix_trunc_v2df): Ditto.
14468         (vec_unpacks_hi_v4sf): Ditto.
14469         (vec_unpacks_lo_v4sf): Ditto.
14470         (vec_unpacks_float_hi_v4si): Ditto.
14471         (vec_unpacks_float_lo_v4si): Ditto.
14472         (vec_unpacku_float_hi_v4si): Ditto.
14473         (vec_unpacku_float_lo_v4si): Ditto.
14474         (movmisalign<mode>): Ditto.
14475         (vector_ceil<mode>2): New patterns for vectorizing math library.
14476         (vector_floor<mode>2): Ditto.
14477         (vector_btrunc<mode>2): Ditto.
14478         (vector_copysign<mode>3): Ditto.
14479
14480         * config/rs6000/predicates.md (easy_vector_constant_msb): New
14481         predicate for setting the high bit in each word, used for copysign.
14482
14483         * config/rs6000/ppc-asm.h (f19): Whitespace.
14484         (f32-f63): Define if VSX.
14485         (v0-v31): Define if Altivec.
14486         (vs0-vs63): Define if VSX.
14487
14488         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
14489
14490         * config/rs6000/power7.md: New file, provide tuning parameters for
14491         -mcpu=power7.
14492
14493         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
14494         (rs6000_cpu_cpp_builtins): Ditto.
14495         (altivec_overloaded_builtins): Ditto.
14496         (altivec_resolve_overloaded_builtin): Ditto.
14497
14498         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
14499         debug switch to disable vectorizing simple math builtin
14500         functions.
14501
14502         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
14503         Vectorize simple math builtin functions.
14504         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
14505         hook to vectorize math builtins.
14506         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
14507         (rs6000_builtin_conversion): Add VSX/power7 support.
14508         (rs6000_builtin_vec_perm): Ditto.
14509         (vsplits_constant): Add support for loading up a vector constant
14510         with just the high bit set in each part.
14511         (rs6000_expand_vector_init): Add VSX/power7 support.
14512         (rs6000_expand_vector_set): Ditto.
14513         (rs6000_expand_vector_extract): Ditto.
14514         (rs6000_emit_move): Ditto.
14515         (bdesc_3arg): Ditto.
14516         (bdesc_2arg): Ditto.
14517         (bdesc_1arg): Ditto.
14518         (rs6000_expand_ternop_builtin): Ditto.
14519         (altivec_expand_builtin): Ditto.
14520         (rs6000_expand_unop_builtin): Ditto.
14521         (rs6000_init_builtins): Ditto.
14522         (altivec_init_builtins): Ditto.
14523         (builtin_function_type): Ditto.
14524         (rs6000_common_init_builtins): Ditto.
14525         (rs6000_handle_altivec_attribute); Ditto.
14526         (rs6000_mangle_type): Ditto.
14527         (rs6000_vector_mode_supported_p): Ditto.
14528         (rs6000_mode_dependent_address): Altivec addresses with AND -16
14529         are mode dependent.
14530
14531         * config/rs6000/vsx.md: New file for VSX support.
14532
14533         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
14534         identifing values with just the most significant bit set.
14535         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
14536         vectorized builtins.
14537
14538         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
14539         (UNSPEC_VRFIM): Delete.
14540         (splitter for loading up vector with most significant bit): New
14541         splitter for vectorizing copysign.
14542         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
14543         vectorizing simple math functions.
14544         (altivec_vrfip): Add support for vectorizing simple math functions.
14545         (altivec_vrfim): Ditto.
14546         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
14547
14548         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
14549         (power7.md, vsx.md): Include for power7 support.
14550         (copysigndf3): Use VSX instructions if -mvsx.
14551         (negdf2_fpr): Ditto.
14552         (absdf2_fpr): Ditto.
14553         (nabsdf2_fpr): Ditto.
14554         (adddf3_fpr): Ditto.
14555         (subdf3_fpr): Ditto.
14556         (muldf3_fpr): Ditto.
14557         (divdf3_fpr): Ditto.
14558         (fix_truncdfdi2_fpr): Ditto.
14559         (cmpdf_internal1): Ditto.
14560         (fred, fred_fpr): Convert into expander/insn to add VSX support.
14561         (btruncdf2, btruncdf2_fpr): Ditto.
14562         (ceildf2, ceildf2_fpr): Ditto.
14563         (floordf2, floordf2_fpr): Ditto.
14564         (floatdidf2, floatdidf2_fpr): Ditto.
14565         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
14566         (fmsubdf4_fpr): Ditto.
14567         (fnmadddf4_fpr_1): Ditto.
14568         (fnmadddf4_fpr_2): Ditto.
14569         (fnmsubdf4_fpr_1): Ditto.
14570         (fnmsubdf4_fpr_2): Ditto.
14571         (fixuns_truncdfdi2): Add expander for VSX support.
14572         (fix_truncdfdi2): Ditto.
14573         (fix_truncdfsi2): Ditto.
14574         (ftruncdf2): Ditto.
14575         (btruncsf2): Whitespace.
14576         (movdf_hardfloat32): Add support for VSX registers.
14577         (movdf_softfloat32): Ditto.
14578         (movdf_hardfloat64): Ditto.
14579         (movdf_hardfloat64_mfpgpr): Ditto.
14580         (movdf_softfloat64): Ditto.
14581         (movti splitters): Add check for vector registers supporting
14582         TImode in the future.
14583         (bpermd): Add power7 bpermd instruction.
14584
14585         * config/rs6000/altivec.h (vec_div): Define if VSX.
14586         (vec_mul): Ditto.
14587         (vec_msub): Ditto.
14588         (vec_nmadd): Ditto.
14589         (vec_nearbyint): Ditto.
14590         (vec_rint): Ditto.
14591         (vec_sqrt): Ditto.
14592         (all predicates): Use the generic builtin function, and not the V4SF
14593         specific function so that the predicates will work with VSX's V2DF.
14594         (vec_all_*): Ditto.
14595         (vec_any_*): Ditto.
14596
14597         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
14598         Document new VSX functions and types.
14599
14600         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
14601         switches.
14602
14603         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
14604         "wa", and "j" constraints.  Modify "v" to talk about Altivec
14605         instead of just vector.
14606
14607 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
14608
14609         PR debug/26475
14610         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
14611         location for phi arguments.
14612         (rewrite_update_phi_arguments): Find locations for reaching defs.
14613         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
14614         Add location to add_phi_arg calls.
14615         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
14616         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
14617         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
14618         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
14619         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
14620         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
14621         * tree-phinodes.c (make_phi_node): Initialize location.
14622         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
14623         (add_phi_arg): Add location parameter.
14624         (remove_phi_arg_num): Move location when moving phi argument.
14625         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
14626         location.
14627         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
14628         slpeel_update_phi_nodes_for_guard1,
14629         slpeel_update_phi_nodes_for_guard2,
14630         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
14631         vect_loop_versioning): Set locations.
14632         * tree-parloops.c (create_phi_for_local_result,
14633         transform_to_exit_first_loop, create_parallel_loop): Add locations.
14634         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
14635         * tree-vect-loop.c (get_initial_def_for_induction,
14636         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
14637         locations.
14638         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
14639         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
14640         (gimple_phi_arg_set_location): New.  Set locus.
14641         (gimple_phi_arg_has_location): New.  Check for locus.
14642         (redirect_edge_var_map_location): New.  Return locus from var_map.
14643         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
14644         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
14645         combining PHI arguments.
14646         (cond_store_replacement): Set location.
14647         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
14648         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
14649         scop_add_exit_phis_edge): Add locations.
14650         * tree-cfgcleanup.c (remove_forwarder_block,
14651         remove_forwarder_block_with_phi): Add locations.
14652         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
14653         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
14654         locations.
14655         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
14656         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
14657         flush_pending_stmts): Add source location.
14658         * lambda-code.c (perfect_nestify): Maintain location stack with argument
14659         stack to preserve locations.
14660         * tree-vect-stmts.c (vectorizable_load): Add location.
14661         * tree-inline.c (copy_phis_for_bb): Copy locus.
14662         (setup_one_parameter): Add call locus to inlined parameter stmts.
14663         (initialize_inlined_parameters): Pass in call location as parameter
14664         assignment locus.
14665         (tree_function_versioning): Pass location to setup_one_parameter.
14666         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
14667         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
14668         copy and edge lists.
14669         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
14670         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
14671         locus parameter and override the stmt default if provided.
14672         (new_elim_graph, clear_elim_graph, delete_elim_graph,
14673         elim_graph_add_edge, elim_graph_remove_succ_edge,
14674         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
14675         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
14676         eliminate_phi):  Add locus info in elimination graph for each edge and
14677         value copy.
14678         (insert_backedge_copies): Copy locus if present.
14679         * tree-flow.h (struct _edge_var_map): Add locus field.
14680         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
14681         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
14682         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
14683         locations.
14684         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
14685
14686 2009-07-30  Martin Jambor  <mjambor@suse.cz>
14687
14688         PR tree-optimization/40570
14689         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
14690         use inlining loops.
14691
14692 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
14693
14694         * ssa-loop-manip.c: Include langhooks.h.
14695         (rewrite_phi_with_iv): New.
14696         (rewrite_all_phi_nodes_with_iv): New.
14697         (canonicalize_loop_ivs): Move here from tree-parloops.c.
14698         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
14699         * tree-parloops.c (loop_parallel_p): Move out all conditions
14700         except dependency check.
14701         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
14702         (gen_parallel_loop): Call canonicalize_loop_ivs without
14703         reduction_list argument.
14704         (build_new_reduction): New.
14705         (gather_scalar_reductions): New.
14706         (try_get_loop_niter): New.
14707         (try_create_reduction_list): New.
14708         (parallleize_loops): Change the parallel conditions check.
14709         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
14710         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
14711
14712 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
14713
14714         * opt-functions.awk (opt_args): Allow argument to be enclosed in
14715         curly braces.
14716         * doc/options.texi (Option properties):  Mention new quoting syntax.
14717
14718 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
14719
14720         * config/alpha/alpha.c (alpha_start_function):
14721         Handle VMS_DEBUG_MAIN_POINTER
14722         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
14723         * doc/invoke.texi: Document -mdebug-main switch.
14724
14725 2009-07-29  Richard Henderson  <rth@redhat.com>
14726
14727         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
14728         (cgraph_create_edge_including_clones): Likewise.
14729         * tree-inline.c (copy_bb): Operate on the correct edges
14730         when updating the callgraph.
14731
14732 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
14733
14734         * config/alpha/vms-cc.c: Deleted.
14735         * config/alpha/vms-ld.c: Deleted.
14736         * config/alpha/t-vms64: Moved to config/vms
14737         * config/alpha/vms-crt0-64.c: Moved to config/vms
14738         * config/alpha/vms-crt0.c: Moved to config/vms
14739         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
14740         * config/alpha/vms-psxcrt0.c: Moved to config/vms
14741         * config/alpha/xm-vms.h: Moved to config/vms
14742         * config/alpha/x-vms: Moved to config/vms
14743         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
14744         config/vms/t-vms.
14745         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
14746         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
14747         (version): Set.
14748         * config/vms/t-vms64: Moved here from config/alpha
14749         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
14750         (argc,argv,envp): Enforce 32bit malloc'ing.
14751         * config/vms/vms-psxcrt0-64.c: Likewise.
14752         * config/vms/vms-crt0.c: Moved here from config/alpha.
14753         * config/vms/vms-psxcrt0.c: Likewise.
14754         * config/vms/vms-crtl-64.h: New file.
14755         * config/vms/vms-crtl.h: New file.
14756         * config/vms/vms.opt: New file.
14757         * config/vms/xm-vms64.h: New file.
14758         * config/vms/xm-vms.h: Moved here from config/alpha.
14759         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
14760         Set.
14761         * config/vms/x-vms: Moved here from config/alpha.
14762         (version, VMS_EXTRA_PARTS): Moved to t-vms.
14763         (vms-ld.o, vms-cc.o): Removed.
14764         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
14765
14766 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
14767
14768         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
14769         correct stack (obvious VMS fix).
14770
14771 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
14772
14773         * dwarf2out.c (output_file_names): Output VMS style file name, size,
14774         date, version info if VMS_DEBUGGING_INFO defined.
14775         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
14776         size, date calculating code moved here.
14777
14778 2009-07-29  Paul Brook  <paul@codesourcery.com>
14779
14780         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
14781         do_push/do_pop.
14782
14783 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
14784
14785         PR target/40577
14786         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
14787         to DImode when generating insq_le insn.
14788
14789 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
14790
14791         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
14792         New macro set for VMS_DEBUGGGING_INFO.
14793         (AT_string_form): Use it.
14794
14795 2009-07-28  DJ Delorie  <dj@redhat.com>
14796
14797         * config/mep/mep.c (vtext_section): New.
14798         (vftext_section): New.
14799         (ftext_section): New.
14800         (mep_select_section): Add support for functions.
14801         (mep_unique_section): Likewise.
14802         (mep_asm_init_sections): Likewise.
14803         (mep_encode_section_info): Remove it from here.
14804
14805         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
14806
14807 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
14808
14809         * tree.h (TREE_DEPRECATED): Document it is used for types too.
14810         (TYPE_VECTOR_OPAQUE): Use default_def_flag
14811
14812 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
14813
14814         * dwarf2out.c (output_file_names): Test new macro
14815         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
14816         (add_comp_dir_attribute): Likewise.
14817
14818 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
14819
14820         * config/i386/mingw-w64.h (LINK_SPEC): Add
14821         separating space between commands.
14822
14823 2009-07-28  Jan Hubicka  <jh@suse.cz>
14824
14825         PR tree-optimization/40759
14826         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
14827         for renaming.
14828
14829 2009-07-27  DJ Delorie  <dj@redhat.com>
14830
14831         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
14832         types are dword-aligned.
14833         (mep_expand_va_start): Likewise.
14834
14835 2009-07-27  Olivier Hainque  <hainque@adacore.com>
14836             Douglas B Rupp  <rupp@gnat.com>
14837
14838         * convert.c (convert_to_pointer): Don't assume the target
14839         pointer type is POINTER_SIZE long. Fetch its precision instead.
14840
14841 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
14842
14843         * system.h (fopen): Undefine if macro.
14844
14845 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
14846
14847         * dwarf2out.c (output_cfi_p): Removed.
14848         (output_cfis): New function.
14849         (output_fde): New function, split from output_call_frame_info.
14850         (output_call_frame_info): Use it.
14851         (dwarf2out_switch_text_section): Use output_cfis.
14852
14853 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
14854
14855         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
14856         TARGET_BI_ARCH is specified without enabling SJLJ.
14857         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
14858         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
14859
14860 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
14861
14862         * arm.md (negdi2): Use DImode if forcing a value into a register.
14863
14864 2009-07-26  Ira Rosen  <irar@il.ibm.com>
14865
14866         PR tree-optimization/40801
14867         * tree-vect-stmts.c (vectorizable_call): Get previous copy
14868         of vector operand from the previous copy of vector statement.
14869         Pass the correct definition type value to
14870         vect_get_vec_def_for_stmt_copy().
14871
14872 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14873
14874         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
14875         const char ** conversion.
14876
14877 2009-07-25 David Daney <ddaney@caviumnetworks.com>
14878
14879         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
14880         fancy_abort() if !ENABLE_ASSERT_CHECKING.
14881         (gcc_unreachable): Invoke __builtin_unreachable() if
14882         !ENABLE_ASSERT_CHECKING.
14883
14884 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
14885
14886         PR rtl-optimization/40445
14887         * emit-rtl.c (next_nonnote_insn_bb): New function.
14888         * rtl.h (next_nonnote_insn_bb): Declare new function.
14889         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
14890         with no successors that is the successor of the ENTRY_BLOCK.
14891         Continue from the top after removing an empty fallthrough block.
14892         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
14893         of next_nonnote_insn.
14894
14895 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
14896
14897         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
14898
14899 2009-07-25  Martin Jambor  <mjambor@suse.cz>
14900
14901         * c-common.c (c_common_attribute_table): New element for noclone.
14902         (handle_noclone_attribute): New function. Forward-declare.
14903         * tree-inline.c (tree_versionable_function_p): Check for noclone
14904         attribute.
14905         * doc/extend.texi (Labels as Values): Document need for noclone.
14906         (Function Attributes): Document noclone attribute.
14907
14908 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
14909
14910         PR rtl-optimization/34999
14911         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
14912         and dw_fde_switched_cold_to_hot fields.
14913         (output_cfi_p): New function.
14914         (output_call_frame_info): If fde->dw_fde_switched_sections,
14915         output 2 FDEs instead of one with corrupted header.
14916         (dwarf2out_do_cfi_startproc): New function.
14917         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
14918         and fde->dw_fde_switched_cold_to_hot.
14919         (dwarf2out_switch_text_section): Compute
14920         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
14921         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
14922         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
14923         Otherwise, compute fde->dw_fde_switch_cfi.
14924
14925 2009-07-24  Cary Coutant  <ccoutant@google.com>
14926
14927         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
14928
14929 2009-07-24  Cary Coutant  <ccoutant@google.com>
14930
14931         * cfghooks.c (split_block): Copy discriminator to new block.
14932         * tree-cfg.c (assign_discriminator): Check location of last
14933         instruction in block as well as first.
14934
14935 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
14936
14937         * config/i386/linux.c: Use fputs or putc instead of fprintf
14938         where appropriate.
14939         * config/i386/gas.h: Ditto.
14940         * config/i386/x86-64.h: Ditto.
14941         * config/i386/att.h: Ditto.
14942
14943 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14944
14945         * expmed.c (emit_store_flag): Use a recursive call to optimize the
14946         xor case.
14947
14948 2009-07-24  Martin Jambor  <mjambor@suse.cz>
14949
14950         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
14951         (ipa_push_func_to_list_1): Declare.
14952         (ipa_push_func_to_list): New function.
14953
14954         * ipa-prop.c (ipa_push_func_to_list_1): New function.
14955         (ipa_init_func_list): Call ipa_push_func_to_list_1.
14956         (ipa_push_func_to_list): Removed.
14957         (ipa_pop_func_from_list): Clear node_enqueued flag.
14958
14959 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
14960
14961         * config/s390/s390.c (override_options): Default
14962         max-unrolled-insns to 100 for z10 tuning.
14963
14964 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
14965
14966         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
14967         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
14968         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
14969         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
14970         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
14971         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
14972         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
14973
14974 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
14975
14976         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
14977         use default set in mingw32.h header.
14978         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
14979         64-bit /mingw/include path.
14980         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
14981         path.
14982
14983 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
14984
14985         PR rtl-optimization/40209
14986         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
14987
14988 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
14989
14990         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
14991         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
14992         with the rest of string where appropriate.  Use fputs or putc
14993         instead of fprintf where appropriate.
14994
14995 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
14996             Pat Haugen  <pthaugen@us.ibm.com>
14997             Revital Eres <ERES@il.ibm.com>
14998
14999         * config/rs6000/vector.md: New file.  Move most of the vector
15000         expander support here from altivec.md to allow for the VSX vector
15001         unit in the future.  Add support for secondary_reload patterns.
15002         Rewrite the patterns for vector comparison, and vector comparison
15003         predicate instructions so that the RTL expresses the desired
15004         behavior, instead of using unspec.
15005
15006         * config/rs6000/constraints.md ("f" constraint): Use
15007         rs6000_constraints to hold the precalculated register class.
15008         ("d" constraint): Ditto.
15009         ("wd" constraint): New constraint for VSX.
15010         ("wf" constraint): Ditto.
15011         ("ws" constraint): Ditto.
15012         ("wa" constraint): Ditto.
15013         ("wZ" constraint): Ditto.
15014         ("j" constraint): Ditto.
15015
15016         * config/rs6000/predicates.md (vsx_register_operand): New
15017         predicate for VSX.
15018         (vfloat_operand): New predicate for vector.md.
15019         (vint_operand): Ditto.
15020         (vlogical_operand): Ditto.
15021         (easy_fp_constant): If VSX, 0.0 is an easy constant.
15022         (easy_vector_constant): Add VSX support.
15023         (altivec_indexed_or_indirect_operand): New predicate for
15024         recognizing Altivec style memory references with AND -16.
15025
15026         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
15027         for vector secondary reload support.
15028         (rs6000_vector_reg_class): Delete, replacing it with
15029         rs6000_constraints.
15030         (rs6000_vsx_reg_class): Ditto.
15031         (rs6000_constraints): New array to hold the register classes of
15032         each of the register constraints that can vary at runtime.
15033         (builtin_mode_to_type): New static array for builtin function type
15034         creation.
15035         (builtin_hash_table): New static hash table for builtin function
15036         type creation.
15037         (TARGET_SECONDARY_RELOAD): Define target hook.
15038         (TARGET_IRA_COVER_CLASSES): Ditto.
15039         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
15040         registers are 128 bits if VSX memory reference instructions are used.
15041         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
15042         unit is being used.
15043         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
15044         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
15045         Print several of the scheduling related parameters.
15046         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
15047         rs6000_constraints instead of rs6000_vector_reg_class.  Move
15048         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
15049         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
15050         Altivec.  Add VSX support.  Setup for secondary reload support on
15051         Altivec/VSX registers.
15052         (rs6000_override_options): Make power7 set the scheduling groups
15053         like the power5.  Add support for new debug switches to override
15054         the scheduling defaults.  Temporarily disable -mcpu=power7 from
15055         setting -mvsx.  Add support for debug switches -malways-hint,
15056         -msched-groups, and -malign-branch-targets.
15057         (rs6000_buitlin_conversion): Add support for returning unsigned
15058         vector conversion functions to fix regressions due to stricter
15059         type checking.
15060         (rs6000_builtin_mul_widen_even): Ditto.
15061         (rs6000_builtin_mul_widen_odd): Ditto.
15062         (rs6000_builtin_vec_perm): Ditto.
15063         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
15064         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
15065         to zero a register.
15066         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
15067         generated upstream.
15068         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
15069         VSX types for bit operations.  Changes to accomidate vector.md.
15070         (bdesc_2arg): Ditto.
15071         (bdesc_1arg): Ditto.
15072         (struct builtin_description_predicates): Rewrite predicate
15073         handling so that RTL describes the operation, instead of passing
15074         the instruction to be used as a string argument.
15075         (bdesc_altivec_preds): Ditto.
15076         (altivec_expand_predicate_builtin): Ditto.
15077         (altivec_expand_builtin): Ditto.
15078         (rs6000_expand_ternop_builtin): Use a switch instead of an if
15079         statement for vsldoi support.
15080         (altivec_expand_ld_builtin): Change to use new names from vector.md.
15081         (altivec_expand_st_builtin): Ditto.
15082         (paired_expand_builtin): Whitespace changes.
15083         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
15084         builtin_mode_to_type table for secondary reload.  Call
15085         builtin_function_type to build random builtin functions.
15086         (altivec_init_builtins): Change to use builtin_function_type to
15087         create builtin function types dynamically as we need them.
15088         (builtin_hash_function): New support for hashing the tree types
15089         for builtin function as we need it, rather than trying to build
15090         all of the trees that we need.  Add initial preliminary VSX support.
15091         (builtin_function_type): Ditto.
15092         (builtin_function_eq): Ditto.
15093         (builtin_hash_struct): Ditto.
15094         (rs6000_init_builtins): Ditto.
15095         (rs6000_common_init_builtins): Ditto.
15096         (altivec_init_builtins): Ditto.
15097         (rs6000_common_init_builtins): Ditto.
15098         (enum reload_reg_type): New enum for simplifing reg classes.
15099         (rs6000_reload_register_type): Simplify register classes into GPR,
15100         Vector, and other registers.  Altivec and VSX addresses in reload.
15101         (rs6000_secondary_reload_inner): Ditto.
15102         (rs6000_ira_cover_classes): New target hook, that returns the
15103         appropriate cover classes, based on -mvsx being used or not.
15104         (rs6000_secondary_reload_class): Add VSX support.
15105         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
15106         (get_vsel_insn): Ditto.
15107         (rs6000_emit_vector_compare): Rewrite vector conditional support
15108         so that where we can, we use RTL operators, instead of blindly use
15109         UNSPEC.
15110         (rs6000_emit_vector_select): Ditto.
15111         (rs6000_emit_vector_cond_expr): Ditto.
15112         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
15113         (create_TOC_reference): Add -mdebug=addr support.
15114         (emit_frame_save): VSX loads/stores need register indexed addressing.
15115
15116         * config/rs6000/rs6000.md: Include vector.md.
15117
15118         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
15119
15120         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15121         support for V2DI, V2DF in logical, permute, select operations.
15122
15123         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
15124         switch for vsx/power7.
15125         (-mvsx-scalar-memory): Ditto.
15126         (-mvsx-align-128): Ditto.
15127         (-mallow-movmisalign): Ditto.
15128         (-mallow-df-permute): Ditto.
15129         (-msched-groups): Ditto.
15130         (-malways-hint): Ditto.
15131         (-malign-branch-targets): Ditto.
15132
15133         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
15134         hook instead.
15135         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
15136         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
15137         (rs6000_vector_reg_class): Delete.
15138         (rs6000_vsx_reg_class): Ditto.
15139         (enum rs6000_reg_class_enum): New enum for the constraints that
15140         vary based on target switches.
15141         (rs6000_constraints): New array to hold the register class for all
15142         of the register constraints that vary based on the switches used.
15143         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
15144         (enum rs6000_builtins): Add unsigned varients for the builtin
15145         declarations returned by target hooks for expanding multiplies,
15146         select, and permute operations.  Add VSX builtins.
15147         (enum rs6000_builtin_type_index): Add entries for VSX.
15148         (V2DI_type_node): Ditto.
15149         (V2DF_type_node): Ditto.
15150         (unsigned_V2DI_type_node): Ditto.
15151         (bool_long_type_node): Ditto.
15152         (intDI_type_internal_node): Ditto.
15153         (uintDI_type_internal_node): Ditto.
15154         (double_type_internal_node): Ditto.
15155
15156         * config/rs6000/altivec.md (whole file): Move all expanders to
15157         vector.md from altivec.md.  Rename insn matching functions to be
15158         altivec_foo.
15159         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
15160         (altivec_vcmp*): Ditto.
15161         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
15162         (VM): New iterator for moves that includes the VSX types.
15163         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
15164         (altivec_vperm_<mode>_uns): New, for unsigned types.
15165         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
15166         (altivec_eq<mode>): Ditto.
15167         (altivec_gt<mode>): Ditto.
15168         (altivec_gtu<mode>): Ditto.
15169         (altivec_eqv4sf): Ditto.
15170         (altivec_gev4sf): Ditto.
15171         (altivec_gtv4sf): Ditto.
15172         (altivec_vcmpbfp_p): Ditto.
15173
15174 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
15175
15176         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
15177         unsigned HWI.
15178
15179 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
15180
15181         PR target/40832
15182         * config/i386/i386.c (output_387_ffreep): Rewrite to use
15183         ASM_SHORT instead of .word.
15184         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
15185         instead of .word in asm template.
15186
15187 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
15188
15189         PR target/37488
15190         * ira-lives.c (bb_has_abnormal_call_pred): New function.
15191         (process_bb_node_lives): Use it.
15192
15193         * ira.c (setup_cover_and_important_classes): Don't setup
15194         ira_important_class_nums.  Add cover classes to the end of
15195         important classes.
15196         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
15197         New.
15198         (find_reg_class_closure): Use reorder_important_classes.
15199
15200         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
15201
15202         * config/i386/i386.c (i386_ira_cover_classes): New function.
15203         (TARGET_IRA_COVER_CLASSES): Redefine.
15204
15205         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
15206         importance of order of cover classes in the array.
15207
15208 2009-07-22  Diego Novillo  <dnovillo@google.com>
15209
15210         * tree-pass.h (TDF_EH): Define.
15211         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
15212         contains TDF_EH, print the EH region number holding GS.
15213         * tree-dump.c (dump_options): Add "eh".
15214         * doc/invoke.texi: Document it.
15215
15216 2009-07-22  Doug Kwan  <dougkwan@google.com>
15217
15218         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
15219
15220 2009-07-22  Michael Matz  <matz@suse.de>
15221
15222         PR tree-optimization/35229
15223         PR tree-optimization/39300
15224
15225         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
15226         (inhibit_phi_insertion): New function.
15227         (insert_into_preds_of_block): Call it for REFERENCEs.
15228         (init_pre): Initialize and finalize scalar evolutions.
15229         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
15230
15231 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
15232
15233         * config/i386/predicates.md (zero_extended_scalar_load_operand):
15234         Use CONST_VECTOR_NUNITS to determine number of elements.
15235
15236 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
15237
15238         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
15239         (U, W): Constraints are now deprecated and will be removed if we
15240         run out of letters.
15241         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
15242         the file.
15243         ("prefetch"): Add the stcmh instruction for prefetching.
15244         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
15245         changes.
15246         (s390_short_displacement): Return always true if compiling for
15247         machines not providing the long displacement facility.
15248         (s390_mem_constraint): Support the new constraint letter Z.
15249         (s390_check_qrst_address): New function.
15250
15251 2009-07-21  DJ Delorie  <dj@redhat.com>
15252
15253         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
15254         alone too.
15255
15256 2009-07-21  Jason Merrill  <jason@redhat.com>
15257
15258         * c-common.c (max_tinst_depth): Increase default to 1024.
15259
15260 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
15261
15262         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
15263         (vec_unpacku_float_lo_v4si): Ditto.
15264
15265 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
15266
15267         PR target/40811
15268         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
15269         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
15270         (builtin_description): Add __builtin_ia32_cvtudq2ps.
15271         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
15272
15273 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
15274
15275         PR tree-optimization/40813
15276         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
15277         it.
15278
15279 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
15280
15281         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
15282         with a NOP_EXPR if needed.
15283
15284 2009-07-21  Paul Brook <paul@codesourcery.com>
15285
15286         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
15287         Terminate debug dump with newline.
15288
15289 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15290
15291         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
15292         Cast "1" to unsigned HOST_WIDE_INT.
15293         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
15294         deposit length to the maximum length - lsb.  Extend length if
15295         HOST_BITS_PER_WIDE_INT is 32.
15296
15297 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
15298
15299         * cgraph.h (constant_pool_htab): New function.
15300         (constant_descriptor_tree): Move from varasm.c.
15301         * varasm.c (constant_pool_htab): New function.
15302         (constant_descriptor_tree): Move to cgraph.h.
15303
15304 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
15305
15306         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
15307
15308 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
15309
15310         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
15311         $(VARRAY_H).
15312
15313 2009-07-20  Xinliang David Li  <davidxl@google.com>
15314
15315         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
15316
15317 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
15318
15319         * config/mips/mips.md (move_type): Add arith.
15320         (type): Handle arith.
15321         (zero_extendsidi2): Rename this into ...
15322         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
15323         (zero_extendsidi2): New expander.
15324         (*zero_extendsidi2_dext): New pattern.
15325
15326 2009-07-20  Nick Clifton  <nickc@redhat.com>
15327
15328         * config.gcc (mips64-*-*): Add definition of tm_defines in order
15329         to set MIPS_ABI_DEFAULT.
15330         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
15331
15332 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
15333
15334         * tree-object-size.c (addr_object_size): Handle unions with
15335         array in it as last field of structs in __bos (, 1) as __bos (, 0).
15336
15337         PR tree-optimization/40792
15338         * tree.c (build_function_type_skip_args): Remove bogus assert.
15339
15340 2009-07-20  Jan Hubicka  <jh@suse.cz>
15341             Martin Jambor  <mjambor@suse.cz>
15342
15343         * cgraph.h (combined_args_to_skip): New field.
15344         * cgraph.c (cgraph_create_virtual_clone): Properly handle
15345         combined_args_to_skip and args_to_skip.
15346         * tree-inline.c (update_clone_info): New function.
15347         (tree_function_versioning): Call update_clone_info.
15348         * cgraphunit.c (cgraph_materialize_clone): Dump materialized
15349         functions.
15350         (cgraph_materialize_all_clones): More extensive dumping, working
15351         with combined_args_to_skip rather than args_to_skip.
15352
15353 2009-07-20  Ira Rosen  <irar@il.ibm.com>
15354
15355         * tree-vectorizer.h (vectorizable_condition): Add parameters.
15356         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
15357         (get_initial_def_for_reduction): Likewise.
15358         (vectorizable_reduction): Skip the check of first operand in case
15359         of COND_EXPR. Add check that it is outer loop vectorization if
15360         nested cycle was detected. Call vectorizable_condition() for
15361         COND_EXPR. If reduction epilogue cannot be created do not fail for
15362         nested cycles (if it is not double reduction). Assert that there
15363         is only one type in the loop in case of COND_EXPR. Call
15364         vectorizable_condition() to vectorize COND_EXPR.
15365         * tree-vect-stmts.c (vectorizable_condition): Update comment.
15366         Add parameters. Allow nested cycles if called from
15367         vectorizable_reduction(). Use reduction vector variable if provided.
15368         (vect_analyze_stmt): Call vectorizable_reduction() before
15369         vectorizable_condition().
15370         (vect_transform_stmt): Update call to vectorizable_condition().
15371
15372 2009-07-20  Christian Bruel  <christian.bruel@st.com>
15373
15374         * config/sh/sh.opt (-mfmovd): Resurrect and document.
15375         * doc/invoke.texi (-mfmovd): Likewise.
15376         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
15377
15378 2009-07-20  Jan Hubicka  <jh@suse.cz>
15379
15380         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
15381         when handling SSA name.
15382
15383 2009-07-19  Jan Hubicka  <jh@suse.cz>
15384
15385         PR tree-optimization/40676
15386         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
15387         virtual PHIs in empty BBs.
15388
15389 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
15390
15391         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
15392         re-expanded the compound use gen_lowpart instead to convert to the
15393         desired mode.
15394
15395 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
15396
15397         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
15398         OUTER_CONST arguments.
15399         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
15400         the new wider mode will be masked off.
15401         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
15402
15403 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
15404
15405         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
15406         high-order bits are zero.
15407
15408 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
15409
15410         * combine.c (simplify_shift_const_1): Split code to determine
15411         shift_mode into ...
15412         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
15413         new bits shifted in are identical to the old sign bit.
15414
15415 2009-07-18  Richard Guenther  <rguenther@suse.de>
15416
15417         PR c/40787
15418         * gimplify.c (gimplify_call_expr): Reject code using results from
15419         functions returning void.
15420
15421 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
15422
15423         * doc/md.texi: Document the new PowerPC "es" constraint.
15424         Document that "m" can include automodified addresses on this target,
15425         and explain how %U must be used.  Extend the "Q" and "Z" documentation
15426         to suggest "es" as well as "m".
15427         * config/rs6000/constraints.md (es): New memory constraint.
15428         (Q, Z): Update strings to match new documentation.
15429
15430 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
15431
15432         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
15433         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
15434         * config/rs6000/predicates.md (volatile_mem_operand): Use
15435         offsettable_nonstrict_memref_p.
15436         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
15437         (*floatunssidf2_internal): Likewise.
15438         (*fix_truncdfsi2_internal): Likewise.
15439         (*fix_trunctfsi2_internal): Likewise.
15440
15441 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
15442
15443         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
15444         atmega32u2 devices.
15445         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
15446
15447 2009-07-17  Richard Guenther  <rguenther@suse.de>
15448
15449         PR c/40401
15450         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
15451         (pass_warn_unused_result): Likewise.
15452         (TODO_set_props): Remove.
15453         * omp-low.c (diagnose_omp_structured_block_errors): Change to
15454         run as a pass.
15455         (pass_diagnose_omp_blocks): Define.
15456         * c-decl.c (pop_file_scope): Do not finalize the CU here.
15457         (c_gimple_diagnostics_recursively): Remove.
15458         (finish_function): Do not call it.
15459         (c_write_global_declarations): Continue after errors.
15460         Finalize the CU here.
15461         * c-gimplify.c (c_genericize): Do not gimplify here.
15462         * c-common.c (c_warn_unused_result): Move ...
15463         * tree-cfg.c (do_warn_unused_result): ... here.
15464         (run_warn_unused_result): New function.
15465         (gate_warn_unused_result): New function.
15466         (pass_warn_unused_result): New pass.
15467         * c-common.h (c_warn_unused_result): Remove.
15468         * flags.h (flag_warn_unused_result): Declare.
15469         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
15470         * opts.c (flag_warn_unused_result): Initialize to false.
15471         * toplev.c (compile_file): Add comment.
15472         * omp-low.c (create_omp_child_function): Do not register
15473         the function with the frontend.
15474         (diagnose_omp_structured_block_errors): Prepare to be
15475         called as optimization pass.
15476         (gate_diagnose_omp_blocks): New function.
15477         (pass_diagnose_omp_blocks): New pass.
15478         * cgraph.h (cgraph_optimize): Remove.
15479         (cgraph_analyze_function): Likewise.
15480         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
15481         * cgraphunit.c (cgraph_lower_function): Lower nested functions
15482         before their parents here.
15483         (cgraph_finalize_function): Not here.
15484         (cgraph_analyze_function): Gimplify functions here.
15485         (cgraph_finalize_compilation_unit): Continue after errors.
15486         Optimize the callgraph from here.
15487         (cgraph_optimize): Make static.
15488         * langhooks.c (write_global_declarations): Finalize the CU.
15489         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
15490         (gimplify_function_tree): Assert we gimplify only once.
15491         Set PROP_gimple_any property.
15492         * tree-nested.c (gimplify_all_functions): New function.
15493         (lower_nested_functions): Gimplify all nested functions.
15494         * gimple.h (diagnose_omp_structured_block_errors): Remove.
15495         * passes.c (init_optimization_passes): Add pass_warn_unused_result
15496         and pass_diagnose_omp_blocks after gimplification.  Do not
15497         set TODO_set_props on all_lowering_passes.
15498         (execute_one_pass): Do not handle TODO_set_props.
15499         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
15500         (gimplify.o): Add tree-pass.h dependency.
15501         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
15502         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
15503         (unsave_r): Likewise.
15504         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
15505         temporary variable.
15506
15507 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
15508
15509         * doc/service.texi (Service): Restore previously removed link,
15510         which isn't broken after all.
15511
15512 2009-07-17  Richard Guenther  <rguenther@suse.de>
15513
15514         PR tree-optimization/40321
15515         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
15516         PHI nodes to the maximal set.
15517         (make_values_for_phi): Add PHI arguments to the maximal set.
15518         (execute_pre): Dump PHI_GEN and the maximal set.
15519
15520 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
15521
15522         PR c++/40780
15523         * gimplify.c (gimplify_conversion): Don't change non-conversions into
15524         VIEW_CONVERT_EXPR.
15525
15526 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
15527
15528         * doc/extend.texi (Nested Functions): Replace broken link with
15529         textual reference.
15530         * doc/service.texi (Service): Remove broken link.
15531
15532 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
15533
15534         PR bootstrap/40781
15535         * builtins.c (expand_builtin_memcmp): Use loc instead of
15536         EXPR_LOCATION (exp).
15537         (expand_builtin_strncmp): Likewise.
15538
15539 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
15540             Manuel López-Ibáñez  <manu@gcc.gnu.org>
15541
15542         PR 40435
15543         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
15544         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
15545         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
15546         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
15547         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
15548         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
15549         tree-inline.c, c-common.c, c-common.h, gimple.c,
15550         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
15551         convert.c: Add location argument to fold_{unary,binary,ternary},
15552         fold_build[123], build_call_expr, build_size_arg,
15553         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
15554         fold_build1_initializer, fold_build2_initializer,
15555         fold_build3_initializer, fold_build_call_array,
15556         fold_build_call_array_initializer, fold_single_bit_test,
15557         omit_one_operand, omit_two_operands, invert_truthvalue,
15558         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
15559         combine_comparisons, fold_builtin_*, fold_call_expr,
15560         build_range_check, maybe_fold_offset_to_address, round_up,
15561         round_down.
15562
15563 2009-07-16  Jason Merrill  <jason@redhat.com>
15564
15565         PR libstdc++/37907
15566         * c-common.c (c_common_reswords): Add __is_standard_layout
15567         and __is_trivial.
15568         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
15569         * doc/implement-cxx.texi: New.
15570         * doc/gcc.texi: Include it.
15571
15572 2009-07-16  DJ Delorie  <dj@redhat.com>
15573
15574         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
15575         compares that may be indirectly affected by previous instructions.
15576
15577 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15578
15579         * builtins.c (do_mpc_arg2): New.
15580         (fold_builtin_2): Fold builtin cpow.
15581         * real.h (HAVE_mpc_pow): New.
15582
15583 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
15584
15585         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
15586         comparison to skip unprofitable schedule
15587
15588 2009-07-16  Simon Baldwin  <simonb@google.com>
15589
15590         * gcc.c (option_map): New flag -no-canonical-prefixes.
15591         * (display_help): Print help text for new flag.
15592         * (process_command): Move options translation and language specifics
15593         and handle new flag early.  Use it to set a function pointer to a
15594         prefix builder.  Replace make_relative_prefix calls with calls to
15595         the function pointed to.  Ignore new flag in regular options handling.
15596         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
15597
15598 2009-07-15  DJ Delorie  <dj@redhat.com>
15599
15600         * config/mep/mep.md (sibcall_internal): Change register to avoid
15601         argument registers.
15602         (sibcall_value_internal): Likewise.
15603
15604 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
15605
15606         PR rtl-optimization/40710
15607         * resource.c (mark_target_live_regs): Reset DF problem to LR.
15608
15609 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
15610
15611         * config/mips/mips.md (*extenddi_truncate<mode>,
15612         *extendsi_truncate<mode>): Change type attribute to move_type
15613         with shift_shift.  Split out code handling exts from here ...
15614         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
15615         pattern.
15616         (*extendhi_truncateqi): Change type attribute to move_type with
15617         shift_shift.  Split out code handling exts from here ...
15618         (*extendhi_truncateqi_exts): ... to this new pattern.
15619
15620 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
15621
15622         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
15623         instead of "and" with inverted sign bit mask value.  Use
15624         "nonimmediate_operand" for operand 1 and operand 2 predicate.
15625         Allocate registers only for operand 4 and operand 5.
15626
15627 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
15628
15629         PR middle-end/40747
15630         * fold-const.c (fold_cond_expr_with_comparison): When folding
15631         < and <= to MIN, make sure the MIN uses the same type as the
15632         comparison's operands.
15633
15634 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
15635
15636         * arm.md (ior_xor): New code iterator.
15637         (split for ior/xor with shift and zero-extend): New split pattern.
15638         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
15639
15640 2009-07-15  Richard Guenther  <rguenther@suse.de>
15641
15642         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
15643         offset member.
15644
15645 2009-07-15  Richard Guenther  <rguenther@suse.de>
15646
15647         PR middle-end/40753
15648         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
15649
15650 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
15651
15652         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
15653         handle 2.6.30 kernel.
15654
15655 2009-07-15  DJ Delorie  <dj@redhat.com>
15656
15657         * config/mep/mep.md (sibcall_internal): Change register to allow
15658         for 24-bit addresses.
15659         (sibcall_value_internal): Likewise.
15660
15661 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
15662
15663         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
15664         that are enabled/disabled by the flags introduced by a previous patch.
15665
15666 2009-07-14  DJ Delorie  <dj@redhat.com>
15667
15668         * config/mep/mep.md (sibcall_internal): Include non-toggling
15669         non-jmp case.
15670         (sibcall_value_internal): Likewise.
15671
15672 2009-07-14  Taras Glek  <tglek@mozilla.com>
15673             Rafael Espindola  <espindola@google.com>
15674
15675         * doc/sourcebuild.texi: Document install-plugin target.
15676         * configure.ac: Added install-plugin target to language makefiles.
15677         * configure: Regenerate.
15678         * Makefile.in (install-plugin): Install more headers,
15679         depend on lang.install-plugin.
15680
15681 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15682
15683         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
15684         translation.
15685
15686 2009-07-14  DJ Delorie  <dj@redhat.com>
15687
15688         * config/mep/mep.c (mep_vliw_jmp_match): New function.
15689         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
15690         * config/mep/mep.md (sibcall_internal): Change test from
15691         mep_vliw_mode_match to mep_vliw_jmp_match.
15692         (sibcall_value_internal): Likewise.
15693
15694 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
15695
15696         * config/i386/sse.md (copysign<mode>3): New expander.
15697         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
15698         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
15699         Use ix86_build_const_vector.
15700         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
15701         IX86_BUILTIN_CPYSGNPD.
15702         (builtin_description): Add __builtin_ia32_copysignps and
15703         __builtin_ia32_copysignpd.
15704         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
15705         and BUILT_IN_COPYSIGNF.
15706
15707 2009-07-13  Jason Merrill  <jason@redhat.com>
15708
15709         * builtins.c (can_trust_pointer_alignment): New fn.
15710         (get_pointer_alignment): Factor it out from here.
15711         * tree.h: Declare it.
15712
15713 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
15714
15715         * config/rs6000/predicates.md (offsettable_mem_operand): Test
15716         RTX_AUTOINC class.
15717
15718 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
15719
15720         PR debug/40705
15721         PR c++/403057
15722         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
15723
15724 2009-07-14  Richard Guenther  <rguenther@suse.de>
15725             Andrey Belevantsev <abel@ispras.ru>
15726
15727         PR middle-end/40745
15728         * cfgexpand.c (partition_stack_vars): Do not bother to update
15729         alias information when not optimizing.
15730
15731 2009-07-14  Richard Guenther  <rguenther@suse.de>
15732             Andrey Belevantsev <abel@ispras.ru>
15733
15734         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
15735         (pt_solution_set): Likewise.
15736         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
15737         * tree-ssa-structalias.c (pt_solution_set): New function.
15738         * final.c (rest_of_clean_state): Free SSA data structures.
15739         * print-rtl.c (print_decl_name): Remove.
15740         (print_mem_expr): Implement in terms of print_generic_expr.
15741         * alias.c (ao_ref_from_mem): New function.
15742         (rtx_refs_may_alias_p): Likewise.
15743         (true_dependence): Query alias-export info.
15744         (canon_true_dependence): Likewise.
15745         (write_dependence_p): Likewise.
15746         * tree-dfa.c (get_ref_base_and_extent): For void types leave
15747         size unknown.
15748         * emit-rtl.c (component_ref_for_mem_expr): Remove.
15749         (mem_expr_equal_p): Use operand_equal_p.
15750         (set_mem_attributes_minus_bitpos): Do not use
15751         component_ref_for_mem_expr.
15752         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
15753         (update_alias_info_with_stack_vars): Likewise.
15754         (partition_stack_vars): Call update_alias_info_with_stack_vars.
15755         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
15756         explicitly nor clear stmt operands.
15757         Free the decl-to-pointer map.
15758         * tree-optimize.c (execute_free_datastructures): Do not free
15759         SSA data structures here.
15760         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
15761         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
15762         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
15763         dependencies.
15764         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
15765
15766 2009-07-13  DJ Delorie  <dj@redhat.com>
15767
15768         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
15769         unrolling at the right iteration count.
15770
15771         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
15772         calculations.
15773
15774 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
15775
15776         * haifa-sched.c (rank_for_schedule): Introduced flags to
15777         enable/disable individual scheduling heuristics.
15778         * common.opt: Introduced flags to enable/disable individual
15779         heuristics in the scheduler.
15780         * doc/invoke.texi: Introduced flags to enable/disable individual
15781         heuristics in the scheduler.
15782
15783 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
15784
15785         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
15786         config/i386/mingw-tls.c.
15787         * config/i386/mingw-tls.c: Removed.
15788
15789 2009-07-13  Ira Rosen  <irar@il.ibm.com>
15790
15791         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
15792         checks access only relevant statements.
15793         (vectorizable_reduction): Likewise.
15794
15795 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
15796
15797         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
15798         just for 32-bit case.
15799
15800 2009-07-12  Jan Hubicka  <jh@suse.cz>
15801
15802         PR tree-optimization/40585
15803         * except.c (expand_resx_expr): When there already is resume
15804         instruction, produce linked list.
15805         (build_post_landing_pads): Assert that resume is empty.
15806         (connect_post_landing_pads): Handle resume lists.
15807         (dump_eh_tree): Dump resume list.
15808
15809 2009-07-12  Ira Rosen  <irar@il.ibm.com>
15810
15811         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
15812         with additional argument.
15813         * tree-vectorizer.h (enum vect_def_type): Add
15814         vect_double_reduction_def.
15815         (vect_is_simple_reduction): Add argument.
15816         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
15817         indentation.
15818         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
15819         vect_is_simple_reduction with additional argument.
15820         (vect_analyze_loop_operations): Handle exit phi nodes in case of
15821         double reduction.
15822         (reduction_code_for_scalar_code): Handle additional codes by
15823         returning ERROR_MARK for them. Fix comment and indentation.
15824         (vect_is_simple_reduction): Fix comment, add argument to specify
15825         double reduction. Detect double reduction.
15826         (get_initial_def_for_induction): Fix indentation.
15827         (get_initial_def_for_reduction): Fix comment and indentation.
15828         Handle double reduction. Create initial definitions that do not
15829         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
15830         (vect_create_epilog_for_reduction): Fix comment, add argument to
15831         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
15832         epilogue result extraction. Create double reduction phi node and
15833         replace relevant uses.
15834         (vectorizable_reduction): Call vect_is_simple_reduction with
15835         additional argument. Fix indentation. Update epilogue code treatment
15836         according to the changes in reduction_code_for_scalar_code. Check
15837         for double reduction. Call vect_create_epilog_for_reduction with
15838         additional argument.
15839         * tree-vect-stmts.c (process_use): Handle double reduction, update
15840         documentation.
15841         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
15842         (vect_get_vec_def_for_operand): Likewise.
15843
15844 2009-07-12  Danny Smith  <dansmister@gmail.com>
15845
15846         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
15847         dllexport if !TREE_PUBLIC.
15848         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
15849
15850 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
15851
15852         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
15853         (avr_extra_arch_macro) Remove declatation.
15854         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
15855         (avr_extra_arch_macro) Declare as static.
15856         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
15857
15858 2009-07-11  Jan Hubicka  <jh@suse.cz>
15859
15860         PR middle-end/48388
15861         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
15862
15863 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
15864
15865         PR debug/40713
15866         * dwarf2out.c (dw_fde_struct): Add in_std_section and
15867         cold_in_std_section bits.
15868         (dwarf2out_begin_prologue): Initialize them.
15869         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
15870         if already covered by text_section or cold_text_section range.
15871
15872         PR rtl-optimization/40667
15873         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
15874         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
15875         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
15876         * config/i386/i386.c (ix86_minimum_alignment): New function.
15877         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
15878         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
15879         * emit-rtl.c (gen_reg_rtx): Likewise.
15880         * function.c (assign_parms): Likewise.  If nominal_type needs
15881         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
15882         rather than passed_type's alignment.
15883
15884         PR target/40668
15885         * function.c (assign_parm_setup_stack): Adjust
15886         MEM_OFFSET (data->stack_parm) if promoted_mode is different
15887         from nominal_mode on big endian.
15888
15889 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
15890
15891         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
15892
15893 2009-07-10  DJ Delorie  <dj@redhat.com>
15894
15895         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
15896
15897 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
15898
15899         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
15900         attribute.
15901         (thumb2_cbnz): Likewise.
15902
15903 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
15904
15905         PR target/39079
15906         * config.gcc (supported_defaults): Add synci.
15907         (with_synci): Add validation.
15908         (all_defaults): Add synci.
15909         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
15910         ISA_HAS_SYNCI.
15911         (synci): Same.
15912         * config/mips/mips.opt (msynci): New option.
15913         * config/mips/mips.c (mips_override_options): Warn on use of
15914         -msynci for targets that do now support it.
15915         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
15916         msynci.
15917         * gcc/doc/invoke.texi (-msynci): Document the new option.
15918         * doc/install.texi (--with-synci): Document the new option.
15919
15920 2009-07-10  Richard Guenther  <rguenther@suse.de>
15921
15922         PR tree-optimization/40496
15923         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
15924         the PHI result with a compatible type.
15925
15926 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15927
15928         PR 25509
15929         PR 40614
15930         * c.opt (Wunused-result): New.
15931         * doc/invoke.texi: Document it.
15932         * c-common.c (c_warn_unused_result): Use it.
15933
15934 2009-07-09  DJ Delorie  <dj@redhat.com>
15935
15936         * targhooks.c (default_target_can_inline_p): Rename from
15937         default_target_option_can_inline_p.
15938         * targhooks.h (default_target_can_inline_p): Likewise.
15939         * target-def.h (TARGET_CAN_INLINE_P): Rename from
15940         TARGET_OPTION_CAN_INLINE_P.
15941         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
15942         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
15943         (mep_target_can_inline_p): Rename from
15944         mep_target_option_can_inline_p.
15945
15946         PR target/40626
15947         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
15948         registers used to pass vectors.
15949
15950         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
15951
15952 2009-07-09  Tom Tromey  <tromey@redhat.com>
15953
15954         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
15955         * config/mmix/mmix.c: Include dwarf2.h.
15956         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
15957         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
15958         * config/sh/sh.c: Include dwarf2.h.
15959         * config/i386/i386.c: Include dwarf2.h.
15960         * Makefile.in (DWARF2_H): Remove 'elf'.
15961         * except.c: Include dwarf2.h.
15962         * unwind-dw2.c: Include dwarf2.h.
15963         * dwarf2out.c: Include dwarf2.h.
15964         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
15965         * unwind-dw2-fde.c: Include dwarf2.h.
15966         * dwarf2asm.c: Include dwarf2.h.
15967
15968 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
15969
15970         * haifa-sched.c (insn_finishes_cycle_p): New static function.
15971         (max_issue): Use it.
15972         * sched-int.h (struct sched_info: insn_finishes_block_p): New
15973         scheduler hook.
15974         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
15975         (region_sched_info): Update.
15976         * sched-ebb.c (ebb_sched_info): Update.
15977         * modulo-sched.c (sms_sched_info): Update.
15978         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
15979
15980 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
15981
15982         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
15983
15984 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
15985
15986         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
15987
15988 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
15989
15990         PR middle-end/40692
15991         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
15992         arg1 with arg01 if arg1 is already INTEGER_CST.
15993
15994 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
15995
15996         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
15997         Transform (and (truncate)) into (truncate (and)).
15998
15999 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
16000
16001         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
16002         creating LHS paradoxical subregs.  Fix surrounding returns to
16003         use NULL_RTX rather than 0.
16004
16005 2009-07-08  DJ Delorie  <dj@redhat.com>
16006
16007         * config/mep/mep.c (mep_option_can_inline_p): New.
16008         (TARGET_OPTION_CAN_INLINE_P): Define.
16009
16010 2009-07-08  Mark Wielaard  <mjw@redhat.com>
16011
16012         PR debug/40659
16013         * dwarf2out.c (add_data_member_location_attribute): When we have
16014         only a constant offset don't emit a new location description using
16015         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
16016         dwarf_version > 2.
16017
16018 2009-07-08  Richard Henderson  <rth@redhat.com>
16019
16020         PR target/38900
16021         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
16022         (enum reg_class): Add CLOBBERED_REGS.
16023         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
16024         * config/i386/i386.c (ix86_conditional_register_usage): Moved
16025         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
16026         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
16027         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
16028         force 64-bit sibcalls into R11.
16029         * config/i386/constraints.md (U): New constraint.
16030         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
16031         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
16032         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
16033
16034 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
16035
16036         * basic-block.h (dump_regset, debug_regset): Remove duplicate
16037         prototypes.
16038         * c-objc-common.h (c_initialize_diagnostics): Ditto.
16039         * ebitmap.h (dump_ebitmap): Ditto.
16040         * optabs.h (optab_libfunc): Ditto.
16041         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
16042         * tree-flow.h (vect_can_force_dr_alignment_p,
16043         get_vectype_for_scalar_type): Ditto.
16044         (vectorize_loops): Move prototype to ...
16045         * tree-vectorizer.h: ... here. Also, adjust comment.
16046         (vect_set_verbosity_level): Remove duplicate prototype.
16047         * tree-ssa-loop.c: Include tree-vectorizer.h.
16048         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
16049
16050 2009-07-08  Nick Clifton  <nickc@redhat.com>
16051
16052         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
16053         forward slash.
16054
16055 2009-07-08  DJ Delorie  <dj@redhat.com>
16056
16057         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
16058         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
16059         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
16060         written to.
16061         * config/mep/intrinsics.md: Regenerated.
16062         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
16063         registers when asm() or calls are detected.
16064
16065 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16066
16067         PR c++/31246
16068         * gimplify.c (gimplify_expr): Propagate no_warning flag when
16069         gimplifying.
16070         * gimple (gimple_build_call_from_tree): Likewise.
16071         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
16072         no_warning flag before warning.
16073
16074 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16075
16076         * tree.c (set_expr_locus): Remove.
16077         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
16078         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
16079         EXPR_LOCATION.
16080         * gimplify.c (internal_get_tmp_var): Likewise.
16081         (gimplify_call_expr): Likewise.
16082         (gimplify_one_sizepos): Likewise.
16083
16084 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
16085
16086         PR debug/40666
16087         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
16088         to variables for debugging purposes.
16089
16090 2009-06-23  Mark Loeser  <mark@halcy0n.com>
16091
16092         PR build/40010
16093         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
16094
16095 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16096
16097         * pretty-print.c (pp_base_format): Remove %J.
16098         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
16099         gcc_cxxdiag_char_table): Likewise.
16100         (init_dynamic_diag_info): Likewise.
16101
16102 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16103
16104         * pretty-print.c (pp_base_format): Remove %H.
16105         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
16106         gcc_cxxdiag_char_table): Likewise.
16107         (init_dynamic_diag_info): Likewise.
16108         * config/mep/mep.c (mep_select_section): Likewise.
16109
16110 2009-07-07  Duncan Sands  <baldrick@free.fr>
16111
16112         * final.c (pass_clean_state): Give the pass a name.
16113         * passes.c (pass_rest_of_compilation): Likewise.
16114         * tree-optimize.c (pass_all_optimizations): Likewise.
16115
16116 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
16117
16118         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
16119         an extra 'decl' for error_at.
16120
16121 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
16122
16123         PR middle-end/40669
16124         * tree-tailcall.c (adjust_return_value_with_ops,
16125         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
16126         if it has complex or vector type.
16127
16128 2009-07-07  Olivier Hainque  <hainque@adacore.com>
16129
16130         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
16131         pthread symbols.
16132
16133 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
16134
16135         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
16136
16137 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16138
16139         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
16140         * c-decl.c: Likewise.
16141         * function.c: Likewise.
16142         * varasm.c: Likewise.
16143         * tree-ssa.c: Likewise.
16144         * c-common.c: Likewise.
16145         * tree-cfg.c: Likewise.
16146         * config/spu/spu.c: Likewise.
16147         * config/ia64/ia64.c: Likewise.
16148         * config/v850/v850.c: Likewise.
16149
16150 2009-07-06  DJ Delorie  <dj@redhat.com>
16151
16152         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
16153         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
16154         unspecified accesses to control registers.
16155         * config/mep/intrinsics.md: Regenerate.
16156         * config/mep/intrinsics.h: Regenerate.
16157         * config/mep/mep-intrin.h: Regenerate.
16158
16159 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16160
16161         * c-lex.c: Replace %H by an explicit location. Update all calls.
16162         * c-common.c: Likewise.
16163         * c-decl.c: Likewise.
16164         * c-typeck.c: Likewise.
16165         * fold-const.c: Likewise.
16166         * gimplify.c: Likewise.
16167         * stmt.c: Likewise.
16168         * tree-cfg.c: Likewise.
16169         * tree-ssa-loop-niter.c: Likewise.
16170         * tree-vrp.c: Likewise.
16171         * value-prof.c: Likewise.
16172
16173 2009-07-06  Diego Novillo  <dnovillo@google.com>
16174
16175         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
16176         if it has one.  Handle cases where VAR does not have an
16177         annotation or cfun is NULL.
16178
16179 2009-07-06  Diego Novillo  <dnovillo@google.com>
16180
16181         * tree.c: Include debug.h.
16182         (initialize_tree_contains_struct): New.
16183         (init_ttree): Call it.
16184         (tree_node_structure_for_code): Factor out of ...
16185         (tree_node_structure): ... here.
16186         * treestruct.def (TS_PHI_NODE): Remove.
16187         (TS_GIMPLE_STATEMENT): Remove.
16188
16189 2009-07-06  Diego Novillo  <dnovillo@google.com>
16190
16191         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
16192         (debug_tree_chain): Handle cycles.
16193
16194 2009-07-06  Nick Clifton  <nickc@redhat.com>
16195             DJ Delorie  <dj@redhat.com>
16196
16197         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
16198         __FMOVD_ENABLED__ is defined.
16199         * config/sh/sh.h
16200         (TARGET_FMOVD): Provide a default definition.
16201         (MASK_FMOVD): Likewise.
16202         (TARGET_CPU_CPP_BUILTINS): Define
16203         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
16204         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
16205         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
16206         (split for DF load from memory into register): Also handle
16207         MEMs which consist of REG+DISP addressing.
16208         (split for DF store from register to memory): Likewise.
16209         (movsf_ie): Always use single fp_mode.
16210         * config/sh/sh.c (sh_override_options): Do not automatically
16211         enable TARGET_MOVD for the SH2A when supporting doubles - leave
16212         that to the -mfmovd command line switch.
16213         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
16214         (fldi_ok): Always allow.
16215         * config/sh/sh.opt (mfmovd): Remove this switch.
16216         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
16217
16218 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
16219             Kaz Kojima  <kkojima@gcc.gnu.org>
16220
16221         PR rtl-optimization/30807
16222         * postreload.c (reload_combine): For every new use of REG_SUM,
16223         record the use of BASE.
16224
16225 2009-07-06  Jan Hubicka  <jh@suse.cz>
16226
16227         * params.def: Revert my accidental commit at 2009-06-30.
16228
16229 2009-07-04  Ian Lance Taylor  <iant@google.com>
16230
16231         PR target/40636
16232         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
16233         EXPORTED_CONST.
16234         (mingw_format_attribute_overrides): Likewise.
16235
16236 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
16237
16238         PR debug/40596
16239         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
16240         don't check cfa.reg.  Instead of cfa.indirect use
16241         fde && fde->drap_reg != INVALID_REGNUM test.
16242
16243 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
16244
16245         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
16246
16247 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
16248
16249         PR target/40587
16250         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
16251
16252 2009-07-03  Richard Guenther  <rguenther@suse.de>
16253
16254         PR tree-optimization/40640
16255         * tree-switch-conversion.c (build_arrays): Perform arithmetic
16256         in original type.
16257
16258 2009-07-03  Jan Hubicka  <jh@suse.cz>
16259
16260         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
16261         for size, reduce amount of inlining.
16262
16263 2009-07-03  Richard Guenther  <rguenther@suse.de>
16264
16265         PR middle-end/34163
16266         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
16267         if t +- x is known to not overflow and the conversion widens the
16268         operation.
16269         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
16270
16271 2009-07-03  Jan Hubicka  <jh@suse.cz>
16272
16273         * ipa-pure-const.c (analyze): Update loop optimizer init.
16274         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
16275         try_remove_empty_loop, remove_empty_loops): Remove.
16276         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
16277         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
16278         to mark regular loops as neccesary.
16279         (degenerate_phi_p): New function.
16280         (propagate_necessity, remove_dead_phis): Use it.
16281         (forward_edge_to_pdom): Likewise.
16282         (eliminate_unnecessary_stmts): Take care to remove uses of results of
16283         virtual PHI nodes that became unreachable.
16284         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
16285         * tree-flow.h (remove_empty_loops): Remove.
16286         * passes.c (init_optimization_passes): Remove.
16287
16288 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
16289
16290         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
16291         can_create_pseudo_p.
16292         (*fix_trunc<mode>_i387_1): Ditto.
16293         (*floathi<mode>2_1): Ditto.
16294         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
16295         (*fistdi2_1): Ditto.
16296         (*fist<mode>2_1): Ditto.
16297         (frndintxf2_floor): Ditto.
16298         (*fist<mode>2_floor_1): Ditto.
16299         (frndintxf2_ceil): Ditto.
16300         (*fist<mode>2_ceil_1): Ditto.
16301         (frndintxf2_trunc): Ditto.
16302         (frndintxf2_mask_pm): Ditto.
16303         (fxam<mode>2_i387_with_temp): Ditto.
16304         * config/i386/sse.md (mulv16qi3): Ditto.
16305         (*sse2_mulv4si3): Ditto.
16306         (mulv2di3): Ditto.
16307         (sse4_2_pcmpestr): Ditto.
16308         (sse4_2_pcmpistr): Ditto.
16309
16310 2009-07-03  Jan Hubicka  <jh@suse.cz>
16311
16312         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
16313         (mark_stmt_necessary): Set it.
16314         (mark_operand_necessary): Set it.
16315         (mark_control_dependent_edges_necessary): Set it.
16316         (mark_virtual_phi_result_for_renaming): New function.
16317         (get_live_post_dom): New function.
16318         (forward_edge_to_pdom): New function.
16319         (remove_dead_stmt): Fix handling of control dependences.
16320         (tree_dce_init): Init new bitmap.
16321         (tree_dce_done): Free it.
16322
16323 2009-07-02  Richard Guenther  <rguenther@suse.de>
16324
16325         PR bootstrap/40617
16326         * tree-ssa-structalias.c (new_var_info): Initialize
16327         is_restrict_var.
16328
16329 2009-07-02  Jan Hubicka  <jh@suse.cz>
16330
16331         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
16332         local.
16333
16334 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
16335
16336         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
16337         instead of recomputing it.  Adjust calls.
16338         (emit_store_flag): Adjust recursive calls.
16339
16340 2009-07-02  Richard Guenther  <rguenther@suse.de>
16341
16342         * tree-ssa-live.c (remove_unused_locals): Do not remove
16343         heap variables.
16344         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
16345         of DECL_EXTERNAL for HEAP variables.
16346         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
16347         HEAP variables.  Do not adjust RESTRICT vars.
16348         (find_what_var_points_to): Nobody cares if something
16349         points to READONLY.
16350
16351 2009-07-02  Ben Elliston  <bje@au.ibm.com>
16352
16353         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
16354         pc_low and pc_high declarations to the top of the function.
16355
16356 2009-07-01  DJ Delorie  <dj@redhat.com>
16357
16358         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
16359         registers as fixed.
16360         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
16361         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
16362         unspecified accesses to control registers.
16363         * config/mep/intrinsics.md: Regenerate.
16364         * config/mep/intrinsics.h: Regenerate.
16365         * config/mep/mep-intrin.h: Regenerate.
16366
16367 2009-07-01  Anthony Green  <green@moxielogic.com>
16368
16369         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
16370         instruction when possible.
16371         (moxie_expand_prologue): Ditto.  Also, save an instruction and
16372         some complexity by popping off of $r12 instead of $sp.
16373         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
16374         operands.
16375
16376 2009-07-01  Richard Henderson  <rth@redhat.com>
16377
16378         PR bootstrap/40347
16379         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
16380         contained no insns, reposition note before last insn.
16381
16382 2009-07-01  Richard Henderson  <rth@redhat.com>
16383
16384         PR debug/40431
16385         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
16386         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
16387
16388 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
16389
16390         PR bootstrap/40558
16391         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
16392         darwin9 for printing reg addresses with %y.
16393
16394 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
16395
16396         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
16397         truncation from operands in binary operations.
16398
16399 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
16400
16401         Revert:
16402         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
16403         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
16404         subreg of op0 to the original op0.
16405
16406         * expmed.c (store_bit_field_1): Use a temporary as the destination
16407         instead of a paradoxical subreg when we need to truncate the result.
16408
16409 2009-07-01  DJ Delorie  <dj@redhat.com>
16410
16411         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
16412         names to VLIW variants.
16413         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
16414         * config/mep/intrinsics.md: Regenerate.
16415         * config/mep/intrinsics.h: Regenerate.
16416         * config/mep/mep-intrin.h: Regenerate.
16417
16418 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
16419
16420         PR debug/40462
16421         * jump.c (returnjump_p): Revert last patch.
16422         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
16423
16424 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16425
16426         PR target/40575
16427         * pa.md (casesi32p): Use jump table label to determine the offset
16428         of the jump table.
16429         (casesi64p): Likewise.
16430
16431         * pa.c (forward_branch_p): Return bool type.  Use instruction
16432         addresses when available.  Assert that INSN has a jump label.
16433         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
16434         have a jump label.
16435
16436 2009-07-01  Richard Guenther  <rguenther@suse.de>
16437
16438         PR tree-optimization/19831
16439         * tree-ssa-dce.c (propagate_necessity): Calls to functions
16440         that only act as barriers do not make any previous stores necessary.
16441         * tree-ssa-structalias.c (handle_lhs_call): Delay making
16442         HEAP variables global, do not add a constraint from nonlocal.
16443         (find_func_aliases): Handle escapes through return statements.
16444         (compute_points_to_sets): Make escaped HEAP variables global.
16445
16446 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
16447
16448         PR bootstrap/40597
16449         * expmed.c (emit_store_flag): Perform a conversion if necessary,
16450         after reducing a DImode cstore to SImode.
16451
16452 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
16453
16454         * expr.c (expand_expr_real_1): Reinstate fallthrough to
16455         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
16456
16457 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
16458
16459         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
16460         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
16461         to 0.
16462         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
16463         and umod_optab if TARGET_BSD_DIVMOD.
16464         * config/vax/lib1funcs.asm: New file.
16465         * config/vax/t-linux: New file.
16466         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
16467
16468 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
16469
16470         PR c++/40566
16471         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
16472         to type arguments that have void type.
16473
16474         PR debug/40573
16475         * dwarf2out.c (gen_formal_parameter_die): Call
16476         equate_decl_number_to_die if node is different from origin.
16477
16478 2009-06-30  Anthony Green  <green@moxielogic.com>
16479
16480         Clean up moxie port for --enable-build-with-cxx.
16481         * config/moxie/moxie.c (moxie_function_value): First two
16482         parameters are const_tree, not tree.
16483         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
16484         (REG_CLASS_NAMES): Ditto.
16485         (REGNO_REG_CLASS): Ditto.
16486         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
16487         (moxie_function_value): Fix constyness of arguments.
16488
16489 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
16490
16491         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
16492         finalize_size_functions before further processing.
16493         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
16494         (variable_size): Call self_referential_size on size expressions
16495         that contain a PLACEHOLDER_EXPR.
16496         (size_functions): New static variable.
16497         (copy_self_referential_tree_r): New static function.
16498         (self_referential_size): Likewise.
16499         (finalize_size_functions): New global function.
16500         * tree.c: Include tree-inline.h.
16501         (push_without_duplicates): New static function.
16502         (find_placeholder_in_expr): New global function.
16503         (substitute_in_expr) <tcc_declaration>: Return the replacement object
16504         on equality.
16505         <tcc_expression>: Likewise.
16506         <tcc_vl_exp>: If the replacement object is a constant, try to inline
16507         the call in the expression.
16508         * tree.h (finalize_size_functions): Declare.
16509         (find_placeholder_in_expr): Likewise.
16510         (FIND_PLACEHOLDER_IN_EXPR): New macro.
16511         (substitute_placeholder_in_expr): Update comment.
16512         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
16513         is true.
16514         (copy_tree_body_r): Likewise.
16515         (copy_tree_body): New static function.
16516         (maybe_inline_call_in_expr): New global function.
16517         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
16518         (maybe_inline_call_in_expr): Declare.
16519         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
16520         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
16521         GIMPLE_H.
16522
16523 2009-06-30  Richard Guenther  <rguenther@suse.de>
16524
16525         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
16526         continue walking.
16527         (propagate_necessity): Do not mark reaching defs of stores
16528         as necessary.
16529
16530 2009-06-30  Jan Hubicka  <jh@suse.cz>
16531
16532         * cfgloopanal.c (check_irred): Move into ...
16533         (mark_irreducible_loops): ... here; return true if ireducible
16534         loops was found.
16535         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
16536         (analyze_function): Try to prove loop finiteness.
16537         * cfgloop.h (mark_irreducible_loops): Update prototype.
16538         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
16539
16540 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
16541
16542         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
16543
16544 2009-06-30  Ira Rosen  <irar@il.ibm.com>
16545
16546         PR tree-optimization/40542
16547         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
16548         types.
16549
16550 2009-06-30  Martin Jambor  <mjambor@suse.cz>
16551
16552         PR tree-optimization/40582
16553         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
16554         than useless_type_conversion_p.
16555         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
16556         proper place.
16557
16558 2009-06-30  Martin Jambor  <mjambor@suse.cz>
16559
16560         PR middle-end/40554
16561         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
16562
16563 2009-06-30  Richard Guenther  <rguenther@suse.de>
16564
16565         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
16566         use ao_ref references.
16567         (walk_aliased_vdefs): Likewise.
16568         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
16569         * tree-ssa-dce.c (struct ref_data): Remove.
16570         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
16571         (mark_aliased_reaching_defs_necessary): Adjust.
16572         (mark_all_reaching_defs_necessary_1): Likewise.
16573
16574 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
16575
16576         PR boostrap/40597
16577         * expmed.c (emit_cstore): New name of emit_store_flag_1.
16578         (emit_store_flag_1): Extract from emit_store_flag, adjust
16579         calls to (what now is) emit_cstore.
16580         (emit_store_flag): Call emit_store_flag_1 and also use it
16581         for what used to be recursive calls.
16582
16583 2009-06-30  Wei Guozhi  <carrot@google.com>
16584
16585         PR/40416
16586         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
16587         if the target bb post dominates from bb.
16588         * config/i386/i386.c (memory_address_length): Check existence of base
16589         register before using it.
16590
16591 2009-06-30  Nick Clifton  <nickc@redhat.com>
16592             DJ Delorie  <dj@redhat.com>
16593
16594         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
16595         __FMOVD_ENABLED__ is defined.
16596         * config/sh/sh.h
16597         (TARGET_FMOVD): Provide a default definition.
16598         (MASK_FMOVD): Likewise.
16599         (TARGET_CPU_CPP_BUILTINS): Define
16600         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
16601         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
16602         two fmov instructions depending upon whether TARGET_FMOVD is
16603         enabled.
16604         (split for DF load from memory into register): Also handle
16605         MEMs which consist of REG+DISP addressing.
16606         (split for DF store from register to memory): Likewise.
16607         * config/sh/sh.opt (mfmovd): Remove this switch.
16608         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
16609         * config/sh/sh.c (sh_override_options): Do not automatically
16610         enable TARGET_MOVD for the SH2A when supporting doubles - leave
16611         that to the -mfmovd command line switch.
16612
16613         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
16614         the SH4 and SH4A.
16615         (fldi_ok): Always allow.
16616         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
16617
16618 2009-06-29  DJ Delorie  <dj@redhat.com>
16619
16620         * doc/install.texi (mep-x-elf): Correct chip's full name.
16621
16622 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
16623
16624         * doc/extend.texi: Fix typo.
16625
16626 2009-06-29  Tom Tromey  <tromey@redhat.com>
16627
16628         * dwarf2.h: Remove.
16629         * Makefile.in (DWARF2_H): New variable.
16630         (except.o): Use it.
16631         (dwarf2out.o): Likewise.
16632         (dwarf2asm.o): Likewise.
16633         * config/i386/t-i386: Use DWARF2_H.
16634         * except.c: Include elf/dwarf2.h.
16635         * unwind-dw2.c: Include elf/dwarf2.h.
16636         * dwarf2out.c: Include elf/dwarf2.h.
16637         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
16638         <dtprel>: New field.
16639         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
16640         (size_of_loc_descr): Likewise.
16641         (output_loc_operands_raw): Likewise.
16642         (output_loc_operands): Handle new dtprel field.
16643         (loc_checksum): Update.
16644         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
16645         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
16646         * unwind-dw2-fde.c: Include elf/dwarf2.h.
16647         * dwarf2asm.c: Include elf/dwarf2.h.
16648         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
16649         * config/mmix/mmix.c: Include elf/dwarf2.h.
16650         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
16651         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
16652         * config/sh/sh.c: Include elf/dwarf2.h.
16653         * config/i386/i386.c: Include elf/dwarf2.h.
16654
16655 2009-06-29  DJ Delorie  <dj@redhat.com>
16656
16657         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
16658
16659         * doc/extend.texi: Add MeP attributes and pragmas.
16660         * doc/invoke.text: Add MeP Options.
16661         * doc/contrib.texi: Add MeP contribution.
16662         * doc/md.texi: Add MeP constraints.
16663         * doc/install.texi: Add MeP target.
16664
16665 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
16666
16667         * target.h (struct gcc_target): Add frame_pointer_required field.
16668         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
16669         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
16670         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
16671         hook.
16672         * reload1.c (update_eliminables): (Ditto.).
16673         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
16674         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
16675         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
16676
16677         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
16678
16679         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
16680         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
16681         (arm_frame_pointer_required): New function.
16682
16683         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
16684         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16685         (avr_frame_pointer_required_p): Declare as static.
16686         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
16687
16688         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
16689         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
16690         (bfin_frame_pointer_required): Make as static, change return type
16691         to bool.
16692         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
16693
16694         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
16695         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16696         (cris_frame_pointer_required): New function.
16697
16698         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
16699
16700         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
16701         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16702         (fr30_frame_pointer_required): New function.
16703
16704         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
16705         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
16706         (frv_frame_pointer_required): Make as static, change return type
16707         to bool.
16708         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
16709
16710         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
16711         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16712         (ix86_frame_pointer_required): Make as static, change return type to
16713         bool.
16714         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
16715
16716         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
16717         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16718
16719         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
16720
16721         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
16722
16723         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
16724
16725         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
16726         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16727         (mips_frame_pointer_required): Make as static.
16728         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
16729
16730         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
16731         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16732         (mmix_frame_pointer_required): Mew function.
16733
16734         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
16735         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16736
16737         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
16738
16739         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
16740
16741         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
16742
16743         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
16744         (CAN_ELIMINATE): Redefine.
16745         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16746         (sparc_frame_pointer_required): New function.
16747         (sparc_can_eliminate): New function.
16748         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
16749
16750         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
16751         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
16752
16753         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
16754         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
16755         (xtensa_frame_pointer_required): Make as static, change return type
16756         to bool.
16757         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
16758         Remove.
16759
16760 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
16761
16762         * doc/plugins.texi: Document PLUGIN_START_UNIT.
16763         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
16764         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
16765         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
16766         (register_callback): Handle PLUGIN_START_UNIT.
16767         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
16768
16769 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
16770
16771         * tree.c (process_call_operands): Propagate TREE_READONLY from the
16772         operands.
16773         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
16774         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
16775
16776 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
16777
16778         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
16779         move cost.
16780
16781 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
16782
16783         * doc/extend.texi (Additional Floating Types): __float128 is also
16784         supported on i386 targets.
16785
16786 2009-06-29  Richard Guenther  <rguenther@suse.de>
16787
16788         PR middle-end/14187
16789         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
16790         flag.
16791         (pt_solutions_same_restrict_base): Declare.
16792         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
16793         flag.
16794         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
16795         (make_constraint_from, make_copy_constraint): Move earlier.
16796         (make_constraint_from_heapvar): New function.
16797         (make_constraint_from_restrict): Likewise.
16798         (handle_lhs_call): Use it.
16799         (find_func_aliases): Use it to track conversions to restrict
16800         qualified pointers.
16801         (struct fieldoff): Add only_restrict_pointers flag.
16802         (push_fields_onto_fieldstack): Initialize it.
16803         (create_variable_info_for): Track global restrict qualified pointers.
16804         (intra_create_variable_infos): Use make_constraint_from_heapvar.
16805         Track restrict qualified pointer arguments.
16806         (set_uids_in_ptset): Use varinfo is_global_var flag.
16807         (find_what_var_points_to): Set the vars_contains_restrict flag.
16808         Always create the points-to solution for sets including restrict tags.
16809         (pt_solutions_same_restrict_base): New function.
16810         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
16811         qualified pointers use pt_solutions_same_restrict_base as
16812         additional source for disambiguation.
16813
16814 2009-06-29  Richard Guenther  <rguenther@suse.de>
16815
16816         PR middle-end/38212
16817         * alias.c (find_base_decl): Remove.
16818         (get_deref_alias_set_1): Remove restrict handling.
16819         * c-common.c (c_apply_type_quals_to_decl): Do not set
16820         DECL_POINTER_ALIAS_SET.
16821         * gimplify.c (find_single_pointer_decl_1): Remove.
16822         (find_single_pointer_decl): Likewise.
16823         (internal_get_tmp_var): Remove restrict handling.
16824         (gimple_regimplify_operands): Likewise.
16825         * omp-low.c (expand_omp_atomic_pipeline): Do not set
16826         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
16827         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
16828         * tree.c (restrict_base_for_decl): Remove.
16829         (init_ttree): Do not allocate it.
16830         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
16831         LABEL_DECL_UID for label decls.
16832         (copy_node_stat): Do not copy restrict information.
16833         (decl_restrict_base_lookup): Remove.
16834         (decl_restrict_base_insert): Likewise.
16835         (print_restrict_base_statistics): Likewise.
16836         (dump_tree_statistics): Do not call print_restrict_base_statistics.
16837         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
16838         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
16839         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
16840         (LABEL_DECL_UID): Adjust.
16841         (DECL_BASED_ON_RESTRICT_P): Remove.
16842         (DECL_GET_RESTRICT_BASE): Likewise.
16843         (SET_DECL_RESTRICT_BASE): Likewise.
16844         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
16845
16846         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
16847         instead of DECL_POINTER_ALIAS_SET.
16848         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
16849         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
16850         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
16851
16852 2009-06-29  Richard Guenther  <rguenther@suse.de>
16853
16854         PR tree-optimization/40579
16855         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
16856         the IL to simplify has constants that overflowed.
16857
16858 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
16859
16860         PR tree-optimization/40550
16861         * tree-vect-generic.c (expand_vector_operations_1): Compute in
16862         vector_compute_type only when the size of vector_compute_type is
16863         less than the size of type.
16864
16865 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
16866
16867         * fold-const.c (contains_label_1): Fix comments.
16868         (contains_label_p): Do not walk trees multiple time.
16869
16870 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
16871
16872         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
16873         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
16874         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
16875         ix86_fp_comparison_operator.
16876         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
16877         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
16878         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
16879         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
16880         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
16881         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
16882         (related splits): Change predicate to ix86_fp_comparison_operator.
16883         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
16884         instead of ix86_fp_comparison_codes.
16885         (ix86_trivial_fp_comparison_operator,
16886         ix86_fp_comparison_operator): New.
16887         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
16888         (ix86_expand_compare): Eliminate last two parameters.
16889         (ix86_fp_jump_nontrivial_p): Kill.
16890         * config/i386/i386.c (put_condition_code): Eliminate call to
16891         ix86_fp_comparison_codes and subsequent assertion.
16892         (ix86_fp_comparison_codes): Eliminate.
16893         (ix86_fp_swap_condition): New.
16894         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
16895         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
16896         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
16897         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
16898         and ix86_fp_swap_condition.
16899         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
16900         Use ix86_fp_comparison_strategy.
16901         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
16902         (ix86_fp_jump_nontrivial_p): Eliminate.
16903         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
16904         call to ix86_expand_compare.
16905         (ix86_split_fp_branch, ix86_expand_setcc,
16906         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
16907         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
16908
16909 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
16910
16911         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
16912         related to jump_clobbers.
16913         * config/arm/arm.md (conds): Remove jump_clob case.
16914         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
16915         splits): Change comparison_operator to arm_comparison_operator.
16916         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
16917         Eliminate.
16918
16919 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
16920
16921         * dojump.c (do_compare_rtx_and_jump): Try swapping the
16922         condition for floating point modes.
16923         * expmed.c (emit_store_flag_1): Move here a bigger part
16924         of emit_store_flag.
16925         (emit_store_flag): Try swapping the condition for floating point
16926         modes.
16927         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
16928
16929 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
16930
16931         * expr.c (expand_expr_real_1): Just use do_store_flag.
16932         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
16933         emit_store_flag_force.
16934         * expmed.c (emit_store_flag_force): Copy here trick
16935         previously in expand_expr_real_1.  Try reversing the comparison.
16936         (emit_store_flag_1): Work if target is NULL.
16937         (emit_store_flag): Work if target is NULL, using the result mode
16938         from the comparison.  Use split_comparison, restructure final part
16939         to simplify conditionals.
16940
16941 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
16942
16943         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
16944         * dojump.c (do_jump): Change handling of floating-point
16945         ops to use just do_compare_and_jump.
16946         (split_comparison): New.
16947         (do_compare_rtx_and_jump): Add here logic coming previously
16948         in do_jump, using split_comparison.
16949
16950 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
16951
16952         PR target/40489
16953         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
16954
16955 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16956
16957         * tree-ssa-alias.c: Fix unintentional commit.
16958
16959 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16960
16961         * passes.c (execute_one_pass): Fix unintentional commit.
16962
16963 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16964
16965         * df-problems.c (df_set_seen, df_unset_seen): Delete.
16966         (df_rd_local_compute, df_md_local_compute): Inline them.
16967
16968         (df_md_scratch): New.
16969         (df_md_alloc, df_md_free): Allocate/free it.
16970         (df_md_local_compute): Only include live registers in init.
16971         (df_md_transfer_function): Prune the in-set computed by
16972         the confluence function, and the gen-set too.
16973
16974 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16975
16976         PR rtl-optimization/26854
16977         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
16978         * df-problems.c (df_rd_add_problem): Fix comment.
16979         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
16980         df_md_simulate_artificial_defs_at_top,
16981         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
16982         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
16983         df_md_transfer_function, df_md_init, df_md_confluence_0,
16984         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
16985         problem_MD, df_md_add_problem): New.
16986         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
16987         df_md_get_bb_info): New.
16988         (DF_LAST_PROBLEM_PLUS1): Adjust.
16989
16990         * Makefile.in (fwprop.o): Include domwalk.h.
16991         * fwprop.c: Include domwalk.h.
16992         (reg_defs, reg_defs_stack): New.
16993         (bitmap_only_bit_between): Remove.
16994         (process_defs): New.
16995         (process_uses): Use reg_defs and local_md instead of
16996         bitmap_only_bit_between and local_rd.
16997         (single_def_use_enter_block): New, from build_single_def_use_links.
16998         (single_def_use_leave_block): New.
16999         (build_single_def_use_links): Remove code moved to
17000         single_def_use_enter_block, invoke domwalk.
17001         (use_killed_between): Adjust comment.
17002
17003 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
17004
17005         * bitmap.h (bitmap_ior_and_into): New.
17006         * bitmap.c (bitmap_ior_and_into): New.
17007
17008 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
17009
17010         * domwalk.h (struct dom_walk_data): Remove all callbacks except
17011         before_dom_children_before_stmts and after_dom_children_after_stmts.
17012         Rename the two remaining callbacks to just before_dom_children and
17013         after_dom_children. Remove other GIMPLE statement walking bits.
17014         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
17015         * graphite.c: Do not include domwalk.h.
17016         * tree-into-ssa.c (interesting_blocks): New global.
17017         (struct mark_def_sites_global_data): Remove it and names_to_rename.
17018         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
17019         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
17020         now that they're not domwalk callbacks.
17021         (rewrite_initialize_block): Rename to...
17022         (rewrite_enter_block): ... this, place after called functions.  Test
17023         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
17024         (rewrite_finalize_block): Rename to...
17025         (rewrite_leave_block): ... this, place after called functions.
17026         (rewrite_update_init_block): Rename to...
17027         (rewrite_update_enter_block): ... this, place after called functions.
17028         Test interesting_blocks, call rewrite_update_stmt and
17029         rewrite_update_phi_arguments.
17030         (rewrite_update_fini_block): Rename to...
17031         (rewrite_leave_block): ... this, place after called functions.
17032         (rewrite_blocks): Remove last argument, simplify initialization of
17033         walk_data.
17034         (mark_def_sites_initialize_block): Rename to...
17035         (mark_def_sites_block): ... this, call mark_def_sites.
17036         (mark_def_sites_blocks): Remove argument, simplify initialization of
17037         walk_data.
17038         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
17039         (update_ssa): Likewise.
17040         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
17041         callback.
17042         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
17043         (dom_opt_initialize_block): Rename to...
17044         (dom_opt_enter_block): ... this, place after called functions.  Walk
17045         statements here, inline propagate_to_outgoing_edges.
17046         (dom_opt_finalize_block): Rename to...
17047         (dom_opt_leave_block): ... this, place after called functions.
17048         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
17049         domwalk callback.
17050         (dse_enter_block, dse_record_phi): New.
17051         (dse_record_phis): Delete.
17052         (dse_finalize_block): Rename to...
17053         (dse_leave_block): ... this.
17054         (tree_ssa_dse): Simplify initialization of walk_data.
17055         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
17056         Adjust initialization of walk_data.
17057         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
17058         * tree-ssa-loop-phiopt.c (get_non_trapping):
17059         Adjust initialization of walk_data.
17060         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
17061         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
17062         it's not a domwalk callback.
17063         (uncprop_initialize_block): Rename to...
17064         (dse_enter_block): ... this, call uncprop_into_successor_phis.
17065         (dse_finalize_block): Rename to...
17066         (dse_leave_block): ... this.
17067         (tree_ssa_uncprop): Simplify initialization of walk_data.
17068         * Makefile.in: Adjust dependencies.
17069
17070 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
17071
17072         * arm.md (casesi): Fix test for Thumb1.
17073         (thumb1_casesi_internal_pic): Likewise.
17074         (thumb1_casesi_dispatch): Likewise.
17075
17076 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
17077
17078         * config/arm/arm-cores.def: Added core cortex-m0.
17079         * config/arm/arm-tune.md: Regenerated.
17080         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
17081
17082 2009-06-26  DJ Delorie  <dj@redhat.com>
17083
17084         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
17085
17086         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
17087         the scheduler doesn't tag jump insns.
17088
17089 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
17090
17091         * c-decl.c (merge_decls): Re-indent.
17092
17093 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
17094
17095         PR c/39902
17096         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
17097         Special-case decimal float constants.
17098
17099 2009-06-26  Richard Henderson  <rth@redhat.com>
17100
17101         * function.h (struct function): Add cannot_be_copied_reason,
17102         and cannot_be_copied_set.
17103         * tree-inline.c (has_label_address_in_static_1): Rename from
17104         inline_forbidden_p_2; don't set inline_forbidden_reason here.
17105         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
17106         don't set inline_forbidden_reason.
17107         (copy_forbidden): New function, split out of inline_forbidden_p.
17108         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
17109         (inline_forbidden_p): Use copy_forbidden.
17110         (tree_versionable_function_p): Likewise.
17111         (inlinable_function_p): Merge into tree_inlinable_function_p.
17112         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
17113         * ipa-cp.c (ipcp_versionable_function_p): New function.
17114         (ipcp_cloning_candidate_p): Use it.
17115         (ipcp_node_modifiable_p): Likewise.
17116
17117 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
17118
17119         * builtins.c (expand_builtin_alloca): Handle builtin alloca
17120         that is marked not to be inlined. Remove flag_mudflap use.
17121         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
17122         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
17123
17124 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
17125
17126         PR bootstrap/40338
17127         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
17128         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
17129
17130 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
17131
17132         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
17133         shared libgcc.
17134         (__mingwthr_remove_key_dtor): Likewise.
17135
17136 2009-06-26  Richard Guenther  <rguenther@suse.de>
17137
17138         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
17139
17140 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
17141
17142         PR middle-end/40525
17143         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
17144         try the non-cond_exec path also.
17145
17146 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17147
17148         PR target/40468
17149         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
17150         (output_cbranch): Use new functions.
17151         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
17152         Likewise.
17153
17154 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
17155             Pat Haugen  <pthaugen@us.ibm.com>
17156             Revital Eres <ERES@il.ibm.com>
17157
17158         * config/rs6000/rs6000.c (print_operand): Correct lossage message
17159         for %c error.  Add %x support to print VSX registers as a unified
17160         register set, instead of separate float and altivec registers.
17161         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
17162         %y case, and add support for VSX pre-modify addresses.
17163         (output_toc): Add assert for CONST containing an integer constant
17164         in the PLUS case.
17165         (rs6000_adjust_cost): Add POWER7 support.
17166         (insn_must_be_first_in_group): Ditto.
17167         (insn_must_be_last_in_group): Ditto.
17168         (rs6000_emit_popcount): Ditto.
17169         (rs6000_vector_mode_supported_p): Ditto.
17170
17171         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
17172         Change some of the functions called by macros to being called
17173         through a pointer, so debug functions can be inserted if
17174         -mdebug=addr or -mdebug=cost.
17175         (rs6000_preferred_reload_class_ptr): Ditto.
17176         (rs6000_secondary_reload_class_ptr): Ditto.
17177         (rs6000_secondary_memory_needed_ptr): Ditto.
17178         (rs6000_cannot_change_mode_class_ptr): Ditto.
17179         (rs6000_secondary_reload_inner): Ditto.
17180         (rs6000_legitimize_reload_address): Ditto.
17181         (rs6000_legitimize_reload_address_ptr): Ditto.
17182         (rs6000_mode_dependent_address): Ditto.
17183         (rs6000_mode_dependent_address_ptr): Ditto.
17184
17185         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
17186         function to return true if the mode allows reg + integer
17187         addresses.
17188         (virtual_stack_registers_memory_p): New function to return true if
17189         the address refers to a virtual stack register.
17190         (rs6000_legitimate_offset_address_p): Move code to say whether a
17191         mode supports reg+int addressing to reg_offset_addressing_ok_p and
17192         call it.
17193         (rs6000_legitimate_address_p): Add checks for modes that only can
17194         do reg+reg addressing.  Start adding VSX support.
17195         (rs6000_legitimize_reload_address): Ditto.
17196         (rs6000_legitimize_address): Ditto.
17197         (rs6000_debug_legitimate_address_p): New debug functions for
17198         -mdebug=addr and -mdebug=cost.
17199         (rs6000_debug_rtx_costs): Ditto.
17200         (rs6000_debug_address_costs): Ditto.
17201         (rs6000_debug_adjust_cost): Ditto.
17202         (rs6000_debug_legitimize_address): Ditto.
17203         (rs6000_legitimize_reload_address_ptr): Point to call normal
17204         function or debug function.  Make functions called via pointer
17205         static.
17206         (rs6000_mode_dependent_address_ptr): Ditto.
17207         (rs6000_secondary_reload_class_ptr): Ditto.
17208         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
17209         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
17210         into a friendlier error.
17211         (rs6000_init_builtins): Add initial VSX support.
17212         (rs6000_adjust_cost): Fix some spacing issues.
17213
17214         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
17215         (REG_CLASS_NAMES): Ditto.
17216         (REG_CLASS_CONTENTS): Ditto.
17217         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
17218         pointer, to add -mdebug=addr support.
17219         (CANNOT_CHANGE_MODE_CLASS): Ditto.
17220         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
17221         -mdebug=addr support.
17222         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
17223         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
17224         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
17225
17226         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
17227         16-bit values.
17228         (bswapsi*): Set attribute types for load/store.  Add combiner
17229         patterns to eliminate zero extend on 64-bit.
17230         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
17231         stdbrx if the hardware supports those instructions.
17232
17233 2009-06-25  Ian Lance Taylor  <iant@google.com>
17234
17235         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
17236         (Link Options): Document -static-libstdc++.
17237
17238 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17239
17240         PR target/38731
17241         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
17242         DATA_ALIGNMENT instead.
17243
17244 2009-06-25  Richard Guenther  <rguenther@suse.de>
17245
17246         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
17247         indirect references against the callused/escaped solutions.
17248         (call_may_clobber_ref_p_1): Likewise.
17249
17250 2009-06-25  Martin Jambor  <mjambor@suse.cz>
17251
17252         PR tree-optimization/40493
17253         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
17254         (enum unscalarized_data_handling): New type.
17255         (handle_unscalarized_data_in_subtree): Return what has been done.
17256         (load_assign_lhs_subreplacements): Handle left flushes differently.
17257         (sra_modify_assign): Use unscalarized_data_handling, simplified
17258         condition determining whether to remove the statement.
17259
17260 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
17261
17262         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
17263         excerpt - @ should be doubled for texinfo.
17264
17265 2009-06-24  Ian Lance Taylor  <iant@google.com>
17266
17267         * config/arc/arc.c: Include "df.h".
17268         (arc_attribute_table): Make static.  Move higher in file.
17269         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
17270         (output_shift): Initialize n later to avoid warning.
17271         * config/arm/arm.c (arm_attribute_table): Make static.  Move
17272         higher in file.
17273         * config/avr/avr.c (avr_attribute_table): Make static.  Move
17274         higher in file.
17275         (reg_class_tab): Change array type from int to enum reg_class.
17276         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
17277         LABEL_REF.
17278         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
17279         (lshrhi3_out): Likewise.
17280         (class_likely_spilled_p): Change return type to bool.
17281         (avr_rtx_costs): Use local code variable with enum type.
17282         * config/avr/avr.md (movmemhi): Use add_reg_note.
17283         (andhi3, andsi3): Don't use AS2 with "and".
17284         (iorhi3, iorsi3): Don't use AS2 with "or".
17285         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
17286         * config/crx/crx.c: Include "df.h".
17287         (crx_attribute_table): Make static.
17288         * config/m32r/m32r.c: Include "df.h".
17289         (m32r_attribute_table): Make static.  Move higher in file.
17290         (pop): Use add_reg_note.
17291         (block_move_call): Change 0 to LCT_NORMAL in function call.
17292         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
17293         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
17294         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
17295         declare, not just when TREE_CODE is defined.
17296         * config/m68hc11/m68hc11.c: Include "expr.h".
17297         (m68hc11_attribute_table): Make static.  Move higher in file.
17298         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
17299         function call.
17300         (m68hc11_register_indirect_p): Likewise.
17301         (m68hc11_function_arg_padding): Change return type to enum
17302         direction.
17303         (emit_move_after_reload): Use add_reg_note.
17304         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
17305         (m68hc11_split_logical): Likewise.
17306         (m68hc11_rtx_costs): Add local code_and outer_code variables with
17307         enum type.
17308         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
17309         to VOIDmode in function call.
17310         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
17311         tree is defined.
17312         (m68hc11_split_logical): Update declaration.
17313         (m68hc11_function_arg_padding): Update declaration.
17314         * config/mcore/mcore.c (regno_reg_class): Change form array of int
17315         to array of enum reg_class.
17316         (mcore_attribute_table): Make static.  Move higher in file.
17317         (mcore_rtx_costs): Add cast to enum type.
17318         * config/mcore/mcore.h (regno_reg_class): Update declaration.
17319         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
17320         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
17321         in file.
17322         * config/sh/predicates.md (trapping_target_operand): Rename and to
17323         and_expr.
17324         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
17325         higher in file.
17326         * config/spu/spu.c (spu_attribute_table): Make static.  Move
17327         higher in file.
17328         * config/v850/v850.c (v850_attribute_table): Make static.  Move
17329         higher in file.
17330         (v850_rtx_costs): Use local code with enum type.
17331         (expand_epilogue): Add cast.
17332         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
17333
17334 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
17335
17336         PR target/40515
17337         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
17338         -m2a-single-only and -m2a-nofpu.
17339         * config/sh/sh.opt: Document m2a generates FPU code.
17340
17341 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
17342
17343         * defaults.h (CAN_ELIMINATE): Provide default.
17344         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
17345         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
17346         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
17347         * config/spu/spu.h (CAN_ELIMINATE): Delete.
17348         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
17349         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
17350         * config/cris/cris.h (CAN_ELIMINATE): Delete.
17351         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
17352         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
17353         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
17354
17355 2009-06-24  DJ Delorie  <dj@redhat.com>
17356
17357         * mep-ext-cop.cpu: Fix copyright notice.
17358         * mep-default: Fix copyright notice.
17359         * mep-core: Fix copyright notice.
17360         * mep: Fix copyright notice.
17361         * mep-ivc2: Fix copyright notice.
17362         * mep-c5: Fix copyright notice.
17363
17364 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
17365
17366         * doc/contrib.texi (Contributors):
17367
17368 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
17369
17370         PR middle-end/40501
17371         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
17372         src and dst operands if necessary.
17373
17374 2009-06-23  DJ Delorie  <dj@redhat.com>
17375
17376         Add MeP port.
17377         * config.gcc: Add mep support.
17378         * recog.c: Resurrect validate_replace_rtx_subexp().
17379         * recog.h: Likewise.
17380         * config/mep/: Add new port:
17381         * config/mep/constraints.md: New file.
17382         * config/mep/default.h: New file.
17383         * config/mep/intrinsics.h: New file.
17384         * config/mep/intrinsics.md: New file.
17385         * config/mep/ivc2-template.h: New file.
17386         * config/mep/mep-c5.cpu: New file.
17387         * config/mep/mep-core.cpu: New file.
17388         * config/mep/mep-default.cpu: New file.
17389         * config/mep/mep-ext-cop.cpu: New file.
17390         * config/mep/mep-intrin.h: New file.
17391         * config/mep/mep-ivc2.cpu: New file.
17392         * config/mep/mep-lib1.asm: New file.
17393         * config/mep/mep-lib2.c: New file.
17394         * config/mep/mep-pragma.c: New file.
17395         * config/mep/mep-protos.h: New file.
17396         * config/mep/mep-tramp.c: New file.
17397         * config/mep/mep.c: New file.
17398         * config/mep/mep.cpu: New file.
17399         * config/mep/mep.h: New file.
17400         * config/mep/mep.md: New file.
17401         * config/mep/mep.opt: New file.
17402         * config/mep/predicates.md: New file.
17403         * config/mep/t-mep: New file.
17404
17405 2009-06-23  Ian Lance Taylor  <iant@google.com>
17406
17407         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
17408         from loose_warn into c_loose_warn and from strict_warn into
17409         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
17410         --enable-build-with-cxx.  Set and substitute
17411         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
17412         * Makefile.in (CXXFLAGS): New variable.
17413         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
17414         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
17415         the default is the same as $(STRICT_WARN).
17416         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
17417         (CXX): New variable.
17418         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
17419         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
17420         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
17421         (HOST_LIBS): New variable.
17422         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
17423         (ALL_CXXFLAGS): New variable.
17424         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
17425         * doc/install.texi (Configuration): Document
17426         --enable-build-with-cxx, --with-stage1-ldflags,
17427         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
17428         * configure: Rebuild.
17429
17430 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17431
17432         * config/arm/arm.c (arm_override_options): Fix braces and formatting
17433         from previous commit.
17434
17435 2009-06-23  Ian Lance Taylor  <iant@google.com>
17436
17437         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
17438
17439 2009-06-23  Ian Lance Taylor  <iant@google.com>
17440
17441         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
17442         with ATTRIBUTE_UNUSED.
17443
17444 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
17445             Pat Haugen  <pthaugen@us.ibm.com>
17446             Revital Eres  <eres@il.ibm.com>
17447
17448         * config.in (HAVE_AS_POPCNTD): Add default definition.
17449         (HAVE_AS_LWSYNC): Ditto.
17450
17451         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
17452         release number.
17453         (gcc_cv_as_powerpc_cmpb): Ditto.
17454         (gcc_cv_as_powerpc_dfp): Ditto.
17455         (gcc_cv_as_powerpc_vsx): Ditto.
17456         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
17457         supporting the popcntd/lwsync instructions.
17458         (gcc_cv_as_powerpc_lwsync): Ditto.
17459         * configure: Regenerate.
17460
17461         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
17462         -mcpu=native and -mcpu=power7.
17463         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
17464
17465         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
17466         a variable instead of a mask to reduce the number of mask bits.
17467         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
17468         (-mbit-word): Ditto.
17469         (-mregnames): Ditto.
17470         * config/rs6000/rs6000.opt (-mupdate): Ditto.
17471         (-mfused-madd): Ditto.
17472
17473         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
17474         2.06 instructions.
17475         (-mvsx): New switch for VSX instructions.
17476         (-misel): Move from a variable to a mask to allow it to be set by
17477         -mcpu=.
17478
17479         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
17480         function declaration to an array declaration.
17481         (rs6000_hard_regno_nregs): New external array declaration.
17482
17483         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
17484         files included by rs6000.md.
17485
17486         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
17487         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
17488
17489         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
17490         a target mask.
17491         (rs6000_debug_reg): New -mdebug= variables.
17492         (rs6000_debug_addr): Ditto.
17493         (rs6000_debug_cost): Ditto.
17494         (rs6000_pmode): New variable to hold Pmode.
17495         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
17496         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
17497         calculated at compiler start.
17498         (rs6000_hard_regno_nregs): Change function to an array which holds
17499         HARD_REGNO_NREGS calculated at compiler start.
17500         (rs6000_explicit_options): Delete isel field.
17501         (rs6000_vector_unit): New array to hold which vector unit
17502         supports arithmetic options for a given type.
17503         (rs6000_vector_mem): New array to hold which vector unit supports
17504         memory reference operations for a given type.
17505         (rs6000_vector_align): New array to given the alignment of each
17506         vector type.
17507         (power7_cost): New basic costs for power7.
17508         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
17509         (rs6000_hard_regno_nregs_internal): New function, moved from
17510         HARD_REGNO_NREGS, to calculate the number of registers each hard
17511         register takes for each type.
17512         (rs6000_debug_reg_print): New function for -mdebug=reg support.
17513         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
17514         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
17515         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
17516         unit information here so it is calculated once at compiler startup
17517         time.
17518         (rs6000_override_options): Make -misel a target mask.  Add more
17519         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
17520         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
17521         -mdebug=cost.
17522         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
17523         (rs6000_handle_option): Move -misel from variable to target mask.
17524         (rs6000_builtin_mask_for_load): Add VSX support.
17525         (rs6000_conditional_register_usage): Ditto.
17526         (USE_ALTIVEC_FOR_ARG_P): Ditto.
17527         (function_arg_boundary): Ditto.
17528         (rs6000_expand_builtin): Ditto.
17529         (def_builtin): Make abort message a little friendlier.
17530         (rs6000_emit_int_cmove): Add support for 64-bit isel.
17531
17532         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
17533         assembler support the popcntd instruction instead of a vsx
17534         instruction to enable power7 support.
17535         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
17536         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
17537         option to the assembler if -mcpu=native.
17538         (ASM_CPU_NATIVE_SPEC): Ditto.
17539         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
17540         ISA 2.06 features.
17541         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
17542         the lwsync instruction.
17543         (enum processor_type): Add PROCESSOR_POWER7.
17544         (rs6000_debug_reg): New -mdebug= options.
17545         (rs6000_debug_addr): Ditto.
17546         (rs6000_debug_cost): Ditto.
17547         (rs6000_isel): Delete.
17548         (enum rs6000_vector): New enum to say what vector unit we have.
17549         (VECTOR_UNIT_*): New macros to say which vector unit has
17550         arithmetic operations for a given type.
17551         (VECTOR_MEM_*): New macros to say which vector unit has memory
17552         operations for a given type.
17553         (TARGET_LDBRX): Whether the machine supports the ldbrx
17554         instruction.
17555         (TARGET_ISEL): Delete, -misel moved to be a mask.
17556         (TARGET_ISEL64): New macro for 64-bit isel support.
17557         (UNITS_PER_VSX_WORD): New macro.
17558         (POINTER_SIZE): Move to be an external variable, rather than
17559         calculating whether we are generating 32 ot 64-bit code.
17560         (Pmode): Ditto.
17561         (STACK_BOUNDARY): Add VSX support.
17562         (LOCAL_ALIGNMENT): Ditto.
17563         (SLOW_UNALIGNED_ACCESS): Ditto.
17564         (VSX_REGNO_P): New macro for VSX support.
17565         (VFLOAT_REGNO_P): Ditto.
17566         (VINT_REGNO_P): Ditto.
17567         (VLOGICAL_REGNO_P): Ditto.
17568         (VSX_VECTOR_MODE): Ditto.
17569         (VSX_SCALAR_MODE): Ditto.
17570         (VSX_MODE): Ditto.
17571         (VSX_MOVE_MODE): Ditto.
17572         (VSX_REG_CLASS_P): Ditto.
17573         (HARD_REGNO_NREGS): Instead of calling a function, use an array
17574         lookup.
17575         (UNITS_PER_SIMD_WORD): Add VSX support.
17576         (MODES_TIEABLE_P): Ditto.
17577         (STARTING_FRAME_OFFSET): Ditto.
17578         (STACK_DYNAMIC_OFFSET): Ditto.
17579         (EPILOGUE_USES): Ditto.
17580         (REGNO_REG_CLASS): Move to array lookup.
17581         (CLASS_MAX_NREGS): Ditto.
17582         (rs6000_vector_reg_class): Add declaration.
17583         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
17584         overlap with the floating point and Altivec registers.
17585
17586         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
17587
17588         * config/rs6000/driver-rs6000.c (asm_names): New static array to
17589         give the appropriate asm switches if -mcpu=native.
17590         (host_detect_local_cpu): Add support for "asm".
17591         (host_detect_local_cpu): Follow GNU code guidelines for name.
17592
17593         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
17594         -mbit-word to a variable instead of being a target mask.
17595
17596         * config/rs6000/sync.md (lwsync): If the assembler supports it,
17597         emit the lwsync instruction instead of emitting the instruction as
17598         an integer constant.
17599
17600         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
17601         fixuns_trundfsi2, move expander into rs6000.md.
17602
17603         * config/rs6000/rs6000.md (cpu): Add power7.
17604         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
17605         (logical predicate patterns): Change the single instruction
17606         primitives that set CR0 to be fast_compare instead of compare.
17607         (norsi*): Ditto.
17608         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
17609         (popcntddi2): Ditto.
17610         (popcount<mode>): Ditto.
17611         (floating multiply/add insns): Name the floating point
17612         multiply/add insns.
17613         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
17614         (isel_unsigned_<mode>): Ditto.
17615         (fixuns_trundfsi2): Move expander here from spe.md.
17616         (smindi3): Define if we have -misel on 64-bit systems.
17617         (smaxdi3): Ditto.
17618         (umindi3): Ditto.
17619         (umaxdi3): Ditto.
17620
17621 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
17622
17623         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
17624         extra_objs.
17625         * config/avr/avr.c (avr_current_device): New variable.
17626         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
17627         (avr_arch, mcu_type_s): Move to avr.h.
17628         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
17629         default_data_section_start fields.
17630         (avr_arch): Moved from avr.c.
17631         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
17632         library_name fields.
17633         (avr_current_device, avr_mcu_types, avr_arch_types,
17634         avr_device_to_arch, avr_device_to_data_start,
17635         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
17636         (EXTRA_SPEC_FUNCTIONS): Define.
17637         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
17638         options mapping. Use device_to_arch and device_to_data_start insted.
17639         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
17640         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
17641         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
17642         * config/avr/driver-avr.c: New file.
17643         * config/avr/avr-devices.c: New file.
17644
17645 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
17646
17647         * var-tracking.c (unshare_variable): Force initialized to
17648         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
17649         (set_variable_part): Likewise.
17650         (struct variable_union_info): Remove pos_src field.
17651         (vui_vec, vui_allocated): New variables.
17652         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
17653         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
17654         == 1 use a simpler sorting algorithm.  Compute pos field right
17655         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
17656         Avoid quadratic comparison if !flag_var_tracking_uninit.
17657         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
17658         unshare_variable unconditionally.
17659         (dataflow_set_different_2): Removed.
17660         (dataflow_set_different): Don't traverse second hash table.
17661         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
17662         unconditionally to var_reg_set or var_mem_set.
17663         (emit_notes_in_bb): Likewise.
17664         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
17665         unshare_variable.
17666         (emit_note_insn_var_location): Don't set initialized to
17667         VAR_INIT_STATUS_INITIALIZED early.
17668         (vt_finalize): Free vui_vec if needed, clear vui_vec and
17669         vui_allocated.
17670         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
17671
17672         * tree-object-size.c (addr_object_size): Instead of checking
17673         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
17674         are no FIELD_DECLs following it.
17675
17676 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
17677
17678         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
17679         order to match bswaps with signed source operands.
17680
17681 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17682
17683         * sdbout.c (sdbout_one_type): Fix braces in switch.
17684
17685 2009-06-23  Richard Guenther  <rguenther@suse.de>
17686
17687         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
17688         member.
17689         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
17690         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
17691         var_callused, callused_tree, var_storedanything, storedanything_tree,
17692         var_integer, integer_tree): Remove global variables.
17693         (new_var_info): Do not pass new id, append the new var to the
17694         global variable vector.
17695         (do_ds_constraint): Use is_global_var member of the variable-info.
17696         (new_scalar_tmp_constraint_exp): Adjust.
17697         (create_function_info_for): Likewise.
17698         (create_variable_info_for): Likewise.
17699         (find_what_var_points_to): Remove dead code.
17700         (init_base_vars): Simplify.
17701         (compute_points_to_sets): Adjust.
17702
17703 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
17704
17705         * combine.c (try_combine): Dump information about the insns we're
17706         combining.
17707
17708 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
17709
17710         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
17711         check when calling force_to_mode on TRUNCATE's operand.
17712
17713 2009-06-22  Ian Lance Taylor  <iant@google.com>
17714
17715         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
17716
17717 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
17718
17719         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
17720
17721 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17722
17723         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
17724         override library linkage flags such as -static-libgcc or
17725         -shared-libgcc.
17726
17727 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
17728
17729         * config/m68k/m68k-devices.def: Add line for MCF5221x.
17730
17731 2009-06-22  Ian Lance Taylor  <iant@google.com>
17732
17733         * config/linux.opt: Put mglibc ahead of muclibc.
17734
17735         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
17736         for duplicate decls.
17737
17738 2009-06-22  Matthias Klose  <doko@ubuntu.com>
17739
17740         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
17741
17742 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
17743
17744         PR objc/28050
17745         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
17746         instead of NULL if a parser error occurs.
17747
17748 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17749
17750         * dwarf2out.c (dwarf2_debug_hooks): Initialize
17751         non-DWARF2_DEBUGGING_INFO version.
17752
17753 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
17754
17755         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
17756         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
17757
17758         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
17759         (LIBGCC2_TF_CEXT): Define.
17760         (TF_SIZE): Define.
17761
17762 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17763
17764         PR target/40463
17765         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
17766
17767 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17768
17769         * config/arm/arm.c (arm_override_options): Disable
17770         -mcaller-super-interworking and -mcallee-super-interworking.
17771         * doc/invoke.texi (ARM Options): Document this.
17772
17773 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
17774
17775         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
17776         * config/arm/constraints.md (j): New constraint for movw operands.
17777         (N): Remove thumb2 meaning.
17778         * config/arm/arm.md (*arm_movw): Delete.
17779         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
17780         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
17781         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
17782
17783 2009-06-22  Martin Jambor  <mjambor@suse.cz>
17784
17785         PR tree-optimization/40492
17786         * tree-sra.c (sra_modify_assign): Pass zero offsets to
17787         build_ref_for_offset.
17788
17789 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
17790
17791         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
17792         JUMP_TABLE_DATA_P predicates where applicable.
17793         * auto-inc-dec.c: Ditto.
17794         * builtins.c: Ditto.
17795         * caller-save.c: Ditto.
17796         * calls.c: Ditto.
17797         * cfgcleanup.c: Ditto.
17798         * cfglayout.c: Ditto.
17799         * cfgrtl.c: Ditto.
17800         * combine.c: Ditto.
17801         * combine-stack-adj.c: Ditto.
17802         * cse.c: Ditto.
17803         * cselib.c: Ditto.
17804         * dbxout.c: Ditto.
17805         * df-scan.c: Ditto.
17806         * dse.c: Ditto.
17807         * dwarf2asm.c: Ditto.
17808         * dwarf2out.c: Ditto.
17809         * emit-rtl.c: Ditto.
17810         * except.c: Ditto.
17811         * explow.c: Ditto.
17812         * expmed.c: Ditto.
17813         * expr.c: Ditto.
17814         * final.c: Ditto.
17815         * function.c: Ditto.
17816         * fwprop.c: Ditto.
17817         * gcse.c: Ditto.
17818         * genpreds.c: Ditto.
17819         * genrecog.c: Ditto.
17820         * ifcvt.c: Ditto.
17821         * ira-costs.c: Ditto.
17822         * ira-lives.c: Ditto.
17823         * jump.c: Ditto.
17824         * loop-iv.c: Ditto.
17825         * lower-subreg.c: Ditto.
17826         * modulo-sched.c: Ditto.
17827         * optabs.c: Ditto.
17828         * postreload.c: Ditto.
17829         * print-rtl.c: Ditto.
17830         * recog.c: Ditto.
17831         * reginfo.c: Ditto.
17832         * regmove.c: Ditto.
17833         * reload1.c: Ditto.
17834         * reload.c: Ditto.
17835         * reorg.c: Ditto.
17836         * rtlanal.c: Ditto.
17837         * rtl.c: Ditto.
17838         * sched-vis.c: Ditto.
17839         * sdbout.c: Ditto.
17840         * sel-sched-ir.c: Ditto.
17841         * simplify-rtx.c: Ditto.
17842         * targhooks.c: Ditto.
17843         * var-tracking.c: Ditto.
17844         * vmsdbgout.c: Ditto.
17845
17846 2009-06-22  Matthias Klose  <doko@ubuntu.com>
17847
17848         * Makefile.in (install-plugin): Always use DESTDIR.
17849
17850 2009-06-22  Olivier Hainque  <hainque@adacore.com>
17851
17852         * config/pa/pa.c (output_call): Don't optimize post call jumps
17853         into return address adjustments if the call may throw.
17854
17855 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
17856
17857         * arm.c (thumb1_output_casesi): New function.
17858         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
17859         optimizing for size or PIC.
17860         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
17861         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
17862         (casesi): Handle Thumb-1 when optimizing for size or PIC.
17863         (thumb1_casesi_internal_pic): New expand rule.
17864         (thumb1_casesi_dispatch): New pattern.
17865         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
17866         thumb-1 mode.
17867         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
17868         in the text seciton when PIC or optimizing for size.
17869         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
17870         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
17871         preservation properties of code.
17872         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
17873         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
17874         (__gnu_thumb1_case_si): New function.
17875         * t-arm (LIB1ASMSRC): Define here.
17876         (LIB1ASMFUNCS): Add some common functions.
17877         * t-arm-elf (LIB1ASMSRC): Delete.
17878         (LIB1ASMFUNCS): Append to existing set.
17879         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
17880         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
17881         * t-symbian (LIB1ASMFUNCS): Likewise.
17882         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
17883         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
17884
17885 2009-06-21  Richard Guenther  <rguenther@suse.de>
17886
17887         PR tree-optimization/38729
17888         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
17889         to loops with a single exit if -fno-expensive-optimizations.
17890
17891 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
17892
17893         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
17894         (dataflow_set): Change vars type from htab_t to shared_hash.
17895         (shared_hash_pool, empty_shared_hash): New variables.
17896         (vars_clear): Removed.
17897         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
17898         shared_hash_find_slot_unshare, shared_hash_find_slot,
17899         shared_hash_find_slot_noinsert, shared_hash_find): New
17900         static inlines.
17901         (shared_hash_unshare, shared_hash_destroy): New functions.
17902         (unshare_variable): Unshare set->vars if shared, use
17903         shared_hash_htab.
17904         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
17905         (get_init_value, find_src_set_src, dump_dataflow_set,
17906         clobber_variable_part, emit_notes_for_differences): Use
17907         shared_hash_htab.
17908         (dataflow_set_init): Remove second argument, set vars to
17909         empty_shared_hash instead of creating a new htab.
17910         (dataflow_set_clear): Call shared_hash_destroy and set vars
17911         to empty_shared_hash instead of calling vars_clear.
17912         (dataflow_set_copy): Don't call vars_copy, instead just share
17913         the src htab with dst.
17914         (variable_union): Use shared_hash_*, use initially NO_INSERT
17915         lookup if set->vars is shared.  Don't keep slot cleared before
17916         calling unshare_variable.  Unshare set->vars if needed.
17917         Even ->refcount == 1 vars must be unshared if set->vars is shared
17918         and var needs to be modified.
17919         (variable_canonicalize): New function.
17920         (dataflow_set_union): If dst->vars is empty, just share src->vars
17921         with dst->vars and traverse with variable_canonicalize to canonicalize
17922         and unshare what is needed.
17923         (dataflow_set_different): If old_set and new_set use the same shared
17924         htab, they aren't different.  If number of htab elements is different,
17925         htabs are different.  Use shared_hash_*.
17926         (dataflow_set_destroy): Call shared_hash_destroy instead of
17927         htab_delete.
17928         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
17929         second argument to dataflow_set_init.
17930         (vt_initialize): Likewise.  Initialize shared_hash_pool and
17931         empty_shared_hash, move bb in/out initialization afterwards.
17932         Use variable_htab_free instead of NULL as changed_variables del hook.
17933         (variable_was_changed): Change type of second argument to pointer to
17934         dataflow_set.  When inserting var into changed_variables, bump
17935         refcount.  Unshare set->vars if set is shared htab and slot needs to
17936         be cleared.
17937         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
17938         lookup if set->vars is shared.  Unshare set->vars if needed.
17939         Even ->refcount == 1 vars must be unshared if set->vars is shared
17940         and var needs to be modified.  Adjust variable_was_changed caller.
17941         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
17942         vars must be unshared if set->vars is shared and var needs to be
17943         modified.  Adjust variable_was_changed caller.
17944         (emit_note_insn_var_location): Don't pool_free var.
17945         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
17946         instead of 1.
17947         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
17948         free_alloc_pool on shared_hash_pool.
17949
17950 2009-06-20  Anthony Green  <green@moxielogic.com>
17951
17952         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
17953         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
17954
17955 2009-06-20  Richard Guenther  <rguenther@suse.de>
17956
17957         * tree-ssa-structalias.c (find_func_aliases): For memset use
17958         a constraint from NULL if we memset to zero.
17959         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
17960         we explicitly handle that do not read from memory.
17961         (call_may_clobber_ref_p_1): Properly handle builtins that may
17962         set errno.
17963
17964 2009-06-20  Richard Guenther  <rguenther@suse.de>
17965
17966         PR tree-optimization/40495
17967         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
17968         (new_scalar_tmp_constraint_exp): New function.
17969         (process_constraint): Do not create temporary decls.
17970         (process_all_all_constraints): Likewise.
17971         (handle_const_call): Likewise.
17972         (create_function_info_for): Do not set decl.
17973
17974 2009-06-19  Ian Lance Taylor  <iant@google.com>
17975
17976         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
17977         (rs6000_attribute_table): Make static; move before use.
17978
17979 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
17980
17981         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
17982         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
17983         Propagate the TREE_READONLY flag without overwriting it.
17984         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
17985         Propagate the TREE_READONLY flag onto the result.
17986         (process_call_operands): Move around.  Use correct constant value.
17987
17988 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17989
17990         PR target/40482
17991         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
17992         * config/arm/arm.md: Likewise.
17993
17994 2009-06-19  Ian Lance Taylor  <iant@google.com>
17995
17996         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
17997         to GIMPLE_ERROR_MARK.
17998
17999         * c-typeck.c (build_conditional_expr): Add op1_original_type and
18000         op2_original_type parameters.  Warn about using different enum types.
18001         * c-parser.c (c_parser_conditional_expression): Pass original
18002         types to build_conditional_expr.
18003         * c-tree.h (build_conditional_expr): Update declaration.
18004
18005 2009-06-19  Ian Lance Taylor  <iant@google.com>
18006
18007         * config/i386/i386.c (ix86_function_specific_save): Test that
18008         fields match values, rather than testing the values are in a
18009         certain range.
18010
18011 2009-06-19  Richard Guenther  <rguenther@suse.de>
18012
18013         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
18014         ADDR_EXPR pointers.
18015         (ptr_derefs_may_alias_p): Likewise.
18016         (ptr_deref_may_alias_ref_p_1): New function.
18017         (ptr_deref_may_alias_ref_p): Likewise.
18018         (ref_maybe_used_by_call_p_1): Handle builtins that are not
18019         covered by looking at the ESCAPED solution.
18020         (call_may_clobber_ref_p_1): Likewise.
18021         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
18022         Handle NULL_TREE offset.  Do not produce redundant constraints.
18023         (process_all_all_constraints): New helper function.
18024         (do_structure_copy): Use it.
18025         (handle_lhs_call): Likewise.
18026         (find_func_aliases): Handle some builtins with pointer arguments
18027         and/or return values explicitly.
18028
18029 2009-06-19  Ian Lance Taylor  <iant@google.com>
18030
18031         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
18032
18033 2009-06-19  Ian Lance Taylor  <iant@google.com>
18034
18035         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
18036
18037 2009-06-19  Ian Lance Taylor  <iant@google.com>
18038
18039         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
18040         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
18041         version.
18042
18043         * c-decl.c (finish_decl): If -Wc++-compat, warn about
18044         uninitialized const.
18045
18046 2009-06-19  Ian Lance Taylor  <iant@google.com>
18047
18048         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
18049         all uses.
18050
18051         * c-decl.c (in_struct, struct_types): Remove.
18052         (struct c_binding): Add in_struct field.
18053         (c_binding_ptr): Define type, along with VEC.
18054         (struct c_struct_parse_info): Define.
18055         (struct_parse_info): New static variable.
18056         (bind): Initialize in_struct field.
18057         (start_struct): Remove enclosing_in_struct and
18058         enclosing_struct_types parameters.  Add
18059         enclosing_struct_parse_info parameter.  Change all callers.  Set
18060         struct_parse_info rather than in_struct and struct_types.
18061         (grokfield): If -Wc++-compat and there is a symbol binding for the
18062         field name, set the in_struct flag and push it on the
18063         struct_parse_info->fields vector.
18064         (warn_cxx_compat_finish_struct): New static function.
18065         (finish_struct): Remove enclosing_in_struct and
18066         enclosing_struct_types parameters.  Add
18067         enclosing_struct_parse_info parameter.  Change all callers.  Don't
18068         set C_TYPE_DEFINED_IN_STRUCT here.  Call
18069         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
18070         parameter.  Only push on struct_types if warn_cxx_compat.
18071         (finish_enum): Only push on struct_types if warn_cxx_compat.
18072         (declspecs_add_type): Add loc parameter.  Change all callers.
18073         Change all error calls to error_at.  Pass loc, not input_location,
18074         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
18075         defined in a struct.  If -Wc++-compat and parsing a struct, record
18076         that a typedef name was used.
18077         * c-parser.c (c_parser_declspecs): Get location to pass to
18078         declspecs_add_type.
18079         (c_parser_struct_or_union_specifier): Update calls to start_struct
18080         and finish_struct.
18081         * c-tree.h (struct c_struct_parse_info): Declare.
18082         (finish_struct, start_struct): Update declarations.
18083         (declspecs_add_type): Update declaration.
18084
18085 2009-06-19  Ian Lance Taylor  <iant@google.com>
18086
18087         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
18088         variable with an anonymous type.
18089
18090 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
18091
18092         * see.c: Remove for real.
18093
18094 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
18095
18096         * optabs.h (enum optab_index): Add new OTI_significand.
18097         (significand_optab): Define corresponding macro.
18098         * optabs.c (init_optabs): Initialize significand_optab.
18099         * genopinit.c (optabs): Implement significand_optab using
18100         significand?f2 patterns.
18101         * builtins.c (expand_builtin_mathfn): Handle
18102         BUILT_IN_SIGNIFICAND{,F,L}.
18103         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
18104         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
18105
18106         * config/i386/i386.md (significandxf2, significand<mode>2): New
18107         expanders to implement significandf, significand and significandl
18108         built-ins as inline x87 intrinsics.
18109
18110 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
18111
18112         * config/avr/avr.c (avr_override_options): Remove setting value of
18113         PARAM_INLINE_CALL_COST.
18114
18115 2009-06-18  Richard Henderson  <rth@redhat.com>
18116
18117         PR 40488
18118         * tree-pass.h (TDF_ASMNAME): New.
18119         * tree-dump.c (dump_options): Add asmname.
18120         * doc/invoke.texi: Document it.
18121
18122         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
18123         (dump_decl_name): ...here.
18124         (dump_function_name): New flags arg; mind TDF_ASMNAME.
18125         (dump_generic_node): Update dump_function_name calls.
18126         (print_call_name): New flags arg; update all dump calls.
18127         * diagnostic.h (print_call_name): Update.
18128         * gimple-pretty-print.c (dump_gimple_call): Update.
18129
18130 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
18131
18132         PR target/40470
18133         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
18134
18135 2009-06-18  Diego Novillo  <dnovillo@google.com>
18136
18137         * doc/plugins.texi: Document plugin_is_GPL_compatible.
18138         * plugin.c (str_license): Declare.
18139         (try_init_one_plugin): Assert that the symbol
18140         'plugin_is_GPL_compatible' exists.
18141
18142 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
18143
18144         * see.c: Remove.
18145         * Makefile.in (OBJS-common): Remove see.o.
18146         (see.o): Remove.
18147         * common.opt (fsee): Mark as preserved for backward compatibility.
18148         * opts.c (common_handle_option): Add OPT_fsee to the backward
18149         compatibility section.
18150         * passes.c (init_optimization_passes, pass_see): Remove pass.
18151         * timevar.def (TV_SEE): Remove.
18152         * tree-pass.h (pass_see): Remove declaration.
18153         * doc/invoke.texi (-fsee): Remove documentation.
18154
18155 2009-06-18  Martin Jambor  <mjambor@suse.cz>
18156
18157         * tree-sra.c: Include statistics.h
18158         (sra_stats): New variable.
18159         (sra_initialize): Clear sra_stats.
18160         (create_access_replacement): Increment sra_stats.replacements.
18161         (get_access_replacement): Do not return twice.
18162         (analyze_all_variable_accesses): Increment statistics counter by the
18163         number of scalarized aggregates.
18164         (generate_subtree_copies): Increment sra_stats.subtree_copies.
18165         (sra_modify_expr): Increment sra_stats.exprs.
18166         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
18167         (sra_modify_assign): Increment sra_stats.exprs,
18168         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
18169         (perform_intra_sra): Update statistics counters.
18170         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
18171
18172 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
18173
18174         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
18175         (arm_scalar_mode_supported_p): New function.
18176
18177 2009-06-18  Paul Brook  <paul@codesourcery.com>
18178             Sandra Loosemore  <sandra@codesourcery.com>
18179
18180         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
18181         (__extendhfsf2, __truncsfhf2): Define.
18182         * config/arm/fp16.c: New file.
18183         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
18184         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
18185
18186 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
18187
18188         * doc/extend.texi (Half-Precision): New section.
18189         * doc/invoke.texi (Option Summary): List -mfp16-format.
18190         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
18191         * config/arm/arm.opt (mfp16-format=): New.
18192         * config/arm/arm.c: Include intl.h.
18193         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
18194         (TARGET_INVALID_RETURN_TYPE): Redefine.
18195         (TARGET_PROMOTED_TYPE): Redefine.
18196         (TARGET_CONVERT_TO_TYPE): Redefine.
18197         (arm_fp16_format): Define.
18198         (all_fpus): Add entry for neon-fp16.
18199         (fp_model_for_fpu): Likewise.
18200         (struct fp16_format): Declare.
18201         (all_fp16_formats): Define.
18202         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
18203         functions.
18204         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
18205         and no ldrh.
18206         (arm_legitimate_index_p): Treat HFmode like HImode.
18207         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
18208         (coproc_secondary_reload_class): Special-case HFmode.
18209         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
18210         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
18211         (arm_init_fp16_builtins): New.
18212         (arm_init_builtins): Call it.
18213         (arm_invalid_parameter_type): New.
18214         (arm_invalid_return_type): New.
18215         (arm_promoted_type): New.
18216         (arm_convert_to_type).
18217         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
18218         format.
18219         (arm_emit_fp16_const): New function.
18220         (arm_mangle_type): Mangle __fp16 as "Dh".
18221         * config/arm/arm.h (TARGET_VFPD32): Make it know about
18222         FPUTYPE_NEON_FP16.
18223         (TARGET_NEON_FP16): New.
18224         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
18225         (enum fputype): Add FPUTYPE_NEON_FP16.
18226         (enum arm_fp16_format_type): Declare.
18227         (arm_fp16_format): Declare.
18228         (LARGEST_EXPONENT_IS_NORMAL): Define.
18229         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
18230         * config/arm/arm-modes.def (HFmode): Define.
18231         * config/arm/vfp.md (*movhf_vfp): New.
18232         (extendhfsf2): New.
18233         (truncsfhf2): New.
18234         * config/arm/arm.md (fpu): Add neon_fp16.
18235         (floatsihf2, floatdihf2): New.
18236         (fix_trunchfsi2, fix_trunchfdi2): New.
18237         (truncdfhf2): New.
18238         (extendhfdf2): New.
18239         (movhf): New.
18240         (*arm32_movhf): New.
18241         (*thumb1_movhf): New.
18242         (consttable_2): Add check for HFmode constants.
18243         (consttable_4): Handle HFmode constants.
18244
18245 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
18246
18247         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
18248
18249 2009-06-17  Olivier Hainque  <hainque@adacore.com>
18250
18251         * collect2.c (main): Use CONST_CAST2 to perform char ** to
18252         const char ** conversion in AIX specific section.
18253
18254 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
18255
18256         * config/i386/i386.c (ix86_special_builtin_type): Remove
18257         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
18258         (bdesc_special_args): Updated.
18259         (ix86_init_mmx_sse_builtins): Likewise.
18260         (ix86_expand_special_args_builtin): Likewise.
18261
18262 2009-06-17  Richard Henderson  <rth@redhat.com>
18263
18264         * tree-pretty-print.c (maybe_dump_asm_name): New.
18265         (dump_decl_name): Use it.
18266         (PRINT_FUNCTION_NAME): Merge into...
18267         (dump_function_name): ... here.  Use maybe_dump_asm_name.
18268
18269 2009-06-17  Cary Coutant  <ccoutant@google.com>
18270
18271         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
18272         Change caller.
18273         * debug.c (struct gcc_debug_hooks): Change placeholder for
18274         source_line hook.
18275         (debug_nothing_int_charstar_int): Replaced by...
18276         (debug_nothing_int_charstar_int_bool): ...this.
18277         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
18278         source_line prototype.
18279         (debug_nothing_int_charstar_int): Replaced by...
18280         (debug_nothing_int_charstar_int_bool): ...this.
18281         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
18282         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
18283         Output is_stmt operand when necessary.
18284         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
18285         (notice_source_line): Add is_stmt parameter.
18286         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
18287         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
18288         Change callers.
18289         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
18290         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
18291
18292 2009-06-17  Ian Lance Taylor  <iant@google.com>
18293
18294         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
18295         Change all uses.
18296         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
18297         call uses.
18298
18299 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
18300
18301         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
18302         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
18303         tree_strip_sign_nop_conversions and
18304         tree_ssa_strip_useless_type_conversions rather than stripping
18305         the operations here.
18306         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
18307         Declare them.
18308         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
18309         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
18310         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
18311         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
18312         functions.
18313
18314 2009-06-17  Michael Eager  <eager@eagercon.com>
18315
18316         * config/rs6000/constraints.md (register_constraint "d"): New.
18317         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
18318         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
18319         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
18320         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
18321         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
18322         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
18323         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
18324         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
18325         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
18326         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
18327         __fctiwz): Same.
18328         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
18329         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
18330         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
18331         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
18332         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
18333         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
18334         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
18335         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
18336         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
18337         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
18338         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
18339         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
18340         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
18341         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
18342
18343 2009-06-16  Ian Lance Taylor  <iant@google.com>
18344
18345         * profile.c (total_num_never_executed): Don't define.
18346         (compute_branch_probabilities): Don't count or print
18347         num_never_executed.
18348         (init_branch_prob): Don't set total_num_never_executed.
18349         (end_branch_prob): Don't print total_num_never_executed.
18350
18351 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
18352
18353         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
18354
18355 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
18356
18357         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
18358         (nabstd2_fpr): Same.
18359
18360 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
18361
18362         * expr.c (expand_assignment): Change complex type check.
18363
18364 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
18365
18366         * doc/plugins.texi (Building GCC plugins): Added new section.
18367
18368 2009-06-17  Ian Lance Taylor  <iant@google.com>
18369
18370         * c-pch.c (get_ident): Don't set size of templ array.
18371         (pch_init): Don't set size of partial_pch array.
18372
18373         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
18374         string constant to intialize an array whose size is the length of
18375         the string.
18376
18377 2009-06-17  Richard Guenther  <rguenther@suse.de>
18378
18379         PR tree-optimization/40389
18380         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
18381         to addressable types.
18382         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
18383
18384 2009-06-17  Richard Guenther  <rguenther@suse.de>
18385
18386         PR middle-end/40460
18387         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
18388         if there is no evolution of left in the loop bail out.
18389         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
18390         chrec_fold_multiply.
18391
18392 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
18393             Janis Johnson  <janis187@us.ibm.com>
18394
18395         PR target/39254
18396         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
18397         for the symbol ref of a constant that is the source of a move
18398         - nor for any other not-obvious-label-ref constants.
18399
18400 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
18401
18402         * plugin.c (position_pass): Skip newly inserted pass during list
18403         traversal to avoid repeated insertion.
18404
18405 2009-06-16  Ian Lance Taylor  <iant@google.com>
18406
18407         * vec.h (VEC_stack_alloc): Define different version if
18408         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
18409         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
18410         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
18411         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
18412
18413 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
18414
18415         * config.gcc (extra_headers): Add ia32intrin.h for x86.
18416
18417         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
18418         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
18419         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
18420         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
18421         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
18422         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
18423         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
18424         (bdesc_special_args): Add __builtin_ia32_rdtsc and
18425         __builtin_ia32_rdtscp.
18426         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
18427         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
18428         and __builtin_ia32_rorhi.
18429         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
18430         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
18431         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
18432         (ix86_expand_args_builtin): Likewise.
18433         (ix86_expand_special_args_builtin): Likewise.
18434
18435         * config/i386/i386.md (UNSPECV_RDTSCP): New.
18436         (UNSPECV_RDTSC): Likewise.
18437         (UNSPECV_RDPMC): Likewise.
18438         (*bsr): Renamed to ...
18439         (bsr): This
18440         (*bsr_rex64): Renamed to ...
18441         (bsr_rex64): This.
18442         (rdpmc): New.
18443         (*rdpmc): Likewise.
18444         (*rdpmc_rex64): Likewise.
18445         (rdtsc): Likewise.
18446         (*rdtsc): Likewise.
18447         (*rdtsc_rex64): Likewise.
18448         (rdtscp): Likewise.
18449         (*rdtscp): Likewise.
18450         (*rdtscp_rex64): Likewise.
18451
18452         * config/i386/ia32intrin.h: New.
18453
18454         * config/i386/x86intrin.h: Include <ia32intrin.h>.
18455
18456 2009-06-16  Ian Lance Taylor  <iant@google.com>
18457
18458         * ira-build.c (copy_info_to_removed_store_destinations):
18459         Initialize parent_a.
18460
18461 2009-06-16  Ian Lance Taylor  <iant@google.com>
18462
18463         * c-decl.c (grokdeclarator): Change size_varies to bool.
18464
18465 2009-06-16  Ian Lance Taylor  <iant@google.com>
18466
18467         * sel-sched.c: Make forward declarations of move_op_hooks and
18468         fur_hooks explicitly extern.
18469
18470 2009-06-16  Ian Lance Taylor  <iant@google.com>
18471
18472         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
18473         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
18474
18475 2009-06-16  Ian Lance Taylor  <iant@google.com>
18476
18477         * resource.c (mark_referenced_resources): Change
18478         include_delayed_effects parameter to bool.  Change all callers.
18479         (mark_end_of_function_resources): Likewise.
18480         * reorg.c (insn_references_resource_p): Likewise.
18481         (insn_sets_resource_p): Likewise.
18482         * resource.h (mark_referenced_resources): Update declaration.
18483         (mark_end_of_function_resources): Update declaration.
18484
18485 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
18486
18487         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
18488
18489 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
18490
18491         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
18492         GCC can bootstrap on AIX with GNU Binutils 2.20.
18493
18494 2009-06-16  Ian Lance Taylor  <iant@google.com>
18495
18496         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
18497
18498 2009-06-16  Ian Lance Taylor  <iant@google.com>
18499
18500         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
18501         inline, not extern inline.
18502         (exact_log2): Likewise.
18503         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
18504         test CLZ_HWI.
18505         (exact_log2): Likewise, but don't test CTZ_HWI.
18506
18507 2009-06-16  Ian Lance Taylor  <iant@google.com>
18508
18509         * bitmap.c (bitmap_clear): Don't declare as inline.
18510         * gimple.c (gimplify_assign): Likewise.
18511         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
18512         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
18513         (sched_scan_info): Remove duplicate definition.
18514
18515 2009-06-16  Ian Lance Taylor  <iant@google.com>
18516
18517         * c-common.c (skip_evaluation): Don't define.
18518         (c_inhibit_evaluation_warnings): Define global variable.
18519         (overflow_warning): Check c_inhibit_evaluation_warnings rather
18520         than skip_evaluation.
18521         (convert_and_check, warn_for_div_by_zero): Likewise.
18522         * c-common.h (skip_evaluation): Don't declare.
18523         (c_inhibit_evaluation_warnings): Declare.
18524         * c-parser.c (c_parser_typeof_specifier): Set
18525         c_inhibit_evaluation_warnings rather than skip_evaluation.
18526         (c_parser_conditional_expression): Likewise.
18527         (c_parser_binary_expression): Likewise.
18528         (c_parser_sizeof_expression): Likewise.
18529         (c_parser_alignof_expression): Likewise.
18530         * c-typeck.c (build_indirect_ref): Check
18531         c_inhibit_evaluation_warnings rather than skip_evaluation.
18532         (build_conditional_expr, build_binary_op): Likewise.
18533
18534 2009-06-16  Richard Guenther  <rguenther@suse.de>
18535
18536         * tree-ssa-alias.c (is_escape_site): Remove.
18537         * tree-ssa-alias.h (enum escape_type): Remove.
18538         (is_escape_site): Likewise.
18539         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
18540         via casts and asms without deferring to is_escape_site.
18541
18542 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
18543
18544         PR middle-end/40446
18545         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
18546         use gen_lowpart if op0 has complex mode.
18547
18548 2009-06-16  Richard Guenther  <rguenther@suse.de>
18549
18550         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
18551         variables add them to ESCAPED.
18552         (find_func_aliases): Do not make all indirectly stored values escaped.
18553
18554 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
18555
18556         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
18557         make_decl_one_only.
18558
18559 2009-06-16  Martin Jambor  <mjambor@suse.cz>
18560
18561         PR tree-optimization/40432
18562         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
18563         check whether we need to force gimple register operand.
18564
18565 2009-06-16  Martin Jambor  <mjambor@suse.cz>
18566
18567         PR tree-optimization/40413
18568         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
18569         build_ref_for_offset.
18570         (propagate_subacesses_accross_link): Fix a typo in a comment.
18571
18572 2009-06-16  Ira Rosen  <irar@il.ibm.com>
18573
18574         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
18575         with additional parameter.
18576         * tree-vectorizer.h (enum vect_def_type): Add new value
18577         vect_nested_cycle.
18578         (enum vect_relevant): Add comments.
18579         (vect_is_simple_reduction): Add new argument.
18580         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
18581         Detect nested cycles.
18582         (vect_is_simple_reduction): Update documentation, add an argument to
18583         distinguish inner-loop reduction from nested cycle, detect nested
18584         cycles, fix printings and indentation, don't swap operands in case
18585         of nested cycle.
18586         (get_initial_def_for_reduction): Handle subtraction.
18587         (vect_create_epilog_for_reduction): Add new argument to specify
18588         reduction variable.
18589         (vect_finalize_reduction): Handle subtraction, fix comments.
18590         (vectorizable_reduction): Handle nested cycles. In case of nested
18591         cycle keep track of the reduction variable position. Call
18592         vect_is_simple_reduction with additional parameter. Use original
18593         statement code in reduction epilogue for nested cycle. Call
18594         vect_create_epilog_for_reduction with additional parameter.
18595         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
18596         inner-loop vectorization.
18597         (vect_recog_widen_sum_pattern): Likewise.
18598         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
18599         and reductions.
18600         (vect_mark_stmts_to_be_vectorized): Likewise.
18601         (vect_get_vec_def_for_operand): Handle nested cycles.
18602
18603 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18604
18605         * doc/invoke.texi (Debugging Options): Fix option index entries
18606         for -fdump-statistics, -frandom-seed add entries for
18607         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
18608         (FRV Options): Fix entries for -mTLS, -mtls.
18609         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
18610         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
18611         (M68hc1x Options): Fix @itemx for -mnominmax.
18612         (MCore Options): Fix entry for -mno-lsim.
18613         (MMIX Options): Fix entry for -mabi=mmixware.
18614         (PDP-11 Options): Fix entry for -mbcopy-builtin.
18615
18616 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
18617
18618         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
18619         Mention the plugin mode of gengtype.
18620         * doc/gty.texi (Source Files Containing Type Information): Likewise.
18621         * gengtype.c: Updated copyright.
18622         (plugin_files, nb_plugin_files) Added new static variables.
18623         (measure_input_list) Care about plugin_files.
18624         (write_rtx_next): Added early return in plugin mode.
18625         (create_file): Updated copyright year in generated file. Added
18626         asserts.
18627         (oprintf): Added early return if NULL outf.
18628         (get_output_file_with_visibility): Care of plugin_files.
18629         (get_output_file_name): May return null.
18630         (write_local): Added early return.
18631         (put_mangled_filename): Ditto.
18632         (finish_root_table): Added check for base_files.
18633         (write_roots): Care about null when plugins.
18634         (main): Added plugin mode.
18635
18636 2009-06-15  Ian Lance Taylor  <iant@google.com>
18637
18638         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
18639         * gcov.c (read_count_file): Add braces around variables declared
18640         before label.
18641
18642         * c.opt (Wjump-misses-init): New warning.
18643         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
18644         -Wall and -Wc++-compat if not already set.
18645         (c_common_post_options): Clear warn_jump_misses_init if it was not
18646         set.
18647         * c-decl.c (struct c_binding): Change type field to a union with
18648         new label field.  Make it the first field in the struct.  Update
18649         references to type to use u.type instead.
18650         (struct c_spot_bindings): Define.
18651         (struct c_goto_bindings): Define.
18652         (c_goto_bindings_p): Define, along with VECs.
18653         (struct c_label_vars): Define.
18654         (struct c_scope): Add has_label_bindings field.
18655         (bind_label, set_spot_bindings): New static functions.
18656         (decl_jump_unsafe, update_spot_bindings): New static functions.
18657         (update_label_decls): New static function.
18658         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
18659         Update binding u.label field to shadowed field.
18660         (c_binding_start_stmt_expr): New function.
18661         (c_binding_end_stmt_expr): New function.
18662         (pushdecl): Don't call c_begin_vm_scope.
18663         (make_label): Add defining and p_label_vars parameters.  Change
18664         all callers.
18665         (lookup_label): Correct test for whether a label has not yet been
18666         defined.  Call bind_label rather than bind.
18667         (warn_about_goto): New static function.
18668         (lookup_label_for_goto): New function.
18669         (declare_label): Call bind_label rather than bind.
18670         (check_earlier_gotos): New static function.
18671         (define_label): Don't give errors about jumping into statement
18672         expressions or scopes of variably modified types.  Call
18673         set_spot_bindings and check_earlier_gotos.  Call bind_label
18674         instead of bind.  Don't set label_context_stack_se or
18675         label_context_stack_vm.
18676         (c_get_switch_bindings): New function.
18677         (c_release_switch_bindings): New function.
18678         (c_check_switch_jump_warnings): New function.
18679         (start_function): Don't set label_context_stack_se or
18680         label_context_stack_vm.
18681         (finish_function): Likewise.
18682         * c-typeck.c (label_context_stack_se): Don't define.
18683         (label_context_stack_vm): Don't define.
18684         (c_finish_goto_label): Call lookup_label_for_goto rather than
18685         lookup_label.  Don't give errors about jumping into a statement
18686         expression or the scope of a variably modified type.  Don't set
18687         label_context_stack_se or label_context_stack_vm.
18688         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
18689         fields.  Add bindings field.
18690         (c_start_case): Don't set deleted fields.  Set bindings field.
18691         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
18692         or blocked_vm.  Call c_check_switch_jump_warnings.
18693         (c_finish_case): Don't test blocked_stmt_expr field.  Call
18694         c_release_switch_bindings.
18695         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
18696         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
18697         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
18698         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
18699         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
18700         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
18701         (c_begin_vm_scope, c_end_vm_scope): Don't define.
18702         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
18703         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
18704         (C_DECL_UNJUMPABLE_VM): Don't define.
18705         (C_DECL_UNDEFINABLE_VM): Don't define.
18706         (struct c_label_list): Don't define.
18707         (struct c_label_context_se): Don't define.
18708         (struct c_label_context_vm): Don't define.
18709         (struct c_spot_bindings): Declare.
18710         (c_bindings_start_stmt_expr): Declare.
18711         (c_bindings_end_stmt_expr): Declare.
18712         (lookup_label_for_goto): Declare.
18713         (c_get_switch_bindings, c_release_switch_bindings): Declare.
18714         (c_check_switch_jump_warnings): Declare.
18715         (label_context_stack_se, label_context_stack_vm): Don't declare.
18716         (c_finish_goto_label): Update declaration.
18717         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
18718         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
18719         (Warning Options): Document -Wjump-misses-init.
18720
18721 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
18722
18723         * tree-object-size.c (addr_object_size): Fix a pasto in the last
18724         change.
18725
18726 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
18727
18728         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
18729
18730 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
18731
18732         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
18733
18734 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
18735
18736         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
18737
18738 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
18739
18740         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
18741         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
18742         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
18743         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
18744         * dwarf2asm.c (dw2_force_const_mem): Update call to
18745         make_decl_one_only.
18746         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
18747         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
18748         * langhooks.c (lhd_comdat_group): Remove.
18749         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
18750         * tree.h (DECL_COMDAT_GROUP): New.
18751         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
18752         (tree_decl_with_vis): Add comdat_group. Remove one_only.
18753         (make_decl_one_only): Change signature.
18754         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
18755         make_decl_one_only.
18756         (make_decl_one_only): Change signature.
18757         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
18758
18759 2009-06-15  Richard Guenther  <rguenther@suse.de>
18760
18761         PR middle-end/40439
18762         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
18763
18764 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18765
18766         * tree-ssa-math-opts.c: Remove extra divide.
18767
18768 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18769
18770         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
18771
18772 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18773
18774         * passes.c: Add bswap pass.
18775         * tree-pass.h: Add pass_optimize_bswap declaration.
18776         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
18777         Include rtl.h, expr.h and optabs.h for optab_handler check.
18778         (struct symbolic_number, pass_optimize_bswap): New definition.
18779         (do_shift_rotate, verify_symbolic_number_p): New functions.
18780         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
18781         (gate_optimize_bswap): New function.
18782         * tree.c (widest_int_cst_value): New function.
18783         * tree.h (widest_int_cst_value): Prototype added.
18784
18785 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
18786
18787         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
18788         REG_EQUAL/REG_EQUIV notes.
18789
18790 2009-06-14  Richard Guenther  <rguenther@suse.de>
18791
18792         PR middle-end/40389
18793         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
18794         has its address taken if NRV was applied and it is addressable.
18795         * tree-ssa-structalias.c (get_constraint_for_address_of): New
18796         function split out from ...
18797         (get_constraint_for_1): ... here.
18798         (handle_rhs_call): Use it to mark the return slot escaped if
18799         it is addressable and NRV was applied.
18800
18801 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
18802
18803         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
18804         Change first argument type to location_t.
18805         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
18806         Do not set input_location.
18807         Use loc instead of input_location throughout.
18808
18809 2009-06-13  Richard Guenther  <rguenther@suse.de>
18810
18811         PR tree-optimization/40421
18812         * tree-predcom.c (should_unroll_loop_p): Remove.
18813         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
18814
18815 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
18816
18817         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18818         Add location argument.
18819
18820 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
18821
18822         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
18823         build_decl.
18824         * config/s390/s390.c (s390_build_builtin_va_list): Same.
18825         (s390_gimplify_va_arg): Pass location to create_artificial_label.
18826         * config/spu/spu-protos.h: Add location to
18827         spu_resolve_overloaded_builtin.
18828         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
18829         spu_build_builtin_va_list.
18830         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
18831         argument.  Pass location to build_function_call_vec.
18832         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
18833         build_decl.
18834         (emit_fpu_switch): Same.
18835         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
18836         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
18837         to build_decl and create_artificial_label.
18838         (xtensa_gimplify_va_arg_expr): Same.
18839         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
18840         (xstormy16_gimplify_va_arg_expr): Same.
18841         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
18842         * config/arm/arm.c (arm_build_builtin_va_list): Same.
18843         * config/mips/mips.c (mips_build_builtin_va_list): Same.
18844         (mips16_build_function_stub): Same.
18845         (mips16_build_call_stub): Same.
18846
18847 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
18848
18849         PR target/40327
18850         * arm/constraints.md (Pa, Pb): New constraints.
18851         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a
18852         split pattern to deal with them.
18853
18854 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
18855
18856         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
18857         fix index entry for -Xpreprocessor.
18858
18859 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
18860
18861         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18862         Add location argument to build_decl call.
18863         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
18864         (rs6000_init_builtins): Same.
18865         (spe_init_builtins): Same.
18866         (rs6000_gimplify_va_arg): Add location argument to
18867         create_artificial_label call.
18868
18869 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
18870
18871         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
18872         * combine-stack-adj.c (pass_stack_adjustments): Use it.
18873         * Makefile.in: Fix GGC dependency for gcse.o.
18874
18875 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
18876
18877         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
18878         * gimple-pretty-print.c (dump_gimple_stmt): Same.
18879         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
18880         created.
18881         * c-parser.c (c_parser_binary_expression): Use current column while
18882         building binary operations.
18883         * common.opt (fshow-column): Enable by default.
18884         * tree-vrp.c (check_array_ref): Use warning_at.
18885         (check_array_bounds): Use location from call back if expr has no
18886         location.
18887         * tree.h: Add location argument to maybe_fold_*.
18888         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
18889         (maybe_fold_offset_to_array_ref): Add location argument and use it.
18890         (maybe_fold_offset_to_component_ref): Same.
18891         (maybe_fold_offset_to_reference): Same.
18892         (maybe_fold_offset_to_address): Same.
18893         (maybe_fold_stmt_indirect): Same.
18894         (maybe_fold_stmt_addition): Same.
18895         (fold_stmt_r): Pass location to maybe_fold_*.
18896         (fold_gimple_assign): Same.
18897         * c-tree.h: Add location argument to finish_decl,
18898         default_function_array_conversion, store_init_value.
18899         * c-decl.c (define_label): Use error_at.
18900         (c_make_fname_decl): Pass location to finish_decl.
18901         (finish_decl): New location argument.
18902         (build_compound_literal): Pass location to store_init_value.
18903         (grokdeclarator): Pass location to finish_decl.
18904         (grokfield): Same.
18905         * c-typeck.c (array_to_pointer_conversion): New location argument.
18906         (function_to_pointer_conversion): Same.
18907         (default_function_array_conversion): Same.
18908         (parser_build_unary_op): Pass location to overflow_warning.
18909         (parser_build_binary_op): Same.  Use warning_at.
18910         (build_unary_op): Pass location to array_to_pointer_conversion.
18911         (build_c_cast): Pass location to digest_init.
18912         (build_modify_expr): New location argument.
18913         (convert_for_assignment): Same.
18914         (store_init_value): Same.
18915         (digest_init): Same.
18916         (output_init_element): Pass location to digest_init and
18917         array_to_pointer_conversion.
18918         (c_finish_return): Pass location to convert_for_assignment.
18919         * gimplify.c (gimplify_conversion): Pass location to
18920         maybe_fold_offset_to_address.
18921         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
18922         to maybe_fold_stmt_addition.
18923         * c-omp.c (c_finish_omp_atomic): Pass new location to
18924         build_modify_expr.
18925         (c_finish_omp_for): Same.
18926         * c-common.c (overflow_warning): New argument.
18927         * c-common.h: New argument to build_modify_expr, overflow_warning.
18928         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
18929         finish_decl.
18930         (c_parser_initializer): Pass location to
18931         default_function_array_conversion.
18932         (c_parser_initelt): Same.
18933         (c_parser_initval): Same.
18934         (c_parser_asm_operands): Same.
18935         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
18936         (c_parser_conditional_expression): Same.
18937         (c_parser_binary_expression): Add location info to stack.  Use it.
18938         (c_parser_unary_expression): Pass location to
18939         default_function_array_conversion, parser_build_unary_op,
18940         build_indirect_ref, c_parser_postfix_expression_after_primary.
18941         (c_parser_postfix_expression_after_primary): New location argument.
18942         Use it.
18943         (c_parser_expression_conv): Pass location to
18944         default_function_array_conversion.
18945         (c_parser_expr_list): Same.
18946         (c_parser_omp_atomic): Same.
18947         (c_parser_omp_for_loop): Same.
18948         * c-tree.h (struct c_declarator): Add comment to id_loc.
18949         (build_array_declarator): New argument.
18950         * c-decl.c (build_array_declarator): Add location argument.
18951         (grokdeclarator): Set id_loc for cdk_array.
18952         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
18953         build_array_declarator.
18954         * tree.c (build_omp_clause): Add location argument.
18955         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
18956         (OMP_CLAUSE_LOCATION): New macro.
18957         (struct tree_omp_clause): Add location field.
18958         (build_omp_clause): Add argument.
18959         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
18960         build_omp_clause.
18961         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
18962         (cp_parser_omp_clause_collapse): Same.
18963         (cp_parser_omp_clause_default): Same.
18964         (cp_parser_omp_clause_if): Same.
18965         (cp_parser_omp_clause_nowait): Same.
18966         (cp_parser_omp_clause_num_threads): Same.
18967         (cp_parser_omp_clause_ordered): Same.
18968         (cp_parser_omp_clause_schedule): Same.
18969         (cp_parser_omp_clause_untied): Same.
18970         (cp_parser_omp_for_loop): Same.
18971         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
18972         * c-tree.h (c_start_case): Add location argument.
18973         (c_process_expr_stmt): Same.
18974         (c_finish_goto_*): Same.
18975         * tree-parloops.c (initialize_reductions): Pass location to
18976         build_omp_clause.
18977         (create_parallel_loop): Same.
18978         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
18979         (gfc_trans_omp_reduction_list): Same.
18980         (gfc_trans_omp_clauses): Same.
18981         (gfc_trans_omp_do): Same.
18982         * c-typeck.c (c_finish_goto_label): Same.
18983         (c_finish_goto_ptr): New location argument.
18984         (c_start_case): Same.
18985         (emit_side_effect_warnings): Same.
18986         (c_process_expr_stmt): Same.
18987         (c_finish_stmt_expr): Same.
18988         (c_finish_omp_clauses): Use error_at instead of error.
18989         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
18990         build_omp_clause.
18991         * c-omp.c (c_split_parallel_clauses): New location argument.
18992         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
18993         to build_omp_clause.
18994         (convert_local_reference_stmt): Same.
18995         (convert_gimple_call): Same.
18996         * c-common.h (c_split_parallel_clauses): New argument.
18997         * c-parser.c (c_parser_statement_after_labels): Pass location to
18998         c_finish_goto_label.
18999         (c_parser_switch_statement): Pass location to c_start_case.
19000         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
19001         and c_process_expr_stmt.
19002         (c_parser_omp_variable_list): Add location argument.
19003         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
19004         (c_parser_omp_clause_default): Same.
19005         (c_parser_omp_clause_if): Same.
19006         (c_parser_omp_clause_num_threads): Same.
19007         (-c_parser_omp_clause_ordered): Same.
19008         (c_parser_omp_clause_reduction): Pass location to
19009         c_parser_omp_variable_list.
19010         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
19011         (c_parser_omp_clause_untied): Same.
19012         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
19013         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
19014
19015         * c-tree.h (check_for_loop_decls, undeclared_variable,
19016         build_component_ref, build_array_ref, build_external_ref,
19017         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
19018         build_conditional_expr, build_compound_expr, c_cast_expr,
19019         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
19020         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
19021         argument.
19022         * c-semantics.c (build_stmt): Same.
19023         (build_case_label): Same.
19024         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
19025         (undeclared_variable): New argument.
19026         (make_label): Same.
19027         (lookup_label): Pass location on down.
19028         (define_label): Same.
19029         (finish_decl): Same.
19030         (build_compound_literal): Same.
19031         (finish_struct): Same.
19032         (finish_function): Do not set location here.
19033         (check_for_loop_decls): New argument.
19034         * tree.c (save_expr): Set location.
19035         (build_empty_stmt): New argument.
19036         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
19037         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
19038         * builtins.c (gimplify_va_arg_expr): Use locations.
19039         (expand_builtin_sync_operation): Same.
19040         * c-typeck.c (build_component_ref): New argument.
19041         (build_array_ref): Same.
19042         (build_external_ref): Same.
19043         (c_expr_sizeof_expr): Same.
19044         (c_expr_sizeof_type): Same.
19045         (parser_build_unary_op): Same.
19046         (build_conditional_expr): Same.
19047         (build_compound_expr): Pass location on down.
19048         (build_compound_expr): New argument.
19049         (build_c_cast): Same.
19050         (c_cast_expr): Same.
19051         (build_asm_expr): Same.
19052         (c_finish_return): Same.
19053         (c_process_expr_stmt): Pass location on down.
19054         (c_finish_stmt_expr): New argument.
19055         (push_clenaup): Same.
19056         (c_finish_omp_parallel): Same.
19057         (c_finish_omp_task): Same.
19058         * gimplify.c (gimplify_call_expr): Pass location on down.
19059         * c-omp.c (c_finish_omp_master): New argument.
19060         (c_finish_omp_critical): Same.
19061         (c_finish_omp_ordered): Same.
19062         (c_finish_omp_barrier): Same.
19063         (-c_finish_omp_taskwait): Same.
19064         (c_finish_omp_atomic): Same.
19065         (c_finish_omp_flush): Same.
19066         * tree-inline.c (copy_tree_body_r): Pass location on down.
19067         (inline_forbidden_p): Remove use of input_location.
19068         * c-gimplify.c (c_build_bind_expr): New argument.
19069         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
19070         (c_sizeof_or_alignof_type): New argument.
19071         (c_alignof_expr): Same.
19072         (build_va_arg): Same.
19073         (c_add_case_label): Same.
19074         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
19075         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
19076         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
19077         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
19078         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
19079         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
19080         New argument.
19081         * stub-objc.c (objc_build_selector_expr): Same.
19082         (objc_build_throw_stmt): Same.
19083         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
19084         (c_parser_initelt): Same.
19085         (c_parser_compound_statement): Same.
19086         (c_parser_compound_statement_nostart): Same.
19087         (c_parser_label): Same.
19088         (c_parser_statement_after_labels): Same.
19089         (c_parser_if_body): Same.
19090         (c_parser_else_body): Same.
19091         (c_parser_if_statement): Same.
19092         (c_parser_switch_statement): Same.
19093         (c_parser_while_statement): Same.
19094         (c_parser_do_statement): Same.
19095         (c_parser_for_statement): Same.
19096         (c_parser_asm_statement): Same.
19097         (c_parser_conditional_expression): Same.
19098         (c_parser_binary_expression): Same.
19099         (c_parser_cast_expression): Same.
19100         (c_parser_unary_expression): Same.
19101         (c_parser_sizeof_expression): Same.
19102         (c_parser_alignof_expression): Same.
19103         (c_parser_postfix_expression): Same.
19104         (c_parser_expression): Same.
19105         (c_parser_objc_receiver): Same.
19106         (c_parser_omp_variable_list): Same.
19107         (c_parser_omp_structured_block): Same.
19108         (c_parser_omp_atomic): New argument.
19109         (c_parser_omp_barrier): Same.
19110         (c_parser_omp_critical): Same.
19111         (c_parser_omp_flush): Pass location on down.
19112         (c_parser_omp_for_loop): New argument.
19113         (c_parser_omp_for): Same.
19114         (c_parser_omp_master): Same.
19115         (c_parser_omp_ordered): Same.
19116         (c_parser_omp_sections_scope): Same.
19117         (c_parser_omp_sections): Same.
19118         (c_parser_omp_parallel): Same.
19119         (c_parser_omp_single): Same.
19120         (c_parser_omp_task): Same.
19121         (c_parser_omp_taskwait): Pass location on down.
19122         (c_parser_omp_construct): Same.
19123         (c_parser_omp_threadprivate): Same.
19124         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
19125         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
19126         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
19127         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
19128         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
19129         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
19130         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
19131         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
19132         config/i386/i386.c, stmt.c:
19133         Add location argument to the following function definitions and/or
19134         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
19135         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
19136         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
19137         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
19138         do_case, c_finish_bc_stmt, build_compound_literal,
19139         build_function_call.
19140         * c-decl.c (build_compound_literal): Add location argument.
19141         Make all diagnostic calls use location.
19142         (start_struct): Same.
19143         (finish_struct): Same.
19144         (start_enum): Same.
19145         (build_enumerator): Same.
19146         (start_function): Same.
19147         (grokdeclarator): Make all diagnostic calls use location.
19148         (store_parm_decls_oldstyle): Same.
19149         * c-typeck.c (build_function_call): Add location argument.
19150         Make all diagnostic calls use location.
19151         (do_case): Same.
19152         (c_finish_bc_stmt): Same.
19153         * tree-nested.c (get_trampoline_type): Add argument.
19154         Pass location to build_decl.
19155         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
19156         * rtl.h (RTL_LOCATION): New.
19157         * c-common.c (c_add_case_label): Add location argument.
19158         Make all diagnostic calls use location.
19159         * c-common.h: Add location argument to make_fname_decl, do_case,
19160         c_add_case_label, build_function_call, resolve_overloaded_builtin.
19161         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
19162         Set it appropriately for every case.  Pass enum_loc to start_enum
19163         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
19164         parser_xref_tag.
19165         (c_parser_struct_or_union_specifier): Save location.  Use it for
19166         start_struct, finish_struct, and parser_xref_tag.
19167
19168 2009-06-12  Ian Lance Taylor  <iant@google.com>
19169
19170         * fold-const.c (fold_unary): Rename local variable and to and_expr.
19171
19172         * c-opts.c (c_common_handle_option): For -Wc++-compat set
19173         cpp_opts->warn_cxx_operator_names.
19174
19175 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19176
19177         PR tree-opt/38865
19178         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
19179         is returns NULL and OP is a VCE, look through the VCE.
19180
19181 2009-06-12  Ian Lance Taylor  <iant@google.com>
19182
19183         PR bootstrap/40430
19184         * collect2.c (main): Use CONST_CAST2 in code inside #if
19185         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
19186
19187 2009-06-12  Joey Ye  <joey.ye@intel.com>
19188
19189         PR middle-end/39146
19190         * cfgexpand.c (get_decl_align_unit): Update
19191         max_used_stack_slot_alignment with align instead of
19192         stack_alignment_needed.
19193
19194         * function.c (assign_stack_local_1): Update
19195         max_used_stack_slot_alignment with alignment_in_bits instead
19196         of stack_alignment_needed.
19197         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
19198         here.
19199
19200 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
19201
19202         * dwarf2out.c (last_var_location_insn): New variable.
19203         (dwarf2out_end_epilogue): Clear last_var_location_insn.
19204         (dwarf2out_var_location): Don't record anything after last real
19205         insn.  Only change labels if there were any real instructions
19206         in between last note and this one, or if changed sections.
19207
19208 2009-06-11  Richard Henderson  <rth@redhat.com>
19209
19210         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
19211         note when storing the frame pointer in a register.
19212         (FRP): Don't redefine to nothing for epilogue.
19213         (alpha_expand_epilogue): Mark register and sp restores.
19214         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
19215
19216         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
19217         when gen_lowpart is needed.
19218
19219 2009-06-11  Richard Henderson  <rth@redhat.com>
19220
19221         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
19222
19223         * dwarf2out.c (need_data_align_sf_opcode): New.
19224         (div_data_align): Move earlier.
19225         (def_cfa_1, reg_save): Use it.
19226
19227 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
19228
19229         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
19230         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
19231         (ix86_handle_option): Handle OPT_mcrc32.
19232         (ix86_target_string): Add -mcrc32.
19233         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
19234
19235         * config/i386/i386.h (TARGET_CRC32): New.
19236
19237         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
19238         (sse4_2_crc32di): Likewise.
19239
19240         * config/i386/i386.opt (mcrc32): New.
19241
19242         * doc/invoke.texi: Document -mcrc32.
19243
19244 2009-06-11  Richard Henderson  <rth@redhat.com>
19245
19246         * common.opt (gdwarf-): Accept a version number.
19247         * doc/invoke.texi (gdwarf-): Update docs.
19248         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
19249         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
19250         version level, and record it.
19251
19252         * dwarf2.h (DW_CIE_VERSION): Remove.
19253         * dwarf2out.c (DWARF_VERSION): Remove.
19254         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
19255         (output_call_frame_info): Use CIE version 3 for dwarf3,
19256         or if the return register column is out of range for version 1.
19257         (dwarf_stack_op_name): Add all dwarf3 values.
19258         (DEBUG_PUBTYPES_SECTION): New.
19259         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
19260         encoding change for dwarf3.
19261         (output_die) [dw_val_class_die_ref]: Likewise.
19262         (output_compilation_unit_header): Emit correct version for dwarf3.
19263         (output_line_info): Likewise.
19264         (output_pubnames): Update for DWARF_VERSION removal.
19265         (output_aranges): Likewise.
19266         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
19267         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
19268         (dwarf2out_finish): Likewise.
19269
19270 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
19271
19272         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
19273         in r148403.
19274
19275 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
19276
19277         PR c/39252
19278         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
19279         * builtins.c (expand_builtin_unreachable): New function.
19280         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
19281         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
19282         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
19283         successors.
19284         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
19285         searching for missing barriers.
19286
19287 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
19288
19289         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
19290         when -fprofile-generate* was passed.
19291         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
19292
19293 2009-06-11  Anthony Green  <green@moxielogic.com>
19294
19295         * config/moxie/moxie.md: Define length attribute for all instructions.
19296         (rCC): Define.
19297         (*b<cond:code>): Support limited branch ranges for new PC-relative
19298         branch instructions.
19299         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
19300
19301 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
19302
19303         * config/i386/i386.c (min_insn_size): Use get_attr_length
19304         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
19305         For __asm return 0.
19306
19307         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
19308         instead of emit_insn_before.
19309
19310 2009-06-10  Ian Lance Taylor  <iant@google.com>
19311
19312         PR bootstrap/40408
19313         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
19314         GIMPLE_SWITCH.
19315
19316 2009-06-10  Revital Eres  <eres@il.ibm.com>
19317
19318         * passes.c (init_optimization_passes): Reschedule
19319         predictive-commoning pass before complete unroll pass.
19320
19321 2009-06-10  Martin Jambor  <mjambor@suse.cz>
19322
19323         * cgraph.c (cgraph_node_can_be_local_p): New function.
19324         (cgraph_make_node_local): New function.
19325         * cgraph.h (cgraph_node_can_be_local_p): Declare.
19326         (cgraph_make_node_local): Declare.
19327
19328 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
19329
19330         * tree.h (tree_base): Add packed_flag and user_align fields.
19331         Decrease size of spare field.
19332         (TYPE_USER_ALIGN): Use user_align from tree_base.
19333         (DECL_USER_ALIGN): Likewise.
19334         (TYPE_PACKED): Use packed_flag from tree_base.
19335         (DECL_PACKED): Likewise.
19336         (tree_type): Delete packed_flag and user_align fields.  Widen
19337         precision field.  Widen mode field and shuffle fields to align
19338         mode on an 8-bit boundary.
19339         (tree_decl_common): Delete decl_flag_1 and user_align fields.
19340         Renumber decl_flag_* fields.  Fix comments.  Widen
19341         decl_common_unused field.
19342         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
19343         (DECL_EXTERNAL): Likewise.
19344         (DECL_BIT_FIELD): Likewise.
19345         (DECL_NONADDRESSABLE_P): Likewise.
19346         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
19347         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
19348
19349 2009-06-10  Ian Lance Taylor  <iant@google.com>
19350
19351         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
19352         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
19353         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
19354         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
19355         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
19356         DEF_VEC_ALLOC_FUNC_P.
19357         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
19358         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
19359         DEF_VEC_ALLOC_FUNC_O.
19360         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
19361         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
19362         DEF_VEC_ALLOC_FUNC_I.
19363         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
19364         (vec_stack_p_reserve_exact_1): Declare.
19365         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
19366         (vec_stack_free): Declare.
19367         (VEC_stack_alloc): Define.
19368         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
19369         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
19370         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
19371         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
19372         for void_p.
19373         (stack_vecs): New static variable.
19374         (vec_stack_p_reserve_exact_1): New function.
19375         (vec_stack_o_reserve_1): New static function.
19376         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
19377         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
19378         (vec_stack_free): New function.
19379         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
19380         (VEC_df_ref_stack_alloc): Define.
19381         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
19382         DEF_VEC_ALLOC_P_STACK.
19383         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
19384         (struct df_collection_rec): Change _vec fields to VEC.  Remove
19385         _use fields.
19386         (df_free_collection_rec): Adjust for new fields.
19387         (df_insn_rescan): Use new df_collection_rec fields.
19388         (df_notes_rescan, df_canonize_collection_rec): Likewise.
19389         (df_ref_create_structure, df_ref_record): Likewise.
19390         (df_get_conditional_uses, df_get_call_refs): Likewise.
19391         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
19392         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
19393         (df_record_exit_block_uses, df_bb_verify): Likewise.
19394         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
19395         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
19396         Remove count parameter.  Change return type to void.  Change all
19397         callers.
19398         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
19399         Remove count parameter.  Change return type to void.  Change all
19400         callers.
19401         (df_install_refs): Change old_vec parameter to VEC.  Remove count
19402         parameter.  Change all callers.
19403         (df_install_mws): Change old_vec parameter to VEC.  Remove count
19404         parameter.  Change all callers.
19405         (df_refs_verify): Change new_rec parameter to VEC.  Change call
19406         callers.
19407         (df_mws_verify): Likewise.
19408
19409 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
19410
19411         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
19412
19413 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
19414
19415         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
19416
19417 2009-06-10  Anthony Green  <green@moxielogic.com>
19418
19419         * config/moxie/crti.asm: New file.
19420         * config/moxie/crtn.asm: New file.
19421         * config/moxie/moxie.c: New file.
19422         * config/moxie/moxie.h: New file.
19423         * config/moxie/sfp-machine.h: New file.
19424         * config/moxie/moxie-protos.h: New file.
19425         * config/moxie/t-moxie: Created.
19426         * config/moxie/t-moxie-softfp: Created.
19427         * config/moxie/moxie.md: Created.
19428         * config/moxie/constraints.md: Created.
19429         * config.gcc: Add moxie support.
19430         * doc/md.texi (Machine Constraints): Add moxie constraints.
19431         * doc/contrib.texi (Contributors): Mention moxie port.
19432         * doc/install.texi (Specific): Mention the moxie port.
19433
19434 2009-06-09  Ian Lance Taylor  <iant@google.com>
19435
19436         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
19437         compiling with C++.
19438         * optabs.c (optab_table): Only use designated initializers if
19439         HAVE_DESIGNATED_INITIALIZERS is defined.
19440         (convert_optab_table): Likewise.
19441         (init_optabs): Always call init_insn_codes if
19442         HAVE_DESIGNATED_INITIALIZERS is not defined.
19443
19444 2009-06-09  Ian Lance Taylor  <iant@google.com>
19445
19446         * targhooks.c (default_builtin_vectorized_function): Change fn
19447         parameter to unsigned int.
19448         (default_builtin_vectorized_conversion): Change code parameter to
19449         unsigned int.
19450         (default_builtin_reciprocal): Change fn parameter to unsigned int.
19451         * targhooks.h: Update declarations.
19452         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
19453         parameter to unsigned int.
19454
19455         * c-typeck.c (comptypes_check_enum_int): New static function.
19456         (comptypes_internal): Add enum_and_int_p parameter.  Change all
19457         callers.
19458         (comp_target_types): Add location parameter.  Change all callers.
19459         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
19460         Change all callers.
19461         (function_types_compatible_p, type_lists_compatible_p): Likewise.
19462         (build_conditional_expr): Add colon_loc parameter.  Change all
19463         callers.
19464         (convert_for_assignment): Add location parameter.  Change all callers.
19465         * c-parser.c (c_parser_conditional_expression): Pass location of
19466         colon to build_conditional_expr.
19467         * c-tree.h (build_conditional_expr): Update declaration.
19468
19469 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
19470
19471         * graphite.c: Revert previous patch.
19472
19473 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
19474
19475         PR bootstrap/40103
19476         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
19477
19478 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
19479
19480         * tree-ssa-loop-prefetch.c
19481         (loop_prefetch_arrays): Fixed a portability problem in printf format
19482         string.
19483
19484 2009-06-09  Martin Jambor  <mjambor@suse.cz>
19485
19486         PR tree-optimization/40351
19487         * tree-sra.c (propagate_subacesses_accross_link): Check that a
19488         refrence to a potential artifical subaccess can be constructed.
19489
19490 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
19491
19492         * config/sh/sh-protos.h (sh_optimization_options): Declare.
19493         (sh_override_options): Likewise.
19494         * config/sh/sh.c: Include params.h.
19495         (sh_optimization_options): New.
19496         (sh_override_options): Likewise.
19497         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
19498         (OVERRIDE_OPTIONS): Use sh_override_options.
19499
19500 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
19501
19502         * dwarf2out.c (emit_cfa_remember): New variable.
19503         (add_fde_cfi): If emit_cfa_remember, recurse to add
19504         DW_CFA_remember_state first.
19505         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
19506         instead just set emit_cfa_remember.
19507
19508 2009-06-08  Jan Hubicka  <jh@suse.cz>
19509
19510         PR debug/40126
19511         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
19512
19513 2009-06-08  Jan Hubicka  <jh@suse.cz>
19514
19515         PR middle-end/39834
19516         * cgraphunit.c (save_inline_function_body): Do not copy transform
19517         hooks for saved inline bodies.
19518         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
19519         for given function.
19520
19521 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
19522
19523         * jump.c (returnjump_p): Handle delayed branches.  Add missing
19524         function comment.
19525
19526 2009-06-08  Jan Hubicka  <jh@suse.cz>
19527
19528         PR middle-end/40102
19529         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
19530         original node might've been modified.
19531         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
19532
19533 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
19534
19535         * tree-object-size.c (addr_object_size): Add OSI argument.
19536         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
19537         (compute_builtin_object_size, expr_object_size): Adjust callers.
19538         (plus_stmt_object_size): Call addr_object_size instead of
19539         compute_builtin_object_size.
19540
19541 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
19542             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
19543
19544         * tree-ssa-loop-prefetch.c
19545         (gather_memory_references): Introduced a counter for the number of
19546         memory references.
19547         (anything_to_prefetch_p): Introduced a counter for the number of
19548         prefetches.
19549         (is_loop_prefetching_profitable): New function with a cost model
19550         for prefetching.
19551         (loop_prefetch_arrays): Use the new cost model to determine if
19552         prefetching is profitable.
19553         * params.def (MIN_INSN_TO_PREFETCH_RATIO,
19554         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
19555         * params.h (MIN_INSN_TO_PREFETCH_RATIO,
19556         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
19557         * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
19558         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
19559
19560 2009-06-08  Michael Matz  <matz@suse.de>
19561
19562         PR debug/40012
19563         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
19564         partitions use the same.
19565         (expand_one_var): Deal with DECL_RTL sometimes begin set also
19566         for basevars of SSA_NAMEs.
19567         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
19568         to not expand them twice.
19569         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
19570         multiple places.
19571
19572 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
19573
19574         * common.opt (fcompare-debug=, fcompare-debug-second): New.
19575         (fdump-final-insns=, gtoggle): New.
19576         * doc/invoke.texi: Document them.
19577         * final.c (rest_of_clean_state): Dump final insn stream.
19578         * gcc.c (invoke_as): Hook in -fcompare-debug.
19579         (static_spec_functions): Add compare-debug-dump-opt,
19580         compare-debug-self-opt and compare-debug-auxbase-opt.
19581         (compare_debug, compare_debug_second, compare_debug_opt): New.
19582         (switches_debug_check, n_switches_debug_check): New.
19583         (debug_auxbase_opt, debug_check_temp_file): New.
19584         (process_command): Handle -fno-compare-debug, -fcompare-debug and
19585         -fcompare-debug=*.
19586         (do_self_spec): Handle arguments after switches.
19587         (do_spec_1): Add .gk extension to temp file basenames for compare.
19588         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
19589         (cc1_options): Use it instead of normal auxbase computation for
19590         the second compare-debug compilation.
19591         (compare_files): New.
19592         (main): Set up and implement compare debug mode.
19593         (compare_debug_dump_opt_spec_function): New.
19594         (compare_debug_self_opt_spec_function): New.
19595         (compare_debug_auxbase_opt_spec_function): New.
19596         * toplev.c (process_options): Handle flag_gtoggle,
19597         flag_dump_final_insns.
19598         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
19599         during -fcompare-debug-second compilation.
19600
19601 2009-06-07  Ian Lance Taylor  <iant@google.com>
19602
19603         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
19604         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
19605
19606         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
19607         with no default node.  Change warning with %H to warning_at.
19608         Don't clear warn_switch around case checking.
19609         * doc/invoke.texi (Warning Options): Clarify distinction between
19610         -Wswitch and -Wswitch-enum.
19611
19612 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19613
19614         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
19615
19616 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19617
19618         * gbl-ctors.h: Add header guard.
19619
19620 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19621
19622         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
19623         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
19624         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
19625         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
19626         prototypes for removed functions.
19627         (expressions_equal_p): Move to ...
19628         * tree-ssa-sccvn.h: ... here and ...
19629         * matrix-reorg.c: ... adjust includes.
19630
19631 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19632
19633         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
19634
19635 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19636
19637         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
19638         (finish_function): Remove erroneous whitespace.
19639
19640 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19641
19642         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
19643         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
19644
19645 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19646
19647         * errors.c (internal_error): Commentary typo fix.
19648         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
19649         * tree-ssa-pre.c: Ditto.
19650
19651 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19652
19653         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
19654         them is supposed to hold actual statements.
19655
19656 2009-06-06  Ian Lance Taylor  <iant@google.com>
19657
19658         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
19659         empty statements can now have attributes.
19660
19661 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
19662
19663         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
19664         * config/mips/mips.md: Ditto.
19665
19666 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
19667
19668         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
19669         _RELOCATABLE.
19670         (__eabi_uconvert): Likewise.
19671
19672 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
19673
19674         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
19675         CFI_* definitions with IN_GCC.
19676
19677 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
19678
19679         * xcoffout.h (xcoffout_source_line): Update prototype.
19680
19681 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19682
19683         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
19684         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
19685
19686 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
19687
19688         PR middle-end/40340
19689         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
19690         inlined_function_outer_scope_p blocks for artificial inlines
19691         even at -g0/-g1.
19692         * tree.c (tree_nonartificial_location): Rewrite using
19693         block_nonartificial_location.
19694
19695 2009-06-05  Revital Eres  <eres@il.ibm.com>
19696             Leehod Baruch  <leehod@il.ibm.com>
19697
19698         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
19699         (expand_expr_real_1): Remove comment.
19700         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
19701         Vectorize misaligned access when the target supports it.
19702         (vect_supportable_dr_alignment): Check for unaligned access support.
19703         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
19704         and remove asset.
19705
19706 2009-06-05  Julian Brown  <julian@codesourcery.com>
19707
19708         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
19709         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
19710
19711 2009-06-05  Richard Guenther  <rguenther@suse.de>
19712
19713         PR bootstrap/40350
19714         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
19715         as possibly unused.
19716
19717 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
19718
19719         * config/s390/s390.c (global_not_special_regno_p): New static inline.
19720         (save_gprs): Don't tell unwinder when a global register is saved.
19721         (s390_emit_epilogue): Emit needed epilogue unwind info.
19722
19723 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
19724
19725         * dwarf2out.c (deferred_asm_name): New.
19726         (add_name_and_src_coords_attributes): Defer creation of
19727         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
19728         computed yet.
19729         (move_linkage_attr): New.
19730         (dwarf2out_finish): Revisit deferrals and emit attributes at the
19731         right place.
19732
19733 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
19734
19735         * tree-nested.c (finalize_nesting_tree_1): Declare the
19736         frame_decl in the binding tree.
19737
19738 2009-06-04  Cary Coutant  <ccoutant@google.com>
19739
19740         * basic-block.h (struct basic_block_def): Add discriminator field.
19741         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
19742         callers.
19743         * debug.c (do_nothing_debug_hooks): Add additional entry.
19744         (debug_nothing_int_charstar_int): New function.
19745         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
19746         (debug_nothing_int_charstar_int): New declaration.
19747         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
19748         discriminator value in .loc directive.
19749         * final.c (last_discriminator): New variable.
19750         (discriminator): New variable.
19751         (final_start_function): Initialize above variables, pass current
19752         discriminator to debug hook.
19753         (notice_source_line): Check for discriminator change.
19754         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
19755         * sdbout.c (sdbout_source_line): New parameter.
19756         * tree-cfg.c (struct locus_discrim_map): New structure type.
19757         (discriminator_per_locus): New hash table.
19758         (build_gimple_cfg): Allocate and free discriminator hash table.
19759         (make_edges): Call assign_discriminator.
19760         (locus_map_hash): New function.
19761         (locus_map_eq): New function.
19762         (next_discriminator_for_locus): New function.
19763         (same_line_p): New function.
19764         (assign_discriminator): New function.
19765         (make_cond_expr_edges): Call assign_discriminator.
19766         (make_gimple_switch_edges): Likewise.
19767         (first_non_label_stmt): New function.
19768         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
19769         all callers.
19770         * xcoffout.c (xcoffout_source_line): Add new parameter.
19771
19772         * configure.ac (gcc_cv_as_discriminator): New configury check for
19773         gas support for discriminator.
19774         * configure: Regenerate.
19775         * config.in: Regenerate.
19776
19777 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19778
19779         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
19780         val after checking for integers.
19781
19782 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
19783
19784         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
19785         X64_REGPARM_MAX.
19786         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
19787         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
19788         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
19789         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
19790         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
19791         X64_SSE_REGPARM_MAX.
19792         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
19793         X64_SSE_REGPARM_MAX.
19794
19795 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
19796
19797         * gcc.c (report_times_to_file): New.
19798         (execute): Implement it.
19799         (process_command): Support -time=.
19800         * doc/invoke.texi: Document it.
19801
19802 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
19803
19804         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
19805         that have value exprs.
19806
19807 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
19808
19809         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
19810         declarations for constants until...
19811         (dw2_output_indirect_constant_1): ... this point.
19812
19813 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
19814
19815         PR target/10242
19816         * arm.md (arm_addsi3): Don't try to split an add with an
19817         eliminable register until after reload has completed.
19818
19819 2009-06-03  Ian Lance Taylor  <iant@google.com>
19820
19821         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
19822         * genattrtab.c (write_length_unit_log): Likewise.
19823         * genchecksum.c (dosum): Likewise.
19824         * gengtype.c (write_rtx_next): Likewise.
19825         (finish_root_table, write_roots): Likewise.
19826         * gimple.c (gimple_ops_offset_): Likewise.
19827         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
19828         * config/arc/arc.c (arc_attribute_table): Likewise.
19829         * config/arm/arm.c (arm_attribute_table): Likewise.
19830         * config/avr/avr.c (avr_attribute_table): Likewise.
19831         * config/crx/crx.c (crx_attribute_table): Likewise.
19832         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
19833         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
19834         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
19835         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
19836         * config/sh/sh.c (sh_attribute_table): Likewise.
19837         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
19838         * config/spu/spu.c (spu_attribute_table): Likewise.
19839         * config/v850/v850.c (v850_attribute_table): Likewise.
19840
19841         * config/alpha/alpha.c (vms_attribute_table): Make static.
19842         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
19843         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
19844         * config/mips/mips.c (mips_attribute_table): Likewise.
19845
19846         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
19847         $(SYSTEM_H).
19848         (cc1-checksum.o): Likewise.
19849
19850 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
19851
19852         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
19853
19854 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
19855
19856         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
19857         insn if it is changing sp.  Use gen_add3_insn instead of
19858         conditionally gen_addsi3 and gen_adddi3.
19859         (offset_below_red_zone_p): New static inline function.
19860         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
19861         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
19862         * config/rs6000/ppc-asm.h: Include auto-host.h.
19863         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
19864         CFI_RESTORE): Define.
19865         * config/rs6000/crtresxgpr.asm: Add unwind info.
19866         * config/rs6000/crtresxfpr.asm: Likewise.
19867         * config/rs6000/crtresgpr.asm: Likewise.
19868         * config/rs6000/crtresfpr.asm: Likewise.
19869         * config/rs6000/crtsavgpr.asm: Likewise.
19870         * config/rs6000/crtsavfpr.asm: Likewise.
19871
19872         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
19873         argument of DWARF2_FRAME_REG_OUT macros.
19874
19875 2009-06-03  Julian Brown  <julian@codesourcery.com>
19876
19877         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
19878         words or less (including TImode) in core registers.
19879
19880 2009-06-03  Richard Guenther  <rguenther@suse.de>
19881
19882         PR middle-end/40328
19883         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
19884
19885 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
19886
19887         * statistics.c (statistics_counter_event): Do not record event
19888         in pass dump if its number == -1.
19889         (curr_statistics_hash): Add assert that we never get passes
19890         with static number == -1.
19891
19892 2009-06-03  Richard Guenther  <rguenther@suse.de>
19893             Andrey Belevantsev  <abel@ispras.ru>
19894
19895         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
19896         non-BLKmode arrays addressable.
19897
19898 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
19899
19900         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
19901         * config/m68k/m68k.h: ... here.
19902
19903 2009-06-03  Martin Jambor  <mjambor@suse.cz>
19904
19905         PR tree-optimization/40323
19906         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
19907         assignment.
19908
19909 2009-06-03  Richard Guenther  <rguenther@suse.de>
19910
19911         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
19912         consistently.
19913
19914 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
19915
19916         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
19917         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
19918         JUMP_TABLE_DATA_P where applicable.
19919         * config/sh/sh.c: Ditto.
19920         * config/sh/sh.h: Ditto.
19921         * config/sh/sh.md: Ditto.
19922         * config/sh/symbian.c: Ditto.
19923
19924 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
19925
19926         * config/i386/driver-i386.c (describe_cache): Optimize
19927         concatenation of strings.  Use snprintf instead of sprintf.
19928         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
19929         target when not compiling with GCC.
19930
19931 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
19932
19933         * config/sh/sh.c: Revert last change.
19934         (sh_expand_epilogue): Emit a blockage insn before the frame
19935         pointer adjustment unconditionally.
19936
19937 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19938
19939         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
19940         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
19941         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
19942         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
19943         to COLLECT_GCC_OPTIONS.
19944
19945 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19946
19947         * collect2.c (target_system_root): New variable.
19948         (main): Handle --sysroot=.
19949         (ignore_library): Strip the sysroot from the library path.
19950
19951 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19952
19953         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
19954         (collect2.o): Depend on collect2-aix.h.
19955         (collect2-aix.o): New rule.
19956         * collect2-aix.h: New file.
19957         * collect2-aix.c: Likewise.
19958         * collect2.c: Include collect2-aix.h.  Don't undefine
19959         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
19960         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
19961         Use TARGET_AIX_VERSION instead of _AIX51.
19962         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
19963         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
19964         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
19965         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
19966         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
19967
19968 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19969
19970         * collect2.c (ignore_library): Avoid premature post-increment
19971         and null deference.
19972
19973 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19974
19975         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
19976         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
19977         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
19978         CROSS_DIRECTORY_STRUCTURE too.
19979         (LINK_LIBG_SPEC): Likewise.
19980         (LIB_SPEC): Add %R to sysroot paths.
19981         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
19982         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
19983         * config/rs6000/aix51.h: As for aix43.h.
19984         * config/rs6000/aix52.h: Likewise.
19985         * config/rs6000/aix53.h: Likewise.
19986         * config/rs6000/aix61.h: Likewise.
19987         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
19988         to the beginning of sysroot paths.
19989
19990 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19991
19992         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
19993         INSN_LISTs that are out of the REG_NOTE range.
19994
19995 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19996
19997         * loop-unroll.c (struct iv_to_split): Add pointer to next.
19998         (struct var_to_expand): Likewise.
19999         (struct opt_info): Add head and tail for linked lists of the above.
20000         (analyze_insn_to_expand_var): Initialize next.
20001         (analyze_iv_to_split_insn): Likewise.
20002         (analyze_insns_in_loop): Create linked lists.
20003         (allocate_basic_variable): Simplify for use without hash table.
20004         (insert_var_expansion_initialization): Likewise, make it type-safer.
20005         (combine_var_copies_in_loop_exit): Likewise.
20006         (apply_opt_in_copies): Walk lists rather than hash tables.
20007         (release_var_copies): Simplified and inlined by hand into...
20008         (free_opt_info): ... this function.
20009
20010 2009-06-02  Richard Guenther  <rguenther@suse.de>
20011
20012         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
20013         for field decls.
20014
20015 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
20016
20017         * cfgexpand.c (gimple_expand_cfg): Discard the source location
20018         only for builtins that are not overridden.
20019
20020 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
20021
20022         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
20023         label string.
20024
20025 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
20026
20027         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
20028
20029 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
20030
20031         * combine.c (move_deaths): Compare LUIDs within the same BB only.
20032
20033 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
20034
20035         * common.opt (fdump-unnumbered-links): New.
20036         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
20037         * print-rtl.c (flag_dump_unnumbered_links): New.
20038         (print_rtx): Test it.
20039
20040 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
20041
20042         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
20043         push/pop multiple to 8-byte alignment.
20044
20045 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
20046
20047         * config/i386/i386.c (queued_cfa_restores): New static variable.
20048         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
20049         functions.
20050         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
20051         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
20052         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
20053         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
20054         note unconditionally.
20055         (ix86_emit_restore_regs_using_mov): Likewise.
20056         (ix86_emit_restore_sse_regs_using_mov): Likewise.
20057         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
20058         it through to ix86_emit_restore_reg_using_pop.
20059         (ix86_emit_leave): Add RED_OFFSET argument.  Call
20060         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
20061         instead of adding REG_CFA_OFFSET note unconditionally.
20062         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
20063         the above functions.  Call ix86_add_queued_cfa_restore_notes when
20064         needed.
20065
20066         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
20067         force output of the label even for dwarf2out_do_cfi_asm.
20068         (add_fde_cfi): If -g2 and above and cfi might change CFA,
20069         force creation of CFI label and chain DW_CFA_set_loc jumping to it
20070         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
20071         caller.
20072         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
20073         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
20074         dwarf2out_cfi_label callers.
20075         * tree.h (dwarf2out_cfi_label): Adjust prototype.
20076         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
20077         Adjust dwarf2out_cfi_label callers.
20078         * config/vax/vax.c (vax_output_function_prologue): Likewise.
20079
20080         * config/i386/i386.h (struct machine_cfa_state,
20081         struct machine_function): Guard with ifndef USED_FOR_TARGET
20082         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
20083
20084         PR other/40024
20085         * emutls.c (__emutls_get_address): Change arr->size to mean number
20086         of allocated arr->data entries instead of # of slots + 1.
20087
20088         PR middle-end/40316
20089         * recog.c (peep2_reinit_state): New function.
20090         (peephole2_init_state): Use it at the end of a basic block and also
20091         when seeing a RTX_FRAME_RELATED_P insn.
20092
20093 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
20094
20095         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
20096         fixuns_truncrfdi2): New.
20097         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
20098         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
20099         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
20100         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
20101         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
20102         *recip_approx): Remove.
20103         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
20104         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
20105         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
20106         move to div.md.
20107         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
20108         setf_exp_rf): New.
20109
20110 2009-06-01  Ian Lance Taylor  <iant@google.com>
20111
20112         * attribs.c (register_attribute): Use CONST_CAST.
20113         * collect2.c (main): Use CONST_CAST2.
20114         (scan_prog_file): Likewise.
20115         * gcc.c (process_command, main): Likewise.
20116         * toplev.c (toplev_main): Likewise.
20117
20118         * c-typeck.c (handle_warn_cast_qual): New static function,
20119         partially broken out of build_c_cast.
20120         (build_c_cast): Call handle_warn_cast_qual.
20121         * doc/invoke.texi (Warning Options): Document new effect of
20122         -Wcast-qual.
20123
20124 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
20125
20126         * diagnostic.c (diagnostic_build_prefix): Always print columns.
20127         (diagnostic_report_current_module): Print columns.
20128         * common.opt (flag_show_column): Enable by default.
20129
20130 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
20131
20132         * alias.c (find_base_term): Check for NULL term before returning.
20133
20134 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
20135
20136         Revert due to PR40320:
20137         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
20138         * calls.c (emit_library_call_value_1): Don't force_operand for move
20139         and push insns.
20140
20141 2009-06-01  Olivier Hainque  <hainque@adacore.com>
20142             Eric Botcazou  <ebotcazou@adacore.com>
20143
20144         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
20145         to be processed as a bitfield for constructor output purposes.
20146         * output.h (initializer_constant_valid_for_bitfield_p): Declare
20147         new function.
20148         * varasm.c (oc_local_state): New type, output_constructor
20149         local state to support communication with helpers.
20150         (oc_outer_state): New type, output_constructor outer state of
20151         relevance in recursive calls.
20152         (output_constructor_array_range): New output_constructor helper,
20153         extracted code for an array range element.
20154         (output_constructor_regular_field): New output_constructor helper,
20155         extracted code for an element that is not a bitfield.
20156         (output_constructor_bitfield): New output_constructor helper,
20157         extracted code for a bitfield element.  Accept an OUTER state
20158         argument for recursive processing.  Recurse on record or array
20159         CONSTRUCTOR values, possibly past noop conversions.
20160         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
20161         VALUE is a valid constant-valued expression for use in a static
20162         bit-field initializer.
20163         (output_constructor): Rework to use helpers.  Accept and honor an
20164         OUTER state argument for recursive calls.  Return total size.  Be
20165         prepared for nested constructors initializing bitfields.
20166         (output_constant): Feed OUTER in calls to output_constructor.
20167
20168 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
20169
20170         * calls.c (emit_library_call_value_1): Don't force_operand for move
20171         and push insns.
20172
20173 2009-06-01  Nick Clifton  <nickc@redhat.com>
20174
20175         * doc/invoke.texi (IA-64 Options): Fix typo.
20176
20177 2009-06-01  Ira Rosen  <irar@il.ibm.com>
20178
20179         PR tree-optimization/39129
20180         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
20181         printed message.
20182         (vect_do_peeling_for_loop_bound): Use
20183         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
20184         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
20185         (vect_loop_versioning): Likewise.
20186         (vect_create_cond_for_alias_checks): Fix indentation.
20187         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
20188         macros.
20189         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
20190         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
20191         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
20192         "control flow in loop".
20193         (vect_estimate_min_profitable_iters): Use
20194         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
20195         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
20196         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
20197         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
20198         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
20199         statement belongs to a group of strided accesses with the exact code
20200         check.
20201         (vectorizable_load): Likewise.
20202         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
20203         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
20204
20205 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
20206
20207         * config/freebsd-stdint.h: New file.
20208         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
20209         Add freebsd-stdint.h to tm_file.
20210
20211 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
20212
20213         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
20214         (thumb2_extendhidi2): Likewise.
20215
20216 2009-05-31  Ian Lance Taylor  <iant@google.com>
20217
20218         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
20219
20220 2009-05-31  Ian Lance Taylor  <iant@google.com>
20221
20222         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
20223         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
20224         (ipa-reference.o): Depend upon gt-ipa-reference.h.
20225
20226 2009-05-31  Jason Merrill  <jason@redhat.com>
20227
20228         * tree-pretty-print.c (print_call_name): Take the callee, not the
20229         call itself.  Make non-static.  Use dump_function_name for functions.
20230         (dump_generic_node): Adjust.
20231         * diagnostic.h: Declare print_call_name.
20232         * gimple-pretty-print.c (dump_gimple_call): Use it.
20233
20234 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
20235
20236         * config/sh/sh.md (ashldi3_std): New define_expand.
20237         (ashldi3): Use it.
20238
20239 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
20240
20241         PR target/40313
20242         * config/sh/sh.c: Include debug.h.
20243         (sh_expand_epilogue): Emit a blockage insn before the frame
20244         pointer adjustment also when dwarf2out_do_frame returns true.
20245
20246 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
20247
20248         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
20249         (thumb2_extendqidi2): New pattern.
20250
20251 2009-05-31  Ira Rosen  <irar@il.ibm.com>
20252
20253         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
20254         mark phis for renaming.
20255         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
20256         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
20257         Call mark_sym_for_renaming.
20258         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
20259         * tree-vect-loop.c (vect_transform_loop): Remove
20260         vect_memsyms_to_rename initialization and a call to
20261         mark_set_for_renaming.
20262
20263 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
20264
20265         PR middle-end/40304
20266         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
20267         frame related even if !set_cfa && style < 0.
20268
20269 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
20270
20271         * config/i386/mingw-tls.c: New file.
20272         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
20273         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
20274         defining _WIN32 but not __CYGWIN__.
20275
20276 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20277
20278         * configure.ac: Add MPC support.
20279
20280         * config.in, configure: Regenerate.
20281
20282 2009-05-29  Richard Henderson  <rth@redhat.com>
20283
20284         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
20285         NOTE_INSN_BASIC_BLOCK.
20286         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
20287         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
20288         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
20289         to be deleted.
20290         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
20291         add in_use field.
20292         (add_cfi): Disable check redefining cfa away from drap.
20293         (lookup_cfa_1): Add remember argument; handle remember/restore.
20294         (lookup_cfa): Pass remember argument.
20295         (cfa_remember): New.
20296         (compute_barrier_args_size_1): Remove sibcall check.
20297         (dwarf2out_frame_debug_def_cfa): New.
20298         (dwarf2out_frame_debug_adjust_cfa): New.
20299         (dwarf2out_frame_debug_cfa_offset): New.
20300         (dwarf2out_frame_debug_cfa_register): New.
20301         (dwarf2out_frame_debug_cfa_restore): New.
20302         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
20303         (dwarf2out_begin_epilogue): New.
20304         (dwarf2out_frame_debug_restore_state): New.
20305         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
20306         DW_CFA_restore_state.
20307         (output_cfi_directive): Likewise.
20308         (convert_cfa_to_fb_loc_list): Likewise.
20309         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
20310         * dwarf2out.h: Update.
20311         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
20312         (copy_insn_1): Early out for null.
20313         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
20314         and dwarf2out_frame_debug_restore_state.
20315         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
20316         (prologue_insn_hash, epilogue_insn_hash): New.
20317         (free_after_compilation): Adjust freeing accordingly.
20318         (record_insns): Create hash table if needed; push insns into
20319         hash instead of array.
20320         (maybe_copy_epilogue_insn): New.
20321         (contains): Search hash table instead of array.
20322         (sibcall_epilogue_contains): Remove.
20323         (thread_prologue_and_epilogue_insns): Split eh_return insns
20324         and mark them as epilogues.
20325         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
20326         scanning in terms of basic blocks.
20327         * insn-notes.def (CFA_RESTORE_STATE): New.
20328         * jump.c (returnjump_p_1): Accept EH_RETURN.
20329         (eh_returnjump_p_1, eh_returnjump_p): New.
20330         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
20331         CFA_REGISTER, CFA_RESTORE): New.
20332         * rtl.def (EH_RETURN): New.
20333         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
20334
20335         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
20336         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
20337
20338         * config/i386/i386.c (gen_push): Update cfa state.
20339         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
20340         add a CFA_ADJUST_CFA note.
20341         (ix86_dwarf_handle_frame_unspec): Remove.
20342         (ix86_expand_prologue): Update cfa state.
20343         (ix86_emit_restore_reg_using_pop): New.
20344         (ix86_emit_restore_regs_using_pop): New.
20345         (ix86_emit_leave): New.
20346         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
20347         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
20348         * config/i386/i386.h (struct machine_cfa_state): New.
20349         (ix86_cfa_state): New.
20350         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
20351         (eh_return_internal): Merge from eh_return_<mode>,
20352         use eh_return rtx, split w/ epilogue.
20353
20354 2009-05-29  Ian Lance Taylor  <iant@google.com>
20355
20356         * builtins.c (validate_gimple_arglist): Don't use va_arg with
20357         enum type.
20358         * calls.c (emit_library_call_value_1): Likewise.
20359
20360         * c-typeck.c (c_build_va_arg): New function.
20361         * c-tree.h (c_build_va_arg): Declare.
20362         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
20363         instead of build_va_arg.
20364
20365 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
20366
20367         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
20368         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
20369         (ptr_difference_cost): Use affine combinations to compute it.
20370         (difference_cost): Likewise.
20371         (get_computation_cost_at): Compute more accurate cost for addresses
20372         if the ratio is a multiplier allowed in addresses.
20373         For non-addresses, consider that an additional offset or symbol is
20374         added only once.
20375
20376 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
20377
20378         * config/i386/i386.c (ix86_decompose_address): Avoid useless
20379         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
20380
20381         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
20382         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
20383         (prefix_rex): For UNIT_MMX don't imply the prefix by default
20384         if MODE_DI.
20385         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
20386         to 1 for TYPE_SSE{IADD1,CVT1}.
20387         (prefix_vex_imm8): Removed.
20388         (length_vex): Only pass 1 as second argument to
20389         ix86_attr_length_vex_default if prefix_extra is 0.
20390         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
20391         (length): For prefix vex computation use length_immediate
20392         attribute instead of prefix_vex_imm8.
20393         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
20394         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
20395         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
20396         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
20397         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
20398         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
20399         a space in between the operands.
20400         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
20401         if one operand is 0xff and the other one si, di, bp or sp.
20402         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
20403         other one si, di, bp or sp.
20404         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
20405         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
20406         type and mode attributes.
20407         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
20408         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
20409         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
20410         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
20411         prefix_data16 attribute iff MODE_DF.
20412         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
20413         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
20414         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
20415         constm128_operand in length_immediate computation.
20416         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
20417         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
20418         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
20419         length_immediate attribute to 1.
20420         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
20421         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
20422         for certain alternatives.
20423         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
20424         prefix_data16 attribute if MODE_V1DF.
20425         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
20426         length_immediate to 1.
20427         (set_got_rex64, set_rip_rex64): Remove length attribute, set
20428         length_address to 4, set mode attribute to MODE_DI.
20429         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
20430         (fxam<mode>2_i387): Set length attribute to 4.
20431         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
20432         *prefetch_3dnow_rex): Override length_address attribute.
20433         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
20434         attributes.
20435         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
20436         (constm128_operand): Removed.
20437         * config/i386/i386.c (memory_address_length): For
20438         disp && !index && !base in 64-bit mode account for SIB byte if
20439         print_operand_address can't optimize disp32 into disp32(%rip)
20440         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
20441         for fs: or gs: segment.
20442         (ix86_attr_length_immediate_default): When checking if shortform
20443         is possible, truncate immediate to the length of the non-shortened
20444         immediate.
20445         (ix86_attr_length_address_default): Ignore MEM_P operands
20446         with X constraint.
20447         (ix86_attr_length_vex_default): Only check for DImode on
20448         GENERAL_REG_P operands.
20449         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
20450         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
20451         (sse_cvttps2pi): Clear prefix_rep attribute.
20452         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
20453         attribute.
20454         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
20455         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
20456         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
20457         iff operand 2 is const_int_operand.
20458         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
20459         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
20460         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
20461         instead of vex.
20462         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
20463         prefix_data16.
20464         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
20465         prefix_data16 attribute for movlpd and movhpd instructions.
20466         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
20467         length_immediate for shufpd instruction.
20468         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
20469         (avx_cmpp<avxmodesuffixf2c><mode>3,
20470         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
20471         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
20472         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
20473         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
20474         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
20475         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
20476         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
20477         prefix_data16 attribute for the first alternative to 1.
20478         (*avx_loadlps): Override length_immediate for the first alternative.
20479         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
20480         attributes for second alternative.
20481         (*vec_concatv2sf_sse4_1): Override length_immediate and
20482         prefix_data16 attributes for second alternative.
20483         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
20484         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
20485         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
20486         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
20487         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
20488         prefix_data16 and length_immediate to 1.
20489         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
20490         to 1.
20491         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
20492         prefix_extra attribute for variants that don't have 0f prefix alone.
20493         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
20494         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
20495         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
20496         *sse4_1_pextrd): Set length_immediate to 1.
20497         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
20498         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
20499         to 1.
20500         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
20501         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
20502         length_immediate to 1 for second alternative.
20503         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
20504         prefix_extra and length_immediate attributes for the first
20505         alternative.
20506         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
20507         first alternative.
20508         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
20509         to 1 for the first and third alternative.
20510         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
20511         alternative.
20512         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
20513         attribute.
20514         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
20515         attribute to 0.
20516         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
20517         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
20518         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
20519         *avx_psign<mode>3): Set prefix_extra attribute to 1.
20520         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
20521         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
20522         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
20523         ssse3_psign<mode>3): Override prefix_rex attribute.
20524         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
20525         (ssse3_palignrti): Override length_immediate to 1.
20526         (ssse3_palignrdi): Override length_immediate to 1, override
20527         prefix_rex attribute.
20528         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
20529         (sse4a_extrqi): Override length_immediate to 2.
20530         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
20531         (sse4a_insertq): Override prefix_data16 to 0.
20532         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
20533         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
20534         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
20535         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
20536         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
20537         and length_immediate to 1.
20538         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
20539         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
20540         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
20541         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
20542         and length_immediate to 1.
20543         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
20544         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
20545         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
20546         avx_ptest256): Override prefix_extra to 1.
20547         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
20548         Override prefix_data16 and length_immediate to 1.
20549         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
20550         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
20551         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
20552         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
20553         prefix_data16 to 0 and prefix_extra to 2.
20554         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
20555         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
20556         attribute.
20557         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
20558         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
20559         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
20560         and prefix_extra to 2.
20561         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
20562         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
20563         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
20564         avx_vpermilvar<mode>3,
20565         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
20566         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
20567         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
20568         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
20569         Override prefix_extra to 1.
20570         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
20571         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
20572         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
20573         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
20574         prefix_extra and length_immediate to 1.
20575         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
20576         modrm to 0.
20577         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
20578         to 1 for the first alternative.
20579         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
20580         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
20581         cases.
20582         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
20583         *movv2sf_internal_avx, *movv2sf_internal): Override
20584         prefix_rep attribute for certain alternatives.
20585         (*mov<mode>_internal): Override prefix_rep or prefix_data16
20586         attributes for certain alternatives.
20587         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
20588         attributes for certain alternatives.
20589         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
20590         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
20591         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
20592         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
20593         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
20594         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
20595         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
20596         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
20597         length_immediate to 1 if operand 2 is const_int_operand.
20598         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
20599         *vec_extractv2si_1): Set length_immediate attribute to 1.
20600         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
20601         using old 3DNOW insn rather than SSE/3DNOW_A.
20602         (mmx_emms, mmx_femms): Clear modrm attribute.
20603
20604 2009-05-29  Martin Jambor  <mjambor@suse.cz>
20605
20606         * tree-sra.c:  New implementation of SRA.
20607
20608         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
20609         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
20610         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
20611         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
20612         (SRA_MAX_STRUCTURE_COUNT): Removed.
20613         (SRA_FIELD_STRUCTURE_RATIO): Removed.
20614         * doc/invoke.texi (sra-max-structure-size): Removed.
20615         (sra-field-structure-ratio): Removed.
20616
20617 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
20618
20619         PR middle-end/40291
20620         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
20621         before expansion.
20622
20623 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
20624
20625         PR rtl-optimization/40101
20626         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
20627         seqno.  Adjust comment.
20628         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
20629         inserting bookkeeping before a jump, the jump is not scheduled.
20630         When no positive seqno found, provide a value.  Add comment.
20631
20632 2009-05-29  Richard Guenther  <rguenther@suse.de>
20633
20634         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
20635         short-cutting on the first component.
20636
20637 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
20638
20639         PR middle-end/39958
20640         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
20641         for trees other than decls/types.
20642
20643 2009-05-29  Richard Guenther  <rguenther@suse.de>
20644
20645         * tree-ssa-operands.c (get_expr_operands): Do not handle
20646         INDIRECT_REFs in the handled-component case.  Remove
20647         unused get_ref_base_and_extent case.
20648         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
20649         tree_low_cst and host_integerp where possible.
20650         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
20651         codes for equivalence.
20652         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
20653
20654 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
20655
20656         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
20657         to tmake_file for i[34567]86-*-cygwin*.
20658
20659 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
20660
20661         PR target/40017
20662         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
20663         (altivec_categorize_keyword, init_vector_keywords,
20664         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
20665         similar to bool.
20666
20667 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
20668
20669         * tree.c (handle_dll_attribute): Check if node is
20670         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
20671
20672 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
20673
20674         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
20675         component.
20676         (thumb2_zero_extendqidi2): Likewise.
20677
20678 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
20679
20680         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
20681         instead of gen_movrt.
20682         * config/sh/sh.md (movrt): Remove.
20683
20684 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
20685
20686         * doc/invoke.texi (IA-64 Options):
20687         Add -msdata, -mfused-madd, -mno-inline-float-divide,
20688         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
20689         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
20690         -msched-prefer-non-control-spec-insns,
20691         -msched-stop-bits-after-every-cycle,
20692         -msched-count-spec-in-critical-path,
20693         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
20694         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
20695         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
20696         and -msched-spec-verbose.
20697
20698 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
20699
20700         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
20701         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
20702         error if used.
20703         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
20704
20705 2009-05-28  Richard Guenther  <rguenther@suse.de>
20706
20707         * tree-ssa-alias.c (ao_ref_init): New function.
20708         (ao_ref_base): Likewise.
20709         (ao_ref_base_alias_set): Likewise.
20710         (ao_ref_alias_set): Likewise.
20711         (refs_may_alias_p_1): Change signature.
20712         (refs_may_alias_p): Adjust.
20713         (refs_anti_dependent_p): Likewise.
20714         (refs_output_dependent_p): Likewise.
20715         (call_may_clobber_ref_p_1): Change signature.
20716         (call_may_clobber_ref_p): Adjust.
20717         (stmt_may_clobber_ref_p_1): New function split out from ...
20718         (stmt_may_clobber_ref_p): ... here.
20719         (maybe_skip_until): Adjust signature.
20720         (get_continuation_for_phi): Likewise.
20721         (walk_non_aliased_vuses): Likewise.
20722         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
20723         (ao_ref_init): Declare.
20724         (ao_ref_base): Likewise.
20725         (ao_ref_alias_set): Likewise.
20726         (stmt_may_clobber_ref_p_1): Likewise.
20727         (walk_non_aliased_vuses): Adjust.
20728         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
20729         (get_ref_from_reference_ops): remove.
20730         (vn_reference_lookup_2): Adjust signature.
20731         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
20732         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
20733         (vn_reference_lookup): Adjust.
20734         (vn_reference_insert): Likewise.
20735         (vn_reference_insert_pieces): Adjust signature.
20736         (visit_reference_op_call): Adjust.
20737         * tree-ssa-pre.c (get_expr_type): Simplify.
20738         (phi_translate_1): Adjust.
20739         (compute_avail): Likewise.
20740         (translate_vuse_through_block): Do not re-build trees.
20741         (value_dies_in_block_x): Likewise.
20742         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
20743         fields.
20744         (vn_reference_lookup_pieces): Adjust declaration.
20745         (vn_reference_insert_pieces): Likewise.
20746
20747 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
20748
20749         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
20750         with checking disabled.
20751
20752 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
20753
20754         PR target/37216
20755
20756         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
20757         macro definition for support of three-operand format aligned
20758         .comm directive in assembler on cygwin/pe/mingw target OS.
20759         * configure:  Regenerate.
20760         * config.h:  Regenerate.
20761
20762         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
20763         aligned form of .comm directive if -mpe-aligned-commons is in effect.
20764         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
20765
20766         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
20767         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
20768
20769 2009-05-28  Ira Rosen  <irar@il.ibm.com>
20770
20771         PR tree-optimization/40254
20772         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
20773         in analysis of basic blocks.
20774
20775 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
20776
20777         PR middle-end/33699
20778         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
20779         * target-def.h (TARGET_CONST_ANCHOR): New macro.
20780         (TARGET_INITIALIZER): Use it.
20781         * cse.c (CHEAPER): Move it up to the other macros.
20782         (insert): Rename this ...
20783         (insert_with_costs): ... to this.  Add cost parameters.  Update
20784         function comment.
20785         (insert): New function.  Call insert_with_costs.
20786         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
20787         find_reg_offset_for_const, try_const_anchors): New functions.
20788         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
20789         when using a const-anchor.  Call insert_const_anchors.
20790         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
20791         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
20792
20793 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
20794
20795         * tree-inline.c (remap_decls): Enable nonlocalized variables
20796         when not optimizing.
20797
20798 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
20799
20800         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
20801         Simplify other tests involving optimize.
20802
20803 2009-05-27  Tom Tromey  <tromey@redhat.com>
20804
20805         * unwind-dw2.c (_Unwind_DebugHook): New function.
20806         (uw_install_context): Call _Unwind_DebugHook.
20807
20808 2009-05-27  Tom Tromey  <tromey@redhat.com>
20809
20810         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
20811
20812 2009-05-27  Ian Lance Taylor  <iant@google.com>
20813
20814         * Makefile.in (LINKER, LINKER_FLAGS): Define.
20815         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
20816         (ALL_LINKERFLAGS): Define.
20817         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
20818         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
20819         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
20820         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
20821         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
20822         $(LINKER_FOR_BUILD).
20823         (build/gcov-iov$(build_exeext)): Likewise.
20824
20825 2009-05-27  Julian Brown  <julian@codesourcery.com>
20826
20827         * gcse.c (target.h): Include.
20828         (can_assign_to_reg_without_clobbers_p): Check that the target allows
20829         copy of argument to a pseudo register.
20830
20831 2009-05-27  Diego Novillo  <dnovillo@google.com>
20832
20833         * tree-ssa-live.c (dump_scope_block): Document arguments.
20834         (dump_scope_blocks): Document.
20835         (debug_scope_blocks): New.
20836         * tree-flow.h (debug_scope_blocks): Declare.
20837
20838 2009-05-21  Denis Chertykov  <denisc@overta.ru>
20839
20840         * doc/contrib.texi (Contributors): Add myself to the list.
20841
20842 2009-05-27  Olivier Hainque  <hainque@adacore.com>
20843
20844         * expr.c (target_align): New function.  Alignment the TARGET of an
20845         assignment may be assume to have.
20846         (highest_pow2_factor_for_target): Use it instead of relying on
20847         immediate tree attributes of TARGET, not necessarily honored when
20848         intermediate bitfields are involved.
20849
20850 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
20851
20852         PR target/40266
20853         * config/i386/driver-i386.c (host_detect_local_cpu): Support
20854         AVX, SSE4, AES, PCLMUL and POPCNT.
20855
20856 2009-05-27  Diego Novillo  <dnovillo@google.com>
20857
20858         * tree-pretty-print.c (dump_location): New.
20859         (dump_generic_node): Call it.
20860         Factor code to handle BLOCK nodes ...
20861         (dump_block_node): ... here.
20862
20863 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
20864
20865         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
20866         with it.
20867         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
20868         included.
20869         * gcc-plugin.h: Include config.h and system.h.
20870         (IN_GCC): Define if not defined.
20871
20872 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
20873
20874         PR middle-end/40249
20875         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
20876         with -fno-inline.
20877
20878 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
20879
20880         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
20881         applicable.
20882         * config/m32r/m32r.h: Ditto.
20883         * config/m32r/m32r.md: Ditto.
20884         * config/m32r/predicates.md: Ditto.
20885
20886 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
20887
20888         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
20889
20890 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
20891
20892         * doc/plugins.texi
20893         (Loading plugins): typo.
20894         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
20895         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
20896         (Interacting with the GCC Garbage Collector): Added new section.
20897         (Giving information about a plugin): Added new section for
20898         PLUGIN_INFO.
20899         * ggc.h (ggc_register_root_tab): Added declaration.
20900         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
20901         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
20902         (register_callback): Improved comment in declaration.
20903         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
20904         (extra_root_vec) Added static variable for dynamic roots registration.
20905         (ggc_register_root_tab) Added new routine.
20906         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
20907         PLUGIN_GGC_MARKING event.
20908         * ggc-zone.c: Include plugin.h.
20909         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
20910         * ggc-page.c: Include plugin.h.
20911         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
20912         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
20913         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
20914         (register_callback): check lack of callbacks for
20915         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
20916         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
20917         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
20918         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
20919         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
20920         dependency on plugin.h.
20921         (plugin.o): Added dependency on ggc.h...
20922
20923 2009-05-26  Richard Guenther  <rguenther@suse.de>
20924
20925         PR middle-end/40248
20926         Revert
20927         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
20928         with mismatched comparison modes.
20929
20930         * expr.c (expand_expr_real_1): Expand the operand of a
20931         VIEW_CONVERT_EXPR in its natural mode.
20932
20933 2009-05-26  Ian Lance Taylor  <iant@google.com>
20934
20935         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
20936         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
20937         (ALL_COMPILERFLAGS): Define.
20938         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
20939         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
20940         (collect2$(exeext), collect2.o): Likewise.
20941         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
20942         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
20943         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
20944         (libbackend.o, intl.o, cppdefault.o): Likewise.
20945         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
20946         (build/%.o): Use $(COMPILER_FOR_BUILD).
20947         (build/gen%$(build_exeext)): Likewise.
20948         (build/gcov-iov$(build_exeext)): LIkewise.
20949         * config/t-darwin (darwin.o): Use $(COMPILER).
20950         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
20951         * config/t-sol2 (sol2-c.o): Likewise.
20952         (sol2.o): Likewise.
20953         * config/t-vxworks (vxworks.o): Likewise.
20954         * config/x-darwin (host-darwin.o): Likewise.
20955         * config/x-hpux (host-hpux.o): Likewise.
20956         * config/x-linux (host-linux.o): Likewise.
20957         * config/x-solaris (host-solaris.o): Likewise.
20958         * config/alpha/x-alpha (driver-alpha.o): Likewise.
20959         * config/arm/t-arm (arm-c.o): Likewise.
20960         * config/arm/t-pe (pe.o): Likewise.
20961         * config/arm/t-wince-pe (pe.o): Likewise.
20962         * config/i386/t-cygming (winnt.o): Likewise.
20963         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
20964         * config/i386/t-cygwin (cygwin1.o): Likewise.
20965         (cygwin2.o): Likewise.
20966         * config/i386/t-i386 (i386-c.o): Likewise.
20967         * config/i386/t-interix (winnt.o): Likewise.
20968         * config/i386/t-netware (netware.o): Likewise.
20969         * config/i386/t-nwld (nwld.o): Likewise.
20970         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
20971         * config/i386/x-i386 (driver-i386.o): Likewise.
20972         * config/i386/x-cygwin (host-cygwin.o): Likewise.
20973         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
20974         * config/ia64/t-ia64 (ia64-c.o): Likewise.
20975         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
20976         * config/mips/x-native (driver-native.o): Likewise.
20977         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
20978         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
20979         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
20980         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
20981         * config/score/t-score-elf (score7.o): Likewise.
20982         (score3.o): Likewise.
20983         * config/sh/t-sh (sh-c.o): Likewise.
20984         * config/sh/t-symbian (sh-c.o): Likewise.
20985         (symbian.o): Likewise.
20986         * config/spu/t-spu-elf (spu-c.o): Likewise.
20987         * config/v850/t-v850 (v850-c.o): Likewise.
20988         * config/v850/t-v850e (v850-c.o): Likewise.
20989
20990 2009-05-26  Richard Guenther  <rguenther@suse.de>
20991
20992         PR tree-optimization/40122
20993         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
20994         VECTOR_CSTs if possible.
20995         (fold_gimple_assign): Likewise.
20996
20997 2009-05-26  Richard Guenther  <rguenther@suse.de>
20998
20999         PR middle-end/40252
21000         * fold-const.c (fold_binary): Use the correct types for building
21001         rotates.
21002
21003 2009-05-26  Richard Guenther  <rguenther@suse.de>
21004
21005         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
21006         redundant calls to merge_alias_info.
21007         (bump_vector_ptr): Likewise.
21008         * tree-ssa-copy.c (merge_alias_info): Remove.
21009         (replace_exp_1): Remove call to merge_alias_info.
21010         (propagate_tree_value): Likewise.
21011         (fini_copy_prop): Propagate points-to info.
21012         * tree-flow.h (merge_alias_info): Remove.
21013
21014 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
21015
21016         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
21017
21018 2009-05-25  Jan Hubicka  <jh@suse.cz>
21019
21020         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
21021         * cgraph.h (struct inline_summary): New filed self_wize,
21022         size_inlining_benefit, self_time and time_inlining_benefit.
21023         (struct cgraph_global_info): Replace insns by time ans size fields.
21024         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
21025         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
21026         (ipcp_update_callgraph): Do not touch function bodies.
21027         * ipa-inline.c: Include except.h
21028         (MAX_TIME): New constant.
21029         (overall_insns): Remove.
21030         (leaf_node_p): New.
21031         (overall_size, max_benefit): New static variables.
21032         (cgraph_estimate_time_after_inlining): New function.
21033         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
21034         (cgraph_clone_inlined_nodes): Update size.
21035         (cgraph_mark_inline_edge): Update size.
21036         (cgraph_estimate_growth): Use size info.
21037         (cgraph_check_inline_limits): Check size.
21038         (cgraph_default_inline_p): Likewise.
21039         (cgraph_edge_badness): Compute badness based on benefit and size cost.
21040         (cgraph_decide_recursive_inlining): Check size.
21041         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
21042         and times.
21043         (cgraph_decide_inlining): Likewise.
21044         (cgraph_decide_inlining_incrementally): Likewise; honor
21045         PARAM_EARLY_INLINING_INSNS.
21046         (likely_eliminated_by_inlining_p): New predicate.
21047         (estimate_function_body_sizes): New function.
21048         (compute_inline_parameters): Use it.
21049         * except.c (must_not_throw_labels): New function.
21050         * except.h (must_not_throw_labels): Declare.
21051         * tree-inline.c (init_inline_once): Kill inlining_weigths
21052         * tree-ssa-structalias.c: Avoid uninitialized warning.
21053         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
21054         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
21055         (PARAM_INLINE_CALL_COST): Remove.
21056         (PARAM_EARLY_INLINING_INSNS): New.
21057
21058 2009-05-25  Richard Guenther  <rguenther@suse.de>
21059
21060         PR tree-optimization/36327
21061         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
21062         callback for reference translation or lookup at the point of may-defs.
21063         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
21064         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
21065         for union COMPONENT_REFs.
21066         (vn_reference_lookup_3): New callback.  Lookup from memset
21067         and CONSTRUCTOR assignment, translate through struct copies.
21068         (vn_reference_lookup_pieces): Make sure to not free the
21069         passed operands array.  Adjust walk_non_aliased_vuses call.
21070         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
21071         make sure we do not leak memory.
21072
21073 2009-05-25  Richard Guenther  <rguenther@suse.de>
21074
21075         * tree-ssa-alias.h (dump_points_to_solution): Declare.
21076         * tree-inline.c (expand_call_inline): Reset the escaped and
21077         callused solutions.
21078         * tree-ssa-structalias.c (pass_build_ealias): New.
21079         * tree-pass.h (pass_build_ealias): Declare.
21080         * passes.c (init_optimization_passes): Add PTA during
21081         early optimizations.
21082         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
21083         and CALLUSED solutions.
21084         (dump_points_to_solution): New function, split out from ...
21085         (dump_points_to_info_for): ... here.
21086         * tree-parloops.c (parallelize_loops): Reset the escaped and
21087         callused solutions.
21088
21089 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
21090
21091         PR bootstrap/40027
21092         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
21093         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
21094
21095 2009-05-25  Ira Rosen  <irar@il.ibm.com>
21096
21097         PR tree-optimization/40238
21098         * tree-vect-stmts.c (vect_init_vector): Insert initialization
21099         statements after basic block's labels.
21100         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
21101         to free the allocated memory.
21102
21103 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
21104
21105         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
21106         return address with a USE.
21107
21108 2009-05-24  Richard Guenther  <rguenther@suse.de>
21109
21110         PR middle-end/40233
21111         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
21112         array type from the main variant of the inner type.
21113
21114 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
21115
21116         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
21117         definition to bool (from int) to un-break build.
21118         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
21119
21120 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
21121
21122         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
21123         discard_stmt_changes): Delete.
21124         * tree-ssa-operands.c (scb_stack): Delete.
21125         (init_ssa_operands): Do not initialize it.
21126         (fini_ssa_operands): Do not free it.
21127         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
21128
21129         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
21130         update_stmt, remove the others.  Fix comments.
21131         * tree-dfa.c (optimize_stack_restore): Likewise.
21132         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
21133         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
21134         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
21135         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
21136         Likewise.
21137         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
21138         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
21139         (dom_opt_finalize_block): Likewise, adjusting access to
21140         stmts_to_rescan.
21141         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
21142         (stmts_to_rescan): Change item type to gimple.
21143         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
21144
21145 2009-05-24  Ira Rosen  <irar@il.ibm.com>
21146
21147         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
21148         * tree-pass.h (pass_slp_vectorize): New pass.
21149         * params.h (SLP_MAX_INSNS_IN_BB): Define.
21150         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
21151         * tree-vectorizer.c (timevar.h): Include.
21152         (user_vect_verbosity_level): Declare.
21153         (vect_location): Fix comment.
21154         (vect_set_verbosity_level): Update user_vect_verbosity_level
21155         instead of vect_verbosity_level.
21156         (vect_set_dump_settings): Add an argument. Ignore user defined
21157         verbosity if dump flags require higher level of verbosity. Print to
21158         stderr only for loop vectorization.
21159         (vectorize_loops): Update call to vect_set_dump_settings.
21160         (execute_vect_slp): New function.
21161         (gate_vect_slp): Likewise.
21162         (struct gimple_opt_pass pass_slp_vectorize): New.
21163         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
21164         access its members.
21165         (vec_info_for_bb): New function.
21166         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
21167         (VECTORIZATION_ENABLED): New macro.
21168         (SLP_ENABLED, SLP_DISABLED): Likewise.
21169         (vect_is_simple_use): Add bb_vec_info argument.
21170         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
21171         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
21172         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
21173         vect_schedule_slp, vect_analyze_slp): Likewise.
21174         (vect_analyze_stmt): Add slp_tree argument.
21175         (find_bb_location): Declare.
21176         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
21177         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
21178         (vect_analyze_loop_operations, vect_analyze_loop,
21179         get_initial_def_for_induction, vect_create_epilog_for_reduction,
21180         vect_finalize_reduction, vectorizable_reduction,
21181         vectorizable_live_operation, vect_transform_loop): Likewise.
21182         * tree-data-ref.c (dr_analyze_innermost): Update comment,
21183         skip evolution analysis if analyzing a basic block.
21184         (dr_analyze_indices): Likewise.
21185         (initialize_data_dependence_relation): Skip the test whether the
21186         object is invariant for basic blocks.
21187         (compute_all_dependences): Skip dependence analysis for data
21188         references in basic blocks.
21189         (find_data_references_in_stmt): Don't fail in case of invariant
21190         access in basic block.
21191         (find_data_references_in_bb): New function.
21192         (find_data_references_in_loop): Move code to
21193         find_data_references_in_bb and add a call to it.
21194         (compute_data_dependences_for_bb): New function.
21195         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
21196         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
21197         that STEP is 0.
21198         (vect_analyze_data_ref_dependence): Check for interleaving in case of
21199         unknown dependence in basic block and fail in case of dependence in
21200         basic block.
21201         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
21202         dependence instances from either loop or basic block vectorization
21203         info.
21204         (vect_compute_data_ref_alignment): Check if it is loop vectorization
21205         before calling nested_in_vect_loop_p.
21206         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
21207         dependence instances from either loop or basic block vectorization
21208         info.
21209         (vect_verify_datarefs_alignment): Likewise.
21210         (vect_enhance_data_refs_alignment): Adjust function calls.
21211         (vect_analyze_data_refs_alignment): Likewise.
21212         (vect_analyze_group_access): Fix printing. Skip different checks if
21213         DR_STEP is 0. Keep strided stores either in loop or basic block
21214         vectorization data structure. Fix indentation.
21215         (vect_analyze_data_ref_access): Fix comments, allow zero step in
21216         basic blocks.
21217         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
21218         dependence instances from either loop or basic block vectorization
21219         info.
21220         (vect_analyze_data_refs): Update comment. Call
21221         compute_data_dependences_for_bb to analyze basic blocks.
21222         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
21223         case of loop vectorization. In case of basic block vectorization use
21224         data-ref itself as a base.
21225         (vect_create_data_ref_ptr): In case of basic block vectorization:
21226         don't advance the pointer, add new statements before the current
21227         statement.  Adjust function calls.
21228         (vect_supportable_dr_alignment): Support only aligned accesses in
21229         basic block vectorization.
21230         * common.opt (ftree-slp-vectorize): New flag.
21231         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
21232         (vect_pattern_recog_1): Likewise.
21233         * tree-vect-stmts.c (process_use): Likewise.
21234         (vect_init_vector): Add new statements in the beginning of the basic
21235         block in case of basic block SLP.
21236         (vect_get_vec_def_for_operand): Adjust function calls.
21237         (vect_finish_stmt_generation): Likewise.
21238         (vectorizable_call): Add assert that it is loop vectorization, adjust
21239         function calls.
21240         (vectorizable_conversion, vectorizable_assignment): Likewise.
21241         (vectorizable_operation): In case of basic block SLP, take
21242         vectorization factor from statement's type and skip the relevance
21243         check. Adjust function calls.
21244         (vectorizable_type_demotion): Add assert that it is loop
21245         vectorization, adjust function calls.
21246         (vectorizable_type_promotion): Likewise.
21247         (vectorizable_store): Check for outer loop only in case of loop
21248         vectorization. Adjust function calls. For basic blocks, skip the
21249         relevance check and don't advance pointers.
21250         (vectorizable_load): Likewise.
21251         (vectorizable_condition): Add assert that it is loop vectorization,
21252         adjust function calls.
21253         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
21254         that it is not reduction, get vector type, call only supported
21255         functions, skip loop specific parts.
21256         (vect_transform_stmt): Check for outer loop only in case of loop
21257         vectorization.
21258         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
21259         (vect_is_simple_use): Fix comment, add new argument, fix conditions
21260         for external definition.
21261         * passes.c (pass_slp_vectorize): New pass.
21262         * tree-vect-slp.c (find_bb_location): New function.
21263         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
21264         check for patterns only in loops.
21265         (vect_build_slp_tree): Add argument, adjust function calls, fail in
21266         case of multiple types in basic block SLP.
21267         (vect_mark_slp_stmts_relevant): New function.
21268         (vect_supported_load_permutation_p): Fix comment.
21269         (vect_analyze_slp_instance): Add argument. In case of basic block
21270         SLP, take vectorization factor from statement's type, check that
21271         unrolling factor is 1. Adjust function call. Save SLP instance in
21272         either loop or basic block vectorization structure. Return FALSE,
21273         if SLP failed.
21274         (vect_analyze_slp): Add argument. Get strided stores groups from
21275         either loop or basic block vectorization structure. Return FALSE
21276         if basic block SLP failed.
21277         (new_bb_vec_info): New function.
21278         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
21279         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
21280         (vect_schedule_slp): Add argument. Get SLP instances from either
21281         loop or basic block vectorization structure. Set vectorization factor
21282         to be 1 for basic block SLP.
21283         (vect_slp_transform_bb): New function.
21284         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
21285
21286 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
21287
21288         * final.c (shorten_branches): Do not align labels for jump tables.
21289         (final_scan_insn): Use JUMP_TABLE_DATA_P.
21290
21291 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
21292
21293         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
21294         Remove outdated reference to flow.c and fix nits.
21295         * doc/gccint.texi: Tweak RTL description.
21296         * doc/rtl.texi: Likewise.
21297
21298 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
21299
21300         * config/avr/avr.c: Change my email address.
21301         * config/avr/avr.h: Likewise.
21302         * config/avr/avr.md: Likewise.
21303         * config/avr/avr-protos.h: Likewise.
21304         * config/avr/libgcc.S: Likewise.
21305
21306 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
21307
21308         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
21309         (spu_split_load, spu_split_store): Change return type to int.
21310         (spu_split_convert): Declare.
21311         * config/spu/predicates.md (spu_mem_operand): Remove.
21312         (spu_mov_operand): Update.
21313         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
21314         * config/spu/spu.c (regno_aligned_for_load): Remove.
21315         (reg_aligned_for_addr, spu_expand_load): Define.
21316         (spu_expand_extv): Reimplement and handle MEM.
21317         (spu_expand_insv): Handle MEM.
21318         (spu_sched_reorder): Handle insn's with length 0.
21319         (spu_legitimate_address_p): Reimplement.
21320         (store_with_one_insn_p): Return TRUE for any mode with size
21321         larger than 16 bytes.
21322         (address_needs_split): Define.
21323         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
21324         operands.
21325         (spu_convert_move): Define.
21326         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
21327         (spu_split_store): Change all MEM's to TImode.
21328         (spu_init_expanders): Preallocate registers that correspond to
21329         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
21330         mark_reg_pointer.
21331         (spu_split_convert): Define.
21332         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
21333         (_move<mode>, _movdi, _movti): Update predicate and condition.
21334         (load, store): Change to define_split.
21335         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
21336         extend<mode>ti2.
21337         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
21338         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
21339         define_insn_and_split of lshr<mode>3.
21340         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
21341         (<v>ashr<mode>3_imm): Define.
21342         (extv, extzv, insv): Allow MEM operands.
21343         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
21344         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
21345         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
21346         (_spu_convert2): Change to define_insn_and_split and remove the
21347         corresponding define_peephole2.
21348         (stack_protect_set, stack_protect_test, stack_protect_test_si):
21349         Change predicates to memory_operand.
21350
21351 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
21352
21353         * config/arm/thumb2.md: Add 16-bit multiply instructions.
21354
21355 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
21356
21357         PR tree-optimization/40219
21358         * tree.c (iterative_hash_expr): Make sure the builtin function is
21359         a normal builtin function and not a front end or back end builtin
21360         before indexing into the built_in_decls array.
21361
21362 2009-05-22  Richard Guenther  <rguenther@suse.de>
21363
21364         PR middle-end/38964
21365         * alias.c (write_dependence_p): Do not use TBAA for answering
21366         anti-dependence or output-dependence.
21367         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
21368         (emit_pointer_definition): Remove.
21369         (emit_alias_warning): Likewise.
21370         (find_what_var_points_to): Remove TBAA pruning code.
21371         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
21372         violations.
21373         (compute_points_to_sets): Remove code computing the set of
21374         dereferenced pointers.
21375         * tree-data-ref.c (dr_may_alias_p): Properly use the split
21376         oracle for querying anti and output dependencies.
21377         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
21378         if TBAA may be applied.
21379         (refs_anti_dependent_p): New function.
21380         (refs_output_dependent_p): Likewise.
21381         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
21382         (refs_output_dependent_p): Likewise.
21383         * doc/tree-ssa.texi (Memory model): New section.
21384         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
21385         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
21386         * cfgexpand.c (expand_gimple_basic_block): Do not handle
21387         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
21388         * expr.c (expand_expr_real_1): Likewise.
21389         * gimple-low.c (lower_stmt): Likewise.
21390         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
21391         (dump_gimple_cdt): Remove.
21392         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
21393         (gimple_size): Likewise.
21394         (walk_gimple_op): Likewise.
21395         (is_gimple_stmt): Likewise.
21396         (walk_stmt_load_store_addr_ops): Likewise.
21397         (gimple_build_cdt): Remove.
21398         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
21399         * gimple.h (gimple_cdt_new_type): Remove.
21400         (gimple_cdt_new_type_ptr): Likewise.
21401         (gimple_cdt_set_new_type): Likewise.
21402         (gimple_cdt_location): Likewise.
21403         (gimple_cdt_location_ptr): Likewise.
21404         (gimple_cdt_set_location): Likewise.
21405         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
21406         * tree-cfg.c (remove_useless_stmts_1): Do not handle
21407         GIMPLE_CHANGE_DYNAMIC_TYPE.
21408         (verify_types_in_gimple_stmt): Likewise.
21409         * tree-inline.c (estimate_num_insns): Likewise.
21410         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
21411         (copy_decl_to_var): Likewise.
21412         (copy_result_decl_to_var): Likewise.
21413         * tree-pretty-print.c (dump_generic_node): Do not handle
21414         CHANGE_DYNAMIC_TYPE_EXPR.
21415         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
21416         * tree-ssa-operands.c (get_expr_operands): Likewise.
21417         * tree-ssa-structalias.c (struct variable_info): Remove
21418         no_tbaa_pruning member.
21419         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
21420         (unify_nodes): Do not copy it.
21421         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
21422         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
21423         (set_uids_in_ptset): Do not check it.
21424         (find_what_var_points_to): Likewise.
21425         (compute_tbaa_pruning): Remove.
21426         (compute_points_to_sets): Do not call it.
21427         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
21428         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
21429         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
21430         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
21431         (DECL_NO_TBAA_P): Likewise.
21432         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
21433         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
21434         (expand_omp_atomic_pipeline): Do not set it.
21435         * print-tree.c (print_node): Do not dump it.
21436         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
21437         redundant check.
21438
21439 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
21440
21441         PR target/39856
21442         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
21443         for clobber.
21444
21445 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
21446
21447         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
21448         non-external.
21449
21450 2009-05-22  Ben Elliston  <bje@au.ibm.com>
21451
21452         * Makefile.in (bversion.h, s-bversion): New targets.
21453         (TOPLEV_H): Add bversion.h.
21454         * toplev.h: Include "bversion.h".
21455         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
21456         the __format__ attribute only if compiling with the same version
21457         of GCC as the sources (the "build version").
21458
21459 2009-05-22  Ben Elliston  <bje@au.ibm.com>
21460
21461         * c-format.c (handle_format_attribute): Fix comment typo.
21462
21463 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
21464
21465         PR target/37846
21466         * config/ia64/ia64.opt (mfused-madd): New.
21467         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
21468         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
21469         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
21470         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
21471         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
21472         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
21473         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
21474         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
21475         instruction if !TARGET_FUSED_MADD.
21476         (fpma, fpms): Remove colon from name.
21477
21478 2009-05-22  Richard Guenther  <rguenther@suse.de>
21479
21480         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
21481         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
21482         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
21483         TARGET_MEM_REF.
21484         (create_expression_by_pieces): Only convert if necessary.
21485         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
21486         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
21487
21488 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
21489
21490         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
21491         regular pattern from a template and rename it ...
21492         (*extzv_truncsi_exts): ... to this.
21493
21494 2009-05-21  Richard Guenther  <rguenther@suse.de>
21495
21496         * cgraph.h (struct cgraph_node): Remove inline_decl member.
21497         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
21498         (cgraph_default_inline_p): Likewise.
21499         (cgraph_decide_inlining_incrementally): Likewise.
21500
21501 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
21502             Uros Bizjak  <ubizjak@gmail.com>
21503
21504         * config/i386/cpuid.h (bit_MOVBE): New.
21505
21506         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
21507
21508         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
21509         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
21510         (ix86_handle_option): Handle OPT_mmovbe.
21511         (ix86_target_string): Add -mmovbe.
21512         (pta_flags): Add PTA_MOVBE.
21513         (processor_alias_table): Add PTA_MOVBE to "atom".
21514         (override_options): Handle PTA_MOVBE.
21515
21516         * config/i386/i386.h (TARGET_MOVBE): New.
21517
21518         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
21519         (*bswapsi_movbe): New.
21520         (*bswapdi_movbe): Likewise.
21521         (bswapdi2): Renamed to ...
21522         (*bswapdi_1): This.
21523         (bswapdi2): New expander.
21524
21525         * config/i386/i386.opt (mmovbe): New.
21526
21527         * doc/invoke.texi: Document -mmovbe.
21528
21529 2009-05-21  Taras Glek  <tglek@mozilla.com>
21530
21531         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
21532         * gcc-plugin.h (plugin_init): Updated signature.
21533         * gcc-plugin.h (plugin_name_args): Moved to this header.
21534         * doc/plugins.texi (plugin_init): Updated documention to reflect
21535         API change.
21536         * doc/plugins.texi (plugin_name_args): Added to documention.
21537
21538 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
21539
21540         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
21541         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
21542
21543 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
21544
21545         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
21546         JUMP_TABLE_DATA_P predicates where applicable.
21547         * config/i386/predicates.md: Ditto.
21548         * config/i386/sse.md: Ditto.
21549
21550 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
21551
21552         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
21553         operand2 -128 override length_immediate attribute to 1.
21554         * config/i386/predicates.md (constm128_operand): New predicate.
21555
21556         * config/i386/i386.c (memory_address_length): Handle %r12
21557         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
21558         also check REGNO.
21559         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
21560         mode look through optional ZERO_EXTEND and SUBREG.
21561         * config/i386/i386.md (R12_REG): New define_constant.
21562         (prefix_data16): For sse unit set also for MODE_TI insns.
21563         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
21564         insns set if operand 1 is ext_QIreg_operand.
21565         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
21566         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
21567         immediate.
21568         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
21569         mode from MODE_DI to MODE_SI.
21570         (movdi_1_rex64): Override modrm and length_immediate attributes
21571         only for movabs (TYPE_IMOV, alternative 2).
21572         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
21573         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
21574         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
21575         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
21576         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
21577         prefix_rex attribute if DImode.
21578         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
21579         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
21580         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
21581         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
21582         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
21583         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
21584         Likewise.  For TYPE_IMOV clear length_immediate attribute.
21585         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
21586         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
21587         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
21588         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
21589         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
21590         or one operand TYPE_ISHIFT.
21591         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
21592         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
21593         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
21594         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
21595         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
21596         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
21597         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
21598         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
21599         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
21600         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
21601         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
21602         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
21603         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
21604         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
21605         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
21606         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
21607         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
21608         set mode attribute, don't override length attribute.
21609         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
21610         to 1.
21611         (return_internal_long): Set length attribute to 2 instead of 1.
21612         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
21613         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
21614         prefix_rex attribute.
21615         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
21616         New predicates.
21617         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
21618
21619 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21620
21621         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
21622
21623 2009-05-20  Ian Lance Taylor  <iant@google.com>
21624
21625         * tree.c (build_tree_list_vec_stat): New function.
21626         (ctor_to_vec): New function.
21627         (build_nt_call_vec): New function.
21628         (build_call_array): Change args to be a const pointer.
21629         (build_call_vec): New function.
21630         * tree.h (build_nt_call_vec): Declare.
21631         (build_tree_list_vec_stat): Declare.
21632         (build_tree_list_vec): Define.
21633         (build_call_array): Update declaration.
21634         (build_call_vec): Declare.
21635         (ctor_to_vec): Declare.
21636         * c-common.c (tree_vector_cache): New static variable.
21637         (make_tree_vector): New function.
21638         (release_tree_vector): New function.
21639         (make_tree_vector_single): New function.
21640         (make_tree_vector_copy): New function.
21641         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
21642         (make_tree_vector_single, make_tree_vector_copy): Declare.
21643         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
21644         (c_parser_expr_list): Don't manage cache here, instead call
21645         make_tree_vector.
21646         (c_parser_release_expr_list): Remove static function.
21647         (c_parser_vec_to_tree_list): Remove static function.
21648         (c_parser_attributes): Call build_tree_list_vec instead of
21649         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
21650         c_parser_release_expr_list.
21651         (c_parser_postfix_expression_after_primary): Likewise.
21652         (c_parser_objc_keywordexpr): Likewise.
21653
21654 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
21655
21656         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
21657         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
21658         TARGET_CONVERT_TO_TYPE.
21659         * hooks.c (hook_tree_const_tree_null): Define.
21660         * hooks.h (hook_tree_const_tree_null): Declare.
21661         * target.h (struct gcc_target):  Add invalid_parameter_type,
21662         invalid_return_type, promoted_type, and convert_to_type fields.
21663         * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
21664         (TARGET_INVALID_RETURN_TYPE): Define.
21665         (TARGET_PROMOTED_TYPE): Define.
21666         (TARGET_CONVERT_TO_TYPE): Define.
21667         (TARGET_INITIALIZER): Update for new fields.
21668         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
21669         (grokparms): Check targetm.invalid_parameter_type.
21670         * c-typeck.c (default_conversion): Check targetm.promoted_type.
21671         * c-convert.c (convert): Check targetm.convert_to_type.
21672
21673 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
21674
21675         * config/mips/mips.md (*extenddi_truncate<mode>,
21676         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
21677         defintions.
21678         (*extendhi_truncateqi): New define_insn_and_sptit.
21679
21680 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
21681
21682         PR middle-end/40204
21683         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
21684         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
21685
21686 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
21687
21688         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
21689         the operand of VIEW_CONVERT_EXPR.
21690
21691 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
21692
21693         * config/i386/driver-i386.c (host_detect_local_cpu): Check
21694         extended family and model for Intel processors.  Support Intel Atom.
21695
21696 2009-05-20  Olivier Hainque  <hainque@adacore.com>
21697
21698         * gstab.h (stab_code_type): Define, to be used instead of the
21699         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
21700         notice.
21701         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
21702         occurrences by stab_code_type.
21703         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
21704
21705 2009-05-20  Martin Jambor  <mjambor@suse.cz>
21706
21707         * tree-flow.h (insert_edge_copies_seq): Undeclare.
21708         (sra_insert_before): Likewise.
21709         (sra_insert_after): Likewise.
21710         (sra_init_cache): Likewise.
21711         (sra_type_can_be_decomposed_p): Likewise.
21712         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
21713         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
21714         (sra_insert_before): Likewise.
21715         (sra_insert_after): Likewise.
21716         (sra_init_cache): Likewise.
21717         (insert_edge_copies_seq): Made static and moved upwards.
21718
21719         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
21720         case.
21721
21722         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
21723
21724         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
21725         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
21726         simple copies.
21727
21728 2009-05-20  Richard Guenther  <rguenther@suse.de>
21729
21730         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
21731         with mismatched comparison modes.
21732
21733 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21734
21735         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
21736         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
21737         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
21738         with shifts for Thumb2.
21739         (orsi_notsi): New for orn.
21740         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
21741         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
21742         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
21743         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
21744         Don't invert remainder for IOR.
21745
21746 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
21747
21748         PR tree-optimization/40087
21749         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
21750         number_of_iterations_ne): Rename never_infinite argument.
21751         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
21752         number_of_iterations_le): Handle pointer-type ivs when
21753         exit_must_be_taken is false.
21754         (number_of_iterations_cond):  Do not always assume that
21755         exit_must_be_taken if the control variable is a pointer.
21756
21757 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21758
21759         * c-typeck.c (build_binary_op): Allow % on integal vectors.
21760         * doc/extend.texi (Vector Extension): Document that % is allowed too.
21761
21762 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
21763
21764         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
21765         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
21766
21767 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21768
21769         PR c/40172
21770         * c.opt (Wlogical-op): Disabled by default.
21771         * c-opt (c_common_post_options): Do not enable Wlogical-op with
21772         Wextra.
21773         * doc/invoke.texi (Wlogical-op): Likewise.
21774
21775 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
21776
21777         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
21778         into CASE_CONVERT.
21779         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
21780         Propagate the type of the first operand.
21781         <ASSERT_EXPR>: Simplify.
21782         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
21783         Rewrite using the RHS code as discriminant.
21784         <NOP_EXPR>: Turn into CASE_CONVERT.
21785         <PLUS_EXPR>: Propagate the type of the first operand.
21786
21787 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
21788
21789         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
21790         (ia64_dconst_0_375): New.
21791         * config/ia64/ia64.c (ia64_override_options): Remove
21792         -minline-sqrt-min-latency warning.
21793         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
21794         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
21795         * config/ia64/ia64.md (*sqrt_approx): Remove.
21796         (sqrtsf2): Remove #if 0.
21797         (sqrtsf2_internal_thr): Rewrite and move to div.md.
21798         (sqrtdf): Remove assert.
21799         (sqrtdf2_internal_thr): Rewrite and move to div.md.
21800         (sqrtxf2): Remove #if 0.
21801         (sqrtxf2_internal_thr): Rewrite and move to div.md.
21802         * div.md (sqrt_approx_rf): New.
21803         (sqrtsf2_internal_thr): New implementation.
21804         (sqrtsf2_internal_lat): New.
21805         (sqrtdf2_internal_thr: New implementation.
21806         (sqrtxf2_internal): New implementation.
21807
21808 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
21809             Hans-Peter Nilsson  <hp@axis.com>
21810
21811         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
21812         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
21813         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
21814         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
21815         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
21816         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
21817         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
21818         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
21819         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
21820         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
21821         * c-common.c: ...from here.
21822
21823 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21824
21825         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
21826
21827 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21828
21829         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
21830
21831 2009-05-19  Ben Elliston  <bje@au.ibm.com>
21832
21833         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
21834         assignments with memcpy calls.
21835         (add_fdes): Likewise.
21836         (binary_search_unencoded_fdes): Likewise.
21837         (linear_search_fdes): Eliminate type puns.
21838
21839 2009-05-19  Richard Guenther  <rguenther@suse.de>
21840
21841         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
21842         not falsely claim to have propagated into all uses.
21843
21844 2009-05-19  Ben Elliston  <bje@au.ibm.com>
21845
21846         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
21847         version to v3.0.
21848
21849 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
21850
21851         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
21852         * config/sh/sh.c (sh_legitimate_address_p): Make static.
21853         (TARGET_LEGITIMATE_ADDRESS_P): New.
21854         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21855         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
21856
21857 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
21858
21859         PR debug/40109
21860         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
21861         child of the containing namespace's DIE.
21862
21863 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
21864
21865         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
21866         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
21867         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
21868         extend patterns.
21869
21870 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
21871
21872         PR target/39942
21873         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
21874         gen_align with gen_pad.
21875         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
21876         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
21877
21878         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
21879         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
21880
21881         * config/i386/i386.md (align): Renamed to ...
21882         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
21883         ASM_OUTPUT_MAX_SKIP_PAD.
21884
21885 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
21886
21887         * config.gcc: Fix variable syntax.
21888
21889         PR target/39531
21890         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
21891         before calling exact_log2.
21892         (output_iorsi3): Likewise.
21893         (output_xorsi3): Likewise.
21894
21895 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
21896
21897         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
21898         for the none zero constant operand except for EQ and NE
21899         comprisons even when the first operand is R0.
21900
21901 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
21902
21903         * config/s390/2064.md: Remove trailing whitespaces.
21904         * config/s390/2084.md: Likewise.
21905         * config/s390/constraints.md: Likewise.
21906         * config/s390/fixdfdi.h: Likewise.
21907         * config/s390/libgcc-glibc.ver: Likewise.
21908         * config/s390/s390-modes.def: Likewise.
21909         * config/s390/s390-protos.h: Likewise.
21910         * config/s390/s390.c: Likewise.
21911         * config/s390/s390.h: Likewise.
21912         * config/s390/s390.md: Likewise.
21913         * config/s390/tpf-unwind.h: Likewise.
21914
21915 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
21916
21917         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
21918
21919 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
21920
21921         M68K TLS support.
21922         * configure.ac (m68k-*-*): Check if binutils support TLS.
21923         * configure: Regenerate.
21924         * config/m68k/predicates.md (symbolic_operand): Extend comment.
21925         * config/m68k/constraints.md (Cu): New constraint.
21926         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
21927         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
21928         (movsi): Handle TLS symbols.
21929         (addsi3_5200): Handle XTLS symbols, indent.
21930         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
21931         (m68k_tls_reference_p): Declare.
21932         (m68k_legitimize_address): Declare.
21933         (m68k_unwrap_symbol): Declare.
21934         * config/m68k/m68k.opt (mxtls): New option.
21935         * config/m68k/m68k.c (ggc.h): Include.
21936         (m68k_output_dwarf_dtprel): Implement hook.
21937         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
21938         (m68k_expand_prologue): Load GOT pointer when function needs it.
21939         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
21940         (m68k_legitimate_constant_address_p): Same.
21941         (m68k_decompose_address): Handle TLS references.
21942         (m68k_get_gp): New static function.
21943         (enum m68k_reloc): New contants.
21944         (TLS_RELOC_P): New macro.
21945         (m68k_wrap_symbol): New static function.
21946         (m68k_unwrap_symbol): New function.
21947         (m68k_final_prescan_insn_1): New static function.
21948         (m68k_final_prescan_insn): New function.
21949         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
21950         functions.
21951         (legitimize_pic_address): Handle TLS references..
21952         (m68k_tls_get_addr, m68k_get_tls_get_addr)
21953         (m68k_libcall_value_in_a0_p)
21954         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
21955         (m68k_call_m68k_read_tp): Helper variables and functions for ...
21956         (m68k_legitimize_tls_address): Handle TLS references.
21957         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
21958         New functions.
21959         (m68k_legitimize_address): Handle TLS symbols.
21960         (m68k_get_reloc_decoration): New static function.
21961         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
21962         UNSPEC_RELOC32.
21963         (m68k_output_dwarf_dtprel): Implement hook.
21964         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
21965         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
21966         m68k_call_* routines.
21967         (sched_attr_op_type): Handle TLS symbols.
21968         (gt-m68k.h): Include.
21969         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
21970         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
21971
21972 2009-05-18  Martin Jambor  <mjambor@suse.cz>
21973
21974         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
21975         (visit_store_addr_for_mod_analysis): New function.
21976         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
21977         (determine_cst_member_ptr): Use gimple_assign_single_p.
21978         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
21979         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
21980         operands.  Don't check number of operands of a NOP_EXPR.
21981
21982 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
21983
21984         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
21985
21986 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21987
21988         PR c/40172
21989         * c-common.c (warn_logical_operator): Don't warn if one of
21990         expression isn't always true or false.
21991
21992 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
21993
21994         * config/i386/biarch32.h: New file.
21995         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
21996
21997 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
21998
21999         * config/mips/mips.md (*zero_extend<mode>_trunchi,
22000         *zero_extend<mode>_truncqi): Merge these into ...
22001         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
22002         Name the pattern following this as *zero_extendhi_truncqi.
22003
22004 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
22005
22006         PR middle-end/39301
22007         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
22008         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
22009         (output_info): Make field HOST_WIDEST_INT.
22010         (print_statistics): Use HOST_WIDEST_INT_PRINT.
22011         (dump_bitmat_statistics): Same.
22012
22013 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
22014
22015         * config.gcc (use_gcc_stdint):  Set to wrap.
22016         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
22017         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
22018         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
22019         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
22020         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
22021         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
22022         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
22023         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
22024
22025 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
22026
22027         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
22028         tune_64.
22029         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
22030         Move definitions earlier.
22031         (OPT_ARCH64, OPT_ARCH32): Define.
22032         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
22033         and tune_64.
22034
22035 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
22036
22037         PR target/40153
22038         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
22039         implies.
22040
22041 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
22042
22043         * arm.md (movdi2): Copy non-reg values to DImode registers.
22044
22045 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
22046
22047         PR target/39942
22048         * final.c (label_to_max_skip): New function.
22049         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
22050         CODE_LABEL_NUMBER <= max_labelno.
22051         * output.h (label_to_max_skip): New prototype.
22052         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
22053         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
22054         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
22055         Handle CODE_LABELs with >= 16 byte alignment or with
22056         max_skip == (1 << align) - 1.
22057         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
22058         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
22059
22060         PR target/39942
22061         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
22062         .p2align 3 if MAX_SKIP is smaller than 7.
22063         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
22064
22065 2009-05-15  Ian Lance Taylor  <iant@google.com>
22066
22067         * alias.c (struct alias_set_entry_d): Rename from struct
22068         alias_set_entry.  Change all uses.
22069         * except.c (struct call_site_record_d): Rename from struct
22070         call_site_record.  Change all uses.
22071         * except.h (struct eh_region_d): Rename from struct eh_region.
22072         Change all uses.
22073         * gcse.c (struct hash_table_d): Rename from struct hash_table.
22074         Change all uses.
22075         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
22076         ivtype_map_elt.  Change all uses.
22077         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
22078         Change all uses.
22079         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
22080         * graphite.h (struct name_tree_d): Rename from struct name_tree.
22081         Change all uses.
22082         (struct sese_d): Rename from struct sese.  Change all uses.
22083         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
22084         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
22085         * optabs.h (struct optab_d): Rename from struct optab.  Change all
22086         uses.
22087         (struct convert_optab_d): Rename from struct convert_optab.
22088         Change all uses.
22089         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
22090         ipa_opt_pass.  Change all uses.
22091         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
22092         all uses.
22093
22094         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
22095         defined as a typedef.
22096         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
22097         defined as a tag.
22098
22099 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22100
22101         PR 16302
22102         * fold-const.c (make_range,build_range_check,merge_ranges): Move
22103         declaration to...
22104         (merge_ranges): Returns bool.
22105         * tree.h (make_range): .. to here.
22106         (build_range_check): Likewise.
22107         (merge_ranges): Likewise. Renamed from merge_ranges.
22108         * c-typeck.c (parser_build_binary_op): Update calls to
22109         warn_logical_operator.
22110         * c-common.c (warn_logical_operator): Add new warning.
22111         * c-common.h (warn_logical_operator): Update declaration.
22112
22113 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22114
22115         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
22116
22117 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22118
22119         * doc/install.texi: Document MPC requirements, flags etc.
22120
22121         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
22122         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
22123         Evaluate constant arguments.
22124         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
22125         (fold_builtin_1): Likewise, also evaluate constant arguments.
22126         Remove superfluous break.
22127         (do_mpc_ckconv): New.
22128         * real.h: Include mpc.h.
22129         * toplev.c (print_version): Output MPC version info if available.
22130
22131 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
22132
22133         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
22134
22135 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22136
22137         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
22138         only once.
22139
22140 2009-05-15  Jan Hubicka  <jh@suse.cz>
22141
22142         * doc/invoke.texi (max-early-inliner-iterations): New flag.
22143         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
22144         (try_inline): Fix return value.
22145         (cgraph_decide_inlining_incrementally): Honor new value.
22146         (cgraph_early_inlining): Handle indirect inlining.
22147         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
22148
22149 2009-05-15  Jan Hubicka  <jh@suse.cz>
22150
22151         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
22152         * cgraphunit.c (cgraph_finalize_function): Set it.
22153         (cgraph_expand_function): Use it.
22154
22155 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
22156
22157         * real.c (encode_ieee_half): Define.
22158         (decode_ieee_half): Define.
22159         (ieee_half_format): Define.
22160         (arm_half_format): Define.
22161         * real.h (ieee_half_format): Declare.
22162         (arm_half_format): Declare.
22163
22164 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
22165
22166         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
22167         swapped, and reversed optabs exist before trying to use them.
22168
22169 2009-05-15  Paul Brook  <paul@codesourcery.com>
22170             Sandra Loosemore  <sandra@codesourcery.com>
22171
22172         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
22173         loads.  Allow PRE_DEC.
22174         (output_move_neon): Handle PRE_DEC.
22175         (arm_print_operand): Add 'A' for neon structure loads.
22176         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
22177         * config/arm/neon.md (neon_mov): Update comment.
22178         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
22179         calls.
22180         (Um): New constraint.
22181
22182 2009-05-15  Jan Hubicka  <jh@suse.cz>
22183
22184         Revert the following patch until testsuite fallout is fixed:
22185         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
22186         * cgraph.h (struct inline_summary): New filed self_wize,
22187         size_inlining_benefit, self_time and time_inlining_benefit.
22188         (struct cgraph_global_info): Replace insns by time ans size fields.
22189         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
22190         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
22191         (ipcp_update_callgraph): Do not touch function bodies.
22192         * ipa-inline.c: Include except.h
22193         (MAX_TIME): New constant.
22194         (overall_insns): Remove
22195         (overall_size, max_benefit): New static variables.
22196         (cgraph_estimate_time_after_inlining): New function.
22197         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
22198         (cgraph_clone_inlined_nodes): Update size.
22199         (cgraph_mark_inline_edge): Update size.
22200         (cgraph_estimate_growth): Use size info.
22201         (cgraph_check_inline_limits): Check size.
22202         (cgraph_default_inline_p): Likewise.
22203         (cgraph_edge_badness): Compute badness based on benefit and size cost.
22204         (cgraph_decide_recursive_inlining): Check size.
22205         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
22206         and times.
22207         (cgraph_decide_inlining): Likewise.
22208         (cgraph_decide_inlining_incrementally): Likewise; honor
22209         PARAM_EARLY_INLINING_INSNS.
22210         (likely_eliminated_by_inlining_p): New predicate.
22211         (estimate_function_body_sizes): New function.
22212         (compute_inline_parameters): Use it.
22213         * except.c (must_not_throw_labels): New function.
22214         * except.h (must_not_throw_labels): Declare.
22215         * tree-inline.c (init_inline_once): Kill inlining_weigths
22216         * tree-ssa-structalias.c: Avoid uninitialized warning.
22217         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
22218         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
22219         (PARAM_INLINE_CALL_COST): Remove.
22220         (PARAM_EARLY_INLINING_INSNS): New.
22221
22222 2009-05-15  Richard Guenther  <rguenther@suse.de>
22223
22224         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
22225         not TODO_update_ssa.
22226
22227 2009-05-15  Richard Guenther  <rguenther@suse.de>
22228
22229         PR tree-optimization/39999
22230         * gimple.h (gimple_expr_type): Use the expression type looking
22231         through useless conversions.
22232         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
22233         (vn_nary_op_insert_stmt): Likewise.
22234         (simplify_binary_expression): Likewise.
22235
22236 2009-05-15  Richard Guenther  <rguenther@suse.de>
22237
22238         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
22239         New options, enabled by default.
22240         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
22241         Document.
22242         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
22243         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
22244         * tree-ssa-structalias.c (gate_tree_pta): New function.
22245         (pass_build_alias): Use it.
22246
22247 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
22248
22249         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
22250         recurse on an invariant address if a conversion from a pointer
22251         type to a wider integer type is involved.
22252
22253 2009-05-15  Jan Hubicka  <jh@suse.cz>
22254
22255         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
22256         * cgraph.h (struct inline_summary): New filed self_wize,
22257         size_inlining_benefit, self_time and time_inlining_benefit.
22258         (struct cgraph_global_info): Replace insns by time ans size fields.
22259         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
22260         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
22261         (ipcp_update_callgraph): Do not touch function bodies.
22262         * ipa-inline.c: Include except.h
22263         (MAX_TIME): New constant.
22264         (overall_insns): Remove
22265         (overall_size, max_benefit): New static variables.
22266         (cgraph_estimate_time_after_inlining): New function.
22267         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
22268         (cgraph_clone_inlined_nodes): Update size.
22269         (cgraph_mark_inline_edge): Update size.
22270         (cgraph_estimate_growth): Use size info.
22271         (cgraph_check_inline_limits): Check size.
22272         (cgraph_default_inline_p): Likewise.
22273         (cgraph_edge_badness): Compute badness based on benefit and size cost.
22274         (cgraph_decide_recursive_inlining): Check size.
22275         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
22276         and times.
22277         (cgraph_decide_inlining): Likewise.
22278         (cgraph_decide_inlining_incrementally): Likewise; honor
22279         PARAM_EARLY_INLINING_INSNS.
22280         (likely_eliminated_by_inlining_p): New predicate.
22281         (estimate_function_body_sizes): New function.
22282         (compute_inline_parameters): Use it.
22283         * except.c (must_not_throw_labels): New function.
22284         * except.h (must_not_throw_labels): Declare.
22285         * tree-inline.c (init_inline_once): Kill inlining_weigths
22286         * tree-ssa-structalias.c: Avoid uninitialized warning.
22287         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
22288         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
22289         (PARAM_INLINE_CALL_COST): Remove.
22290         (PARAM_EARLY_INLINING_INSNS): New.
22291         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
22292         (inline-call-cost): Remove.
22293         (early-inlining-insns): New.
22294
22295 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
22296
22297         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
22298         for bounds.
22299         (print_int_cst_bounds_in_octal_p): Likewise.
22300         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
22301         with subtypes.
22302         * dwarf2out.c (base_type_die): Likewise.
22303         (is_subrange_type): Delete.
22304         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
22305         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
22306         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
22307         if the destination type is boolean.
22308         (build_range_check): Do not special-case subtypes.
22309         (fold_sign_changed_comparison): Likewise.
22310         (fold_unary): Likewise.
22311         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
22312         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
22313         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
22314         * tree.c (subrange_type_for_debug_p): New predicate based on the
22315         former is_subrange_type.
22316         * tree.h (subrange_type_for_debug_p): Declare.
22317         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
22318         (convert_affine_scev): Remove call to above function.
22319         (chrec_convert_aggressive): Likewise.
22320         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
22321         false for conversions involving subtypes.
22322         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
22323         (vrp_val_min): Likewise.
22324         (needs_overflow_infinity): Likewise.
22325         (extract_range_from_unary_expr): Likewise.
22326
22327 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
22328
22329         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
22330         * config/frv/frv.c: Likewise.
22331         * config/s390/s390.c: Likewise.
22332         * config/sparc/sparc.h: Likewise.
22333         * config/i386/i386.h: Likewise.
22334         * config/i386/i386.c: Likewise.
22335         * config/crx/crx.c: Likewise.
22336         * config/m68hc11/m68hc11.h: Likewise.
22337         * config/iq2000/iq2000.c: Likewise.
22338         * config/mn10300/mn10300.h: Likewise.
22339         * config/mn10300/mn10300.c: Likewise.
22340         * config/m68k/m68k.c: Likewise.
22341         * config/rs6000/rs6000.c: Likewise.
22342         * config/rs6000/xcoff.h: Likewise.
22343         * config/rs6000/linux64.h: Likewise.
22344         * config/rs6000/sysv4.h: Likewise.
22345         * config/score/score3.c: Likewise.
22346         * config/score/score7.c: Likewise.
22347         * config/score/score.c: Likewise.
22348         * config/arm/arm.md: Likewise.
22349         * config/mips/mips.c: Likewise.
22350         * config/mips/mips.md: Likewise.
22351         * config/bfin/bfin.h: Likewise.
22352         * config/pa/pa.c: Likewise.
22353         * config/pa/constraints.md: Likewise.
22354
22355         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
22356         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
22357         * config/pdp11/pdp11.h: Use memory_address_p instead.
22358
22359 2009-05-14  Ian Lance Taylor  <iant@google.com>
22360
22361         * passes.c (finish_optimization_passes): Change i to int.
22362         * plugin.c (plugins_active_p): Change event to int.
22363         (dump_active_plugins): Likewise.
22364         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
22365         Add cast.
22366         * tree.c (tree_range_check_failed): Change c to unsigned int.
22367         (omp_clause_range_check_failed): Likewise.
22368         (build_common_builtin_nodes): Change mode to int.  Add cast.
22369         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
22370         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
22371
22372         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
22373         ++ or -- with a variable of enum type.
22374
22375 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
22376
22377         PR driver/40144
22378         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
22379
22380 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
22381
22382         * store-motion.c: Do not include params.h
22383         * Makefile.in: Fix dependencies for various files.
22384
22385 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
22386
22387         * auto-inc-dec.c: Fix pass description, remove apparent
22388         accidental duplication.
22389
22390 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
22391
22392         PR middle-end/40147
22393         * ipa-utils.h (memory_identifier_string): Moved to ...
22394         * tree.h (memory_identifier_string): Here.  Add GTY(()).
22395
22396 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
22397
22398         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
22399         in the former documentation of...
22400         (GO_IF_LEGITIMATE_ADDRESS): ... this.
22401         * ira-conflicts.c (get_dup_num): Use address_operand.
22402         * targhooks.c (default_legitimate_address_p): New.
22403         * targhooks.h (default_legitimate_address_p): New.
22404         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
22405         Call hook.
22406         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
22407         * target.h (struct target): Add legitimate_address_p.
22408         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
22409         (TARGET_INITIALIZER): Include it.
22410
22411         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22412         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
22413         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
22414         (TARGET_LEGITIMATE_ADDRESS_P): New.
22415
22416         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22417         (REG_OK_STRICT_P): Delete.
22418         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
22419         (frv_legitimate_address_p_1): ... this.
22420         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
22421         (frv_legitimate_address_p_1): ... the renamed old
22422         frv_legitimate_address_p.
22423         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
22424         (TARGET_LEGITIMATE_ADDRESS_P): New.
22425
22426         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22427         * config/s390/s390-protos.h (legitimate_address_p): Remove.
22428         * config/s390/s390.c (legitimate_address_p): Rename to...
22429         (s390_legitimate_address_p): ... this, make static.
22430         (legitimize_address): Adjust call.
22431         (TARGET_LEGITIMATE_ADDRESS_P): New.
22432         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
22433
22434         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22435         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
22436         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
22437         (TARGET_LEGITIMATE_ADDRESS_P): New.
22438
22439         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22440         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
22441         * config/spu/spu.c (spu_legitimate_address): Rename to...
22442         (spu_legitimate_address_p): ... this, make static.
22443         (TARGET_LEGITIMATE_ADDRESS_P): New.
22444
22445         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22446         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
22447         * config/sparc/sparc.c (legitimate_address_p): Rename to...
22448         (sparc_legitimate_address_p): ... this, make static and return bool.
22449         (legitimize_address): Adjust call.
22450         (TARGET_LEGITIMATE_ADDRESS_P): New.
22451
22452         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22453         * config/i386/i386-protos.h (legitimate_address_p): Remove.
22454         * config/i386/i386.c (legitimate_address_p): Rename to...
22455         (ix86_legitimate_address_p): ... this, make static.
22456         (constant_address_p): Move after it, adjust call.
22457         (TARGET_LEGITIMATE_ADDRESS_P): New.
22458
22459         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22460         * config/avr/avr-protos.h (legitimate_address_p): Remove.
22461         * config/avr/avr.c (legitimate_address_p): Rename to...
22462         (avr_legitimate_address_p): ... this, make static.
22463         (legitimize_address): Adjust call.
22464         (TARGET_LEGITIMATE_ADDRESS_P): New.
22465
22466         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22467         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
22468         * config/crx/crx.c (crx_legitimate_address_p): Make static.
22469         (TARGET_LEGITIMATE_ADDRESS_P): New.
22470
22471         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22472         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
22473         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
22474         (TARGET_LEGITIMATE_ADDRESS_P): New.
22475
22476         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22477         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
22478         Remove.
22479         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
22480         Make static.
22481         (TARGET_LEGITIMATE_ADDRESS_P): New.
22482
22483         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22484         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
22485         Remove.
22486         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
22487         Rename to...
22488         (m68hc11_legitimate_address_p): ... this, make static.
22489         (go_if_legitimate_address_internal): Rename to...
22490         (m68hc11_legitimate_address_p_1): ... this.
22491         (legitimize_address): Adjust call.
22492         (TARGET_LEGITIMATE_ADDRESS_P): New.
22493
22494         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22495         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
22496         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
22497         (TARGET_LEGITIMATE_ADDRESS_P): New.
22498
22499         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22500         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
22501         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
22502         (mn10300_legitimate_address_p): ... this, make static.
22503         (TARGET_LEGITIMATE_ADDRESS_P): New.
22504
22505         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22506         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
22507         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
22508         (TARGET_LEGITIMATE_ADDRESS_P): New.
22509
22510         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22511         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
22512         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
22513         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22514         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
22515         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
22516         (rs6000_legitimate_address_p): ... this, make static.
22517         (TARGET_LEGITIMATE_ADDRESS_P): New.
22518         (REG_MODE_OK_FOR_BASE_P): Delete.
22519         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
22520
22521         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22522         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
22523         Delete.
22524         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
22525         static, adjust types.
22526         (TARGET_LEGITIMATE_ADDRESS_P): New.
22527
22528         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22529         * config/score/score.c (score_address_p): Rename to...
22530         (score_legitimate_address_p): ... this.
22531         (TARGET_LEGITIMATE_ADDRESS_P): New.
22532         * config/score/score3.c (score3_address_p): Rename to...
22533         (score3_legitimate_address_p): ... this.
22534         * config/score/score7.c (score7_address_p): Rename to...
22535         (score7_legitimate_address_p): ... this.
22536
22537         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
22538         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
22539         GO_IF_LEGITIMATE_ADDRESS): Delete.
22540         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
22541         thumb2_legitimate_address_p): Delete.
22542         (arm_legitimate_address_p): Rename to...
22543         (arm_legitimate_address_outer_p): ... this.
22544         * config/arm/constraints.md ("Uq"): Adjust call.
22545         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
22546         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
22547         to...
22548         (arm_legitimate_address_outer_p): ... this.
22549         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
22550         static.
22551         (TARGET_LEGITIMATE_ADDRESS_P): New.
22552
22553         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22554         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
22555         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
22556         (TARGET_LEGITIMATE_ADDRESS_P): New.
22557
22558         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22559         * config/vax/vax-protos.h (legitimate_address_p): Remove.
22560         * config/vax/vax.c (legitimate_address_p): Rename to...
22561         (vax_legitimate_address_p): ... this, make static.
22562         (TARGET_LEGITIMATE_ADDRESS_P): New.
22563
22564         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22565         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
22566         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
22567         (TARGET_LEGITIMATE_ADDRESS_P): New.
22568
22569         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22570         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
22571         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
22572         (mmix_legitimate_address_p): ... this, make static.
22573         (TARGET_LEGITIMATE_ADDRESS_P): New.
22574
22575         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22576         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
22577         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
22578         (TARGET_LEGITIMATE_ADDRESS_P): New.
22579
22580 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
22581
22582         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
22583         of MODE_COMPLEX_INT.
22584
22585 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
22586
22587         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
22588         LCT_NORMAL in function call.
22589         * mips-tdump.c (print_file_desc): Add cast to enum type.
22590         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
22591         (mark_stabs): Add casts to enum types.
22592         (parse_stabs_common): Add casts to enum types.
22593
22594 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
22595
22596         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
22597         Check for invalid values of LETTER.
22598
22599 2009-05-13  Taras Glek  <tglek@mozilla.com>
22600
22601         * attribs.c (register_attribute): moved out attribute registration
22602         into register_attribute.
22603         * doc/plugins.texi: Documented register_attribute and
22604         PLUGIN_ATTRIBUTES.
22605         * gcc-plugin.h: Added forward decl for register_attribute.
22606         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
22607         * plugin.c (register_callback, invoke_plugin_callbacks): Added
22608         PLUGIN_ATTRIBUTES boilerplate.
22609
22610 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
22611
22612         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
22613         values even in sentinel and empty entries.
22614         (ms_printf_flag_specs):  Likewise.
22615         (ms_scanf_flag_specs):  Likewise.
22616         (ms_strftime_flag_specs):  Likewise.
22617         (ms_print_char_table):  Likewise.
22618         (ms_scan_char_table):  Likewise.
22619         (ms_time_char_table):  Likewise.
22620
22621 2009-05-13  Doug Kwan  <dougkwan@google.com>
22622
22623         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
22624
22625 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
22626
22627         * config/mips/mips.md (store): Add attributes for QI and HI.
22628         Update comment.
22629         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
22630         (truncdi<mode>2): ... this new pattern.
22631
22632 2009-05-13  Brad Hards  <bradh@kde.org>
22633
22634         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
22635
22636 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
22637             Ben Elliston <bje@au.ibm.com>
22638
22639         PR middle-end/40035
22640         * dse.c (check_mem_read_rtx): Guard against width == -1.
22641
22642 2009-05-13  Michael Matz  <matz@suse.de>
22643
22644         PR middle-end/39976
22645         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
22646         (trivially_conflicts_p): New function.
22647         (insert_backedge_copies): Use it.
22648
22649 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
22650
22651         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
22652         (handle_stdc_pragma): Use new enum constant names.
22653         (handle_pragma_float_const_decimal64): Ditto.
22654
22655 2009-05-13  Ian Lance Taylor  <iant@google.com>
22656
22657         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
22658         tree.def.
22659
22660 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
22661
22662         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
22663         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
22664         multilibs.
22665         * config/m68k/m68k.h (FL_UCLINUX): Define.
22666
22667 2009-05-13  Jan Hubicka  <jh@suse.cz>
22668
22669         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
22670
22671 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
22672
22673         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
22674         unless -fschedule-insns is specified.
22675
22676 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
22677
22678         PR target/39561
22679         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
22680         TARGET_EXPAND_CBRANCHDI4.
22681         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
22682         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
22683         (cmpeqdi): Fix comment.
22684
22685 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
22686
22687         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
22688         (sh_legitimate_address_p): Likewise.
22689         * config/sh/sh.c (sh_legitimate_index_p): New.
22690         (sh_legitimate_address_p): Likewise.
22691         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
22692         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
22693         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
22694         (MAYBE_BASE_REGISTER_RTX_P): New macro.
22695         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
22696         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
22697         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
22698         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
22699         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
22700
22701 2009-05-12  Jan Hubicka  <jh@suse.cz>
22702
22703         * tree-inline.c (estimate_operator_cost): Add operands;
22704         when division happens by constant, it is cheap.
22705         (estimate_num_insns): Loads and stores are not having cost of 0;
22706         EH magic stuff is cheap; when computing runtime cost of switch,
22707         use log2 base of amount of its cases; builtin_expect has cost of 0;
22708         compute cost for moving return value of call.
22709         (init_inline_once): Initialize time_based flags.
22710         * tree-inline.h (eni_weights_d): Add time_based flag.
22711
22712 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
22713
22714         * df-core.c: Update head documentation.
22715
22716 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
22717
22718         PR bootstrap/40118
22719         * rs6000.c (rs6000_generate_compare): Use op1b instead of
22720         shadowing exisiting variable op1.
22721
22722 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
22723
22724         PR target/37179
22725         * config/i386/driver-i386.c (processor_signatures): New enum.
22726         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
22727         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
22728         processor signature to detect geode processor.
22729
22730 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
22731
22732         Revert:
22733
22734         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
22735
22736         * optabs.c (prepare_cmp_insn): Temporarily disable test that
22737         causes spurious differences between trunk and cond-optab branch.
22738
22739 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
22740
22741         * dojump.c (compare_from_rtx): Delete.
22742         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
22743         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
22744         if the comparison does not satisfy the predicate; test predicates for
22745         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
22746         further if one existing pattern fails.
22747         * expr.h (compare_from_rtx): Delete.
22748         (prepare_operand): Declare it.
22749         * optabs.c: Change "lib call" to "libcall" throughout.
22750         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
22751         HAVE_conditional_trap, emit_cmp_insn): Delete.
22752         (can_compare_p): Delete cmp_optab case.
22753         (prepare_float_lib_cmp): Return an rtx and a machine mode.
22754         Accept other parameters by value.
22755         (prepare_operand): Make non-static.
22756         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
22757         other parameters by value.  Try to widen operands here based on
22758         an optab_methods argument and looking at cbranch_optab.
22759         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
22760         loop.  Use cbranch_optab directly.
22761         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
22762         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
22763         assertion.
22764         (emit_conditional_move, emit_conditional_add): Inline what's needed
22765         of compare_from_rtx, using new prepare_cmp_insn for the rest.
22766         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
22767         with COMPARE.  Move cmov_optab and cstore_optab above
22768         with cbranch_optab, move cmp_optab down with ucmp_optab,
22769         remove tst_otpab.  Do not initialize trap_rtx.
22770         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
22771         for trap code.  Do not check HAVE_conditional_trap.  Use
22772         prepare_cmp_insn.  Accept no predicate for operand 3.
22773         * optabs.h (OTI_cmp): Mark as used only for libcalls.
22774         (OTI_ctrap, ctrap_optab): New.
22775         (tst_optab): Delete.
22776         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
22777         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
22778         with lookup of ctrap_optab.
22779         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
22780         Delete.
22781         (ctrap_optab): New.
22782
22783         * combine.c (combine_simplify_rtx, simplify_set): Do not
22784         special case comparing against zero for cc0 machines.
22785         * simplify-rtx.c (simplify_binary_operation_1): Never remove
22786         COMPARE on cc0 machines.
22787         (simplify_relational_operation): Return a new expression when
22788         a COMPARE could be removed.
22789         * final.c (final_scan_insn): Compare cc_status values
22790         against LHS of a (compare FOO (const_int 0)) cc0 source.
22791         Also check if cc_status.value is the full compare.
22792
22793         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
22794         (cstoreMM4): Document.
22795         (conditional_trap): Document ctrapMM4 instead.
22796         (sync_compare_and_swapMM): Refer to cbranchcc4.
22797         (Dependent Patterns): Eliminate obsolete information referring to
22798         the old jump optimization phase.
22799         (Canonicalization): Include cbranchcc4 case, omit canonicalization
22800         of compares with 0 on cc0 machines.
22801         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
22802         avoiding references to cc0.  Remove text about storing operands
22803         in cmpMM.
22804         * doc/tm.texi (Condition Codes): Include blurb on different
22805         condition code representations, separate into subsections for
22806         CC0, MODE_CC and conditional execution.
22807
22808         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
22809         alpha_emit_setcc): Accept operands and a machine mode.
22810         * config/alpha/alpha.c (alpha_emit_conditional_branch):
22811         Get code/op0/op1 from operands, use machine mode argument
22812         instead of alpha_compare.fp_p.  Emit the branch here.
22813         (alpha_emit_setcc): Likewise, and return boolean.
22814         (alpha_emit_conditional_move): Likewise.  Assert that
22815         cmp_op_mode == cmp_mode, and simplify accordingly.
22816         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
22817         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
22818         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
22819         Delete.
22820         (stack probe test): Use cbranchdi4.
22821         * config/alpha/predicates.md (alpha_cbranch_operator): New.
22822
22823         * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
22824         * config/arc/arc.h (movsicc, movsfcc): Use it.
22825         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
22826         (cbranchsi4, cstoresi4): New.
22827         (cmpsi, bCC and sCC expanders): Remove.
22828
22829         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
22830         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
22831         * config/arm/predicates.md (arm_comparison_operator): Only include
22832         floating-point operators if there is a hardware floating-point unit.
22833         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
22834         deferring to cbranch_cc and cstore_cc respectively.
22835         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
22836         cbranch_cc, cstore_cc): New.
22837         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
22838         arm_compare_op1.
22839         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
22840
22841         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
22842         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
22843         as an argument.
22844         (adjust_insn_length): Adjust calls.
22845         (avr_reorg): Handle (compare (foo) (const_int 0)).
22846         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
22847         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
22848         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
22849         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
22850         (bCC): Remove.
22851         (cbranchqi4, cbranchhi4, cbranchsi4): New.
22852         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
22853
22854         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
22855         (cbranchsi4, cstorebi4, cstoresi4): New.
22856         (movbisi): This insn is duplicate, split it to zero_extend.
22857         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
22858         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
22859         (bfin_optimize_loop): Use cbranch expander.
22860         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
22861         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
22862         (bfin_bimode_comparison_operator): ... this.
22863         (bfin_direct_comparison_operator): New.
22864
22865         * config/cris/cris.c (cris_normal_notice_update_cc): Look
22866         inside (compare FOO (const_int 0)).
22867         (cris_rtx_costs): Handle ZERO_EXTRACT.
22868         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
22869         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
22870         (*tstdi_v32): Delete.
22871         (*cmpdi_non_v32): Add M alternative for operand 1.
22872         (cmpsi, cmp<mode>): Make private.
22873         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
22874         with COMPARE.
22875         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
22876
22877         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
22878         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
22879         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
22880         (cc_reg_operand): New.
22881         (any_cond): Delete.
22882         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
22883         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
22884         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
22885         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
22886         crx_expand_scond): Delete.
22887
22888         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
22889         (cbranchsi4): New.
22890         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
22891         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
22892
22893         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
22894         cstoresi4, cstoresf4, cstoredf4): New.
22895         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
22896         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
22897         Receive the entire operands array.
22898         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
22899         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
22900         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
22901         Get test/op0/op1 from the operands array.
22902         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
22903
22904         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
22905         (h8300_expand_store): New.
22906         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
22907         (const_int 0)).
22908         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
22909         (h8300_expand_store): New.
22910         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
22911         or do not try to produce (set (cc0) REG).
22912         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
22913         change a compare into a move to a scratch register.  Disable some
22914         peepholes when comparing with zero.
22915         (tstsi, tsthi, tstsi, cmpqi): Make private.
22916         (cmphi): Delete.
22917         (bCC, sCC): Delete.
22918         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
22919         cstoresi4): New.
22920
22921         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
22922         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
22923         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
22924         (ix86_emit_i387_log1p): Use cbranchxf2.
22925         (ix86_expand_setcc): Return void.
22926         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
22927         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
22928         cmp<MODEF>, cmpcc): Remove.
22929         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
22930         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
22931         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
22932         (sCC and bCC expanders): Remove.
22933         (stack_protect_test): Use cbranchcc4.
22934
22935         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
22936         Delete.
22937         (ia64_expand_compare): Accept three rtx by reference and return void.
22938         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
22939         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
22940         from *expr.  Update *expr with the BImode comparison to do.
22941         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
22942         cmptf, bCC, sCC, conditional_trap): Delete.
22943         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
22944         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
22945         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
22946         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
22947         * config/ia64/predicates.md (ia64_cbranch_operator): New.
22948
22949         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
22950         type of last argument.
22951         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
22952         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
22953         use machine mode argument instead of branch_type.  Remove dead
22954         code for floating-point comparisons.
22955         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
22956         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
22957         Remove.
22958         (cbranchsi4, cstoresi4): New.
22959         * config/iq2000/predicates.md (reg_or_const_operand): New.
22960
22961         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
22962         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
22963         (b<code>_op): Rewrite to...
22964         (bcc_op): ... this, using match_operator.
22965         (s<code>_op): Rewrite to...
22966         (scc_op): ... this, using match_operator.
22967         (s<code>_24_op): Rewrite to...
22968         (scc_op_24): ... this, using match_operator.
22969         (s<code>_<mode>): Rewrite to...
22970         (cstore<mode>4): ... this, using match_operator.
22971         (s<code>_<mode>_24): Rewrite to...
22972         (cstore<mode>4_24): ... this, using match_operator.
22973         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
22974         m32c_unpend_compare, m32c_expand_scc): Delete.
22975         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
22976         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
22977         (m32c_expand_movcc): Change NE to EQ if necessary.
22978         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
22979
22980         * config/m32r/m32r-protos.h (gen_cond_store): New.
22981         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
22982         (gen_cond_store): New, from sCC patterns.
22983         (m32r_expand_block_move): Use cbranchsi4.
22984         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
22985         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
22986         (cbranchsi4, cstoresi4): New.
22987
22988         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
22989         Delete.
22990         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
22991         (m68hc11_notice_update_cc): Look into a compare with 0.
22992         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
22993         Delete.
22994         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
22995         cmphi, cmpqi, bCC): Delete.
22996         (cbranchsi4, cbranchhi4, cbranchqi4): New.
22997         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
22998         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
22999         sets with COMPARE.
23000
23001         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
23002         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
23003         * config/m68k/constraints.md (H): New.
23004         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
23005         the define_insn below.
23006         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
23007         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
23008         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
23009         patterns): Wrap RHS with COMPARE.
23010         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
23011         (*cmpdi_internal): Name this pattern.
23012         (cmpdi): Change to define_insn.
23013         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
23014         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
23015         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
23016         predicate.
23017         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
23018         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
23019         (conditional_trap): Change to...
23020         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
23021         (*conditional_trap): Use the ordered_comparison_operator and
23022         const1_operand predicates.
23023         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
23024         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
23025         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
23026         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
23027
23028         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
23029         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
23030         (mcore_gen_compare): New.
23031         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
23032         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
23033         (mcore_gen_compare): ... this.
23034         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
23035         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
23036         (stack probe pattern): Use cbranchsi4.
23037
23038         * config/mips/predicates.md (mips_cstore_operator): New.
23039         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
23040         * config/mips/mips.md (any_cond): Delete.
23041         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
23042         always succeed.
23043         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
23044         fixuns_truncsfdi2): Use cbranch patterns.
23045         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
23046         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
23047         Adjust call to mips_expand_conditional_branch.
23048         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
23049         cstore<GPR:mode>4.
23050         * config/mips/mips-protos.h (mips_expand_conditional_branch,
23051         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
23052         * config/mips/mips.c (cmp_operands): Delete.
23053         (mips_emit_compare): Get comparison operands from *op0/*op1.
23054         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
23055         that it succeeds.  Use op0/op1 instead of cmp_operands.
23056         (mips_expand_conditional_branch, mips_expand_conditional_move,
23057         mips_expand_conditional_trap): Likewise.
23058         (mips_block_move_loop): Use cbranch patterns.
23059         * config/mips/mips.h (cmp_operands): Delete.
23060
23061         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
23062         (mmix_gen_compare_reg): Just return a register in the right CC mode.
23063         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
23064         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
23065         (*cmpcc_folded): Rename to...
23066         (*cmpdi_folded): this.
23067         (*cmpcc): Rename to...
23068         (*cmps): ... this.
23069         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
23070         (bCC): Remove.
23071         (cbranchdi4): New.
23072         (cbranchdf4): New.  Handle invalid comparisons here.
23073         * config/mmix/predicates.md (float_comparison_operator): New.
23074
23075         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
23076         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
23077         * config/mn10300/mn10300.md (tst): Delete.
23078         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
23079         Name these patterns and wrap RHS in a compare.
23080         (*cmpsi): Make this pattern private.  Include tst.
23081         (*cmpsf): Make this pattern private.
23082         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
23083         (compare with zero peepholes): Likewise.
23084         (bCC): Remove.
23085         (cbranchsi4, cbranchsf4): New.
23086         (casesi): Use cbranchsi4.
23087
23088         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
23089         hppa_branch_type): Delete.
23090         (return_addr_rtx): Use cbranchsi4.
23091         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
23092         Emit CCFPmode comparison here.
23093         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
23094         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
23095         hppa_branch_type): Delete.
23096         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
23097         (movsicc, movdicc): Remove references to hppa_compare_op0,
23098         hppa_compare_op1 and compare_from_rtx.
23099         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
23100         (casesi): Use cbranchsi4.
23101
23102         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
23103         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
23104         * config/pdp11/pdp11.md (register_or_const0_operand): New.
23105         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
23106         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
23107         (bCC): Delete.
23108         (cbranchdf4, cbranchhi4, cbranchqi4): New.
23109         (*branch, *branch_inverted): New.
23110
23111         * config/picochip/picochip.md (cbranchhi4): Use
23112         ordered_comparison_operator.
23113         (cmphi, bCC): Remove.
23114
23115         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
23116         (trap_comparison_operator): Delete.
23117         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
23118         rs6000_emit_cbranch): Accept mode and operands.
23119         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
23120         rs6000_compare_fp_p): Delete.
23121         (rs6000_generate_compare): Accept mode and comparison.  Extract code
23122         and op0/op1 from there.  Replace references to rs6000_compare_op0
23123         and rs6000_compare_op1.
23124         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
23125         extract result from passed operands.
23126         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
23127         extract loc from passed operands.
23128         (rs6000_emit_cmove): Likewise.
23129         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
23130         rs6000_compare_fp_p): Delete.
23131         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
23132         (cbranch<GPR>4, cbranch<FP>4): New.
23133         (cstore<mode>4): New.  Consolidate here all choices about when to use
23134         portable or specialized sCC sequences.
23135         (stack_protect_test): Use cbranchsi4.
23136         (conditional_trap): Replace with ctrap<GPR>4.
23137         (conditional trap insn): Replace trap_comparison_operator with
23138         ordered_comparison_operator.
23139
23140         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
23141         (s390_emit_prologue): Use ctrap.
23142         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
23143         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
23144         New predicates replacing...
23145         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
23146         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
23147         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
23148         (add<mode>cc): Do not use s390_compare_op0/op1.
23149         (s<code>): Change to...
23150         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
23151         (seq): Change to...
23152         (cstorecc4): ... this.  Handle EQ or NE equally.
23153         (*sne): Un-privatize for use in cstorecc4.
23154         (b<code>): Change to...
23155         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
23156         (conditional_trap): Replace with...
23157         (ctrap<GPR>4, ctrap<FP>4): ... these.
23158         (stack_protect): Use cbranchcc4.
23159
23160         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
23161         * config/score/score-protos.h (score_gen_cmp): Delete.
23162         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
23163         (score_block_move-loop): Use cbranchsi4.
23164         * config/score/score.md (cbranchsi4): New.
23165         (cmpsi, bCC): Delete.
23166         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
23167         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
23168         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
23169         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
23170         * config/score/score3.h (score3_gen_cmp): Delete.
23171         * config/score/score7.h (score7_gen_cmp): Delete.
23172
23173         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
23174         (sh_emit_scc_to_t): ... this.  Return void.
23175         (from_compare): Rename to...
23176         (sh_emit_compare_and_branch): ... this.
23177         (sh_emit_compare_and_set): New.
23178         (sh_expand_t_scc): Accept operands.
23179         * config/sh/predicates.md (sh_float_comparison_operator): New.
23180         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
23181         (prepare_scc_operands): Rename to...
23182         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
23183         arguments.
23184         (sh_emit_cheap_store_flag): New.
23185         (sh_emit_set_t_insn): New.
23186         (from_compare): Rename to...
23187         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
23188         handling of TARGET_SH2E floating point to avoid recursive call.
23189         Generate branch here.
23190         (sh_emit_compare_and_set): New.
23191         (sh_expand_t_scc): Get op0/op1 from arguments.
23192         (sh_emit_cheap_store_flag): New.
23193         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
23194         cases.
23195         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
23196         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
23197         (movsicc, movdicc): Do nothing when it recreated operands from
23198         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
23199         prepare_scc_operands (now sh_emit_scc_to_t).
23200         (udivdi3): Use cstoresi4.
23201         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
23202         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
23203         (cbranchint4_media, cbranchfp4_media): New.
23204         (casesi): Use cbranchdi4.
23205         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
23206         Delete.
23207         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
23208         (movnegt): Remove second operand.
23209         (cbranchsf4, cbranchdf4): New.
23210         (stack_protect): Use cbranchdi4/cbranchsi4.
23211
23212         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
23213         (gen_compare_reg): Accept comparison, extract part of it to...
23214         (gen_compare_reg_1): ... this.
23215         (gen_compare_operator): Delete.
23216         (gen_v9_scc): Accept separate destination, comparison code and arms.
23217         Do not use sparc_compare_op0/sparc_compare_op1.
23218         (emit_scc_insn, emit_conditional_branch_insn): New.
23219         (emit_v9_brxx): Make static.  Remove useless assertion.
23220         (sparc_emit_float_lib_cmp): Return RTL instead of calling
23221         emit_cmp_insn.
23222         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
23223         * config/sparc/sparc-protos.h (gen_compare_reg,
23224         sparc_emit_float_lib_cmp): Adjust prototype.
23225         (emit_scc_insn, emit_conditional_branch_insn): New.
23226         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
23227         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
23228         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
23229         iterators to the top.
23230         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
23231         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
23232         snedi_special_trunc): Delete.
23233         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
23234         and snedi_special_trunc.
23235         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
23236         cbranchdi4, cbranch<F:mode>4): New.
23237         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
23238         here.  Use gen_compare_reg instead of gen_compare_operator.
23239         (conditional_trap): Replace with...
23240         (ctrapsi4, ctrapdi4): ... this.
23241         (stack_protect_test): Use cbranchcc4.
23242
23243         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
23244         argument to rtx.
23245         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
23246         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
23247         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
23248         from operands[0] or operands[3] depending on is_set.
23249         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
23250         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
23251         cmpdf, bCC), sCC: Remove.
23252         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
23253         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
23254         cstoredf4): New.
23255         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
23256         spu_emit_branch_or_set.
23257
23258         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
23259         Add two arguments.
23260         * config/stormy16/stormy16.h (xstormy16_compare_op0,
23261         xstormy16_compare_op1): Delete.
23262         * config/stormy16/stormy16.c (xstormy16_compare_op0,
23263         xstormy16_compare_op1): Delete.
23264         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
23265         Adjust calls.
23266         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
23267         (cmphi, cmpsi, bCC): Remove.
23268
23269         * config/v850/v850.md (tstsi, cmpsi): Fold into...
23270         (*cmpsi): ... this one.
23271         (cbranchsi4, cstoresi4): New.
23272         (bCC expanders): Delete.
23273         (sCC insns): Fold into...
23274         (*setcc): ... this one.
23275         (casesi): Do not use gen_cmpsi and gen_bgtu.
23276         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
23277         (movsicc): Simplify.
23278         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
23279
23280         * config/vax/vax-protos.h (cond_name): New.
23281         (vax_output_conditional_branch): Remove.
23282         * config/vax/vax.c (cond_name): New.
23283         (vax_output_conditional_branch): Remove.
23284         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
23285         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
23286         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
23287         (bit<VAXint>): Wrap source with (compare).
23288         (b<code> and following unnamed pattern): Rename to *branch and
23289         *branch_reversed.  Change macroization to match_operator.
23290         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
23291
23292         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
23293         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
23294         Change last argument to machine_mode.
23295         (xtensa_expand_scc): Add machine_mode argument.
23296         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
23297         (gen_conditional_move, xtensa_expand_conditional_branch,
23298         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
23299         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
23300         Adjust operand numbers.
23301         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
23302         Delete.
23303         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
23304         (cmpsi, cmpsf, b<code>, s<code>): Delete.
23305         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
23306
23307 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
23308
23309         * optabs.c (prepare_cmp_insn): Temporarily disable test that
23310         causes spurious differences between trunk and cond-optab branch.
23311
23312 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
23313
23314         PR target/37137
23315         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
23316
23317 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
23318
23319         * tree.c (iterative_hash_pointer): Delete.
23320         (iterative_hash_expr): Short-circuit handling of NULL pointer.
23321         Hash UIDs and versions of SSA names.  Don't special-case built-in
23322         function declarations.
23323
23324 2009-05-11  Ian Lance Taylor  <iant@google.com>
23325
23326         PR bootstrap/40103
23327         * graphite.c: Force -Wc++-compat to only be a warning before
23328         #including "cloog/cloog.h".
23329
23330 2009-05-11  Martin Jambor  <mjambor@suse.cz>
23331
23332         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
23333
23334 2009-05-11  Jan Hubicka  <jh@suse.cz>
23335
23336         * tree-ssa-loop-ivcanon.c: Include target.h
23337         (struct loop_size): new structure.
23338         (constant_after_peeling): New predicate.
23339         (tree_estimate_loop_size): New function.
23340         (estimated_unrolled_size): Rewrite for new estimates.
23341         (try_unroll_loop_completely): Use new estimates.
23342         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
23343
23344 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23345
23346         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
23347         libcpp interface change.
23348         (spu_macro_to_expand): Likewise.
23349
23350 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
23351
23352         PR tree-optimization/40026
23353         * gimplify.c (gimplify_init_constructor): Change initial conditional
23354         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
23355         optimize_compound_literals_in_ctor.
23356
23357 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
23358
23359         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
23360         New devices.
23361         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
23362
23363 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
23364
23365         * tree-vect-data-refs.c (vect_analyze_group_access): Use
23366         HOST_WIDE_INT for gap.
23367
23368 2009-05-11  Ira Rosen  <irar@il.ibm.com>
23369
23370         PR tree-optimization/40074
23371         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
23372         account in group size and step comparison.
23373
23374 2009-05-11  Richard Guenther  <rguenther@suse.de>
23375
23376         * passes.c (init_optimization_passes): Strip now incorrect comment.
23377         (execute_function_todo): Do not set PROP_alias.
23378         * tree-pass.h (PROP_alias): Remove.
23379         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
23380         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
23381         * tree-nrv.c (pass_return_slot): Likewise.
23382         * tree-object-size.c (pass_object_sizes): Likewise.
23383         * tree-ssa-dom.c (pass_dominator): Likewise.
23384         (pass_phi_only_cprop): Likewise.
23385         * tree-ssa-dse.c (pass_dse): Likewise.
23386         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
23387         (pass_cselim): Likewise.
23388         * tree-ssa-pre.c (pass_pre): Likewise.
23389         (pass_fre): Likewise.
23390         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
23391         * tree-ssa-sink.c (pass_sink_code): Likewise.
23392         * tree-stdarg.c (pass_stdarg): Likewise.
23393         * tree-tailcall.c (pass_tail_calls): Likewise.
23394         * tree-vrp.c (pass_vrp): Likewise.
23395
23396 2009-05-10  Ian Lance Taylor  <iant@google.com>
23397
23398         * basic-block.h (enum profile_status): Break out of struct
23399         control_flow_graph.
23400         * cgraph.h (struct inline_summary): Break out of struct
23401         cgraph_local_info.
23402         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
23403         of struct cgraph_order_sort.
23404         * combine.c (enum undo_kind): New enum, broken out of struct undo.
23405         * cse.c (struct branch_path): Break out of struct
23406         cse_basic_block_data.
23407         * except.h (enum eh_region_type): Break out of struct eh_region.
23408         * gcc.c (enum add_del): Break out of struct modify_target.
23409         * genrecog.c (enum decision_type): Break out of struct decision_test.
23410         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
23411         ggc_pch_data.
23412         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
23413         * regmove.c (enum match_use): New enum, broken out of struct match.
23414         * sched-int.h (enum post_call_group): New enum, broken out of
23415         struct deps.
23416         (struct deps_reg): Break out of struct deps.
23417         * target.h (struct asm_int_op): Break out of struct gcc_target.
23418         * tree-eh.c (struct goto_queue_node): Break out of struct
23419         leh_tf_state.
23420         * tree-inline.h (enum copy_body_cge_which): Break out of
23421         copy_body_data.
23422         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
23423
23424         * c-decl.c (in_struct, struct_types): New static variables.
23425         (pushtag): Add loc parameter.  Change all callers.
23426         (lookup_tag): Add ploc parameter.  Change all callers.
23427         (check_compound_literal_type): New function.
23428         (parser_xref_tag): Add loc parameter.  Change all callers.  If
23429         -Wc++-compat, warn about struct/union/enum types defined within a
23430         struct or union.
23431         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
23432         and loc parameters.  Change all callers.  Change error calls to
23433         error_at, using loc.  For a redefinition, if the location of the
23434         original definition is known, report it.  Set in_struct and
23435         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
23436         (finish_struct): Add new parameters enclosing_in_struct and
23437         enclosing_struct_types.  Change all callers.  Set
23438         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
23439         in the struct.  If in a struct, add this struct to struct_types.
23440         (start_enum): Add loc parameter.  Change all callers.  Use
23441         error_at for errors, using loc.  For a redefinition, if the
23442         location of the original definition is known, report it.  If in a
23443         struct, add this enum type to struct_types.  If -Wc++-compat warn
23444         if in sizeof, typeof, or alignof.
23445         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
23446         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
23447         (c_parser_enum_specifier): Get enum location for start_enum.
23448         (c_parser_struct_or_union_specifier): Get struct location for
23449         start_struct.  Save in_struct and struct_types status between
23450         start_struct and finish_struct.
23451         (c_parser_cast_expression): Get location of cast.
23452         (c_parser_alignof_expression): Get location of type.
23453         (c_parser_postfix_expression): Likewise.
23454         (c_parser_postfix_expression_after_paren_type): Add type_loc
23455         parameter.  Change all callers.  Call check_compound_literal_type.
23456         Use type_loc for error about variable size type.
23457         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
23458         of an enum constant from an enum type defined in a struct or union.
23459         (c_cast_expr): Add loc parameter.  Change all callers.  If
23460         -Wc++-compat, warn about defining a type in a cast.
23461         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
23462         (start_enum, start_struct, finish_struct): Update declarations.
23463         (parser_xref_tag, c_cast_expr): Update declarations.
23464         (check_compound_literal_type): Declare.
23465
23466 2009-05-11  Ben Elliston  <bje@au.ibm.com>
23467
23468         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
23469         for recent libcpp interface change.
23470         (rs6000_macro_to_expand): Likewise.
23471
23472 2009-05-10  Michael Matz  <matz@suse.de>
23473
23474         PR target/40031
23475         * config/arm/arm.c (require_pic_register): Emit on entry edge,
23476         not at entry of function.
23477
23478 2009-05-10  Richard Guenther  <rguenther@suse.de>
23479
23480         PR tree-optimization/40081
23481         Revert
23482         * tree-sra.c (instantiate_element): Instantiate scalar replacements
23483         using the main variant of the element type.  Do not fiddle with
23484         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
23485
23486         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
23487         structs with volatile fields.
23488
23489 2009-05-10  Jan Hubicka  <jh@suse.cz>
23490
23491         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
23492         (estimate_move_cost): Assert that it does not get called for
23493         VOID_TYPE_P.
23494         (estimate_num_insns): Skip VOID types in argument handling.
23495         (optimize_inline_calls): Delete unreachable blocks and verify that
23496         callgraph is valid.
23497
23498 2009-05-10  Jan Hubicka  <jh@suse.cz>
23499
23500         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
23501         * cgraph.c (cgraph_mark_address_taken_node): New function.
23502         (dump_cgraph_node): Dump new flag.
23503         * cgraph.h (struct cgraph_node): Add address_taken.
23504         (cgraph_mark_address_taken_node): New function.
23505         * ipa.c (cgraph_postorder): Prioritize functions with address taken
23506         since new direct calls can be born.
23507
23508 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
23509
23510         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
23511         tok->val.node.node.
23512
23513 2009-05-10  Jan Hubicka  <jh@suse.cz>
23514
23515         PR middle-end/40084
23516         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
23517         argument; rewrite.
23518         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
23519         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
23520         * tree-inline.c (copy_bb): Set frequency correctly.
23521         (fold_marked_statements): Update call to
23522         cgraph_update_edges_for_call_stmt.
23523
23524 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
23525
23526         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
23527         identifiers in diagnostics.
23528         * config/arm/arm.c (arm_handle_fndecl_attribute,
23529         arm_handle_isr_attribute): Likewise.
23530         * config/avr/avr.c (avr_handle_progmem_attribute,
23531         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
23532         * config/bfin/bfin.c (handle_int_attribute,
23533         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
23534         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
23535         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
23536         Likewise.
23537         * config/darwin.c (darwin_handle_kext_attribute,
23538         darwin_handle_weak_import_attribute): Likewise.
23539         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
23540         h8300_handle_eightbit_data_attribute,
23541         h8300_handle_tiny_data_attribute): Likewise.
23542         * config/i386/i386.c (ix86_handle_cconv_attribute,
23543         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
23544         * config/i386/winnt.c (ix86_handle_shared_attribute,
23545         ix86_handle_selectany_attribute): Likewise.
23546         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
23547         * config/m32c/m32c.c (function_vector_handler): Likewise.
23548         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
23549         m68hc11_handle_fntype_attribute): Likewise.
23550         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
23551         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
23552         * config/mips/mips.c (mips_insert_attributes,
23553         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
23554         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
23555         rs6000_handle_struct_attribute): Likewise.
23556         * config/sh/sh.c (sh_insert_attributes,
23557         sh_handle_resbank_handler_attribute,
23558         sh_handle_interrupt_handler_attribute,
23559         sh2a_handle_function_vector_handler_attribute,
23560         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
23561         Likewise.
23562         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
23563         * config/spu/spu.c (spu_handle_fndecl_attribute,
23564         spu_handle_vector_attribute): Likewise.
23565         * config/stormy16/stormy16.c
23566         (xstormy16_handle_interrupt_attribute): Likewise.
23567         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
23568         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
23569
23570 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
23571
23572         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
23573         (pp_translate_identifiers): New.
23574         (pp_identifier): Only conditionally translate identifier to locale
23575         character set.
23576         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
23577         (pp_base_tree_identifier): Only conditionally translate identifier
23578         to locale character set.
23579         * c-pretty-print.c (M_): Define.
23580         (pp_c_type_specifier, pp_c_primary_expression): Mark English
23581         fragments for conditional translation with M_.
23582         * tree-pretty-print.c (maybe_init_pretty_print): Disable
23583         identifier translation.
23584
23585 2009-05-10  Richard Guenther  <rguenther@suse.de>
23586
23587         PR tree-optimization/40081
23588         * tree-sra.c (instantiate_element): Instantiate scalar replacements
23589         using the main variant of the element type.  Do not fiddle with
23590         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
23591
23592 2009-05-09  Jan Hubicka  <jh@suse.cz>
23593
23594         PR middle-end/40080
23595         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
23596         indirect calls; verify cgraph afterwards.
23597
23598 2009-05-09  Jan Hubicka  <jh@suse.cz>
23599
23600         PR bootstrap/40082
23601         * ipa.c (update_inlined_to_pointer): New function.
23602         (cgraph_remove_unreachable_nodes): Use it.
23603
23604 2009-05-09  Jan Hubicka  <jh@suse.cz>
23605
23606         * tree-eh.c (struct leh_state): Remove prev_try.
23607         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
23608         not track prev_try.
23609         * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
23610         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
23611         remove_eh_handler_and_replace, foreach_reachable_handler,
23612         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
23613         * except.h (struct eh_region): Remove eh_region_u_cleanup.
23614         (gen_eh_region_cleanup): Update prototype.
23615
23616 2009-05-09  Jan Hubicka  <jh@suse.cz>
23617
23618         PR middle-end/40043
23619         * except.c (copy_eh_region): Always set prev_try.
23620         (redirect_eh_edge_to_label): Find outer try.
23621         (foreach_reachable_handler): When looking for prev try
23622         handle case where previous try is not going to be taken.
23623
23624 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
23625
23626         PR tree-optimization/40049
23627         * tree-vect-stmts.c (vectorizable_operation): If the machine has
23628         only vector/vector shifts, convert the type of the constant to the
23629         appropriate type to avoid building incorrect trees, which
23630         eventually have problems with garbage collection.
23631
23632 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
23633
23634         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
23635         -1 for complex floating-point types if honoring signed zeros.
23636
23637 2009-05-08  Jan Hubicka  <jh@suse.cz>
23638
23639         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
23640         argument; handle correctly when profile is absent.
23641         (build_cgraph_edges): Update.
23642         (rebuild_cgraph_edges): Update.
23643         * cgraph.c: Do not include varray.h.
23644         (cgraph_set_call_stmt_including_clones): New function.
23645         (cgraph_create_edge_including_clones): Likewise
23646         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
23647         (cgraph_update_edges_for_call_stmt): Handle clones.
23648         (cgraph_remove_node): Handle clone tree.
23649         (cgraph_remove_node_and_inline_clones): New function.
23650         (dump_cgraph_node): Dump clone tree.
23651         (cgraph_clone_node): Handle clone tree.
23652         (clone_function_name): Bring here from tree-inline.c.
23653         (cgraph_create_virtual_clone): New function.
23654         * cgraph.h (ipa_replace_map): Move here from ipa.h.
23655         (cgraph_clone_info): New function.
23656         (strut cgraph_node): Add clone_info and new clone tree pointers.
23657         (cgraph_remove_node_and_inline_clones,
23658         cgraph_set_call_stmt_including_clones,
23659         cgraph_create_edge_including_clones,
23660         cgraph_create_virtual_clone): Declare.
23661         (cgraph_function_versioning): Use VEC argument.
23662         (compute_call_stmt_bb_frequency): Update prototype.
23663         (cgraph_materialize_all_clones): New function.
23664         * ipa-cp.c (ipcp_update_cloned_node): Remove.
23665         (ipcp_create_replace_map): Update to VECtors.
23666         (ipcp_update_callgraph): Use virtual clones.
23667         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
23668         (ipcp_update_profiling): Do not update local profiling.
23669         (ipcp_insert_stage): Use VECtors and virtual clones.
23670         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
23671         (clone_of_p): New function.
23672         (cgraph_preserve_function_body_p): Use clone tree.
23673         (cgraph_optimize): Materialize clones.
23674         (cgraph_function_versioning): Update for VECtors.
23675         (save_inline_function_body): Use clone tree.
23676         (cgraph_materialize_clone): New function.
23677         (cgraph_materialize_all_clones): Likewise.
23678         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
23679         * ipa.c: Include gimple.h.
23680         (cgraph_remove_unreachable_nodes): Use clone tree.
23681         * ipa-prop.c (ipa_note_param_call): Update call to
23682         compute_call_stmt_bb_frequencycall.
23683         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
23684         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
23685         (copy_bb): Handle updating of clone tree; add new edge when new call
23686         appears.
23687         (expand_call_inline): Be strict about every call having edge.
23688         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
23689         (delete_unreachable_blocks_update_callgraph): New function.
23690         (tree_function_versioning): Use VECtors; always remove unreachable
23691         blocks and fold conditionals.
23692         * tree-inline.h: Do not include varray.h.
23693         (tree_function_versioning): Remove.
23694         * Makefile.in (GTFILES): Remove tree-inline.c
23695         * passes.c (do_per_function): Do only functions having body.
23696         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
23697         tree.
23698
23699 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
23700             Andrew Morrow  <acm@google.com>
23701
23702         PR c/36892
23703         * c-common.c (c_common_attribute_table): Permit deprecated
23704         attribute to take an optional argument.
23705         (handle_deprecated_attribute): If the optional argument to
23706         __attribute__((deprecated)) is not a string ignore the attribute
23707         and emit a warning.
23708
23709         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
23710         * c-typeck.c (build_component_ref): Likewise.
23711         (build_external_ref): Likewise.
23712
23713         * toplev.c (warn_deprecated_use): Add an attribute argument.
23714         Emit the message associated with __attribute__((deprecated)).
23715
23716         * toplev.h (warn_deprecated_use): Updated.
23717
23718         * doc/extend.texi: Document new optional parameter to
23719         __attribute__((deprecated))
23720
23721 2009-05-08  Michael Eager <eager@eagercon.com>
23722
23723         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
23724         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
23725
23726 2009-05-08  Richard Guenther  <rguenther@suse.de>
23727
23728         PR tree-optimization/40062
23729         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
23730         Avoid exponential behavior.
23731
23732 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
23733
23734         PR rtl-optimization/33928
23735         PR 26854
23736         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
23737         process_uses, build_single_def_use_links): New.
23738         (update_df): Update use_def_ref.
23739         (forward_propagate_into): Use get_def_for_use instead of use-def
23740         chains.
23741         (fwprop_init): Call build_single_def_use_links and let it initialize
23742         dataflow.
23743         (fwprop_done): Free use_def_ref.
23744         (fwprop_addr): Eliminate duplicate call to df_set_flags.
23745         * df-problems.c (df_rd_simulate_artificial_defs_at_top,
23746         df_rd_simulate_one_insn): New.
23747         (df_rd_bb_local_compute_process_def): Update head comment.
23748         (df_chain_create_bb): Use the new RD simulation functions.
23749         * df.h (df_rd_simulate_artificial_defs_at_top,
23750         df_rd_simulate_one_insn): New.
23751         * opts.c (decode_options): Enable fwprop at -O1.
23752         * doc/invoke.texi (-fforward-propagate): Document this.
23753
23754 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
23755
23756         PR c/24581
23757         * c-typeck.c (build_binary_op): Handle arithmetic between one real
23758         and one complex operand specially.
23759         * tree-complex.c (some_nonzerop): Do not identify a real value as
23760         zero if flag_signed_zeros.
23761
23762 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
23763
23764         PR rtl-optimization/33928
23765         * loop-invariant.c (record_use): Fix && vs. || mishap.
23766
23767 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
23768
23769         PR rtl-optimization/33928
23770         * loop-invariant.c (struct use): Add addr_use_p.
23771         (struct def): Add n_addr_uses.
23772         (struct invariant): Add cheap_address.
23773         (create_new_invariant): Set cheap_address.
23774         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
23775         (record_uses): Pass df_ref to record_use.
23776         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
23777         used only as such.
23778
23779 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
23780
23781         * config/sh/sh.c: Do not include c-pragma.h.
23782
23783 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23784
23785         * config/spu/spu.c: Remove include of c-common.h.
23786
23787 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
23788
23789         PR c/39037
23790         * c-common.h (mark_valid_location_for_stdc_pragma,
23791         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
23792         clear_float_const_decimal64, float_const_decimal64_p): New.
23793         * c.opt (Wunsuffixed-float-constants): New.
23794         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
23795         unsuffixed float constant, handle new warning.
23796         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
23797         * c-decl.c (c_scope): New flag float_const_decimal64.
23798         (set_float_const_decimal64, clear_float_const_decimal64,
23799         float_const_decimal64_p): New.
23800         (push_scope): Set new flag.
23801         * c-parser.c (c_parser_translation_unit): Mark when it's valid
23802         to use STDC pragmas.
23803         (c_parser_external_declaration): Ditto.
23804         (c_parser_compound_statement_nostart): Ditto.
23805         * c-pragma.c (valid_location_for_stdc_pragma,
23806         mark_valid_location_for_stdc_pragma,
23807         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
23808         handle_pragma_float_const_decimal64): New.
23809         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
23810         * cp/semantics.c (valid_location_for_stdc_pragma_p,
23811         set_float_const_decimal64, clear_float_const_decimal64,
23812         float_const_decimal64_p): New dummy functions.
23813         * doc/extend.texi (Decimal Float): Remove statement that the
23814         pragma, and suffix for double constants, are not supported.
23815         * doc/invoke.texi (Warning Options): List new option.
23816         (-Wunsuffixed-float-constants): New.
23817
23818 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
23819
23820         * config/i386/i386.c: Do not include c-common.h.
23821
23822 2009-05-07  Mark Heffernan  <meheff@google.com>
23823
23824         * doc/invoke.texi (Debugging Options): Document change of debugging
23825         dump location.
23826         * opts.c (decode_options): Make dump_base_name relative to
23827         aux_base_name directory.
23828
23829 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
23830
23831         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
23832         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
23833
23834 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
23835
23836         * Makefile.in (install-plugin): Simplify a bit.
23837
23838 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
23839
23840         * Makefile.in (OBJS-common): Add regcprop.o.
23841         (regcprop.o): New.
23842         * timevar.def (TV_CPROP_REGISTERS): New.
23843         * regrename.c (regrename_optimize): Return 0.
23844         (rest_of_handle_regrename): Delete.
23845         (pass_rename_registers): Point to regrename_optimize.
23846         (struct value_data_entry, struct value_data,
23847         kill_value_one_regno, kill_value_regno, kill_value,
23848         set_value_regno, init_value_data, kill_clobbered_value,
23849         kill_set_value, kill_autoinc_value, copy_value,
23850         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
23851         replace_oldest_value_reg, replace_oldest_value_addr,
23852         replace_oldest_value_mem, copyprop_hardreg_forward_1,
23853         debug_value_data, validate_value_data): Move...
23854         * regcprop.c: ... here.
23855         (rest_of_handle_cprop): Delete.
23856         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
23857
23858 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
23859
23860         PR middle-end/40057
23861         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
23862         GEN_INT for 1 << bitnum.
23863         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
23864         build_int_cst_type.
23865
23866 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
23867
23868         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
23869         Remove wrong description of "nand" operation.
23870
23871 2009-05-06  Richard Guenther  <rguenther@suse.de>
23872             Adam Nemet  <anemet@caviumnetworks.com>
23873
23874         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
23875         comment.  Add that if LHS is not a gimple register, then RHS1 has
23876         to be a single object (GIMPLE_SINGLE_RHS).
23877
23878 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
23879
23880         * expr.c (get_def_for_expr): Move it up in the file.
23881         (store_field): When expanding a bit-field store, look at the
23882         defining gimple stmt for the masking conversion.
23883
23884 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
23885
23886         PR middle-end/39986
23887         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
23888         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
23889         32-bit memcpy into long.
23890
23891 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
23892
23893         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
23894         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
23895         new_reg_loc_descr.
23896         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
23897         instead of appending DW_OP_deref*.
23898
23899 2009-05-06  Michael Matz  <matz@suse.de>
23900
23901         PR middle-end/40021
23902         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
23903         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
23904
23905 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
23906
23907         * Makefile.in (install-plugin): Fix srcdir handling.
23908
23909 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
23910
23911         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
23912         when processing for not_regs_needed bitmap.
23913         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
23914         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while
23915         handling it for rhs.
23916
23917 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
23918
23919         * config/i386/i386.md (unnamed inc/dec peephole): Use
23920         optimize_insn_for_size_p instead of optimize_size.
23921         * config/i386/predicates.md (incdec_operand): Likewise.
23922         (aligned_operand): Likewise.
23923         * config/i386/sse.md (divv8sf3): Likewise.
23924         (sqrtv8sf2): Likewise.
23925
23926 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
23927
23928         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
23929
23930         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
23931
23932 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
23933
23934         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
23935         ssemodesuffixf2c with avxmodesuffixf2c.
23936
23937 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
23938
23939         PR c/40032
23940         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
23941
23942 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
23943
23944         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
23945         (struct tree_base): Adjust spacing for 8 bit boundaries.
23946         (struct tree_decl_common): Add decl_by_reference_flag bit.
23947         (DECL_BY_REFERENCE): Adjust.
23948         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
23949         print DECL_BY_REFERENCE bit.
23950         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
23951         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
23952         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
23953         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
23954         unconditionally.
23955
23956         PR middle-end/39666
23957         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
23958         range of the type, but default label is missing, add it with one
23959         of the existing labels instead of adding a new label for it.
23960
23961 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
23962
23963         * dwarf.h: Remove.
23964
23965 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
23966
23967         * Makefile.in (enable_plugin, plugin_includedir): New.
23968         (install): Depend on install-plugin.
23969         (PLUGIN_HEADERS): New.
23970         (install-plugin): New.
23971         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
23972
23973 2009-05-05  Richard Guenther  <rguenther@suse.de>
23974
23975         PR tree-optimization/40022
23976         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
23977         the only vuse.
23978         (phivn_valid_p): Fix tuplification error, simplify.
23979         (phiprop_insert_phi): Add dumps.
23980         (propagate_with_phi): Simplify.
23981
23982 2009-05-05  Richard Guenther  <rguenther@suse.de>
23983
23984         PR middle-end/40023
23985         * builtins.c (gimplify_va_arg_expr): Properly build the address.
23986
23987 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
23988
23989         * tree.h (strip_float_extensions): Remove duplicate declaration.
23990         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
23991         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
23992         block_ultimate_origin): Rearrange the declarations line to match the
23993         comment that indicates the .c file which the functions are defined.
23994         (dwarf2out_*, set_decl_rtl): Add comment.
23995         (get_base_address): Adjust comment.
23996         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
23997         declarations line and add comment.
23998         (is_builtin_name): Add blank after function name, for clarity.
23999
24000 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
24001
24002         * attribs.c (decl_attributes): Use %qE for identifiers in
24003         diagnostics.
24004         * cgraphunit.c (verify_cgraph_node): Translate function names to
24005         locale character set in diagnostics.
24006         * coverage.c (get_coverage_counts): Use %qE for identifiers in
24007         diagnostics.
24008         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
24009         Document that functions are named in UTF-8.
24010         * expr.c (expand_expr_real_1): Translate function names to locale
24011         character set in diagnostics.
24012         * gimplify.c (omp_notice_variable, omp_is_private,
24013         gimplify_scan_omp_clauses): Use %qE for identifiers in
24014         diagnostics.
24015         * langhooks.c (lhd_print_error_function): Translate function names
24016         to locale character set.
24017         * langhooks.h (decl_printable_name): Document that return value is
24018         in internal character set.
24019         * stmt.c: Include pretty-print.h
24020         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
24021         diagnostics.
24022         (resolve_operand_name_1): Translate named operand name to locale
24023         character set.
24024         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
24025         diagnostics.
24026         * toplev.c (announce_function): Translate function names to locale
24027         character set.
24028         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
24029         (default_tree_printer): Use pp_identifier or translate identifiers
24030         to locale character set.  Mark "<anonymous>" for translation.
24031         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
24032         for identifiers in diagnostics.
24033         * tree.c (handle_dll_attribute): Use %qE for identifiers in
24034         diagnostics.
24035         * varasm.c (output_constructor): Use %qE for identifiers in
24036         diagnostics.
24037
24038 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
24039
24040         * configure.ac: use ` ` instead of $()
24041         * configure: Regenerate.
24042
24043 2009-05-05  Ben Elliston  <bje@au.ibm.com>
24044
24045         * config/pa/linux-atomic.c: Eliminate conditional include of
24046         errno.h on non-LP64 systems to simplify build requirements.
24047
24048 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
24049
24050         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
24051         diagnostics.
24052         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
24053         and pass value to identifier_to_locale.
24054         (warn_variable_length_array): Make name a tree.
24055         (grokdeclarator): Separate diagnostic texts for named and unnamed
24056         declarators.  Use %qE for named declarators.
24057         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
24058         diagnostics.
24059         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
24060         identifiers in diagnostics.
24061         * c-typeck.c (push_member_name, start_init): Pass identifiers to
24062         identifier_to_locale.  Mark "anonymous" strings for translation.
24063
24064 2009-05-04  Michael Eager <eager@eagercon.com>
24065
24066         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
24067         address for DImode/DFmode only if double-precision FP regs.
24068
24069 2009-05-04  Michael Eager <eager@eagercon.com>
24070
24071         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
24072         TARGET_SINGLE_FLOAT check.
24073
24074 2009-05-04  Michael Eager <eager@eagercon.com>
24075
24076         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
24077
24078 2009-05-04  Michael Eager <eager@eagercon.com>
24079
24080         * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
24081         * config/rs6000/t-xilinx: New
24082
24083 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
24084
24085         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
24086         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
24087         * gcc/explow.c (memory_address): Use target hook.
24088         * gcc/targhooks.c (default_legitimize_address): New.
24089         * gcc/targhooks.h (default_legitimize_address): New.
24090         * gcc/target.h (legitimize_address): New.
24091         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
24092         (TARGET_INITIALIZER): Include it.
24093         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
24094
24095         * config/bfin/bfin-protos.h (legitimize_address): Remove.
24096         * config/bfin/bfin.c (legitimize_address): Remove.
24097         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
24098         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
24099         Remove.
24100         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
24101         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
24102
24103         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
24104         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
24105         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
24106         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
24107         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
24108         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
24109         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
24110         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
24111         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
24112         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
24113         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
24114         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
24115         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
24116         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
24117         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
24118         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
24119         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
24120         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
24121         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
24122         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
24123         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
24124         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
24125         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
24126
24127         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
24128         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
24129         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
24130         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
24131         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
24132         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
24133         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
24134         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
24135         (thumb_legitimize_address): Delete.
24136         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
24137         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
24138         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
24139         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
24140         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
24141         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
24142         Delete.
24143         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
24144         Delete.
24145
24146         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
24147         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
24148         * config/m32r/m32r.c (m32r_legitimize_address): New.
24149         * config/m68k/m68k.c (m68k_legitimize_address): New.
24150         * config/score/score.c (score_legitimize_address): Standardize.
24151         * config/score/score3.c (score3_legitimize_address): Standardize.
24152         * config/score/score3.h (score3_legitimize_address): Adjust.
24153         * config/score/score7.c (score7_legitimize_address): Standardize.
24154         * config/score/score7.h (score7_legitimize_address): Adjust.
24155         * config/sh/sh.c (sh_legitimize_address): New.
24156         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
24157
24158         * gcc/config/s390/s390.c (legitimize_address): Rename to...
24159         (s390_legitimize_address): ... this.
24160         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
24161         (sparc_legitimize_address): ... this.
24162         * gcc/config/i386/i386.c (legitimize_address): Rename to...
24163         (ix86_legitimize_address): ... this.
24164         * gcc/config/avr/avr.c (legitimize_address): Rename to...
24165         (avr_legitimize_address): ... this.
24166         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
24167         (mn10300_legitimize_address): ... this.
24168         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
24169         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
24170         (alpha_expand_mov): Adjust call.
24171
24172         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
24173         * config/spu/spu.c (spu_legitimize_address): Likewise.
24174         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
24175         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
24176
24177 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
24178
24179         * intl.c (locale_encoding, locale_utf8): New.
24180         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
24181         * intl.h (locale_encoding, locale_utf8): Declare.
24182         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
24183         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
24184         New.
24185         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
24186         argument.
24187         (pp_tree_identifier): Define to call pp_base_tree_identifier.
24188         (pp_base_tree_identifier): Declare as function.
24189         (identifier_to_locale): Declare.
24190         * Makefile.in (pretty-print.o): Update dependencies.
24191         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
24192
24193 2009-05-04  Richard Guenther  <rguenther@suse.de>
24194
24195         PR middle-end/40015
24196         * builtins.c (fold_builtin_memory_op): Do not decay to element
24197         type if the size matches the whole array.
24198
24199 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
24200
24201         * expmed.c (synth_mult): When trying out a shift, pass the result
24202         of a signed shift.
24203
24204 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
24205
24206         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
24207         (shiftsub1_cost): New.
24208         (init_expmed): Compute shiftsub1_cost.
24209         (synth_mult): Optimize multiplications by constants of the form
24210         -(2^^m-1) for some constant positive integer m.
24211
24212 2009-05-03  Richard Guenther  <rguenther@suse.de>
24213
24214         PR c/39983
24215         * c-typeck.c (array_to_pointer_conversion): Do not built
24216         ADDR_EXPRs of arrays of pointer-to-element type.
24217         * c-gimplify.c (c_gimplify_expr): Revert change fixing
24218         up wrong ADDR_EXPRs after-the-fact.
24219         * c-common.c (strict_aliasing_warning): Strip pointer
24220         conversions for obtaining the original type.
24221         * builtins.c (fold_builtin_memset): Handle array types.
24222         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
24223         and array types
24224
24225 2009-05-03  Richard Guenther  <rguenther@suse.de>
24226
24227         PR middle-end/23329
24228         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
24229         Do not lose casts from array types with unknown extent to array
24230         types with known extent.
24231         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
24232         alias set compatibility.
24233
24234 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24235
24236         * flags.h (extra_warnings): Delete.
24237         * toplev.c (process_options): Handle Wuninitialized here.
24238         * opts.c (extra_warnings): Delete.
24239         (set_Wextra): Delete.
24240         (common_handle_option): -Wextra can be handled automatically.
24241         * c-opts.c (c_common_handle_option): Delete obsolete code.
24242         (c_common_post_options): Simplify comment.
24243         * common.opt (W): Add Var.
24244         (Wextra): Add Var.
24245         (Wuninitialized): Initialize to -1.
24246
24247 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
24248             Richard Guenther  <rguenther@suse.de>
24249
24250         * expr.c (get_def_for_expr): New function.
24251         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
24252         SSA rather than trees.
24253         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
24254         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
24255
24256 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
24257
24258         * c-common.c (reswords): Add _Imaginary.
24259         * c-common.c (enum rid): Add RID_IMAGINARY.
24260
24261 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
24262
24263         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
24264         Patch by Richard Guenther.
24265
24266 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
24267
24268         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
24269         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
24270         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
24271         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
24272         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
24273         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
24274         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
24275         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
24276         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
24277         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
24278         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
24279         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
24280         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
24281         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
24282         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
24283         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
24284         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
24285         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
24286
24287 2009-05-02  Richard Guenther  <rguenther@suse.de>
24288
24289         PR tree-optimization/39940
24290         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
24291         doing so.
24292
24293 2009-05-02  Richard Guenther  <rguenther@suse.de>
24294
24295         PR middle-end/40001
24296         * tree-ssa.c (execute_update_addresses_taken): Properly check
24297         if we can mark a variable DECL_GIMPLE_REG_P.
24298         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
24299         back to the end of the function.
24300         (is_gimple_reg_type): Remove complex type special casing.
24301         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
24302         if not optimizing.
24303
24304 2009-05-02  Ben Elliston  <bje@au.ibm.com>
24305
24306         * doc/collect2.texi (Collect2): Document search path behaviour
24307         when configured with --with-ld.
24308
24309 2009-05-02  Jan Hubicka  <jh@suse.cz>
24310
24311         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
24312         parameter; update callers.
24313         (coalesce_cost_edge): EH edges are costier because they needs
24314         splitting even if not critical and even more costier when there are
24315         multiple EH predecestors.
24316
24317 2009-05-02  Jan Hubicka  <jh@suse.cz>
24318
24319         * except.c (remove_eh_handler_and_replace): Handle updating after
24320         removing TRY blocks.
24321
24322 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
24323
24324         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
24325
24326 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
24327
24328         * varasm.c: Do not include c-pragma.h.
24329         * attribs.c: Do not incude c-common.h.
24330
24331 2009-05-01  Michael Matz  <matz@suse.de>
24332
24333         * calls.c (initialize_argument_information): Handle SSA names like
24334         decls with a non MEM_P DECL_RTL.
24335
24336 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
24337
24338         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
24339         * ipa-utils.c: Likewise.
24340         * ipa-type-escape.c: Likewise.
24341         * cgraphunit.c Do not include c-common.h.
24342         * ipa-pure-const.c: Likewise.
24343         * tree-if-conv.c: Likewise.
24344         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
24345         * ipa-struct-reorg.c: Likewise.
24346         * tree-nomudflap.c: Likewise.
24347         * tree-ssa-structalias.c: Likewise.
24348
24349 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
24350
24351         * store-motion.c: Many cleanups to make this pass a first-class
24352         citizen instead of an appendix to gcse load motion.  Add TODO list
24353         to make this pass faster/cleaner/better.
24354
24355         (struct ls_expr): Post gcse.c-split cleanups.
24356         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
24357         "stores" field to "avail_stores".
24358         (pre_ldst_mems): Rename to store_motion_mems.
24359         (pre_ldst_table): Rename to store_motion_mems_table.
24360         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
24361         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
24362         (ldst_entry): Rename to st_expr_entry, update users.
24363         (free_ldst_entry): Rename to free_st_expr_entry, update users.
24364         (free_ldst_mems): Rename to free_store_motion_mems, update users.
24365         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
24366         update caller.
24367         (first_ls_expr): Rename to first_st_expr, update users.
24368         (next_ls_expr): Rename to next_st_expr, update users.
24369         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
24370         fields properly for store motion instead of names inherited from load
24371         motion in gcse.c.
24372         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
24373         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
24374         are done with it.
24375
24376         (ae_kill): Rename to st_kill, update users.
24377         (ae_gen): Rename to st_avloc, update users.
24378         (transp): Rename to st_transp, update users.
24379         (pre_insert_map): Rename to st_insert_map, update users.
24380         (pre_delete_map): Rename to st_delete_map, update users.
24381         (insert_store, build_store_vectors, free_store_memory,
24382         one_store_motion_pass): Update for abovementioned changes.
24383
24384         (gcse_subst_count, gcse_create_count): Remove.
24385         (one_store_motion_pass): New statistics counters "n_stores_deleted"
24386         and "n_stores_created", local variables.
24387
24388         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
24389         use for_each_rtx.
24390
24391         (regvec, compute_store_table_current_insn): Remove.
24392         (reg_set_info, reg_clear_last_set): Remove.
24393         (compute_store_table): Use DF caches instead of local dataflow
24394         solvers.
24395
24396 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
24397
24398         * c-objc-common.c (c_tree_printer): Print identifiers with
24399         pp_identifier, not pp_string.  Mark "({anonymous})" for
24400         translation.
24401         * c-pretty-print.c (pp_c_ws_string): New.
24402         (pp_c_cv_qualifier, pp_c_type_specifier,
24403         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
24404         pp_c_storage_class_specifier, pp_c_function_specifier,
24405         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
24406         pp_c_primary_expression, pp_c_postfix_expression,
24407         pp_c_unary_expression, pp_c_shift_expression,
24408         pp_c_relational_expression, pp_c_equality_expression,
24409         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
24410         use pp_string and pp_c_ws_string in place of pp_identifier and
24411         pp_c_identifier for non-identifiers.  Mark English strings for
24412         translation.
24413         * c-pretty-print.h (pp_c_ws_string): Declare.
24414
24415 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
24416             Roland McGrath <roland@redhat.com>
24417
24418         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
24419         (ENABLE_LD_BUILDID): New configuration option.
24420         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
24421         (LINK_BUILDID_SPEC): New macro.
24422         (init_spec): If defined, prepend it between LINK_EH_SPEC and
24423         link_spec.
24424         * doc/install.texi: Document --enable-linker-build-id option.
24425         * configure: Rebuild.
24426         * config.in: Rebuild.
24427
24428 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
24429
24430         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
24431         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
24432         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
24433         MIPS_GP_SAVE_AREA_SIZE.
24434         * config/mips/mips.c (struct mips_frame_info): Update comment
24435         before arg_pointer_offset and hard_frame_pointer_offset.
24436         (mips_compute_frame_info): Update diagram before function: to
24437         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
24438         indicate the position of frame_pointer_rtx with -fstack-protector and
24439         to show args_size.  Don't allocate cprestore area for leaf functions
24440         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
24441         cprestore_size.
24442         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
24443
24444 2009-04-30  Michael Matz  <matz@suse.de>
24445
24446         PR tree-optimization/39955
24447         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
24448
24449 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
24450
24451         * ira.c (setup_cover_and_important_classes):  Use safe macro
24452         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
24453         directly.
24454         * genpreds.c (write_tm_preds_h):  Output suitable definition of
24455         REG_CLASS_FOR_CONSTRAINT.
24456
24457 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
24458
24459         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
24460         instead of an int.
24461         * bitmap.c (bitmap_descriptor): Likewise.
24462         * ggc-common.c (loc_descriptor): Likewise.
24463         * varray.c (varray_descriptor): Likewise.
24464         * vec.c (vec_descriptor): Likewise.
24465
24466 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
24467
24468         * Makefile.in (dce.o): Add $(EXCEPT_H).
24469         * dce.c: Include except.h and delete redundant vector definitions.
24470         (deletable_insn_p): Return false for non-call insns that can throw
24471         if DF is running.
24472
24473 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
24474
24475         * gcse.c (ae_gen): Remove.
24476         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
24477         and make non-static function to make it available in store-motion.c.
24478         Update call sites with search-and-replace.
24479         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
24480         extract_mentioned_regs, extract_mentioned_regs_helper,
24481         find_moveable_store, compute_store_table, load_kills_store, find_loads,
24482         store_killed_in_insn, store_killed_after, store_killed_before,
24483         build_store_vectors, insert_insn_start_basic_block, insert-store,
24484         remove_reachable_equiv_notes, replace_store_insn, delete_store,
24485         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
24486         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
24487         * store-motion.c: ...new file.  Also copy data structures from gcse.c
24488         and clean up to remove parts not used by store motion.
24489         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
24490         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
24491
24492 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24493
24494         PR target/38571
24495         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
24496         when optimizing for size.
24497
24498 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
24499
24500         * gcse.c (gcse_constant_p): Fix typo in last change.
24501
24502 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
24503
24504         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
24505
24506 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
24507
24508         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
24509
24510 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
24511
24512         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
24513         CONST_HIGH_PART result.
24514
24515 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
24516
24517         * config/avr/avr.c (initial_elimination_offset): Rename to
24518         avr_initial_elimination_offset.
24519         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
24520         change return type to bool.
24521         (avr_can_eliminate): New function.
24522         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
24523         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
24524         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
24525         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
24526         avr_initial_elimination_offset.
24527         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
24528         (avr_initial_elimination_offset): Define.
24529
24530 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
24531             Steven Bosscher  <steven@gcc.gnu.org>
24532
24533         PR rtl-optimization/39938
24534         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
24535         * cfgrtl.c: Include insn-attr.h.
24536         (rest_of_pass_free_cfg): New function.
24537         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
24538         * resource.c (init_resource_info): Remove call to df_analyze.
24539
24540 2009-04-29  Richard Guenther  <rguenther@suse.de>
24541
24542         PR target/39943
24543         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
24544         allow conversion to signed integers.
24545
24546 2009-04-29  Richard Guenther  <rguenther@suse.de>
24547
24548         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
24549         shifts of floating point vectors if the shift amount is
24550         a constant multiple of the element size.
24551
24552 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
24553             Michael Matz  <matz@suse.de>
24554
24555         PR middle-end/39927
24556         PR bootstrap/39929
24557         * tree-outof-ssa.c (emit_partition_copy): New function.
24558         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
24559         insert_part_to_rtx_on_edge): Perform the partition base var
24560         copy using emit_partition_copy.
24561         (insert_value_copy_on_edge): Convert constants to the right mode.
24562         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
24563         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
24564
24565 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
24566
24567         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
24568         scan backwards to try to find a constant to initialize it.
24569
24570         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
24571         insn before the loop_end instruction, don't look past labels.
24572
24573 2009-04-29  Richard Guenther  <rguenther@suse.de>
24574
24575         PR middle-end/39937
24576         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
24577         loose type conversions.
24578         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
24579         stmts only if there are no uses of its definition.
24580
24581 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
24582
24583         * config/bfin/bfin.h (splitting_loops): Declare.
24584         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
24585         Reorder bit definitions to be ascending.
24586         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
24587         * config/bfin/bfin.c (splitting_loops): New variable.
24588         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
24589         (struct loop_info): Remove members INIT and LOOP_INIT.
24590         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
24591         the LSETUP sequence.  Allow LC to be loaded from any register, but
24592         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
24593         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
24594         set to 1.
24595         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
24596         of reload_completed.
24597
24598         From Jie Zhang:
24599         * config/bfin/bfin.md (movsi_insn): Refine constraints.
24600
24601 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
24602
24603         * Makefile.in (PLUGIN_VERSION_H): New.
24604         (OBJS-common): Remove plugin-version.o.
24605         (plugin.o): Depend on (PLUGIN_VERSION_H).
24606         (plugin-version.o): Remove.
24607         * configure: Regenerate
24608         * configure.ac: Create plugin-version.h.
24609         * gcc-plugin.h (plugin_gcc_version): Remove.
24610         (plugin_default_version_check): Change signature.
24611         * plugin-version.c: Remove.
24612         * plugin.c: Include plugin-version.h.
24613         (str_plugin_gcc_version_name): Remove.
24614         (try_init_one_plugin): Pass gcc version to plugin_init.
24615         (plugin_default_version_check): Both gcc and plugin versions are now
24616         arguments.
24617
24618 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
24619
24620         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
24621         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
24622         Remove special case testing for last insn of inner loops. Don't fail
24623         if the loop ends with a jump, emit an extra nop instead.
24624
24625         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
24626         DREGS rather than comparing directly.  Remove code that tries to
24627         account for latencies.
24628
24629 2009-04-29  Richard Guenther  <rguenther@suse.de>
24630
24631         PR tree-optimization/39941
24632         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
24633         eliminating an indirect call.
24634
24635 2009-04-29  Richard Guenther  <rguenther@suse.de>
24636
24637         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
24638         parameter.  Allow invariants as base if !require_lvalue.
24639         (verify_gimple_assign_single): Adjust.
24640
24641 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
24642
24643         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
24644         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
24645         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
24646         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
24647         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
24648         a VEC_SELECT.
24649         * config/bfin/bfin.c (bfin_expand_builtin,
24650         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
24651
24652 2009-04-28  Richard Guenther  <rguenther@suse.de>
24653
24654         * tree-vect-loop.c (get_initial_def_for_induction): Use
24655         correct types for pointer increment.
24656
24657 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24658
24659         * toplev.c (print_version): Update GMP version string calculation.
24660
24661 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
24662
24663         PR rtl-optimization/39938
24664         * resource.c (init_resource_info): Add call to df_analyze.
24665
24666 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
24667
24668         * config/alpha/alpha.md (usegp): Cast the result of
24669         alpha_find_lo_sum_using_gp to enum attr_usegp.
24670         * config/alpha/alpha.c (override_options): Remove end-of-structure
24671         marker element from cpu_table.  Use array size of cpu_table to handle
24672         -mcpu and -mtune options.
24673         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
24674
24675 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
24676
24677         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
24678         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
24679         tune_32 and tune_64.
24680         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
24681         support on PowerPC.
24682         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
24683         * config/rs6000/option-defaults.h: ... here.  New file.
24684         (OPT_64, OPT_32): Define.
24685         (MASK_64BIT): Define to 0 if not already defined.
24686         (OPT_ARCH64, OPT_ARCH32): Define.
24687         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
24688         and tune_64.
24689
24690 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24691
24692         * config/arm/arm.c (arm_override_options): Emit error on using
24693         fpa with AAPCS.
24694
24695 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
24696
24697         PR rtl-optimization/39914
24698         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
24699         registers for allocnos created from user-defined variables only
24700         when not optimizing.
24701
24702 2009-04-28  Richard Guenther  <rguenther@suse.de>
24703
24704         PR middle-end/39937
24705         * fold-const.c (fold_binary): Use distribute_real_division only
24706         on float types.
24707
24708 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
24709
24710         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
24711         add hpux-stdint.h to tm_file.
24712         (hppa[12]*-*-hpux11*): Ditto.
24713         (ia64*-*-hpux*): Ditto.
24714         * config/hpux-stdint.h: New.
24715         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
24716         __STDC_EXT__ for all compiles.
24717         * config/pa/pa-hpux.h: Ditto.
24718         * config/pa/pa-hpux10.h: Ditto.
24719         * config/pa/pa-hpux11.h: Ditto.
24720
24721 2009-04-28  Catherine Moore  <clm@codesourcery.com>
24722
24723         * debug.h (set_name): Add comment.
24724
24725 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
24726
24727         PR target/39929
24728         * config/darwin.c (machopic_gen_offset): Check
24729         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
24730         * config/arm/arm.c (require_pic_register): Likewise.
24731
24732 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
24733
24734         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
24735         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
24736         m32c_promote_prototypes): Delete.
24737
24738 2009-04-28  Michael Matz  <matz@suse.de>
24739
24740         PR middle-end/39922
24741         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
24742         constants.
24743
24744 2009-04-28  Richard Guenther  <rguenther@suse.de>
24745
24746         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
24747
24748 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24749
24750         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
24751         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
24752         * config/arm/arm-tune.md: Regenerate.
24753
24754 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
24755
24756         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
24757         block if there are complex incoming edges.
24758         (sel_merge_blocks): Remove useless assert.
24759         (sel_redirect_edge_and_branch): Check that edge was redirected.
24760         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
24761         (sel_find_rgns): Delete declaration.
24762         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
24763         the region when it is not a preheader.
24764
24765 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
24766
24767         PR c/39323
24768         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
24769
24770 2009-04-28  Richard Guenther  <rguenther@suse.de>
24771
24772         * tree.h (SSA_NAME_VALUE): Remove.
24773         (struct tree_ssa_name): Remove value_handle member.
24774         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
24775         array for jump threading.
24776         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
24777         SSA_NAME_VALUEs.
24778         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
24779         * tree-flow.h (threadedge_initialize_values): Declare.
24780         (threadedge_finalize_values): Likewise.
24781         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
24782         (SSA_NAME_VALUE): Define.
24783         (threadedge_initialize_values): New function.
24784         (threadedge_finalize_values): Likewise.
24785         * tree-ssa-dom.c (ssa_name_values): New global variable.
24786         (SSA_NAME_VALUE): Define.
24787         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
24788
24789 2009-04-28  Ira Rosen  <irar@il.ibm.com>
24790
24791         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
24792         Use REPORT_VECTORIZED_LOCATIONS instead
24793         REPORT_VECTORIZED_LOOPS.
24794         * tree-vectorizer.c (vect_verbosity_level): Make static.
24795         (vect_loop_location): Rename to vect_location.
24796         (vect_set_verbosity_level): Update comment.
24797         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
24798         and vect_location.
24799         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
24800         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
24801         instead REPORT_UNVECTORIZED_LOOPS.
24802         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
24803         and vect_loop_def to vect_external_def and vect_internal_def.
24804         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
24805         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
24806         REPORT_UNVECTORIZED_LOCATIONS.
24807         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
24808         and vect_used_in_loop and to vect_unused_in_scope and
24809         vect_used_in_scope.
24810         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
24811         (vect_verbosity_level): Remove declaration.
24812         (vect_analyze_operations): Likewise.
24813         (vect_analyze_stmt): Declare.
24814         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
24815         REPORT_UNVECTORIZED_LOCATIONS.
24816         (vect_get_loop_niters): Fix indentation.
24817         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
24818         (vect_analyze_loop_operations): New function.
24819         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
24820         vect_analyze_operations.
24821         (vect_is_simple_reduction): Use new names.
24822         (vectorizable_live_operation, vect_transform_loop): Likewise.
24823         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
24824         to specify whether the data references can be a part of interleaving
24825         chain.
24826         (vect_analyze_data_ref_dependence): Use new names.
24827         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
24828         (vect_create_addr_base_for_vector_ref): Remove redundant code.
24829         * tree-vect-patterns.c (widened_name_p): Use new names.
24830         (vect_recog_dot_prod_pattern): Likewise.
24831         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
24832         (process_use, vect_mark_stmts_to_be_vectorized,
24833         vect_model_simple_cost, vect_model_store_cost,
24834         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
24835         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
24836         vectorizable_operation, vectorizable_type_demotion,
24837         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
24838         vectorizable_condition): Likewise.
24839         (vect_analyze_operations): Split into vect_analyze_loop_operations
24840         and ...
24841         (vect_analyze_stmt): ... new function.
24842         (new_stmt_vec_info): Use new names.
24843         (vect_is_simple_use): Use new names and fix comment.
24844         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
24845         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
24846
24847 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
24848
24849         PR target/39911
24850         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
24851         and integer modes for x87 operands.  Do not ICE for unsupported size,
24852         generate error instead.  Generate error for unsupported operand types.
24853         ['z']: Do not handle HImode memory operands specially.  Warning
24854         for floating-point operands.  Fallthru to 'Z' for unsupported operand
24855         types.  Do not ICE for unsupported size, generate error instead.
24856         (output_387_binary_op): Use %Z to output operands.
24857         (output_fp_compare): Ditto.
24858         (output_387_reg_move): Ditto.
24859
24860 2009-04-28  Ben Elliston  <bje@au.ibm.com>
24861
24862         PR c++/35652
24863         Revert:
24864
24865         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24866
24867         * builtins.c (c_strlen): Do not warn here.
24868         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
24869         * c-common.c (pointer_int_sum): Take an explicit location.
24870         Warn about offsets out of bounds.
24871         * c-common.h (pointer_int_sum): Adjust declaration.
24872
24873 2009-04-27  Ian Lance Taylor  <iant@google.com>
24874
24875         * collect2.c (is_ctor_dtor): Change type of ret field in struct
24876         names to symkind.
24877         * dce.c (run_fast_df_dce): Change type of old_flags to int.
24878         * df-core.c (df_set_flags): Change return type to int.  Change
24879         type of old_flags to int.
24880         (df_clear_flags): Likewise.
24881         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
24882         (df_get_conditional_uses): Likewise.
24883         * df.h (df_set_flags, df_clear_flags): Update declarations.
24884         * dwarf2out.c (struct indirect_string_node): Change type of form
24885         field to enum dwarf_form.
24886         (AT_string_form): Change return type to enum dwarf_form.
24887         * fixed-value.c (fixed_compare): Add cast to enum type.
24888         * fwprop.c (update_df): Change 0 to VOIDmode.
24889         * gensupport.c: Change 0 to UNKNOWN.
24890         * gimple.h (gimple_cond_code): Add cast to enum type.
24891         * haifa-sched.c (reemit_notes): Add cast to enum type.
24892         * hooks.c (hook_int_void_no_regs): Remove function.
24893         * hooks.h (hook_int_void_no_regs): Remove declaration.
24894         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
24895         * predict.c (combine_predictions_for_insn): Add casts to enum type.
24896         * real.c (real_arithmetic): Add cast to enum type.
24897         (real_compare): Likewise.
24898         * target.h (struct gcc_target): Change return type of
24899         branch_target_register_class to enum reg_class.
24900         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
24901         default_branch_target_register_class.
24902         * targhooks.c (default_branch_target_register_class): New function.
24903         * targhooks.h (default_branch_target_register_class): Declare.
24904         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
24905         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
24906         cast to int.
24907         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
24908         ERROR_MARK.
24909         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
24910         vect_uninitialized_def.  Change 0 to ERROR_MARK.
24911         * tree-vect-stmts.c (supportable_widening_operation): Don't
24912         initialize icode1 and icode2.
24913         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
24914         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
24915         and to STD_C89.
24916         (cmn_err_flag_specs): Change 0 to STD_C89.
24917         (cmn_err_char_table): Likewise.
24918         * config/arm/arm.c (get_arm_condition_code): Change type of code
24919         to enum arm_cond_code.
24920         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
24921         (IWMMXT_BUILTIN2): Likewise.
24922         (neon_builtin_type_bits): Don't define typedef.
24923         (neon_builtin_datum): Change type of bits field to int.
24924         (arm_expand_neon_args): Add cast to enum type.
24925         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
24926         TLS_MODEL_NONE.
24927         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
24928         casts to enum type.
24929         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
24930         MIPS_FP_COND_f.
24931         * config/mips/mips.md (jal_macro): Return enum constant.
24932         (single_insn): Likewise.
24933         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
24934         CODE_FOR_nothing.
24935         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24936         casts to enum type.
24937         * config/s390/s390.c (s390_tune_flags): Change type to int.
24938         (s390_arch_flags): Likewise.
24939         (s390_handle_arch_option): Change flags field of struct pta to int.
24940         * config/s390/s390.h (s390_tune_flags): Update declaration.
24941         (s390_arch_flags): Likewise.
24942         * config/sh/sh.c (prepare_move_operands): Compare
24943         tls_symbolic_operand result with enum constant.
24944         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
24945         (sh_expand_prologue): Add cast to enum type.
24946         (sh_expand_epilogue): Likewise.
24947         (tls_symbolic_operand): Change return type to enum tls_model.
24948         (fpscr_set_from_mem): Add cast to enum type.
24949         (legitimize_pic_address): Compare tls_symbolic_operand result with
24950         enum constant.
24951         (sh_target_reg_class): Change return type to enum reg_class.
24952         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
24953         PROCESSOR_xxx.
24954         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
24955         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
24956         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
24957         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
24958         (delayed_branch, tls_call_delay): Likewise.
24959         (eligible_for_sibcall_delay): Likewise.
24960         (eligible_for_return_delay): Likewise.
24961         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
24962         (spu_expand_builtin_1): Likewise.
24963
24964         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
24965         for all types of conversions.
24966         (output_init_element): Issue -Wc++-compat warning if needed when
24967         initializing a bitfield with enum type.
24968         * c-parser.c (c_parser_expression): Set original_type to
24969         original_type of right hand operand of comma operator.
24970
24971 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24972
24973         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
24974         grammar nits.
24975         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
24976         * doc/cpp.texi (Standard Predefined Macros)
24977         (Implementation-defined behavior): Likewise.
24978         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
24979         * doc/gimple.texi (GIMPLE Exception Handling)
24980         (@code{GIMPLE_ASSIGN}): Likewise.
24981         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
24982         * doc/invoke.texi (Warning Options, Optimize Options)
24983         (AVR Options, Darwin Options): Likewise.
24984         (Optimize Options): Reformulate -fwhole-program description.
24985         * doc/loop.texi (Lambda): Likewise.
24986         * doc/md.texi (Output Template, Define Constraints)
24987         (Standard Names, Insn Splitting): Likewise.
24988         * doc/options.texi (Option properties): Likewise.
24989         * doc/passes.texi (Tree-SSA passes): Likewise.
24990         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
24991         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
24992         (File Names and DBX): Likewise.
24993         * doc/trouble.texi (Incompatibilities): Likewise.
24994
24995 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
24996
24997         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
24998         instruction is correct.
24999
25000 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
25001
25002         Allow non-constant arguments to conversion intrinsics.
25003         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
25004         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
25005         * spu.c (print_operand): Handle 'v' and 'w'.
25006         (exp2_immediate_p, spu_gen_exp2): Define.
25007         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
25008         spu_convtf_1): Update parameter descriptions.
25009         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
25010         * constraints.md ('v', 'w'): New.
25011         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
25012         Remove.
25013         (i2f, I2F): New define_mode_attr.
25014         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
25015         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
25016         fixuns_truncv4sfv4si2):  Update to use mode attribute.
25017         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
25018         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
25019         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
25020         patterns for combine.
25021
25022 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
25023
25024         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
25025         (cprop, hoist, pre, store_motion): New debug counters.
25026         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
25027         is not an RTL pass anymore.
25028         (pass_profiling): Remove extern decl for pass removed in 2005.
25029         (pass_gcse, pass_jump_bypass): Remove.
25030         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
25031         to 0 for clean state.
25032         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
25033         * cse.c (gate_handle_cse_after_global_opts,
25034         rest_of_handle_cse_after_global_opts): New functions.
25035         (pass_cse_after_global_opts): New pass, does local CSE.
25036         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
25037         (TV_CPROP): New timevar.
25038         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
25039         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
25040         (gcse_main, recompute_all_luids): Remove.
25041         (compute_hash_table_work): Call max_reg_num instead of reading
25042         max_gcse_regno.
25043         (cprop_jump): Don't set run_jump_opt_after_gcse.
25044         (constprop_register): Always allow to alter jumps.
25045         (cprop_insn): Likewise.
25046         (do_local_cprop): Likewise.
25047         (local_cprop_pass): Likewise.  Return non-zero if something changed.
25048         (cprop): Remove function, fold interesting bits into one_cprop_pass.
25049         (find_implicit_sets): Add note about missed optimization opportunity.
25050         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
25051         pass_rtl_cprop execute function.
25052         Don't bother tracking the pass number, each pass gets its own dumpfile
25053         now anyway.
25054         Always allow to alter jumpsand bypass jumps.
25055         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
25056         will just find no suitable set.
25057         (pre_edge_insert): Fix dumping, this function is for PRE only.
25058         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
25059         pass_rtl_pre execute function.
25060         (hoist_code): Return non-zero if something changed.  Keep track of
25061         substitutions and insertions for statistics gathering similar to PRE.
25062         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
25063         called from the pass_rtl_hoist execute function.  Show pass statistics.
25064         (compute_store_table): Use max_reg_num directly instead of using the
25065         formerly global max_gcse_regno.
25066         (build_store_vectors): Likewise.
25067         (replace_store_insn): Fix dumping.
25068         (store_motion): Rename to ...
25069         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
25070         pass, called from the pass_rtl_store_motion execute function.  Keep
25071         track of substitutions and insertions for statistics gathering similar
25072         to PRE.
25073         (bypass_jumps): Remove, fold interesting bits into ...
25074         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
25075         from the pass_rtl_cprop execute function.
25076         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
25077         pass_jump_bypass): Remove.
25078         (gate_handle_gcse, rest_of_handle_gcse): Remove.
25079         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
25080         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
25081         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
25082         (gate_rtl_store_motion, execute_rtl_store_motion,
25083         pass_rtl_store_motion): New.
25084         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
25085         make it clear that -fcse-skip-blocks is a no-op for backward compat.
25086         * passes.c (init_optimization_passes): Remove pass_gcse and
25087         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
25088         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
25089         instead of pass_jump_bypass.
25090
25091 2009-04-27  Richard Guenther  <rguenther@suse.de>
25092
25093         PR middle-end/39928
25094         * gimplify.c (gimplify_expr): If we are required to create
25095         a temporary make sure it ends up as register.
25096
25097 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
25098
25099         PR target/39903
25100         * config/i386/i386.c (construct_container): Don't call
25101         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
25102         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
25103
25104 2009-04-27  Michael Matz  <matz@suse.de>
25105
25106         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
25107         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
25108         * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
25109         (dump_replaceable_exprs): Take a bitmap.
25110         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
25111         array.
25112         (expand_gimple_basic_block): Likewise.
25113         * tree-ssa-ter.c (struct temp_expr_table_d): Make
25114         replaceable_expressions member a bitmap.
25115         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
25116         (mark_replaceable): Likewise.
25117         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
25118         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
25119
25120 2009-04-27  Richard Guenther  <rguenther@suse.de>
25121
25122         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
25123         (verify_stmts): Dispatch to gimple/type verification code.
25124         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
25125         issue with call argument types.
25126
25127 2009-04-27  Michael Matz  <matz@suse.de>
25128
25129         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
25130         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
25131         to above.
25132
25133 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
25134             Eric Botcazou  <ebotcazou@adacore.com>
25135
25136         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
25137         a label's basic block.
25138         (mark_target_live_regs): Tidy and rework obsolete comments.
25139         Change back DF problem to LIVE.  If a label starts a basic block,
25140         assume that all registers that used to be live then still are.
25141         (init_resource_info): If a label starts a basic block, set its
25142         BLOCK_FOR_INSN accordingly.
25143         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
25144
25145 2009-04-27  Richard Guenther  <rguenther@suse.de>
25146
25147         * tree-flow-inline.h (function_ann): Remove.
25148         (get_function_ann): Likewise.
25149         * tree-dfa.c (create_function_ann): Remove.
25150         * tree-flow.h (struct static_var_ann_d): Remove.
25151         (struct function_ann_d): Likewise.
25152         (union tree_ann_d): Remove fdecl member.
25153         (function_ann_t): Remove.
25154         (function_ann, get_function_ann, create_function_ann): Remove
25155         declarations.
25156
25157 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
25158
25159         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
25160
25161 2009-04-27  Jan Hubicka  <jh@suse.cz>
25162
25163         * ipa-pure-const.c (struct funct_state_d): New fields
25164         state_previously_known, looping_previously_known; remove
25165         state_set_in_source.
25166         (analyze_function): Use new fields.
25167         (propagate): Avoid assumption that state_set_in_source imply
25168         nonlooping.
25169
25170         * tree-ssa-loop-niter.c (finite_loop_p): New function.
25171         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
25172         * cfgloop.h (finite_loop_p): Declare.
25173
25174 2009-04-26  Michael Matz  <matz@suse.de>
25175
25176         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
25177
25178 2009-04-26  Michael Matz  <matz@suse.de>
25179
25180         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
25181         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
25182         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
25183         pass_mark_used_blocks): Remove.
25184         * tree-optimize.c (pass_free_datastructures,
25185         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
25186         * passes.c (init_optimization_passes): Don't call
25187         pass_mark_used_blocks, remove dead code.
25188
25189 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
25190
25191         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
25192         * tree-ssa-live.h (register_ssa_partition): Likewise.
25193
25194 2009-04-26  Michael Matz  <matz@suse.de>
25195
25196         Expand from SSA.
25197         * builtins.c (fold_builtin_next_arg): Handle SSA names.
25198         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
25199         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
25200         SSA names.
25201         (compare_pairs): Swap cost comparison.
25202         (coalesce_ssa_name): Don't use change_partition_var.
25203         * tree-nrv.c (struct nrv_data): Add modified member.
25204         (finalize_nrv_r): Set it.
25205         (tree_nrv): Use it to update statements.
25206         (pass_nrv): Require PROP_ssa.
25207         * tree-mudflap.c (mf_decl_cache_locals,
25208         mf_build_check_statement_for): Use make_rename_temp.
25209         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
25210         * alias.c (find_base_decl): Handle SSA names.
25211         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
25212         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
25213         * rtl.h (set_reg_attrs_for_parm): Declare.
25214         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
25215         to "optimized", remove unused locals at finish.
25216         (execute_free_datastructures): Make global, call
25217         delete_tree_cfg_annotations.
25218         (execute_free_cfg_annotations): Don't call
25219         delete_tree_cfg_annotations.
25220
25221         * ssaexpand.h: New file.
25222         * expr.c (toplevel): Include ssaexpand.h.
25223         (expand_assignment): Handle SSA names the same as register variables.
25224         (expand_expr_real_1): Expand SSA names.
25225         * cfgexpand.c (toplevel): Include ssaexpand.h.
25226         (SA): New global variable.
25227         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
25228         (SSAVAR): New macro.
25229         (set_rtl): New helper function.
25230         (add_stack_var): Deal with SSA names, use set_rtl.
25231         (expand_one_stack_var_at): Likewise.
25232         (expand_one_stack_var): Deal with SSA names.
25233         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
25234         before unique numbers.
25235         (expand_stack_vars): Use set_rtl.
25236         (expand_one_var): Accept SSA names, add asserts for them, feed them
25237         to above subroutines.
25238         (expand_used_vars): Expand all partitions (without default defs),
25239         then only the local decls (ignoring those expanded already).
25240         (expand_gimple_cond): Remove edges when jumpif() expands an
25241         unconditional jump.
25242         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
25243         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
25244         SSA name.
25245         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
25246         members of SA; deal with PARM_DECL partitions here; expand
25247         all PHI nodes, free tree datastructures and SA.  Commit instructions
25248         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
25249         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
25250         info and statements at start, collect garbage at finish.
25251         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
25252         (VAR_ANN_PARTITION) Remove.
25253         (change_partition_var): Don't declare.
25254         (partition_to_var): Always return SSA names.
25255         (var_to_partition): Only accept SSA names.
25256         (register_ssa_partition): Only check argument.
25257         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
25258         member.
25259         (delete_var_map): Don't free it.
25260         (var_union): Only accept SSA names, simplify.
25261         (partition_view_init): Mark only useful SSA names as used.
25262         (partition_view_fini): Only deal with SSA names.
25263         (change_partition_var): Remove.
25264         (dump_var_map): Use ssa_name instead of partition_to_var member.
25265         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
25266         basic blocks.
25267         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
25268         (struct _elim_graph): New member const_dests; nodes member vector of
25269         ints.
25270         (set_location_for_edge): New static helper.
25271         (create_temp): Remove.
25272         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
25273         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
25274         (new_elim_graph): Allocate const_dests member.
25275         (clean_elim_graph): Truncate const_dests member.
25276         (delete_elim_graph): Free const_dests member.
25277         (elim_graph_size): Adapt to new type of nodes member.
25278         (elim_graph_add_node): Likewise.
25279         (eliminate_name): Likewise.
25280         (eliminate_build): Don't take basic block argument, deal only with
25281         partition numbers, not variables.
25282         (get_temp_reg): New static helper.
25283         (elim_create): Use it, deal with RTL temporaries instead of trees.
25284         (eliminate_phi): Adjust all calls to new signature.
25285         (assign_vars, replace_use_variable, replace_def_variable): Remove.
25286         (rewrite_trees): Only do checking.
25287         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
25288         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
25289         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
25290         contains_tree_r, MAX_STMTS_IN_LATCH,
25291         process_single_block_loop_latch, analyze_edges_for_bb,
25292         perform_edge_inserts): Remove.
25293         (expand_phi_nodes): New global function.
25294         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
25295         functions, initialize new parameter, remember partitions having a
25296         default def.
25297         (finish_out_of_ssa): New global function.
25298         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
25299         don't reset in_ssa_p here, don't disable TER when mudflap.
25300         (pass_del_ssa): Remove.
25301         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
25302         partition members.
25303         (execute_free_datastructures): Declare.
25304         * Makefile.in (SSAEXPAND_H): New variable.
25305         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
25306         * basic-block.h (commit_one_edge_insertion): Declare.
25307         * passes.c (init_optimization_passes): Move pass_nrv and
25308         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
25309         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
25310         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
25311         (redirect_branch_edge): Deal with super block when expanding, split
25312         out jump patching itself into ...
25313         (patch_jump_insn): ... here, new static helper.
25314
25315 2009-04-26  Michael Matz  <matz@suse.de>
25316
25317         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
25318         beyond num_ssa_names.
25319         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
25320         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
25321
25322 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
25323
25324         PR inline-asm/39543
25325         * fwprop.c (forward_propagate_asm): New function.
25326         (forward_propagate_and_simplify): Propagate also into __asm, if it
25327         doesn't increase the number of referenced registers.
25328
25329         PR c/39889
25330         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
25331
25332 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
25333
25334         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
25335         note_nonlocal_vla_type for nonlocal VLAs.
25336         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
25337         contains_remapped_vars, remap_vla_decls): New functions.
25338         (convert_nonlocal_reference_stmt): If not optimizing, call
25339         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
25340         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
25341         if it wasn't found in var_map.
25342         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
25343         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
25344         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
25345         declare_vars.
25346         * gimplify.c (nonlocal_vlas): New variable.
25347         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
25348         referenced VLAs.
25349         (gimplify_body): Create and destroy nonlocal_vlas.
25350
25351         * dwarf2out.c (loc_descr_plus_const): New function.
25352         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
25353         mem_loc_descriptor, loc_descriptor_from_tree_1,
25354         descr_info_loc, gen_variable_die): Use it.
25355
25356         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
25357         !TREE_STATIC VAR_DECLs.
25358         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
25359         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
25360         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
25361         DECL_BY_REFERENCE is valid.
25362         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
25363         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
25364         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
25365         Copy DECL_BY_REFERENCE.
25366         (struct nesting_copy_body_data): New type.
25367         (nesting_copy_decl): New function.
25368         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
25369         if they have variable length.
25370
25371 2009-04-26  Michael Matz  <matz@suse.de>
25372
25373         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
25374         mark new temporaries for renaming.
25375
25376 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
25377
25378         PR c/39581
25379         * c-decl.c (global_bindings_p): Return negative value.
25380         (c_variable_size): New.  Based on variable_size from
25381         stor-layout.c.
25382         (grokdeclarator): Call c_variable_size not variable_size.
25383
25384 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
25385
25386         * config/i386/i386.c (print_operand) ['z']: Fix typo.
25387
25388 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
25389
25390         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
25391         Redefine it to just use mingw/include.
25392         (ASM_SPEC): Rules for -m32 and -m64.
25393         (LINK_SPEC): Use Likewise.
25394         (SPEC_32): New define.
25395         (SPEC_64): Likewise.
25396         (SUB_LINK_SPEC): Likewise.
25397         (MULTILIB_DEFAULTS): New define.
25398         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
25399         Add multilib options.
25400         (MULTILIB_DIRNAMES): Likewise.
25401         (MULTILIB_OSDIRNAMES): Likewise.
25402         (LIBGCC): Likewise.
25403         (INSTALL_LIBGCC): Likewise.
25404
25405 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
25406
25407         PR c/39556
25408         * c-tree.h (enum c_inline_static_type): New.
25409         (record_inline_static): Declare.
25410         * c-decl.c (struct c_inline_static, c_inline_statics,
25411         record_inline_static, check_inline_statics): New.
25412         (pop_file_scope): Call check_inline_statics.
25413         (start_decl): Call record_inline_static instead of pedwarning
25414         directly for static in inline function.
25415         * c-typeck.c (build_external_ref): Call record_inline_static
25416         instead of pedwarning directly for static referenced in inline
25417         function.
25418
25419 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
25420
25421         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
25422         not new but only being rescanned.
25423         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
25424         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
25425         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
25426         record_set_info, compute_set, grealloc): Remove.
25427         (recompute_all_luids): New function.
25428         (gcse_main): Don't compute sets, and don't do related memory
25429         allocations/free-ing.  If something changed before the end of the
25430         pass, update LUIDs using recompute_all_luids.
25431         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
25432         (free_gcse_mem): Don't free it either.
25433         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
25434         Use the df insn LUIDs.
25435         (load_killed_in_block): Likewise.
25436         (compute_hash_table_work): Don't compute reg_set_in_block.
25437         (compute_transp): Use DF_REG_DEF_CHAINs.
25438         (local_cprop_pass): Don't use compute_sets and related functions.
25439         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
25440         Use get_max_uid() instead of max_cuid.
25441         (insert_insn_end_basic_block, pre_insert_copy_insn,
25442         update_ld_motion_stores): Don't try to
25443         keep reg_set tables up to date.
25444         (pre_insert_copies): Use df insn LUIDs.
25445         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
25446         (reg_set_info): Don't use extra bitmap argument.
25447         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
25448         information to compute regs_set_in_block.
25449         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
25450         (bypass_jumps): Don't use compute_sets and friends.
25451
25452 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25453
25454         PR testsuite/39710
25455         * opts.c (undocumented_msg): Do not leave blank even with
25456         ENABLE_CHECKING.
25457
25458 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
25459
25460         * c-decl.c (build_enumerator): Allow values folding to integer
25461         constants but not integer constant expressions with a pedwarn if
25462         pedantic.
25463
25464 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
25465
25466         PR c/39582
25467         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
25468         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
25469         type is an integer constant.
25470
25471 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
25472
25473         PR target/39897
25474         * config/i386/i386.c (print_operand) ['z']: Revert handling of
25475         HImode operands.
25476
25477 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
25478
25479         PR c/39564
25480         * c-decl.c (grokdeclarator): Diagnose declarations of functions
25481         with variably modified return type and no storage class
25482         specifiers, except for the case of nested functions.  Distinguish
25483         extern declarations of functions with variably modified return
25484         types from those of objects with variably modified types.
25485
25486 2009-04-25  Jan Hubicka  <jh@suse.cz>
25487
25488         * tree.c (list_equal_p): New function.
25489         * tree.h (list_equal_p): Declare.
25490         * coretypes.h (edge_def, edge, const_edge, basic_block_def
25491         basic_block_def, basic_block, const_basic_block): New.
25492         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
25493         (redirect_eh_edge): New function.
25494         (make_eh_edge_update_phi): EH edges are not abnormal.
25495         * except.c: Include tree-flow.h.
25496         (list_match): New function.
25497         (eh_region_replaceable_by_p): New function.
25498         (replace_region): New function.
25499         (hash_type_list): New function.
25500         (hash_eh_region): New function.
25501         (eh_regions_equal_p): New function.
25502         (merge_peers): New function.
25503         (remove_unreachable_regions): Verify EH tree when checking;
25504         merge peers.
25505         (copy_eh_region_1): New function.
25506         (copy_eh_region): New function.
25507         (push_reachable_handler): New function.
25508         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
25509         regions without label but with live RESX.
25510         * except.h (redirect_eh_edge_to_label): New.
25511         * tree-flow.h (redirect_eh_edge): New.
25512         * coretypes.h (edge_def, edge, const_edge, basic_block_def
25513         basic_block_def, basic_block, const_basic_block): Remove.
25514         * Makefile.in (except.o): Add dependency on tree-flow.h
25515         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
25516         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
25517         Remove.
25518
25519 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
25520
25521         PR bootstrap/39645
25522         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
25523         on the destination of memcpy.
25524
25525 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
25526
25527         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
25528         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
25529         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
25530
25531 2009-04-25  Jan Hubicka  <jh@suse.cz>
25532
25533         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
25534         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
25535         to be reached by different label than left.
25536         (update_eh_edges): Update comment; remove edge_to_remove if possible
25537         and return true if suceeded.
25538         (cleanup_empty_eh): Accept sharing map; handle shared regions.
25539         (cleanup_eh): Compute sharing map.
25540         * except.c (remove_eh_handler_and_replace): Add argument if we should
25541         update regions.
25542         (remove_unreachable_regions): Update for label sharing.
25543         (label_to_region_map): Likewise.
25544         (get_next_region_sharing_label): New function.
25545         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
25546         prev_try pointers.
25547         (remove_eh_handler): Update.
25548         (remove_eh_region_and_replace_by_outer_of): New function.
25549         * except.h (struct eh_region): Add next_region_sharing_label.
25550         (remove_eh_region_and_replace_by_outer_of,
25551         get_next_region_sharing_label): Declare.
25552         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
25553
25554 2009-04-25  Jan Hubicka  <jh@suse.cz>
25555
25556         * tree-cfg.c (split_critical_edges): Split also edges where we can't
25557         insert code even if they are not critical.
25558
25559 2009-04-25  Jan Hubicka  <jh@suse.cz>
25560
25561         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
25562         (gimple_can_remove_branch_p): EH edges won't remove branch by
25563         redirection.
25564         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
25565         updating of non-abnormal EH edges.
25566         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
25567         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
25568         (split_critical_edges): Split also edges where emitting code on them
25569         will lead to splitting later.
25570
25571 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
25572             H.J. Lu  <hongjiu.lu@intel.com>
25573
25574         PR target/39590
25575         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
25576         the configured assembler supports fildq and fistpq mnemonics.
25577         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
25578         * configure: Regenerated.
25579         * config.in: Ditto.
25580
25581         * config/i386/i386.c (print_operand): Handle 'Z'.
25582         ['z']: Remove handling of special fild/fist suffixes.
25583         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
25584         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
25585         suffix of fild insn.
25586         (*floatsi<mode>2_vector_mixed): Ditto.
25587         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
25588         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
25589         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
25590         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
25591         * config/i386/gas.h (GAS_MNEMONICS): Remove.
25592
25593 2009-04-25  Ben Elliston  <bje@au.ibm.com>
25594
25595         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
25596         the source of a set operation.
25597
25598 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
25599
25600         * target.h (struct gcc_target): Add case_values_threshold field.
25601         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
25602         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
25603         * targhooks.c (default_case_values_threshold): New function.
25604         * targhooks.h (default_case_values_threshold): Declare function.
25605         * stmt.c (expand_case): Use case_values_threshold target hook.
25606         * expr.h (case_values_threshold): Remove declartation.
25607         * expr.c (case_values_threshold): Remove function.
25608         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
25609
25610         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
25611         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
25612         (avr_case_values_threshold): Declare as static.
25613         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
25614
25615         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
25616         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
25617         (mn10300_case_values_threshold): New function.
25618
25619 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
25620
25621         * ira.c (setup_cover_and_important_classes): Add enum cast.
25622
25623 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
25624
25625         * genpreds.c (write_enum_constraint_num): Output definition of
25626         CONSTRAINT_NUM_DEFINED_P macro.
25627         * ira.c (setup_cover_and_important_classes): Use
25628         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
25629
25630 2009-04-24  DJ Delorie  <dj@redhat.com>
25631
25632         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
25633         __SH2A_SINGLE_ONLY__ also.
25634
25635 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
25636
25637         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
25638         (movdf_internal): Ditto.
25639         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
25640         SFmode and DFmode constants.
25641         (ia64_print_operand): Add 'G' format for printing
25642         floating point constants.
25643
25644 2009-04-24  Richard Guenther  <rguenther@suse.de>
25645
25646         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
25647         from unsigned additions.
25648
25649 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
25650
25651         * c-typeck.c (set_init_index): Allow array designators that are
25652         not integer constant expressions with a pedwarn if pedantic.
25653
25654 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
25655
25656         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
25657         zero if no overlap in nonzero bits between the operands.
25658
25659 2009-04-24  Ian Lance Taylor  <iant@google.com>
25660
25661         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
25662         (record_dead_and_set_regs): Likewise.
25663         * df.h (struct df_mw_hardreg): Change flags field to int.
25664         (struct df_base_ref): Likewise.
25665         (struct df): Change changeable_flags field to int.
25666         * df-scan.c (df_defs_record): Change clobber_flags to int.
25667         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
25668         constants rather than #define macros.
25669         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
25670         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
25671         (enum dwarf_calling_convention): Likewise.
25672         (enum dwarf_line_number_x_ops): Likewise.
25673         (enum dwarf_call_frame_info): Likewise.
25674         (enum dwarf_source_language): Likewise.
25675         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
25676         (add_calling_convention_attribute): Likewise.
25677         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
25678         (combine_comparisons): Change compcode to int.  Add cast to enum type.
25679         * genrecog.c (maybe_both_true_2): Change c to int.
25680         (write_switch): Likewise.  Add cast to enum type.
25681         * gimplify.c (gimplify_omp_for): Handle return values from
25682         gimplify_expr using MIN rather than bitwise or.
25683         (gimplify_expr): Add cast to enum type.
25684         * ipa-prop.c (update_jump_functions_after_inlining): Change
25685         IPA_BOTTOM to IPA_JF_UNKNOWN.
25686         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
25687         Add casts to enum type.
25688         (setup_cover_and_important_classes): Change cl to int.  Add casts
25689         to enum type.
25690         (setup_class_translate): Change cl and mode to int.
25691         (ira_init_once): Change mode to int.
25692         (free_register_move_costs): Likewise.
25693         (setup_prohibited_mode_move_regs): Add casts to enum type.
25694         * langhooks.c (add_builtin_function_common): Rework assertion that
25695         value fits bitfield.
25696         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
25697         * omega.c (omega_do_elimination): Avoid math on enum types.
25698         * optabs.c (expand_vec_shift_expr): Remove casts to int.
25699         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
25700         int local to handle integral_argment value.
25701         * regmove.c (try_auto_increment): Change PUT_MODE to
25702         PUT_REG_NOTE_KIND.
25703         * reload.c (push_secondary_reload): Add casts to enum type.
25704         (secondary_reload_class, find_valid_class): Likewise.
25705         * reload1.c (emit_input_reload_insns): Likewise.
25706         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
25707         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
25708         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
25709         constant.
25710         * tree.c (build_common_builtin_nodes): Add casts to enum type.
25711         * tree-complex.c (complex_lattice_t): Typedef to int rather than
25712         enum type.
25713         (expand_complex_libcall): Add casts to enum type.
25714         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
25715         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
25716         with ERROR_MARK, not NUM_TREE_CODES.
25717         (vect_create_epilog_for_reduction): Likewise.
25718         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
25719         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
25720         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
25721         enum machine_mode.
25722         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
25723         vect_unused_in_loop.  Change 0 to loop_vect.
25724         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
25725         * var-tracking.c (get_init_value): Change return type to enum
25726         var_init_status.
25727         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
25728         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
25729         arm_fp_model.
25730         (arm_override_options): Add casts to enum type.
25731         (arm_emit_tls_decoration): Likewise.
25732         * config/i386/i386.c (ix86_function_specific_restore): Add casts
25733         to enum type.
25734         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
25735         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
25736         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
25737         enum type.
25738         * config/s390/s390.c (code_for_builtin_64): Change to array of
25739         enum insn_code.
25740         (code_for_builtin_31): Likewise.
25741         (s390_expand_builtin): Change code_for_builtin to enum insn_code
25742         const *.
25743         * config/sparc/sparc.c (sparc_override_options): Change value
25744         field in struct code_model to enum cmodel.  In initializer change
25745         0 to NULL and add cast to enum type.
25746
25747         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
25748         Change all callers.  Issue a -Wc++-compat warning using
25749         lhs_origtype if necessary.
25750         (convert_for_assignment): Issue -Wc++-compat warnings about
25751         invalid conversions to enum type on assignment.
25752         * c-common.h (build_modify_expr): Update declaration.
25753
25754 2009-04-24  Nick Clifton  <nickc@redhat.com>
25755
25756         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
25757         (function_arg_advance): Likewise.
25758         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
25759         5th alternative.
25760
25761 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
25762
25763         * config/s390/constraints.md ('I', 'J'): Fix condition.
25764
25765 2009-04-24  Diego Novillo  <dnovillo@google.com>
25766
25767         * gengtype-parse.c (parse_error): Add newline after message.
25768
25769 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
25770
25771         * config/i386/sse.md (avxmodesuffixs): Removed.
25772         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
25773         (*avx_pinsr<ssevecsize>): This.
25774
25775 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
25776
25777         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
25778         follow chains of regs with a single definition, and allow expressions
25779         that are function_invariant_p.
25780         (simple_rhs_p): Allow expressions that are function_invariant_p.
25781
25782 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
25783
25784         PR middle-end/39867
25785         * fold-const.c (fold_cond_expr_with_comparison): When folding
25786         > and >= to MAX, make sure the MAX uses the same type as the
25787         comparison's operands.
25788
25789 2009-04-24  Nick Clifton  <nickc@redhat.com>
25790
25791         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
25792         addressing for DImode accesses.
25793         (frv_print_operand_address): Handle PLUS case.
25794         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
25795
25796 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
25797
25798         PR rtl-optimization/39794
25799         * alias.c (canon_true_dependence): Add x_addr argument.
25800         * rtl.h (canon_true_dependence): Adjust prototype.
25801         * cse.c (check_dependence): Adjust canon_true_dependence callers.
25802         * cselib.c (cselib_invalidate_mem): Likewise.
25803         * gcse.c (compute_transp): Likewise.
25804         * dse.c (scan_reads_nospill): Likewise.
25805         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
25806         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
25807         canon_base_addr of the group, plus optional offset.
25808         (struct group_info): Rename canon_base_mem to
25809         canon_base_addr.
25810         (get_group_info): Set canon_base_addr to canon_rtx of base, not
25811         canon_rtx of base_mem.
25812
25813 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
25814
25815         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
25816         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
25817
25818 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25819
25820         * config/spu/spu-builtins.h: Delete file.
25821
25822         * config/spu/spu.h (enum spu_builtin_type): Move here from
25823         spu-builtins.h.
25824         (struct spu_builtin_description): Likewise.  Add GTY marker.
25825         Do not use enum spu_function_code or enum insn_code.
25826         (spu_builtins): Add extern declaration.
25827
25828         * config/spu/spu.c: Do not include "spu-builtins.h".
25829         (enum spu_function_code, enum spu_builtin_type_index,
25830         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
25831         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
25832         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
25833         unsigned_V2DI_type_node): Move here from spu-builtins.h.
25834         (spu_builtin_types): Make static.  Add GTY marker.
25835         (spu_builtins): Add extern declaration with GTY marker.
25836         Include "gt-spu.h".
25837
25838         * config/spu/spu-c.c: Do not include "spu-builtins.h".
25839         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
25840         Check programmatically whether all parameters are scalar.
25841
25842         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
25843
25844 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
25845
25846         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
25847         assignment from the constructor either if the target is volatile.
25848
25849 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
25850
25851         * config/arm/arm.md (insv): Do not share operands[0].
25852
25853 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
25854
25855         * config/vxlib-tls.c (active_tls_threads): Delete.
25856         (delete_hook_installed): New.
25857         (tls_delete_hook): Don't delete the delete hook.
25858         (tls_destructor): Delete it here.
25859         (__gthread_set_specific): Adjust installing the delete hook.
25860         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
25861         __gthread_leave_tsd_dtor_context.
25862
25863 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
25864
25865         * c-format.c (gcc_tdiag_char_table): Add support for %E.
25866
25867 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
25868
25869         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
25870         enum type.
25871         (alpha_rtx_costs): Ditto.
25872         (emit_unlikely_jump): Use add_reg_note.
25873         (emit_frame_store_1): Ditto.
25874         (alpha_expand_prologue): Ditto.
25875         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
25876         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
25877
25878 2009-04-23  Nick Clifton  <nickc@redhat.com>
25879
25880         * config/v850/v850.md (epilogue): Remove suppressed code.
25881         (return): Rename to return_simple and remove test of frame size.
25882         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
25883         to gen_return_simple.
25884
25885 2009-04-22  Jing Yu  <jingyu@google.com>
25886
25887         PR testsuite/39781
25888         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
25889
25890 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
25891
25892         PR C/31499
25893         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
25894         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
25895         value is a VECTOR_CST, the element type is the element type of the
25896         vector.
25897
25898 2009-04-22  DJ Delorie  <dj@redhat.com>
25899
25900         * config/m32c/m32c.h: Update GTY annotations to new syntax.
25901
25902 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
25903
25904         * alias.c (find_base_term): Move around LO_SUM case, so that
25905         CONST falls through into PLUS/MINUS handling.
25906
25907         PR c/39855
25908         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
25909         into 0, use omit_one_operand.
25910
25911 2009-04-23  Ben Elliston  <bje@au.ibm.com>
25912
25913         * config/rs6000/linux-unwind.h (get_regs): Remove type
25914         puns. Change the type of `pc' to an array of unsigned ints and
25915         update all users.  Constify frame24.
25916
25917 2009-04-22  DJ Delorie  <dj@redhat.com>
25918
25919         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
25920         declarations before code.
25921         (current_function_special_page_vector): Likewise.
25922         (m32c_expand_insv): Silence a warning.
25923
25924 2009-04-21  Taras Glek  <tglek@mozilla.com>
25925
25926         * alias.c: Update GTY annotations to new syntax.
25927         * basic-block.h: Likewise.
25928         * bitmap.h: Likewise.
25929         * c-common.h: Likewise.
25930         * c-decl.c: Likewise.
25931         * c-parser.c: Likewise.
25932         * c-pragma.c: Likewise.
25933         * c-tree.h: Likewise.
25934         * cfgloop.h: Likewise.
25935         * cgraph.h: Likewise.
25936         * config/alpha/alpha.c: Likewise.
25937         * config/arm/arm.h: Likewise.
25938         * config/avr/avr.h: Likewise.
25939         * config/bfin/bfin.c: Likewise.
25940         * config/cris/cris.c: Likewise.
25941         * config/darwin.c: Likewise.
25942         * config/frv/frv.c: Likewise.
25943         * config/i386/i386.c: Likewise.
25944         * config/i386/i386.h: Likewise.
25945         * config/i386/winnt.c: Likewise.
25946         * config/ia64/ia64.h: Likewise.
25947         * config/iq2000/iq2000.c: Likewise.
25948         * config/mips/mips.c: Likewise.
25949         * config/mmix/mmix.h: Likewise.
25950         * config/pa/pa.c: Likewise.
25951         * config/pa/pa.h: Likewise.
25952         * config/rs6000/rs6000.c: Likewise.
25953         * config/s390/s390.c: Likewise.
25954         * config/sparc/sparc.c: Likewise.
25955         * config/xtensa/xtensa.c: Likewise.
25956         * cselib.h: Likewise.
25957         * dbxout.c: Likewise.
25958         * dwarf2out.c: Likewise.
25959         * except.c: Likewise.
25960         * except.h: Likewise.
25961         * fixed-value.h: Likewise.
25962         * function.c: Likewise.
25963         * function.h: Likewise.
25964         * gimple.h: Likewise.
25965         * integrate.c: Likewise.
25966         * optabs.c: Likewise.
25967         * output.h: Likewise.
25968         * real.h: Likewise.
25969         * rtl.h: Likewise.
25970         * stringpool.c: Likewise.
25971         * tree-data-ref.c: Likewise.
25972         * tree-flow.h: Likewise.
25973         * tree-scalar-evolution.c: Likewise.
25974         * tree-ssa-address.c: Likewise.
25975         * tree-ssa-alias.h: Likewise.
25976         * tree-ssa-operands.h: Likewise.
25977         * tree.c: Likewise.
25978         * tree.h: Likewise.
25979         * varasm.c: Likewise.
25980         * varray.h: Likewise.
25981         * vec.h: Likewise.
25982         * coretypes.h: Do not define GTY macro if it is already defined.
25983         * doc/gty.texi: Update GTY documentation to new syntax.
25984         * gengtype-lex.l: Enforce attribute-like syntax for GTY
25985         annotations on structs.
25986         * gengtype-parse.c: Likewise.
25987
25988 2009-04-22  Mark Heffernan  <meheff@google.com>
25989
25990         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
25991
25992 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
25993
25994         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
25995         where appropriate.
25996
25997 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
25998
25999         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
26000         the same as a PLUS without a shift.  Increase the cost of a
26001         CONST_INT in MULT.
26002
26003 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
26004
26005         * Makefile.in: Update dependencies.
26006         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
26007         * errors.h: Remove bogus comment about compatibility.
26008         (warning): Update declaration.
26009         * genautomata.c: Update all calls to warning.
26010         * gimple.c: Do not include errors.h. Include toplev.h.
26011         * tree-ssa-structalias.c: Do not include errors.h.
26012         * omega.c: Likewise.
26013         * tree-ssa-reassoc.c: Likewise.
26014         * config/spu/spu-c.c: Likewise.
26015         * config/spu/t-spu-elf: Update dependencies.
26016
26017 2009-04-22  Richard Guenther  <rguenther@suse.de>
26018
26019         PR tree-optimization/39824
26020         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
26021         make sure the types are compatible.
26022
26023 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
26024
26025         PR c++/14875
26026         * c-common.c (c_parse_error): Take a token_flags parameter.
26027         Use token_type for the token type instead.
26028         Pass token_flags to cpp_type2name.
26029         * c-common.h (c_parse_error): Update declaration.
26030         * c-parser.c (c_parser_error): Pass 0 as token flags.
26031
26032 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
26033
26034         PR rtl-optimization/39580
26035         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
26036
26037 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26038
26039         * function.c (expand_function_end): Do not emit a jump to the "naked"
26040         return label for fall-through returns.
26041         * except.c (sjlj_emit_function_exit): Always place the call to the
26042         unregister function at the location installed by expand_function_end.
26043
26044 2009-04-22  Richard Guenther  <rguenther@suse.de>
26045
26046         PR tree-optimization/39845
26047         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
26048         (gen_inbound_check): Likewise.
26049
26050 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
26051
26052         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
26053         padding for PPC.
26054         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
26055         * config/vxlib.c (__gthread_once): Add race guard for PPC.
26056
26057 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
26058
26059         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
26060         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
26061         shift counts to avoid out-of-bounds array accesses.
26062
26063 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
26064
26065         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
26066         (Pmode): Move above.
26067
26068 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
26069
26070         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
26071         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
26072         GET_CODE macro.  Use IN_RANGE macro where appropriate.
26073         * config/alpha/alpha.h: Ditto.
26074         * config/alpha/alpha.md: Ditto.
26075         * config/alpha/constraints.md: Ditto.
26076         * config/alpha/predicates.md: Ditto.
26077
26078 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
26079
26080         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
26081         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26082         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26083         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26084         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26085         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26086         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26087         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26088         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26089         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26090         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26091         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26092         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26093         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26094         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26095         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26096         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26097         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26098         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26099         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26100         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26101         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26102         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26103         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26104         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26105         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26106         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26107
26108 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
26109
26110         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
26111         references from comments.
26112         * cfgbuild.c (count_basic_blocks): Delete.
26113         (find_basic_blocks_1): Delete.
26114         (find_basic_blocks): Delete.
26115         * except.c (finish_eh_generation): Make static.  Move comment from
26116         except.h here.  Remove find_basic_blocks references from comments.
26117         * except.h (finish_eh_generation): Delete.
26118         * basic-block.h (find_basic_blocks): Delete.
26119         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
26120
26121 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
26122
26123         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
26124         (sdbout_parms):  Likewise.
26125
26126 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
26127
26128         * config/sh/sh.c (prepare_cbranch_operands): Use
26129         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
26130         (expand_cbranchdi4): Likewise.
26131         (from_compare): Add cast to enum type.
26132         (expand_cbranchsi4): Use add_reg_note.
26133         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
26134         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
26135         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
26136         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
26137         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
26138         instead of CODE_FOR_nothing.
26139         (cbranchdi4): Likewise.  Fix the order of arguments for
26140         gen_rtx_fmt_ee.
26141         (push_fpscr): Use add_reg_note.
26142         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
26143         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
26144
26145 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
26146
26147         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
26148         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
26149         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
26150         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
26151         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
26152         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
26153         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
26154         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
26155         config/alpha/x-vms, config/arc/t-arc,
26156         config/arm/README-interworking, config/arm/arm-c.c,
26157         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
26158         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
26159         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
26160         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
26161         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
26162         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
26163         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
26164         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
26165         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
26166         config/cris/t-elfmulti, config/crx/t-crx,
26167         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
26168         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
26169         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
26170         config/h8300/t-h8300, config/i386/athlon.md,
26171         config/i386/darwin-libgcc.10.4.ver,
26172         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
26173         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
26174         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
26175         config/i386/t-linux64, config/i386/t-nwld,
26176         config/i386/t-rtems-i386, config/i386/t-sol2-10,
26177         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
26178         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
26179         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
26180         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
26181         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
26182         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
26183         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
26184         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
26185         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
26186         config/m68k/t-uclinux, config/mcore/t-mcore,
26187         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
26188         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
26189         config/mips/crtn.asm, config/mips/irix-crti.asm,
26190         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
26191         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
26192         config/mips/mips-fixed.md, config/mips/sb1.md,
26193         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
26194         config/mips/t-iris6, config/mips/t-isa3264,
26195         config/mips/t-libgcc-mips16, config/mips/t-linux64,
26196         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
26197         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
26198         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
26199         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
26200         config/mn10300/t-linux, config/mn10300/t-mn10300,
26201         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
26202         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
26203         config/picochip/libgccExtras/clzsi2.asm,
26204         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
26205         config/rs6000/darwin-libgcc.10.4.ver,
26206         config/rs6000/darwin-libgcc.10.5.ver,
26207         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
26208         config/rs6000/t-aix43, config/rs6000/t-aix52,
26209         config/rs6000/t-darwin, config/rs6000/t-fprules,
26210         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
26211         config/rs6000/t-lynx, config/rs6000/t-netbsd,
26212         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
26213         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
26214         config/rs6000/t-rtems, config/rs6000/t-spe,
26215         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
26216         config/score/t-score-elf, config/sh/divcost-analysis,
26217         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
26218         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
26219         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
26220         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
26221         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
26222         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
26223         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
26224         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
26225         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
26226         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
26227         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
26228         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
26229         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
26230         limitx.h, version.c, xcoff.h: Add copyright and license notices.
26231         * config/h8300/genmova.sh: Include copyright and license notices
26232         in generated output.
26233         * config/h8300/mova.md: Regenerate.
26234         * doc/install.texi2html: Include word "Copyright" in copyright
26235         notice and use name "Free Software Foundation, Inc.".
26236         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
26237         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
26238         ChangeLog-2007, ChangeLog-2008: Correct dates.
26239
26240 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
26241
26242         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
26243         NE_EXPR operations as well.
26244         * c-parser.c (c_parser_condition): Do not set location information on
26245         the condition.
26246         (c_parser_conditional_expression): Likewise.
26247         (c_parser_binary_expression): Set location information on operators.
26248         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
26249         TRUTH_NOT_EXPR has been folded.
26250         * fold-const.c (fold_truth_not_expr): Copy location information from
26251         the incoming expression to the outgoing one.
26252         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
26253         recursive calls on the LHS of the operator but pass that of the
26254         operator to recursive calls on the RHS of the operator.  Set it
26255         on the COND_EXPR.
26256         (shortcut_cond_expr): Set the locus of the operator on the second
26257         COND_EXPR and that of the expression on the first in degenerate cases.
26258         Pass the locus of the expression to calls to shortcut_cond_r.
26259         Set the locus of the 'then' block on the associated jump, if any.
26260         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
26261         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
26262         expression to call to gimplify_boolean_expr.
26263
26264 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
26265
26266         * config.gcc: Add additional configuration for
26267         i686-w64-mingw* and x86_64-w64-mingw* triplet.
26268         * config/i386/mingw-w64.h: New mingw-w64 specific header.
26269         (CPP_SPEC): Redefine for allowing -municode option.
26270         (STARTFILE_SPEC): Likewise.
26271         * config/i386/t-mingw-w64: New.
26272         * config/i386/mingw-w64.opt: New.
26273         (municode): Add new target option.
26274         * doc/invoke.texi (municode): Add documentation for new option.
26275
26276 2009-04-21  Ian Lance Taylor  <iant@google.com>
26277
26278         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26279         Correct test for number of arguments.
26280         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
26281
26282 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
26283
26284         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
26285         argument of emit_library_call.
26286
26287 2009-04-21  Richard Guenther  <rguenther@suse.de>
26288
26289         PR middle-end/39829
26290         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
26291         inside VIEW_CONVERT_EXPRs.
26292
26293 2009-04-21  Martin Jambor  <mjambor@suse.cz>
26294
26295         * tree-switch-conversion.c (build_constructors): Split a long line.
26296         (constructor_contains_same_values_p): New function.
26297         (build_one_array): Create assigns of constants if possible, do not
26298         call mark_sym_for_renaming, call update_stmt.
26299         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
26300         make_rename_temp.  Do not call mark_symbols_for_renaming, call
26301         update_stmt.
26302         (gen_def_assigns): Do not call mark_symbols_for_renaming or
26303         find_new_referenced_vars, call update_stmt.
26304         (gen_inbound_check): Use create_tmp_var and create ssa names manually
26305         instead of calling make_rename_temp.  Do not call
26306         find_new_referenced_vars or mark_symbols_for_renaming, call
26307         update_stmt.
26308
26309 2009-04-21  Richard Guenther  <rguenther@suse.de>
26310
26311         PR tree-optimization/39827
26312         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
26313         (tree_ssa_phiprop): Pass the correct array size.
26314
26315 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
26316
26317         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
26318
26319 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26320
26321         PR 16202
26322         * c-typeck.c (lvalue_p): Move declaration ...
26323         * c-common.h (lvalue_p): ... to here.
26324         * c-common.c (candidate_equal_p): New.
26325         (add_tlist): Use it.
26326         (merge_tlist): Use it.
26327         (warn_for_collisions_1): Likewise.
26328         (warning_candidate_p): Accept more candidates.
26329         (verify_tree): A warning candidate can be an expression. Use
26330         candidate_equal_p.
26331
26332 2009-04-21  Ben Elliston  <bje@au.ibm.com>
26333
26334         PR target/5267
26335         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
26336         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
26337         options.  Remove -mcall-solaris documentation.
26338
26339 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
26340
26341         PR c++/13358
26342         * doc/invoke.texi (-Wlong-long): Update description.
26343         * c-lex (interpret_integer): Only warn if there was no previous
26344         overflow and -Wlong-long is enabled.
26345         * c-decl.c (declspecs_add_type): Drop redundant flags.
26346         * c.opt (Wlong-long): Init to -1.
26347         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
26348         and front-end warn_long_long. Wlong-long only depends on other
26349         flags if it is uninitialized.
26350         * c-parser.c (disable_extension_diagnostics): warn_long_long is
26351         the same for CPP and FE.
26352         (restore_extension_diagnostics): Likewise.
26353
26354 2009-04-20  Ian Lance Taylor  <iant@google.com>
26355
26356         Fix enum conversions which are invalid in C++:
26357         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
26358         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
26359         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
26360         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
26361         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
26362         (dbxout_parms): Likewise.
26363         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
26364         (df_clear_flags): Likewise.
26365         * df-problems.c (df_rd_bb_local_compute_process_def): Change
26366         top_flag parameter to int.
26367         (df_chain_create_bb_process_use): Likewise.
26368         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
26369         Remove cast.
26370         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
26371         (df_ref_create_structure, df_def_record_1): Likewise.
26372         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
26373         (df_notes_rescan): Change 0 to VOIDmode in function call.
26374         (df_get_call_refs, df_insn_refs_collect): Likewise.
26375         (df_bb_regs_collect): Likewise.
26376         (df_entry_block_defs_collect): Likewise.
26377         (df_exit_block_uses_collect): Likewise.
26378         * df.h: Update declarations.
26379         * double-int.c (double_int_divmod): Add cast to enum type.
26380         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
26381         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
26382         (based_loc_descr): Likewise.
26383         (loc_descriptor_from_tree_1): Change first_op and second_op to
26384         enum dwarf_location_atom.  Add cast to enum type.
26385         * expmed.c (init_expmed): Change 0 to SET in function call.
26386         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
26387         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
26388         (do_store_flag): Likewise.
26389         * fixed-value.h (struct fixed_value): Change mode to enum
26390         machine_mode.
26391         * function.c (assign_parms): Change 0 to VOIDmode in function call.
26392         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
26393         function call.
26394         (insert_insn_decl, insert_decl, insert_state): Likewise.
26395         (automata_list_finish): Likewise.
26396         * genrecog.c (process_define_predicate): Add cast to enum type.
26397         * gensupport.c (init_predicate_table): Add cast to enum type.
26398         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
26399         function call.
26400         (gimple_build_call_1, gimple_build_label): Likewise.
26401         (gimple_build_goto, gimple_build_asm_1): Likewise.
26402         (gimple_build_switch_1, gimple_build_cdt): Likewise.
26403         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
26404         (enum fallback): Rename from enum fallback_t.
26405         (fallback_t): Typedef as int.
26406         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
26407         GSI_SAME_STMT in function call.
26408         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
26409         enum type.
26410         (setup_reg_class_relations): Likewise.
26411         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
26412         (setup_prohibited_class_mode_regs): Add cast to enum type.
26413         (setup_prohibited_mode_move_regs): Likewise.
26414         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
26415         (record_address_regs): Change i to enum reg_class.
26416         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
26417         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
26418         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
26419         (GET_MODE_2XWIDER_MODE): Likewise.
26420         (GET_CLASS_NARROWEST_MODE): Likewise.
26421         * omp-low.c (expand_omp_for): Add cast to enum type.
26422         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
26423         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
26424         * postreload.c (reload_cse_simplify_operands): Change rclass local
26425         to enum reg_class.
26426         * predict.c (combine_predictions_for_insn): Change best_predictor
26427         and predictor to enum br_predictor.
26428         (combine_predictions_for_bb): Likewise.
26429         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
26430         use SET_PREDICT_EXPR_OUTCOME.
26431         * real.c (real_arithmetic): Change icode to code in function call.
26432         * reginfo.c (init_move_cost): Add casts to enum type.
26433         (init_reg_sets_1, init_fake_stack_mems): Likewise.
26434         * regmove.c (regclass_compatible_p): Change class0 and class1 to
26435         enum reg_class.
26436         * reload.c (find_valid_class): Add casts to enum type.
26437         (push_reload): Change 0 to NO_REGS in function call.
26438         (find_reloads): Change this_alternative to array of enum
26439         reg_class.  Remove some now-unnecessary casts.
26440         (make_memloc): Change 0 to VOIDmode in function call.
26441         * reload1.c (reload): Change 0 to VOIDmode in function call.
26442         (eliminate_regs_1, elimination_effects): Likewise.
26443         (eliminate_regs_in_insn): Likewise.
26444         (emit_input_reload_insns): Add cast to enum type.
26445         (delete_output_reload): Change 0 to VOIDmode in function call.
26446         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
26447         to enum type in function call.
26448         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
26449         (SET_PREDICT_EXPR_OUTCOME): Define.
26450         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
26451         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
26452         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
26453         (dump_function): Likewise.
26454         * tree-dump.h: Update declarations.
26455         * tree-pass.h: Update declarations.
26456         * varasm.c (assemble_integer): Change mclass to enum mode_class.
26457         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
26458         enum type.
26459         (arm_rtx_costs_1): Correct parenthesization.
26460         (arm_rtx_costs): Add casts to enum type.
26461         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
26462         (vfp_emit_fstmd): Use add_rg_note.
26463         (emit_multi_reg_push, emit_sfm): Likewise.
26464         (thumb_set_frame_pointer): Likewise.
26465         (arm_expand_prologue): Likewise.
26466         (arm_regno_class): Change return type to enum reg_class.
26467         (thumb1_expand_prologue): Use add_reg_note.
26468         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
26469         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
26470         in function call.
26471         * config/arm/gentune.sh: Add cast to enum type.
26472         * config/arm/arm-tune.md: Rebuild.
26473         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
26474         (ix86_split_fp_branch, predict_jump): Likewise.
26475         (ix86_expand_multi_arg_builtin): Change sub_code from enum
26476         insn_code to enum rtx_code.
26477         (ix86_builtin_vectorized_function): Add cast to enum type.
26478         * config/i386/i386.md (truncdfsf2): Change slot to enum
26479         ix86_stack_slot.
26480         (truncxf<mode>2, isinf<mode>2): Likewise.
26481         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
26482         enum type.
26483         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
26484         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
26485         (insert_bundle_state): Change 1 to INSERT in function call.
26486         (ia64_add_bundle_selector_before): Likewise.
26487         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
26488         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
26489         (restore_stack_nonlocal): Likewise.
26490         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
26491         function call.
26492         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
26493         function call.
26494         (mips_rtx_costs): Likewise.
26495         (mips_override_options): Add casts to enum type.
26496         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
26497         in function call.
26498         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
26499         (store_reg, set_reg_plus_d): Likewise.
26500         (hppa_expand_prologue, hppa_profile_hook): Likewise.
26501         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
26502         cast to enum type.
26503         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
26504         function call.
26505         (emit_unlikely_jump): Use add_reg_note.
26506         (rs6000_emit_allocate_stack): Likewise.
26507         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
26508         (output_toc): Change 1 to INSERT in function call.
26509         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
26510         (rs6000_initialize_trampoline): Likewise.
26511         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
26512         function call.
26513         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
26514         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
26515         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
26516         (save_gprs): Use add_reg_note.
26517         (s390_emit_prologue): Likewise.
26518         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
26519         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
26520         (sparc_fold_builtin): Add cast to enum type.
26521         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
26522         enum insn_code.
26523         (spu_expand_prologue): Use add_reg_note.
26524         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
26525
26526 2009-04-20  Ian Lance Taylor  <iant@google.com>
26527
26528         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
26529         (c_parser_postfix_expression_after_primary): Get VEC for list of
26530         arguments.  Get original types of arguments.  Call
26531         build_function_call_vec.
26532         (cached_expr_list_1, cached_expr_list_2): New static variables.
26533         (c_parser_expr_list): Change return type to VEC *.  Add
26534         p_orig_types parameter.  Change all callers.
26535         (c_parser_release_expr): New static function.
26536         (c_parser_vec_to_tree_list): New static function.
26537         * c-typeck.c (build_function_call): Rewrite to build a VEC and
26538         call build_function_call_vec.
26539         (build_function_call_vec): New function, based on old
26540         build_function_call.
26541         (convert_arguments): Remove nargs and argarray parameters.  Change
26542         values to a VEC.  Add origtypes parameter.
26543         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
26544         (convert_for_assignment): Add origtype parameter.  Change all
26545         callers.  If warn_cxx_compat, check for conversion to an enum
26546         type when calling a function.
26547         (store_init_value): Add origtype parameter.  Change all callers.
26548         (digest_init): Likewise.
26549         (struct init_node): Add origtype field.
26550         (add_pending_init): Add origtype parameter.  Change all callers.
26551         (output_init_element): Likewise.
26552         (output_pending_init_elements): Pass origtype from init_node to
26553         output_init_element.
26554         (process_init_element): Pass origtype from c_expr to
26555         output_init_element.
26556         (c_finish_return): Add origtype parameter.  Change all callers.
26557         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
26558         caller.
26559         (sync_resolve_params): Likewise.
26560         (sync_resolve_return): Change params to first_param.  Change caller.
26561         (resolve_overloaded_builtins): Change params to VEC *.  Change
26562         callers.  Save first parameter around call to build_function_call_vec.
26563         * c-decl.c (finish_decl): Add origtype parameter.  Change all
26564         callers.  Call build_function_call_vec rather than
26565         build_function_call for cleanup.
26566         * c-tree.h: Update declarations.
26567         * c-common.h: Update declarations.
26568         * stub-objc.c (objc_rewrite_function_call): Change parameter from
26569         params to first_param.
26570         * target.h (struct gcc_target): Change resolve_overloaded_builtin
26571         params parameter from tree to void *.
26572         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26573         Change arglist parameter to have type void *, and to be a pointer
26574         to a VEC.
26575         * config/rs6000/rs6000-protos.h
26576         (altivec_resolve_overloaded_builtin): Update declaration.
26577         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
26578         fnargs parameter to have type void *, and to be a pointer to a
26579         VEC.  Call build_function_call_vec instead of
26580         build_function_call.
26581         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
26582
26583 2009-04-20  Joey Ye  <joey.ye@intel.com>
26584             Xuepeng Guo  <xuepeng.guo@intel.com>
26585             H.J. Lu  <hongjiu.lu@intel.com>
26586
26587         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
26588
26589         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
26590         (IX86_LEA_PRIORITY): Likewise.
26591         (distance_non_agu_define): New function.
26592         (distance_agu_use): Likewise.
26593         (ix86_lea_for_add_ok): Likewise.
26594         (ix86_dep_by_shift_count): Likewise.
26595
26596         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
26597         should split for LEA.
26598
26599         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
26600         function.
26601         (ix86_dep_by_shift_count): Likewise.
26602
26603 2009-04-20  Richard Guenther  <rguenther@suse.de>
26604
26605         * expr.c (handled_component_p): Move ...
26606         * tree.h (handled_component_p): ... here.
26607         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
26608         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
26609         and REALPART_EXPR to be in one group.
26610
26611 2009-04-20  Richard Guenther  <rguenther@suse.de>
26612
26613         * basic-block.h (get_all_dominated_blocks): Declare.
26614         * dominance.c (get_all_dominated_blocks): New function.
26615         * tree-cfg.c (get_all_dominated_blocks): Remove.
26616         (remove_edge_and_dominated_blocks): Adjust.
26617         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
26618         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
26619         instead of recursing.
26620
26621 2009-04-20  Doug Kwan  <dougkwan@google.com>
26622
26623         * cgraph.h (cgraph_node_ptr): New type for vector functions.
26624         (struct cgraph_node_set_def): New type.
26625         (cgraph_node_set) New type. Also declare vector functions.
26626         (struct cgraph_node_set_element_def): New type.
26627         (cgraph_node_set_element): Ditto.
26628         (cgraph_node_set_iterator): New iterator type.
26629         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
26630         cgraph_node_set_remove, dump_cgraph_node_set,
26631         debug_cgraph_node_set): New prototypes.
26632         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
26633         cgraph_node_set_size): New inlines.
26634         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
26635         including cgraph.h.
26636         (struct ipa_opt_pass): Add struct cgraph_node_set_def
26637         argument to function 'write_summary'.
26638         * ipa.c: Include ggc.h.
26639         (hash_cgraph_node_set_element,
26640         eq_cgraph_node_set_element, cgraph_node_set_new,
26641         cgraph_node_set_add, cgraph_node_set_remove,
26642         cgraph_node_set_find, dump_cgraph_node_set,
26643         debug_cgraph_node_set): New functions.
26644         * Makefile.in (ipa.o): Add dependency on GGC_H.
26645
26646 2009-04-20  Ira Rosen  <irar@il.ibm.com>
26647
26648         PR tree-optimization/39675
26649         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
26650         check of the return code of vect_schedule_slp. Check that
26651         stmt_vec_info still exists for the statement, before checking its
26652         vectorization type.
26653
26654 2009-04-20  Michael Matz  <matz@suse.de>
26655
26656         * Makefile.in (generated_files): Take out $(simple_generated_c).
26657
26658 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
26659
26660         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
26661         (UINTPTR_TYPE):  Likewise.
26662
26663 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
26664
26665         PR c/37481
26666         * c-typeck.c (digest_init): Check for initializing an array with a
26667         string literal.
26668
26669 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
26670
26671         PR c/19771
26672         * c-semantics.c (pop_stmt_list): Propagate
26673         STATEMENT_LIST_HAS_LABEL to parent statement list.
26674
26675 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
26676
26677         * config/mips/mips.h (mips_tune_attr): New macro.
26678         * config/mips/mips.md (cpu): Use it.
26679
26680 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
26681
26682         PR c/38243
26683         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
26684         declaring a tag.
26685
26686 2009-04-19  Diego Novillo  <dnovillo@google.com>
26687
26688         * toplev.c (compile_file): Move call to coverage_finish ...
26689         * cgraphunit.c (ipa_passes): ... here.
26690         Call cgraph_process_new_functions.
26691         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
26692         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
26693
26694 2009-04-19  Jan Hubicka  <jh@suse.cz>
26695
26696         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
26697         cfun.
26698         (dump_cgraph_node): Dump can throw external flag.
26699         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
26700
26701 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26702
26703         PR c/32061
26704         PR c++/36954
26705         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
26706         * common.opt (Wlogical-op): Move from here...
26707         * c.opt (Wlogical-op): ... to here.
26708         * c-typeck.c (parser_build_binary_op): Update call to
26709         warn_logical_operator.
26710         * c-opts.c (c_common_post_options): Enable warn_logical_op with
26711         extra_warnings.
26712         * c-common.c (warn_logical_op): Update.
26713         * c-common.h (warn_logical_op): Update declaration.
26714
26715 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
26716
26717         * tree.c (protected_set_expr_location): Fix formatting.
26718
26719 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
26720
26721         PR c/27676
26722         * c-typeck.c (readonly_warning): new.
26723         (build_unary_op, build_modify_expr): Use readonly_warning for
26724         storing into something readonly but not const-qualified.
26725
26726 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
26727
26728         PR c/22367
26729         * c-typeck.c (build_unary_op): Check for taking address of
26730         expression of type void.
26731
26732 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
26733
26734         PR c/35210
26735         * c-typeck.c (build_function_call): Check for calling a function
26736         with qualified void return types.  Call require_complete_type when
26737         generating a trap.
26738
26739 2009-04-18  Jan Hubicka  <jh@suse.cz>
26740
26741         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
26742         Set nothrow flag.
26743         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
26744         can_throw_external flag.
26745         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
26746         * ipa-pure-const.c (ignore_edge): New function.
26747         (propagate): Compute order for NOTHROW computation; set NOTHROWs
26748         only over can_throw_external edges.
26749         (local_pure_const): Add nothrow flag.
26750         * ipa-utils.c (searchc): Add ignore_edge callback.
26751         (ipa_utils_reduced_inorder): Add ignore_edge callback.
26752         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
26753         (set_nothrow_function_flags): Update cgraph.
26754         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
26755
26756 2009-04-18  Richard Guenther  <rguenther@suse.de>
26757
26758         PR middle-end/39804
26759         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
26760         (fold_stmt): ... this and ...
26761         (fold_stmt_inplace): ... this.
26762         (fold_stmt_1): Fold references in calls and asms.
26763         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
26764
26765 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
26766
26767         * tree-vrp.c (ssa_name_nonzero_p): Remove.
26768         * tree.h: Remove the prototype for ssa_name_nonzero_p.
26769
26770 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
26771
26772         * tree.c (function_args_count): Remove.
26773         * tree.h: Remove the prototype for function_args_count.
26774
26775 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
26776
26777         * tree-iterator.c (expr_only): Remove.
26778         * tree.h: Remove the prototype for expr_only.
26779
26780 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
26781
26782         * reginfo.c (cannot_change_mode_set_regs): Remove.
26783         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
26784
26785 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
26786
26787         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
26788         whether operands 0 and 1 overlaps.
26789
26790 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26791
26792         PR middle-end/36902
26793         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
26794         pointer. Use warning_at instead of warning.
26795         (search_for_addr_array): Likewise.
26796         (check_array_bounds): Likewise.
26797         (check_all_array_refs): Check that the incoming edge is not in the
26798         list of edges to be removed.
26799         (check_all_array_refs): Avoid the temporal pointer.
26800         (vrp_visit_cond_stmt): Fix typo.
26801         (simplify_switch_using_ranges): Handle the case where the switch
26802         index is an integer constant.
26803
26804 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
26805
26806         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
26807
26808 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
26809
26810         * doc/extend.texi, doc/invoke.texi: Fix typos.
26811
26812 2009-04-17  Cary Coutant  <ccoutant@google.com>
26813
26814         * tree-flow-inline.h (get_lineno): Fix inverted test.
26815
26816 2009-04-17  Diego Novillo  <dnovillo@google.com>
26817
26818         * tree-ssa-pre.c (create_expression_by_pieces): Remove
26819         assertion for AVAIL_OUT.
26820
26821 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
26822
26823         PR target/38627
26824         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
26825         * config/sh/linux-atomic.asm: Likewise.
26826
26827 2009-04-17  Diego Novillo  <dnovillo@google.com>
26828
26829         * except.c (debug_eh_tree): New.
26830         (struct eh_region, struct eh_status): Move ...
26831         * except.h: ... here.
26832         (add_type_for_runtime): Declare extern.
26833         (lookup_type_for_runtime): Likewise.
26834         (debug_eh_tree): Declare.
26835         * Makefile.in (GTFILES): List except.h before except.c
26836
26837 2009-04-17  Diego Novillo  <dnovillo@google.com>
26838
26839         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
26840         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
26841         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
26842         (find_vars_r): ... here.
26843         * tree-flow.h (find_referenced_vars_in): Declare.
26844         * tree-ssa-pre.c (create_expression_by_pieces): Assert
26845         that AVAIL_OUT exists for BLOCK.
26846         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
26847         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
26848         (tree-parloops.o): Likewise.
26849
26850 2009-04-17  Simon Baldwin  <simonb@google.com>
26851
26852         * toplev.c (default_tree_printer): Add handling for %E format.
26853
26854 2009-04-17  Diego Novillo  <dnovillo@google.com>
26855
26856         * tree-pretty-print.c (dump_generic_node): Add break after
26857         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
26858         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
26859         FUNCTION_TYPE together.  Call print_struct_decl when printing
26860         structures and TDF_SLIM is not given.
26861         (print_struct_decl): Fix logic for detecting recursion.
26862
26863 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
26864
26865         PR 31567
26866         * gcc.c (create_at_file): New.
26867         (compile_input_file_p): New.
26868         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
26869         * main.c (main): Update call to toplev_main.
26870         * toplev.c (toplev_main): Change signature. Call expandargv.
26871         * toplev.h (toplev_main): Change signature.
26872
26873 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
26874
26875         * dwarf2out.c (field_byte_offset): Use the type size as the field size
26876         if the latter is not constant.
26877
26878 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
26879
26880         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
26881
26882 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
26883
26884         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
26885         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
26886
26887 2009-04-17  Richard Guenther  <rguenther@suse.de>
26888
26889         * tree-ssa-structalias.c (get_constraint_for_component_ref):
26890         Handle component references view-converting an invariant address.
26891
26892 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
26893
26894         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
26895         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
26896         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
26897         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
26898         Use @deftypevr rather than @deftypevar.
26899
26900 2009-04-17  Richard Guenther  <rguenther@suse.de>
26901
26902         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
26903         (get_prop_source_stmt): Likewise.
26904         (can_propagate_from): Likewise.
26905
26906 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
26907
26908         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
26909         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
26910         (--with-multilib-list): Add default value.
26911         * configure: Regenerate.
26912         * Makefile.in (TM_ENDIAN_CONFIG): Define.
26913         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
26914         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
26915         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
26916         Don't add default cpu to multilib list unnecessarily, but do enable
26917         the relevant compiler option..
26918         Add support for --with-multilib-list=<blank> and
26919         --with-multilib-list=!<somelib> to supress unwanted multilibs.
26920         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
26921         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
26922         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
26923         TM_MULTILIB_CONFIG.
26924         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
26925         (MULTILIB_OSDIRNAMES): New variable.
26926         * config/sh/t-1e: Delete file.
26927         * config/sh/t-mlib-sh1: Delete file.
26928         * config/sh/t-mlib-sh2: Delete file.
26929         * config/sh/t-mlib-sh2a: Delete file.
26930         * config/sh/t-mlib-sh2a-nofpu: Delete file.
26931         * config/sh/t-mlib-sh2a-single: Delete file.
26932         * config/sh/t-mlib-sh2a-single-only: Delete file.
26933         * config/sh/t-mlib-sh2e: Delete file.
26934         * config/sh/t-mlib-sh3e: Delete file.
26935         * config/sh/t-mlib-sh4: Delete file.
26936         * config/sh/t-mlib-sh4-nofpu: Delete file.
26937         * config/sh/t-mlib-sh4-single: Delete file.
26938         * config/sh/t-mlib-sh4-single-only: Delete file.
26939         * config/sh/t-mlib-sh4a: Delete file.
26940         * config/sh/t-mlib-sh4a-nofpu: Delete file.
26941         * config/sh/t-mlib-sh4a-single: Delete file.
26942         * config/sh/t-mlib-sh4a-single-only: Delete file.
26943         * config/sh/t-mlib-sh4al: Delete file.
26944         * config/sh/t-mlib-sh5-32media: Delete file.
26945         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
26946         * config/sh/t-mlib-sh5-64media: Delete file.
26947         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
26948         * config/sh/t-mlib-sh5-compact: Delete file.
26949         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
26950         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
26951         * doc/install.texi (Options specification): Add
26952         --with-multilib-list and --with-endian.
26953
26954 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
26955
26956         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
26957         REVISION_c.
26958         (OBJS-common): Add plugin-version.o.
26959         (plugin-version.o): New.
26960         * gcc-plugin.h (plugin_gcc_version): New.
26961         (plugin_default_version_check): New.
26962         (plugin_init_func, plugin_init): Add version argument.
26963         * plugin-version.c: New.
26964         * plugin.c (str_plugin_gcc_version_name): New.
26965         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
26966         pass it to the init function.
26967         (plugin_default_version_check): New.
26968
26969 2009-04-17  Richard Guenther  <rguenther@suse.de>
26970
26971         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
26972         for decl-vs-decl disambiguation.
26973
26974 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
26975
26976         * config/s390/s390.h (s390_tune_attr): New macro definition.
26977         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
26978
26979 2009-04-17  Richard Guenther  <rguenther@suse.de>
26980
26981         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
26982         (fold_stmt_r): Likewise.
26983         (maybe_fold_reference): New function.
26984         (fold_gimple_assign): Handle cases fold_stmt_r did.
26985         (fold_stmt): Do not use fold_stmt_r.
26986         (fold_stmt_inplace): Likewise.
26987
26988 2009-04-17  Richard Guenther  <rguenther@suse.de>
26989
26990         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
26991         (record_equivalences_from_stmt): Remove useless checks and
26992         simplifications.
26993         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
26994         the type is already suitable.
26995
26996 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
26997
26998         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
26999
27000 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
27001
27002         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
27003         (CMPtype): Define as __gcc_CMPtype.
27004
27005 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
27006
27007         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
27008         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
27009
27010 2009-04-17  Richard Guenther  <rguenther@suse.de>
27011
27012         PR tree-optimization/39746
27013         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
27014         special-casing for builtins and static variable use/def.
27015         (call_may_clobber_ref_p_1): Likewise.
27016
27017 2009-04-16  Ian Lance Taylor  <iant@google.com>
27018
27019         * df.h: Include "timevar.h".
27020         (struct df_problem): Change tv_id field to timevar_id_t.
27021         * tree-pass.h: Include "timevar.h".
27022         (struct opt_pass): Change tv_id field to timevar_id_t.
27023         * timevar.h (timevar_id_t): Define TV_NONE.
27024         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
27025         TV_NONE rather than tv_id != 0.
27026         (execute_one_pass): Likewise.
27027         * Makefile.in (DF_H): Add $(TIMEVAR_H).
27028         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
27029         dependencies to $(TREE_PASS_H).
27030         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
27031         to TV_NONE.
27032         (pass_branch_target_load_optimize2): Likewise.
27033         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
27034         (pass_outof_cfg_layout_mode): Likewise.
27035         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
27036         (pass_rebuild_cgraph_edges): Likewise.
27037         (pass_remove_cgraph_callee_edges): Likewise.
27038         * df-core.c (pass_df_initialize_opt): Likewise.
27039         (pass_df_initialize_no_opt): Likewise.
27040         (pass_df_finish): Likewise.
27041         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
27042         * except.c (pass_set_nothrow_function_flags): Likewise.
27043         (pass_convert_to_eh_region_ranges): Likewise.
27044         * final.c (pass_compute_alignments): Likewise.
27045         * function.c (pass_instantiate_virtual_regs): Likewise.
27046         (pass_init_function): Likewise.
27047         (pass_leaf_regs): Likewise.
27048         (pass_match_asm_constraints): Likewise.
27049         * gimple-low.c (pass_lower_cf): Likewise.
27050         (pass_mark_used_blocks): Likewise.
27051         * init-regs.c (pass_initialize_regs): Likewise.
27052         * integrate.c (pass_initial_value_sets): Likewise.
27053         * ira.c (pass_ira): Likewise.
27054         * jump.c (pass_cleanup_barriers): Likewise.
27055         * omp-low.c (pass_expand_omp): Likewise.
27056         (pass_lower_omp): Likewise.
27057         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
27058         * recog.c (pass_split_all_insns): Likewise.
27059         (pass_split_after_reload): Likewise.
27060         (pass_split_before_regstack): Likewise.
27061         (pass_split_before_sched2): Likewise.
27062         (pass_split_for_shorten_branches): Likewise.
27063         * reginfo.c (pass_reginfo_init): Likewise.
27064         (pass_subregs_of_mode_init): Likewise.
27065         (pass_subregs_of_mode_finish): Likewise.
27066         * passes.c (pass_postreload): Likewise.
27067         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
27068         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
27069         (pass_warn_function_return): Likewise.
27070         (pass_warn_function_noreturn): Likewise.
27071         * tree-complex.c (pass_lower_complex): Likewise.
27072         (pass_lower_complex_O0): Likewise.
27073         * tree-if-conv.c (pass_if_conversion): Likewise.
27074         * tree-into-ssa.c (pass_build_ssa): Likewise.
27075         * tree-mudflap.c (pass_mudflap_1): Likewise.
27076         (pass_mudflap_2): Likewise.
27077         * tree-nomudflap.c (pass_mudflap_1): Likewise.
27078         (pass_mudflap_2): Likewise.
27079         * tree-nrv.c (pass_return_slot): Likewise.
27080         * tree-object-size.c (pass_object_sizes): Likewise.
27081         * tree-optimize.c (pass_all_optimizations): Likewise.
27082         (pass_early_local_passes): Likewise.
27083         (pass_all_early_optimizations): Likewise.
27084         (pass_cleanup_cfg): Likewise.
27085         (pass_cleanup_cfg_post_optimizing): Likewise.
27086         (pass_free_datastructures): Likewise.
27087         (pass_free_cfg_annotations): Likewise.
27088         (pass_fixup_cfg): Likewise.
27089         (pass_init_datastructures): Likewise.
27090         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
27091         (pass_late_warn_uninitialized): Likewise.
27092         (pass_update_address_taken): Likewise.
27093         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
27094         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
27095         (pass_cse_sincos): Likewise.
27096         (pass_convert_to_rsqrt): Likewise.
27097         * tree-ssa-structalias.c (pass_build_alias): Likewise.
27098         * tree-stdarg.c (pass_stdarg): Likewise.
27099         * tree-tailcall.c (pass_tail_recursion): Likewise.
27100         (pass_tail_calls): Likewise.
27101         * tree-vect-generic.c (pass_lower_vector): Likewise.
27102         (pass_lower_vector_ssa): Likewise.
27103         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
27104
27105 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
27106
27107         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
27108         XLR entry.
27109         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
27110         Handle -march=xlr.
27111         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
27112         logical and signext.
27113
27114 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
27115
27116         PR target/39767
27117         * config/sh/predicates.md (arith_operand): Check if the operand
27118         of TRUNCATE is a REG.
27119
27120 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
27121
27122         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
27123         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
27124
27125 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
27126
27127         * tree-iterator.c (tsi_split_statement_list_after,
27128         tsi_split_statement_list_before): Remove.
27129         * tree-iterator.h: Remove the prototypes for
27130         tsi_split_statement_list_after and tsi_split_statement_list_before.
27131
27132 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
27133
27134         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
27135         * tree-ssa-propagate.h: Remove the prototype for
27136         stmt_makes_single_load.
27137
27138 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
27139
27140         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
27141         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
27142
27143 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
27144
27145         * tree-iterator.c (EXPR_LAST_BODY): Remove.
27146
27147 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
27148
27149         * except.c (eh_region_outer_p): Remove.
27150         * except.h: Remove the prototype for eh_region_outer_p.
27151
27152 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
27153
27154         * function.c (current_function_assembler_name): Remove.
27155         * function.h: Remove the prototype for
27156         current_function_assembler_name.
27157
27158 2009-04-16  Ian Lance Taylor  <iant@google.com>
27159
27160         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
27161         (add_reg_note): Call alloc_reg_note.
27162         * rtl.h (alloc_reg_note): Declare.
27163         * combine.c (try_combine): Use alloc_reg_note.
27164         (recog_for_combine, move_deaths): Likewise.
27165         (distribute_notes): Use alloc_reg_note and add_reg_note.
27166         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
27167         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
27168         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
27169
27170 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
27171
27172         PR rtl-optimization/39762
27173         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
27174         ira_may_move_out_cost): Add comments about way of their usage.
27175         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
27176
27177         * ira-conflicts.c (process_regs_for_copy): Use function
27178         ira_get_register_move_cost instead of global
27179         ira_register_move_cost.
27180
27181         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
27182         color_pass, move_spill_restore, update_curr_costs): Ditto.
27183
27184         * ira-lives.c (process_single_reg_class_operands): Ditto.
27185
27186         * ira-emit.c (emit_move_list): Ditto.
27187
27188         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
27189         (record_reg_classes): Ditto.  Use functions
27190         ira_get_register_move_cost and ira_get_may_move_cost instead of
27191         global vars ira_register_move_cost, ira_may_move_out_cost and
27192         ira_may_move_in_cost.
27193         (record_address_regs): Don't call ira_init_register_move_cost.
27194         Use function ira_get_may_move_cost instead of global
27195         ira_may_move_in_cost.
27196         (process_bb_node_for_hard_reg_moves): Use function
27197         ira_get_register_move_cost instead of global ira_register_move_cost.
27198         (ira_costs): Don't call ira_init_register_move_cost.
27199
27200 2009-04-16  Richard Guenther  <rguenther@suse.de>
27201
27202         * tree-cfg.c (verify_gimple_assign_binary):
27203         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
27204         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
27205         (create_general_new_stmt): Note that this function is broken.
27206
27207 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
27208
27209         * common.opt (fhelp): Add Var(help_flag).
27210         * gcc-plugin.h (plugin_info): Add help.
27211         * plugin.c (plugin_name_args): Add help.
27212         (register_plugin_info): Set plugin->help.
27213         (print_help_one_plugin): New.
27214         (print_plugins_help): New.
27215         * plugin.h (print_plugins_help): New.
27216         * toplev.c (toplev_main): Call print_plugins_help if needed.
27217
27218 2009-04-16  Richard Guenther  <rguenther@suse.de>
27219
27220         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
27221         (gimple_ior_addresses_taken_1): New function.
27222         (gimple_ior_addresses_taken): Likewise.
27223         * gimple.h (struct gimple_statement_with_ops_base): Remove
27224         addresses_taken member.
27225         (gimple_ior_addresses_taken): Declare.
27226         (gimple_addresses_taken, gimple_addresses_taken_ptr,
27227         gimple_set_addresses_taken): Remove.
27228         * ipa-reference.c (mark_address): New function.
27229         (scan_stmt_for_static_refs): Use it for marking addresses taken.
27230         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
27231         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
27232         (gimple_add_to_addresses_taken): Remove.
27233         (get_tmr_operands): Call mark_address_taken.
27234         (get_asm_expr_operands): Likewise.
27235         (get_expr_operands): Likewise.
27236         (build_ssa_operands): Do not clear the addresses_taken bitmap.
27237         (free_stmt_operands): Do not free it.
27238         * tree-ssa.c (delete_tree_ssa): Likewise.
27239         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
27240
27241 2009-04-16  Richard Guenther  <rguenther@suse.de>
27242
27243         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
27244         (walk_stmt_load_store_ops): Likewise.
27245         * gimple.c (get_base_loadstore): New function.
27246         (walk_stmt_load_store_addr_ops): Likewise.
27247         (walk_stmt_load_store_ops): Likewise.
27248         * ipa-pure-const.c (check_op): Simplify.
27249         (check_load, check_store): New functions.
27250         (check_stmt): Use walk_stmt_load_store_ops.
27251         * ipa-reference.c (mark_load): Adjust signature.
27252         (mark_store): Likewise.
27253         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
27254
27255 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
27256
27257         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
27258         (plugin_info): New.
27259         * opts.c (common_handle_option): Don't call print_version.
27260         * plugin.c (plugin_name_args): Add version.
27261         (register_plugin_info): New.
27262         (register_callback): Handle PLUGIN_INFO.
27263         (try_init_one_plugin): New.
27264         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
27265         if failed to init.
27266         (finalize_one_plugin): New.
27267         (finalize_plugins): New.
27268         (print_one_plugin): New.
27269         (print_plugins_versions): New.
27270         * plugin.h (print_plugins_versions): New.
27271         (finalize_plugins): New.
27272         * toplev.c (compile_file): Don't call initialize_plugins.
27273         (print_version): Call print_plugins_versions.
27274         (toplev_main): Call initialize_plugins. Print version if needed.
27275         Call finalize_plugins.
27276
27277 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
27278
27279         * common.opt (fversion): New.
27280         * gcc.c (print_version): New.
27281         (process_command): Don't print the version. Just set print_version.
27282         (main): Print version. Call subprocesses if print_version and
27283         verbose_flag are set.
27284         * opts.c (common_handle_option): Handle OPT_fversion.
27285
27286 2009-04-16  Richard Guenther  <rguenther@suse.de>
27287             Ira Rosen  <irar@il.ibm.com>
27288
27289         PR tree-optimization/39698
27290         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
27291         type of the reduction variable.  Only generate the def if
27292         it is needed.
27293
27294         * omp-low.c (expand_omp_for_generic): When converting to a pointer
27295         make sure to first convert to an integer of the same precision.
27296         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
27297         the type of the evolution correctly in computing the new
27298         induction variable base.
27299
27300 2009-04-16  Richard Guenther  <rguenther@suse.de>
27301
27302         PR middle-end/39625
27303         * tree-cfg.c (make_blocks): Split statements with to-be
27304         abnormal SSA names on the lhs.
27305
27306 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
27307
27308         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
27309         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
27310         * c-typeck.c (really_start_incremental_init): Likewise.
27311         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
27312         (TARGET_INITIALIZER): Remove it.
27313         * target.h (struct target): Remove vector_opaque_p.
27314         * tree.c (build_opaque_vector_type): New.
27315         * tree.h (TYPE_VECTOR_OPAQUE): New.
27316         (build_opaque_vector_type): Declare.
27317         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
27318         * config/rs6000/rs6000.c (build_opaque_vector_type,
27319         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
27320         (rs6000_init_builtins): Use build_opaque_vector_type for
27321         opaque_V4SI_type_node.
27322
27323 2009-04-15  Catherine Moore  <clm@codesourcery.com>
27324
27325         * debug.h (set_name):  Declare.
27326         * dwarf2out.c (dwarf2out_set_name): Declare.
27327         (dwarf2_debug_hooks): Add set_name.
27328         (find_AT_string): New.
27329         (add_AT_string): Call find_AT_string.
27330         (dwarf2out_set_name): New.
27331         * cp/decl.c (grokdeclarator): Call set_name.
27332         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
27333         * debug.c (do_nothing_debug_hooks):  Likewise.
27334         * dbxout.c (dbx_debug_hooks): Likewise.
27335         * sdbout.c (sdb_debug_hooks): Likewise.
27336
27337 2009-04-15  Michael Eager  <eager@eagercon.com>
27338
27339         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
27340         reg for single-precision FPU.
27341         * config/rs6000/rs6000.md (movsi_internal1): Only for
27342         !TARGET_SINGLE_FPU.
27343         (movsi_internal1_single): New. Add pattern to move SI values to/from
27344         single-precision FP regs.
27345
27346 2009-04-15  Richard Guenther  <rguenther@suse.de>
27347
27348         * omp-low.c (lower_rec_input_clauses): Build correct address
27349         expressions.
27350         (expand_omp_for_generic): Fix multiplication type.
27351         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
27352         (generate_memset_zero): Fix types.
27353         * tree-profile.c (prepare_instrumented_value): Correctly
27354         widen a pointer.
27355
27356 2009-04-15  Ian Lance Taylor  <iant@google.com>
27357
27358         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
27359         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
27360         for -Wall and for -Wc++-compat.
27361         (c_common_post_options): For C++, set warn_enum_compare if not
27362         already set.
27363         * c-tree.h (struct c_expr): Add field original_type.
27364         (build_external_ref): Update declaration.
27365         * c-parser.c (c_parser_braced_init): Set original_type.
27366         (c_parser_initelt): Likewise.
27367         (c_parser_expr_no_commas): Likewise.
27368         (c_parser_conditional_expression): Likewise.
27369         (c_parser_cast_expression): Likewise.
27370         (c_parser_unary_expression): Likewise.  Pull setting of
27371         original_code to top of function.
27372         (c_parser_sizeof_expression): Set original_type.
27373         (c_parser_alignof_expression): Likewise.
27374         (c_parser_postfix_expression): Likewise.  Pull setting of
27375         original_code to top of function.
27376         (c_parser_postfix_expression_after_paren_type): Set original_type.
27377         (c_parser_postfix_expression_after_primary): Likewise.
27378         (c_parser_expression): Likewise.
27379         * c-typeck.c (build_external_ref): Add type parameter.  Change all
27380         callers.
27381         (c_expr_sizeof_expr): Set original_type field.
27382         (parser_build_unary_op): Likewise.
27383         (parser_build_binary_op): Likewise.  Optionally warn about
27384         comparisons of enums of different types.
27385         (digest_init): Set original_type field.
27386         (really_start_incremental_init): Likewise.
27387         (push_init_level, pop_init_level): Likewise.
27388         * doc/invoke.texi (Warning Options): -Wenum-compare now
27389         supported in C.
27390
27391 2009-04-15  Richard Guenther  <rguenther@suse.de>
27392
27393         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
27394         out a necessary conversion.
27395         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
27396         names we didn't value number.
27397         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
27398
27399 2009-04-15  Richard Guenther  <rguenther@suse.de>
27400
27401         PR tree-optimization/39764
27402         * tree-ssa-ccp.c (get_value): Canonicalize value with
27403         canonicalize_float_value.
27404
27405 2009-04-15  Jan Hubicka  <jh@suse.cz>
27406
27407         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
27408         Wrong version of patch.
27409
27410 2009-04-15  Jan Hubicka  <jh@suse.cz>
27411
27412         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
27413
27414 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
27415
27416         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
27417         our distinct integral and vector types.
27418
27419 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
27420
27421         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
27422         * init.c (build_vtbl_address): Remove call to assemble_external.
27423
27424 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
27425
27426         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
27427         output for other floating point modes.
27428
27429 2009-04-14  Diego Novillo  <dnovillo@google.com>
27430
27431         * diagnostic.c (diagnostic_report_diagnostic): Do not
27432         warn about loaded plugins for DK_ERROR and DK_WARNING.
27433         * c-decl.c (declspecs_add_type): Move call to
27434         invoke_plugin_callbacks ...
27435         * c-parser.c (c_parser_declspecs): ... here.
27436         * plugin.c (dump_active_plugins): Tidy output.
27437
27438 2009-04-14  Diego Novillo  <dnovillo@google.com>
27439             Le-Chun Wu  <lcwu@google.com>
27440
27441         * configure.ac: Add --enable-plugin support.
27442         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
27443         * Makefile.in (PLUGIN_H): Define.
27444         Export ENABLE_PLUGIN and GMPINC to site.exp.
27445         Add PLUGINLIBS to link command.
27446         Add/modify dependencies for plugin.o and files including plugin.h.
27447         (plugin.o): New.
27448         * config.in: Regenerate.
27449
27450         * opts.c (common_handle_option): Handle OPT_fplugin_ and
27451         OPT_fplugin_arg_.
27452
27453 2009-04-14  Le-Chun Wu  <lcwu@google.com>
27454
27455         * tree-pass.h (register_one_dump_file): Add a prototype for
27456         register_one_dump_file.
27457         * toplev.c (compile_file): Call initialize_plugins.
27458         (do_compile): Call invoke_plugin_callbacks.
27459         (toplev_main): Call invoke_plugin_callbacks.
27460         * common.opt: Add -fplugin= and -fplugin-arg-.
27461         * gcc-plugin.h: New public header file for plugins to include.
27462         * plugin.c: New source file.
27463         * plugin.h: New internal header file.
27464         * passes.c (register_one_dump_file): Make it external.
27465
27466         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
27467
27468 2009-04-14  Diego Novillo  <dnovillo@google.com>
27469
27470         * doc/plugins.texi: New.
27471         * doc/gccint.texi: Add reference to Plugins chapter.
27472         * doc/invoke.texi: Document -fplugin and -fplugin-arg
27473         * diagnostic.c (diagnostic_report_diagnostic): Warn about
27474         loaded plugins, if any.
27475         * timevar.def (TV_PLUGIN_INIT): Define.
27476         (TV_PLUGIN_RUN): Define.
27477         * plugin.c: Include timevar.h
27478         (plugins_active_p): New.
27479         (dump_active_plugins): New.
27480         (debug_active_plugins): New.
27481
27482 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
27483
27484         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
27485         library paths.
27486         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
27487
27488 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
27489
27490         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
27491         the same as a minus without a shift.
27492
27493 2009-04-14  Nick Clifton  <nickc@redhat.com>
27494
27495         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
27496         comparisons with small integers will always produce a short
27497         branch.
27498
27499 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
27500
27501         Merge:
27502         2008-12-19  Diego Novillo  <dnovillo@google.com>
27503
27504         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
27505
27506 2009-04-14  Richard Guenther  <rguenther@suse.de>
27507
27508         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
27509         verification.
27510         (verify_gimple_assign_binary): Likewise.  Handle shifts and
27511         rotates correctly.
27512         (verify_gimple_phi): Print the mismatched argument position.
27513         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
27514         Fix types.
27515         (vect_update_init_of_dr): Likewise.
27516         * matrix-reorg.c (transform_access_sites): Do what the
27517         comment suggests.
27518         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
27519
27520 2009-04-13  Michael Eager  <eager@eagercon.com>
27521
27522         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
27523         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
27524         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
27525         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
27526         remove duplicate config
27527
27528 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
27529
27530         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
27531         file_name:line_number type locator of the call site.
27532
27533 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
27534
27535         * genautomata.c: Put blank after comma.
27536         (automaton_decls): New.
27537         (struct unit_usage): Add comments to member next.
27538         (store_alt_unit_usage): Keep the list ordered.
27539         (unit_present_on_list_p, equal_alternatives_p): New.
27540         (check_regexp_units_distribution): Check units distribution
27541         correctness correctly.
27542         (main): Don't write automata if error is found.  Return correct
27543         exit code.
27544
27545         * config/m68k/cf.md (cfv4_ds): Remove.
27546         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
27547         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
27548
27549         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
27550         power4-load-ext, power4-store, power4-store-update,
27551         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
27552         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
27553         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
27554         power4-sqrt, power4-isync): Modify reservation to make correct
27555         unit distribution to automata.
27556
27557         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
27558         power5-store-update, power5-two, power5-three, power5-lmul,
27559         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
27560
27561 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
27562
27563         * except.c (pass_set_nothrow_function_flags): Set name and add
27564         TODO_dump_func.
27565         (set_nothrow_function_flags): Mention in the dump file when
27566         changing a function to nothrow.
27567
27568 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
27569
27570         PR/39066
27571         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
27572         instead of unsigned long.
27573
27574 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27575
27576         * config/arm/arm.c (return_used_this_function): Remove.
27577         (arm_output_function_prologue): Remove use of
27578         return_used_this_function.
27579         (output_return_instruction): Replace use of
27580         return_used_this_function
27581         by cfun->machine->return_used_this_function.
27582         (arm_output_epilogue): Likewise.
27583         (arm_output_function_epilogue): Likewise.
27584         (thumb_unexpanded_epilogue): Likewise.
27585         * config/arm/arm.h (struct machine_function):
27586         New member return_used_this_function.
27587
27588 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
27589
27590         * doc/install.texi: Correct description of default directory for
27591         --with-gxx-include-dir.
27592
27593 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
27594
27595         * fold-const.c (build_range_check): Properly deal with enumeral and
27596         boolean base types.
27597
27598 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
27599
27600         * doc/invoke.texi (max_gcse_passes): Remove documentation.
27601         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
27602         * params.h (MAX_GCSE_PASSES): Remove.
27603         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
27604         in sequence.  Remove ability to run multiple passes.
27605         (bypass_jumps): Report run as third CPROP pass.
27606
27607 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
27608
27609         PR middle-end/39651
27610         * except.c (can_throw_external): Look at each insn in a SEQUENCE
27611         when deciding whether the whole SEQUENCE can throw.
27612
27613 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
27614
27615         PR target/39740
27616         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
27617         offseted label references.
27618
27619 2009-04-11  Jan Hubicka  <jh@suse.cz>
27620
27621         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
27622
27623 2009-04-11  Richard Guenther  <rguenther@suse.de>
27624
27625         PR middle-end/39732
27626         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
27627         return variables as TREE_ADDRESSABLE.
27628
27629 2009-04-11  Richard Guenther  <rguenther@suse.de>
27630
27631         PR tree-optimization/39713
27632         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
27633         reference trees have SSA_NAME operands.
27634
27635 2009-04-11  Richard Guenther  <rguenther@suse.de>
27636
27637         PR c/39712
27638         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
27639         address expressions.
27640
27641 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
27642
27643         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
27644         match changes in Cygwin 1.7
27645         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
27646         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
27647
27648 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
27649
27650         PR tree-optimization/39701
27651         * doc/invoke.texi (Optimization Options): Document change in
27652         meaning and initialization of -fdelete-null-pointer-checks.
27653
27654 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27655
27656         PR middle-end/39701
27657         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
27658
27659         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
27660         here.
27661
27662         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
27663
27664 2009-04-10  Chao-ying Fu  <fu@mips.com>
27665
27666         * doc/tm.texi (Instruction Output): Document
27667         TARGET_ASM_FINAL_POSTSCAN_INSN.
27668         * target.h (final_postscan_insn): New field in asm_out.
27669         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
27670         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
27671         * final.c (final_scan_insn): Call
27672         targetm.asm_out.final_postscan_insn after outputting
27673         an asm macro and a normal instruction.
27674
27675         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
27676         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
27677         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
27678         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
27679         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
27680
27681 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
27682
27683         PR middle-end/39701
27684         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
27685         variables as non-NULL even with -fdelete-null-pointer-checks.
27686
27687 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27688
27689         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
27690
27691 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
27692
27693         PR target/39678
27694         * config/i386/i386.c (classify_argument): Handle SCmode with
27695         (bit_offset % 64) != 0.
27696
27697 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
27698
27699         * doc/invoke.texi (Optimize Options): Add cross-reference to
27700         -Q --help=optimizers examples.
27701
27702 2009-04-10  Ben Elliston  <bje@au.ibm.com>
27703
27704         PR target/36800
27705         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
27706         regalign for the reg == fpr and TDmode case.
27707
27708 2009-04-09  David Ayers  <ayers@fsfe.org>
27709
27710         PR objc/29200
27711         * objc/objc-act.c (warn_with_method): Remove helper function.
27712         (check_duplicates): Call warning and inform directly.
27713         (really_start_method): Likewise.
27714
27715 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
27716
27717         * expmed.c (expand_divmod): Always use a comparison for a division
27718         by a large unsigned integer.
27719
27720         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
27721         for things others than variables or functions as nonzero.
27722
27723 2009-04-09  Nick Clifton  <nickc@redhat.com>
27724
27725         * unwind-compat.c: Change copyright header to refer to version
27726         3 of the GNU General Public License with version 3.1 of the
27727         GCC Runtime Library Exception and to point readers at the
27728         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
27729         * config/alpha/crtfastmath.c: Likewise.
27730         * config/alpha/linux-unwind.h: Likewise.
27731         * config/alpha/qrnnd.asm: Likewise.
27732         * config/alpha/vms-crt0-64.c: Likewise.
27733         * config/alpha/vms-crt0.c: Likewise.
27734         * config/alpha/vms-dwarf2.asm: Likewise.
27735         * config/alpha/vms-dwarf2eh.asm: Likewise.
27736         * config/alpha/vms-psxcrt0-64.c: Likewise.
27737         * config/alpha/vms-psxcrt0.c: Likewise.
27738         * config/alpha/vms_tramp.asm: Likewise.
27739         * config/arc/initfini.c: Likewise.
27740         * config/arc/lib1funcs.asm: Likewise.
27741         * config/arm/bpabi-v6m.S: Likewise.
27742         * config/arm/bpabi.S: Likewise.
27743         * config/arm/bpabi.c: Likewise.
27744         * config/arm/crti.asm: Likewise.
27745         * config/arm/crtn.asm: Likewise.
27746         * config/arm/ieee754-df.S: Likewise.
27747         * config/arm/ieee754-sf.S: Likewise.
27748         * config/arm/lib1funcs.asm: Likewise.
27749         * config/arm/libunwind.S: Likewise.
27750         * config/arm/linux-atomic.c: Likewise.
27751         * config/arm/mmintrin.h: Likewise.
27752         * config/arm/pr-support.c: Likewise.
27753         * config/arm/unaligned-funcs.c: Likewise.
27754         * config/arm/unwind-arm.c: Likewise.
27755         * config/arm/unwind-arm.h: Likewise.
27756         * config/avr/libgcc.S: Likewise.
27757         * config/bfin/crti.s: Likewise.
27758         * config/bfin/crtlibid.s: Likewise.
27759         * config/bfin/crtn.s: Likewise.
27760         * config/bfin/lib1funcs.asm: Likewise.
27761         * config/bfin/linux-unwind.h: Likewise.
27762         * config/cris/arit.c: Likewise.
27763         * config/cris/cris_abi_symbol.c: Likewise.
27764         * config/darwin-64.c: Likewise.
27765         * config/darwin-crt2.c: Likewise.
27766         * config/darwin-crt3.c: Likewise.
27767         * config/darwin.h: Likewise.
27768         * config/dbxelf.h: Likewise.
27769         * config/dfp-bit.c: Likewise.
27770         * config/dfp-bit.h: Likewise.
27771         * config/elfos.h: Likewise.
27772         * config/fixed-bit.c: Likewise.
27773         * config/fixed-bit.h: Likewise.
27774         * config/fp-bit.c: Likewise.
27775         * config/fp-bit.h: Likewise.
27776         * config/fr30/crti.asm: Likewise.
27777         * config/fr30/crtn.asm: Likewise.
27778         * config/fr30/lib1funcs.asm: Likewise.
27779         * config/freebsd-spec.h: Likewise.
27780         * config/frv/cmovd.c: Likewise.
27781         * config/frv/cmovh.c: Likewise.
27782         * config/frv/cmovw.c: Likewise.
27783         * config/frv/frvbegin.c: Likewise.
27784         * config/frv/frvend.c: Likewise.
27785         * config/frv/lib1funcs.asm: Likewise.
27786         * config/glibc-stdint.h: Likewise.
27787         * config/h8300/clzhi2.c: Likewise.
27788         * config/h8300/crti.asm: Likewise.
27789         * config/h8300/crtn.asm: Likewise.
27790         * config/h8300/ctzhi2.c: Likewise.
27791         * config/h8300/fixunssfsi.c: Likewise.
27792         * config/h8300/lib1funcs.asm: Likewise.
27793         * config/h8300/parityhi2.c: Likewise.
27794         * config/h8300/popcounthi2.c: Likewise.
27795         * config/i386/ammintrin.h: Likewise.
27796         * config/i386/att.h: Likewise.
27797         * config/i386/avxintrin.h: Likewise.
27798         * config/i386/biarch64.h: Likewise.
27799         * config/i386/bmmintrin.h: Likewise.
27800         * config/i386/cpuid.h: Likewise.
27801         * config/i386/cross-stdarg.h: Likewise.
27802         * config/i386/crtfastmath.c: Likewise.
27803         * config/i386/crtprec.c: Likewise.
27804         * config/i386/cygming-crtbegin.c: Likewise.
27805         * config/i386/cygming-crtend.c: Likewise.
27806         * config/i386/cygwin.asm: Likewise.
27807         * config/i386/emmintrin.h: Likewise.
27808         * config/i386/gmm_malloc.h: Likewise.
27809         * config/i386/gthr-win32.c: Likewise.
27810         * config/i386/i386.h: Likewise.
27811         * config/i386/immintrin.h: Likewise.
27812         * config/i386/linux-unwind.h: Likewise.
27813         * config/i386/linux64.h: Likewise.
27814         * config/i386/mm3dnow.h: Likewise.
27815         * config/i386/mmintrin-common.h: Likewise.
27816         * config/i386/mmintrin.h: Likewise.
27817         * config/i386/nmmintrin.h: Likewise.
27818         * config/i386/pmm_malloc.h: Likewise.
27819         * config/i386/pmmintrin.h: Likewise.
27820         * config/i386/smmintrin.h: Likewise.
27821         * config/i386/sol2-c1.asm: Likewise.
27822         * config/i386/sol2-ci.asm: Likewise.
27823         * config/i386/sol2-cn.asm: Likewise.
27824         * config/i386/sol2-gc1.asm: Likewise.
27825         * config/i386/tmmintrin.h: Likewise.
27826         * config/i386/unix.h: Likewise.
27827         * config/i386/w32-unwind.h: Likewise.
27828         * config/i386/wmmintrin.h: Likewise.
27829         * config/i386/x86-64.h: Likewise.
27830         * config/i386/x86intrin.h: Likewise.
27831         * config/i386/xmmintrin.h: Likewise.
27832         * config/ia64/crtbegin.asm: Likewise.
27833         * config/ia64/crtend.asm: Likewise.
27834         * config/ia64/crtfastmath.c: Likewise.
27835         * config/ia64/crti.asm: Likewise.
27836         * config/ia64/crtn.asm: Likewise.
27837         * config/ia64/fde-glibc.c: Likewise.
27838         * config/ia64/lib1funcs.asm: Likewise.
27839         * config/ia64/linux-unwind.h: Likewise.
27840         * config/ia64/quadlib.c: Likewise.
27841         * config/ia64/unwind-ia64.c: Likewise.
27842         * config/linux.h: Likewise.
27843         * config/m32c/m32c-lib1.S: Likewise.
27844         * config/m32c/m32c-lib2-trapv.c: Likewise.
27845         * config/m32c/m32c-lib2.c: Likewise.
27846         * config/m32r/initfini.c: Likewise.
27847         * config/m68hc11/larith.asm: Likewise.
27848         * config/m68hc11/m68hc11-crt0.S: Likewise.
27849         * config/m68k/cf.md: Likewise.
27850         * config/m68k/crti.s: Likewise.
27851         * config/m68k/crtn.s: Likewise.
27852         * config/m68k/lb1sf68.asm: Likewise.
27853         * config/m68k/linux-unwind.h: Likewise.
27854         * config/mcore/crti.asm: Likewise.
27855         * config/mcore/crtn.asm: Likewise.
27856         * config/mcore/lib1.asm: Likewise.
27857         * config/mips/linux-unwind.h: Likewise.
27858         * config/mips/loongson.h: Likewise.
27859         * config/mips/mips16.S: Likewise.
27860         * config/mmix/crti.asm: Likewise.
27861         * config/mmix/crtn.asm: Likewise.
27862         * config/pa/fptr.c: Likewise.
27863         * config/pa/hpux-unwind.h: Likewise.
27864         * config/pa/lib2funcs.asm: Likewise.
27865         * config/pa/linux-atomic.c: Likewise.
27866         * config/pa/linux-unwind.h: Likewise.
27867         * config/pa/milli64.S: Likewise.
27868         * config/pa/quadlib.c: Likewise.
27869         * config/pa/stublib.c: Likewise.
27870         * config/picochip/libgccExtras/adddi3.asm: Likewise.
27871         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
27872         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
27873         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
27874         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
27875         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
27876         * config/picochip/libgccExtras/divmod15.asm: Likewise.
27877         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
27878         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
27879         * config/picochip/libgccExtras/longjmp.asm: Likewise.
27880         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
27881         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
27882         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
27883         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
27884         * config/picochip/libgccExtras/setjmp.asm: Likewise.
27885         * config/picochip/libgccExtras/subdi3.asm: Likewise.
27886         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
27887         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
27888         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
27889         * config/rs6000/750cl.h: Likewise.
27890         * config/rs6000/altivec.h: Likewise.
27891         * config/rs6000/biarch64.h: Likewise.
27892         * config/rs6000/crtresfpr.asm: Likewise.
27893         * config/rs6000/crtresgpr.asm: Likewise.
27894         * config/rs6000/crtresxfpr.asm: Likewise.
27895         * config/rs6000/crtresxgpr.asm: Likewise.
27896         * config/rs6000/crtsavfpr.asm: Likewise.
27897         * config/rs6000/crtsavgpr.asm: Likewise.
27898         * config/rs6000/darwin-asm.h: Likewise.
27899         * config/rs6000/darwin-fallback.c: Likewise.
27900         * config/rs6000/darwin-fpsave.asm: Likewise.
27901         * config/rs6000/darwin-ldouble.c: Likewise.
27902         * config/rs6000/darwin-tramp.asm: Likewise.
27903         * config/rs6000/darwin-unwind.h: Likewise.
27904         * config/rs6000/darwin-vecsave.asm: Likewise.
27905         * config/rs6000/darwin-world.asm: Likewise.
27906         * config/rs6000/e500crtres32gpr.asm: Likewise.
27907         * config/rs6000/e500crtres64gpr.asm: Likewise.
27908         * config/rs6000/e500crtres64gprctr.asm: Likewise.
27909         * config/rs6000/e500crtrest32gpr.asm: Likewise.
27910         * config/rs6000/e500crtrest64gpr.asm: Likewise.
27911         * config/rs6000/e500crtresx32gpr.asm: Likewise.
27912         * config/rs6000/e500crtresx64gpr.asm: Likewise.
27913         * config/rs6000/e500crtsav32gpr.asm: Likewise.
27914         * config/rs6000/e500crtsav64gpr.asm: Likewise.
27915         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
27916         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
27917         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
27918         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
27919         * config/rs6000/eabi-ci.asm: Likewise.
27920         * config/rs6000/eabi-cn.asm: Likewise.
27921         * config/rs6000/eabi.asm: Likewise.
27922         * config/rs6000/linux-unwind.h: Likewise.
27923         * config/rs6000/linux64.h: Likewise.
27924         * config/rs6000/paired.h: Likewise.
27925         * config/rs6000/paired.md: Likewise.
27926         * config/rs6000/ppc64-fp.c: Likewise.
27927         * config/rs6000/ppu_intrinsics.h: Likewise.
27928         * config/rs6000/rs6000.h: Likewise.
27929         * config/rs6000/si2vmx.h: Likewise.
27930         * config/rs6000/sol-ci.asm: Likewise.
27931         * config/rs6000/sol-cn.asm: Likewise.
27932         * config/rs6000/spe.h: Likewise.
27933         * config/rs6000/spu2vmx.h: Likewise.
27934         * config/rs6000/sysv4.h: Likewise.
27935         * config/rs6000/tramp.asm: Likewise.
27936         * config/rs6000/vec_types.h: Likewise.
27937         * config/s390/linux-unwind.h: Likewise.
27938         * config/s390/tpf-unwind.h: Likewise.
27939         * config/score/crti.asm: Likewise.
27940         * config/score/crtn.asm: Likewise.
27941         * config/sh/crt1.asm: Likewise.
27942         * config/sh/crti.asm: Likewise.
27943         * config/sh/crtn.asm: Likewise.
27944         * config/sh/divtab-sh4-300.c: Likewise.
27945         * config/sh/divtab-sh4.c: Likewise.
27946         * config/sh/divtab.c: Likewise.
27947         * config/sh/lib1funcs-4-300.asm: Likewise.
27948         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
27949         * config/sh/lib1funcs.asm: Likewise.
27950         * config/sh/lib1funcs.h: Likewise.
27951         * config/sh/linux-atomic.asm: Likewise.
27952         * config/sh/linux-unwind.h: Likewise.
27953         * config/sh/shmedia.h: Likewise.
27954         * config/sh/sshmedia.h: Likewise.
27955         * config/sh/ushmedia.h: Likewise.
27956         * config/sparc/crtfastmath.c: Likewise.
27957         * config/sparc/linux-unwind.h: Likewise.
27958         * config/sparc/sol2-c1.asm: Likewise.
27959         * config/sparc/sol2-ci.asm: Likewise.
27960         * config/sparc/sol2-cn.asm: Likewise.
27961         * config/spu/divmodti4.c: Likewise.
27962         * config/spu/divv2df3.c: Likewise.
27963         * config/spu/float_disf.c: Likewise.
27964         * config/spu/float_unsdidf.c: Likewise.
27965         * config/spu/float_unsdisf.c: Likewise.
27966         * config/spu/float_unssidf.c: Likewise.
27967         * config/spu/mfc_multi_tag_release.c: Likewise.
27968         * config/spu/mfc_multi_tag_reserve.c: Likewise.
27969         * config/spu/mfc_tag_release.c: Likewise.
27970         * config/spu/mfc_tag_reserve.c: Likewise.
27971         * config/spu/mfc_tag_table.c: Likewise.
27972         * config/spu/multi3.c: Likewise.
27973         * config/spu/spu_internals.h: Likewise.
27974         * config/spu/spu_intrinsics.h: Likewise.
27975         * config/spu/spu_mfcio.h: Likewise.
27976         * config/spu/vec_types.h: Likewise.
27977         * config/spu/vmx2spu.h: Likewise.
27978         * config/stormy16/stormy16-lib2.c: Likewise.
27979         * config/svr4.h: Likewise.
27980         * config/sync.c: Likewise.
27981         * config/v850/lib1funcs.asm: Likewise.
27982         * config/vxlib-tls.c: Likewise.
27983         * config/vxlib.c: Likewise.
27984         * config/vxworks-dummy.h: Likewise.
27985         * config/xtensa/crti.asm: Likewise.
27986         * config/xtensa/crtn.asm: Likewise.
27987         * config/xtensa/ieee754-df.S: Likewise.
27988         * config/xtensa/ieee754-sf.S: Likewise.
27989         * config/xtensa/lib1funcs.asm: Likewise.
27990         * config/xtensa/lib2funcs.S: Likewise.
27991         * config/xtensa/linux-unwind.h: Likewise.
27992         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
27993         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
27994         * coretypes.h: Likewise.
27995         * crtstuff.c: Likewise.
27996         * defaults.h: Likewise.
27997         * dwarf2.h: Likewise.
27998         * emutls.c: Likewise.
27999         * gbl-ctors.h: Likewise.
28000         * gcov-io.h: Likewise.
28001         * ginclude/float.h: Likewise.
28002         * ginclude/iso646.h: Likewise.
28003         * ginclude/stdarg.h: Likewise.
28004         * ginclude/stdbool.h: Likewise.
28005         * ginclude/stddef.h: Likewise.
28006         * ginclude/stdfix.h: Likewise.
28007         * ginclude/stdint-gcc.h: Likewise.
28008         * ginclude/tgmath.h: Likewise.
28009         * gthr-aix.h: Likewise.
28010         * gthr-dce.h: Likewise.
28011         * gthr-gnat.c: Likewise.
28012         * gthr-gnat.h: Likewise.
28013         * gthr-lynx.h: Likewise.
28014         * gthr-mipssde.h: Likewise.
28015         * gthr-nks.h: Likewise.
28016         * gthr-posix.c: Likewise.
28017         * gthr-posix.h: Likewise.
28018         * gthr-posix95.h: Likewise.
28019         * gthr-rtems.h: Likewise.
28020         * gthr-single.h: Likewise.
28021         * gthr-solaris.h: Likewise.
28022         * gthr-tpf.h: Likewise.
28023         * gthr-vxworks.h: Likewise.
28024         * gthr-win32.h: Likewise.
28025         * gthr.h: Likewise.
28026         * libgcc2.c: Likewise.
28027         * libgcc2.h: Likewise.
28028         * libgcov.c: Likewise.
28029         * tsystem.h: Likewise.
28030         * typeclass.h: Likewise.
28031         * unwind-c.c: Likewise.
28032         * unwind-compat.h: Likewise.
28033         * unwind-dw2-fde-compat.c: Likewise.
28034         * unwind-dw2-fde-darwin.c: Likewise.
28035         * unwind-dw2-fde-glibc.c: Likewise.
28036         * unwind-dw2-fde.c: Likewise.
28037         * unwind-dw2-fde.h: Likewise.
28038         * unwind-dw2.c: Likewise.
28039         * unwind-dw2.h: Likewise.
28040         * unwind-generic.h: Likewise.
28041         * unwind-pe.h: Likewise.
28042         * unwind-sjlj.c: Likewise.
28043         * unwind.inc: Likewise.
28044         * config/arm/neon-gen.ml: Change generated copyright header to
28045         refer to version 3 of the GNU General Public License with
28046         version 3.1 of the GCC Runtime Library Exception and to point
28047         readers at the COPYING3 and COPYING3.RUNTIME files and the
28048         FSF's license web page.
28049         * config/arm/arm_neon.h: Regenerate.
28050
28051 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
28052
28053         * config/cris/cris.md: Change copyright header to refer to version
28054         3 of the GNU General Public License.
28055         * doc/install.texi2html: Change copyright header to refer to version
28056         3 of the GNU General Public License and to point readers at the
28057         COPYING3 file and the FSF's license web page.
28058         * config/vax/linux.h: Likewise.
28059
28060 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
28061
28062         * config/i386/i386.md (cmpcc): New.
28063         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
28064         (sync_compare_and_swap_cc*): Delete.
28065
28066         * config/s390/s390.c (s390_compare_emitted): Remove.
28067         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
28068         s390_compare_emitted used to be handled.  Assert that modes match.
28069         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
28070         refer to sync_compare_and_swap_ccsi.
28071         * config/s390/s390.h (s390_compare_emitted): Remove.
28072         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
28073         instead of s390_compare_emitted.
28074         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
28075         instead of s390_compare_emitted.
28076         * config/s390/s390.md (cmpcc): New.
28077         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
28078         CC_REGNUM, do not pretend it's set.
28079         (sync_compare_and_swap_cc*): Delete.
28080         * config/s390/predicates.md (cc_reg_operand): New.
28081
28082         * expr.c (sync_compare_and_swap_cc): Delete.
28083         * optabs.h (sync_compare_and_swap_cc): Delete.
28084         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
28085         is being used with can_compare_p.
28086         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
28087         (find_cc_set): New.
28088         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
28089         look for a MODE_CC set instead.  Use emit_store_flag.
28090         (expand_compare_and_swap_loop): Likewise, with some additional
28091         complication to avoid a force_reg when useless.  Use
28092         emit_cmp_and_jump_insns.
28093         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
28094         * doc/md.texi (sync_compare_and_swap_cc): Merge with
28095         sync_compare_and_swap documentation.
28096
28097 2009-04-09  Jan Hubicka  <jh@suse.cz>
28098
28099         * except.c (find_prev_try): Break out from ....
28100         (duplicate_eh_regions): ... here; properly update prev_try pointers
28101         when duplication part of tree.
28102         (dump_eh_tree): Improve dumping.
28103         (verify_eh_region): New.
28104         (verify_eh_tree): Use it.
28105
28106 2009-04-06  Richard Guenther  <rguenther@suse.de>
28107
28108         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
28109         &ARRAY addresses by adjusting their types and prepending
28110         a conversion.
28111         * tree-cfg.c (verify_gimple_assign_single): Verify that
28112         addresses are correct.
28113
28114 2009-04-09  Richard Guenther  <rguenther@suse.de>
28115
28116         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
28117         indices into an array reference if possible.
28118         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
28119         Fold POINTER_PLUS_EXPR statements with invariant address.
28120
28121 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
28122
28123         PR target/39634
28124         * config.gcc (powerpc64-*-linux*): Always build biarch.
28125
28126 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
28127
28128         PR c/39613
28129         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
28130         it and pedwarn if this results in an INTEGER_CST.
28131
28132 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
28133
28134         * doc/install.texi: Update minimum GMP version.  Remove obsolete
28135         text in MPFR section.
28136
28137 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
28138
28139         * dwarf2out.c (class_scope_p): New static inline.
28140         (class_or_namespace_scope_p): Use it.
28141         (gen_variable_die): Use DW_TAG_member tag for static data member
28142         declarations instead of DW_TAG_variable.
28143
28144         PR middle-end/39573
28145         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
28146         variables.
28147
28148 2009-04-08  Richard Guenther  <rguenther@suse.de>
28149
28150         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
28151         valueize random data.
28152
28153 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
28154
28155         * config.gcc (aix tm_file):  Add aix-stdint.h.
28156         (aix tm clause use_gcc_stdint):  Set to wrap.
28157         * config/rs6000/aix-stdint.h:  New file.
28158
28159 2009-04-08  Richard Guenther  <rguenther@suse.de>
28160
28161         PR middle-end/36291
28162         * tree-dfa.c (add_referenced_var): Do not recurse into
28163         global initializers.
28164         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
28165         exposed variables.
28166         (fold_const_aggregate_ref): Likewise.
28167
28168 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
28169
28170         * recog.c (ordered_comparison_operator): New.
28171         * gensupport.c (std_preds): Add it.
28172         * doc/md.texi (Machine-Independent Predicates): Document it.
28173
28174 2009-04-08  Jan Hubicka  <jh@suse.cz>
28175
28176         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
28177         * function.h (rtl_eh): Remove exception_handler_label_map.
28178         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
28179         remove_exception_handler_label, for_each_eh_label_1): Remove.
28180         (rtl_remove_unreachable_regions): Remove.
28181         (convert_from_eh_region_ranges): Do not remove unreachable regions.
28182         (find_exception_handler_labels): Don't build the hashtable.
28183         (maybe_remove_eh_handler): Remove.
28184         (for_each_eh_label): Rewrite to walk the tree.
28185         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
28186         * except.h (maybe_remove_eh_handler): Remove.
28187         * passes.c (init_optimization_passes): Schedule second EH cleanup
28188         before out-of-ssa.
28189         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
28190         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
28191
28192 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
28193
28194         * genoutput.c (validate_optab_operands): New.
28195         (gen_insn, gen_expand): Call it.
28196
28197         * genflags.c (gen_insn): Detect misused iterators.
28198         (main): Pass line_no to gen_insn, exit with status 1 on error.
28199
28200         * genextract.c (line_no): Make global.
28201         (VEC_safe_set_locstr): Change assertion to error message.
28202         (main): Exit with status 1 on error.
28203
28204 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
28205
28206         PR c/39614
28207         PR c/39673
28208         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
28209         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
28210         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
28211         * c-convert.c (convert): Do not call fold on results of conversion
28212         functions when the result is a C_MAYBE_CONST_EXPR.
28213         * c-parser.c (c_parser_postfix_expression): Do not fold condition
28214         of __builtin_choose_expr.
28215         * c-typeck.c (remove_c_maybe_const_expr): New.
28216         (build_unary_op, build_conditional_expr, build_compound_expr,
28217         build_binary_op, c_objc_common_truthvalue_conversion): Call
28218         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
28219         integer operands.
28220
28221 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
28222
28223         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
28224         CODE to produce a new one. Add a prototype to use fold_convert_const
28225
28226 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
28227
28228         PR bootstrap/39660
28229         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
28230         mix declarations and code.
28231
28232 2009-04-08  Ben Elliston  <bje@au.ibm.com>
28233
28234         * gcc.c: Replace `CC' with `GCC' throughout.
28235
28236 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
28237
28238         * doc/invoke.texi: Document Atom support.
28239
28240 2009-04-07  Jason Merrill  <jason@redhat.com>
28241
28242         PR c++/25185
28243         * c-common.h, c-common.c: Add flag_pretty_templates.
28244         * c-opts.c (c_common_handle_option): Set it.
28245         * c.opt: Add -fno-pretty-templates.
28246         * doc/invoke.texi (C++ Dialect Options): Likewise.
28247
28248 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
28249
28250         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
28251         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
28252         (ia64_expand_builtin): Likewise.
28253
28254 2009-04-07  Martin Jambor  <mjambor@suse.cz>
28255
28256         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
28257         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
28258         ADDR_EXPRS are include too.
28259
28260 2009-04-07  Richard Guenther  <rguenther@suse.de>
28261
28262         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
28263         decls are only used if passes as parameters or if they are
28264         local statics and the call is not to a builtin.
28265         (call_may_clobber_ref_p_1): Likewise.
28266
28267 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
28268
28269         * expr.c (do_store_flag): Remove last argument.  Simplify code
28270         to avoid duplication of tests already done by can_compare_p.
28271         (expand_expr_real_1): Adjust caller.
28272
28273 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
28274
28275         * optabs.c (can_compare_p): Test the predicate of a
28276         cbranch and cstore pattern.
28277
28278 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
28279
28280         * expr.c (convert_move): Use emit_store_flag instead of
28281         "emulating" it.
28282
28283 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
28284
28285         * config/i386/i386.c (ix86_compare_emitted): Remove.
28286         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
28287         ix86_compare_op0 like ix86_compare_emitted used to be handled.
28288         * config/i386/i386.h (ix86_compare_emitted): Remove.
28289         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
28290         instead of ix86_compare_emitted.
28291         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
28292
28293 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
28294
28295         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
28296         Add t-sysroot-suffix to tmake_file.
28297         * config/print-sysroot-suffix.sh: New file.
28298         * config/t-sysroot-suffix: New file.
28299
28300 2009-04-07  Ben Elliston  <bje@au.ibm.com>
28301
28302         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
28303         as the latter produces a warning when the target does not support
28304         infinity.
28305
28306 2009-04-07  Ben Elliston  <bje@au.ibm.com>
28307
28308         * dfp.c: Replace type punning assignments with memcpy throughout.
28309         * Makefile.in (dfp.o-warn): Remove.
28310
28311 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
28312
28313         PR target/39634
28314         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
28315         Include soft-fp/t-softfp after rs6000/t-linux64.
28316
28317 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
28318
28319         * stor-layout.c (set_sizetype): Use the full precision of their
28320         machine mode for bitsize types.
28321
28322 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
28323
28324         * config/i386/i386.md: Revert 2 accidental checkins.
28325
28326 2009-04-06  Joey Ye  <joey.ye@intel.com>
28327             Xuepeng Guo  <xuepeng.guo@intel.com>
28328             H.J. Lu  <hongjiu.lu@intel.com>
28329
28330         Atom pipeline model, tuning and insn selection.
28331         * config.gcc (atom): Add atom config options and target.
28332
28333         * config/i386/atom.md: New.
28334
28335         * config/i386/i386.c (atom_cost): New cost.
28336         (m_ATOM): New macro flag.
28337         (initial_ix86_tune_features): Set m_ATOM.
28338         (x86_accumulate_outgoing_args): Likewise.
28339         (x86_arch_always_fancy_math_387): Likewise.
28340         (processor_target): Add Atom cost.
28341         (cpu_names): Add Atom cpu name.
28342         (override_options): Set Atom ISA.
28343         (ix86_issue_rate): New case PROCESSOR_ATOM.
28344         (ix86_adjust_cost): Likewise.
28345
28346         * config/i386/i386.h (TARGET_ATOM): New target macro.
28347         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
28348         (TARGET_OPT_AGU): New target option.
28349         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
28350         (processor_type): Add PROCESSOR_ATOM.
28351
28352         * config/i386/i386.md (cpu): Add new value "atom".
28353         (use_carry, movu): New attr.
28354         (atom.md): Include atom.md.
28355         (adddi3_carry_rex64): Set attr "use_carry".
28356         (addqi3_carry): Likewise.
28357         (addhi3_carry): Likewise.
28358         (addsi3_carry): Likewise.
28359         (*addsi3_carry_zext): Likewise.
28360         (subdi3_carry_rex64): Likewise.
28361         (subqi3_carry): Likewise.
28362         (subhi3_carry): Likewise.
28363         (subsi3_carry): Likewise.
28364         (x86_movdicc_0_m1_rex64): Likewise.
28365         (*x86_movdicc_0_m1_se): Likewise.
28366         (x86_movsicc_0_m1): Likewise.
28367         (*x86_movsicc_0_m1_se): Likewise.
28368         (*adddi_1_rex64): Emit add insn as much as possible.
28369         (*addsi_1): Likewise.
28370         (return_internal): Set atom_unit.
28371         (return_internal_long): Likewise.
28372         (return_pop_internal): Likewise.
28373         (*rcpsf2_sse): Set atom_sse_attr attr.
28374         (*qrt<mode>2_sse): Likewise.
28375         (*prefetch_sse): Likewise.
28376
28377         * config/i386/i386-c.c (ix86_target_macros_internal): New case
28378         PROCESSOR_ATOM.
28379         (ix86_target_macros_internal): Likewise.
28380
28381         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
28382         (*prefetch_sse_rex): Likewise.
28383         (sse_rcpv4sf2): Likewise.
28384         (sse_vmrcpv4sf2): Likewise.
28385         (sse_sqrtv4sf2): Likewise.
28386         (<sse>_vmsqrt<mode>2): Likewise.
28387         (sse_ldmxcsr): Likewise.
28388         (sse_stmxcsr): Likewise.
28389         (*sse_sfence): Likewise.
28390         (sse2_clflush): Likewise.
28391         (*sse2_mfence): Likewise.
28392         (*sse2_lfence): Likewise.
28393         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
28394         (<sse>_movup<ssemodesuffixf2c>): Likewise.
28395         (avx_movdqu<avxmodesuffix>): Likewise.
28396         (avx_lddqu<avxmodesuffix>): Likewise.
28397         (sse2_movntv2di): Change attr "type" to "ssemov".
28398         (sse2_movntsi): Likewise.
28399         (rsqrtv8sf2): Change attr "type" to "sseadd".
28400         (sse3_addsubv2df3): Set attr "atom_unit".
28401         (sse3_h<plusminus_insn>v4sf3): Likewise.
28402         (*sse2_pmaddwd): Likewise.
28403         (*vec_extractv2di_1_rex64): Likewise.
28404         (*vec_extractv2di_1_avx): Likewise.
28405         (sse2_psadbw): Likewise.
28406         (ssse3_phaddwv8hi3): Likewise.
28407         (ssse3_phaddwv4hi3): Likewise.
28408         (ssse3_phadddv4si3): Likewise.
28409         (ssse3_phadddv2si3): Likewise.
28410         (ssse3_phaddswv8hi3): Likewise.
28411         (ssse3_phaddswv4hi3): Likewise.
28412         (ssse3_phsubwv8hi3): Likewise.
28413         (ssse3_phsubwv4hi3): Likewise.
28414         (ssse3_phsubdv4si3): Likewise.
28415         (ssse3_phsubdv2si3): Likewise.
28416         (ssse3_phsubswv8hi3): Likewise.
28417         (ssse3_phsubswv4hi3): Likewise.
28418         (ssse3_pmaddubsw128): Likewise.
28419         (sse3_pmaddubsw: Likewise.
28420         (ssse3_palignrti): Likewise.
28421         (ssse3_palignrdi): Likewise.
28422
28423 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
28424
28425         * doc/install.texi (Specific): Fix two cross-references to MinGW.
28426
28427 2009-04-06  Richard Guenther  <rguenther@suse.de>
28428
28429         PR tree-optimization/28868
28430         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
28431         of which PHI results we inserted.
28432         (insert_into_preds_of_block): Record inserted PHIs.
28433         (eliminate): Eliminate redundant PHI nodes.
28434         (init_pre): Init inserted_phi_names.
28435
28436 2009-04-06  Richard Guenther  <rguenther@suse.de>
28437
28438         PR tree-optimization/39643
28439         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
28440         IMAGPART_EXPRs of complex constants.
28441         (execute_fold_all_builtins): If we folded a call queue
28442         TODO_update_address_taken.
28443
28444 2009-04-06  Jan Hubicka  <jh@suse.cz>
28445
28446         PR middle-end/39659
28447         * except.c (remove_unreachable_regions): Propagate may_contain_throw
28448         flag.
28449
28450 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
28451
28452         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
28453         delay slot.
28454         (ic_invalidate_array): Likewise.
28455
28456 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
28457
28458         * calls.c (emit_library_call_value_1): Fix a problem with parameter
28459         alignment for library calls.
28460
28461 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
28462
28463         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
28464         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
28465         * config/i386/mingw-stdint.h:  New file.
28466
28467 2009-04-05  Richard Guenther  <rguenther@suse.de>
28468
28469         PR tree-optimization/39648
28470         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
28471         our &A vs. &A[0] IL deficiencies.
28472
28473 2009-04-04  Jan Hubicka  <jh@suse.cz>
28474
28475         * except.c (sjlj_find_directly_reachable_regions): Be ready for
28476         removed toplevel regions.
28477         (sjlj_mark_call_sites): Likewise.
28478
28479 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
28480
28481         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
28482         (cygwin tm clause use_gcc_stdint):  Set to wrap.
28483         * config/i386/cygwin-stdint.h:  New file.
28484
28485 2009-04-04  Richard Guenther  <rguenther@suse.de>
28486
28487         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
28488         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
28489         single-argument PHIs if we are in loop-closed SSA form.
28490         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
28491         for the pre-condition.
28492         (slpeel_tree_peel_loop_to_edge): Likewise.
28493         (vect_build_loop_niters): Take an optional sequence to append stmts.
28494         (vect_generate_tmps_on_preheader): Likewise.
28495         (vect_do_peeling_for_loop_bound): Take extra guards for the
28496         pre-condition.
28497         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
28498         the cost model check.
28499         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
28500         guards if we are going to peel.  Do not apply versioning in that case.
28501         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
28502         (vect_do_peeling_for_loop_bound): Likewise.
28503         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
28504         loop bound only record extra pre-conditions, do not apply loop
28505         versioning.
28506
28507 2009-04-04  Richard Guenther  <rguenther@suse.de>
28508
28509         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
28510         renaming code.
28511
28512 2009-04-04  Jan Hubicka  <jh@suse.cz>
28513
28514         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
28515         last_basic_block for size of bb->index indexed array.
28516         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
28517         compute_out, link_btr_uses, build_btr_def_use_webs,
28518         build_btr_def_use_webs, migrate_btr_defs): Likewise.
28519
28520 2009-04-04  Jan Hubicka  <jh@suse.cz>
28521
28522         * except.c (remove_eh_handler_and_replace): Break out from ...
28523         (remove_eh_handler): ... here.
28524         (bring_to_root): New function.
28525         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
28526         handled ones, bring others to root of tree.
28527
28528 2009-04-04  Jan Hubicka  <jh@suse.cz>
28529
28530         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
28531         (all_phis_safe_to_merge): New function.
28532         (update_info): New structure.
28533         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
28534         (cleanup_empty_eh): Update SSA if possible.
28535
28536 2009-04-04  Richard Guenther  <rguenther@suse.de>
28537
28538         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
28539         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
28540         (append_vuse): Likewise.
28541
28542 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
28543
28544         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
28545         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
28546         instead of REG_UNSAVED for DW_CFA_undefined.
28547         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
28548         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
28549         outermost frame.
28550
28551 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
28552
28553         PR target/39501
28554         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
28555
28556 2009-04-04  Richard Guenther  <rguenther@suse.de>
28557
28558         PR tree-optimization/8781
28559         PR tree-optimization/37892
28560         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
28561         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
28562         (valueize_refs): Call it for *& valueizations.
28563         (shared_reference_ops_from_ref): Rename to ...
28564         (valueize_shared_reference_ops_from_ref): ... this and valueize.
28565         (shared_reference_ops_from_call): Rename to ...
28566         (valueize_shared_reference_ops_from_call): ... this and valueize.
28567         (vn_reference_lookup): Update.
28568         (visit_reference_op_call): Likewise.
28569         * tree-ssa-pre.c (phi_translate_1): Fold *&.
28570         (eliminate): Value-replace the call address in call statements.
28571
28572 2009-04-04  Richard Guenther  <rguenther@suse.de>
28573
28574         PR tree-optimization/39636
28575         * tree-ssa-forwprop.c
28576         (forward_propagate_addr_into_variable_array_index): Check for
28577         GIMPLE_ASSIGN before accessing the rhs code.
28578
28579 2009-04-03  Jason Merrill  <jason@redhat.com>
28580
28581         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
28582
28583 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
28584
28585         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
28586         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
28587         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
28588         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
28589         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
28590         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
28591         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
28592         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
28593         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
28594         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
28595         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
28596         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
28597         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
28598         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
28599         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
28600         Use fr_reg_or_fp01_operand instead of fr_register_operand
28601
28602         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
28603         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
28604         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
28605
28606 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
28607
28608         PR rtl-optimization/39607
28609         PR rtl-optimization/39631
28610
28611         Revert:
28612
28613         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
28614         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
28615         instead of DF_LR_OUT.
28616         * ira-lives.c (process_bb_node_lives): Ditto.
28617         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
28618         instead of DF_LR_{OUT,IN}.
28619         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
28620         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
28621
28622 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
28623
28624         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
28625         (execute_lower_omp): Always run but take the short way out if -fopenmp
28626         is not given.
28627         (gate_lower_omp): Remove, forcing the pass manager to always run the
28628         pass and always set PROP_gimple_lomp.
28629         (pass_lower_omp): Remove gate function.
28630         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
28631         PROP_trees.  Instead, require it.
28632         * ipa-cp.c (pass_ipa_cp): Likewise.
28633         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
28634         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
28635         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
28636         and PROP_gimple_leh.
28637
28638 2009-04-03  Richard Guenther  <rguenther@suse.de>
28639
28640         PR middle-end/13146
28641         PR tree-optimization/23940
28642         PR tree-optimization/33237
28643         PR middle-end/33974
28644         PR middle-end/34093
28645         PR tree-optimization/36201
28646         PR tree-optimization/36230
28647         PR tree-optimization/38049
28648         PR tree-optimization/38207
28649         PR tree-optimization/38230
28650         PR tree-optimization/38301
28651         PR tree-optimization/38585
28652         PR middle-end/38895
28653         PR tree-optimization/38985
28654         PR tree-optimization/39299
28655         * tree-ssa-structalias.h: Remove.
28656         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
28657         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
28658         (struct vuse_element_d): Remove.
28659         (struct vuse_vec_d): Likewise.
28660         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
28661         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
28662         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
28663         VUSE_ELEMENT_VAR): Likewise.
28664         (struct voptype_d): Likewise.
28665         (NUM_VOP_FREE_BUCKETS): Likewise.
28666         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
28667         (struct stmt_operands_d): Remove.
28668         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
28669         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
28670         VDEF_NUM, VDEF_VECT): Likewise.
28671         (copy_virtual_operands): Remove.
28672         (operand_build_cmp): Likewise.
28673         (create_ssa_artificial_load_stmt): Likewise.
28674         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
28675         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
28676         vuse_index and mayuse_index members.  Pack and move done and iter_type
28677         members to the front.
28678         (SSA_OP_VMAYUSE): Remove.
28679         (SSA_OP_VIRTUAL_USES): Adjust.
28680         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
28681         (unlink_stmt_vdef): Declare.
28682         (add_to_addressable_set): Remove.
28683         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
28684         (vrp_visit_stmt): Likewise.
28685         * doc/tree-ssa.texi (Alias analysis): Update.
28686         * doc/invoke.texi (max-aliased-vops): Remove docs.
28687         (avg-aliased-vops): Likewise.
28688         * tree-into-ssa.c (syms_to_rename): Remove.
28689         (need_to_update_vops_p): Likewise.
28690         (need_to_initialize_update_ssa_p): Rename to ...
28691         (update_ssa_initialized_fn): ... this.  Track function we are
28692         initialized for.
28693         (symbol_marked_for_renaming): Simplify.
28694         (add_new_name_mapping): Do not set need_to_update_vops_p.
28695         (dump_currdefs): Use SYMS_TO_RENAME.
28696         (rewrite_update_stmt): Always walk all uses/defs.
28697         (dump_update_ssa): Adjust.
28698         (init_update_ssa): Take function argument.  Track what we are
28699         initialized for.
28700         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
28701         (create_new_def_for): Initialize for cfun, assert we are initialized
28702         for cfun.
28703         (mark_sym_for_renaming): Simplify.
28704         (mark_set_for_renaming): Do not initialize update-ssa.
28705         (need_ssa_update_p): Simplify.  Take function argument.
28706         (name_mappings_registered_p): Assert we ask for the correct function.
28707         (name_registered_for_update_p): Likewise.
28708         (ssa_names_to_replace): Likewise.
28709         (release_ssa_name_after_update_ssa): Likewise.
28710         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
28711         (dump_decl_set): Do not print a newline.
28712         (debug_decl_set): Do it here.
28713         (dump_update_ssa): And here.
28714         * tree-ssa-loop-im.c (move_computations): Adjust.
28715         (movement_possibility): Likewise.
28716         (determine_max_movement): Likewise.
28717         (gather_mem_refs_stmt): Likewise.
28718         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
28719         or NAME_MEMORY_TAG.
28720         * tree-complex.c (update_all_vops): Remove.
28721         (expand_complex_move): Adjust.
28722         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
28723         Simplify test for memory referencing statement.  Exclude
28724         non-invariant ADDR_EXPRs.
28725         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
28726         * tree-loop-distribution.c (generate_memset_zero): Adjust.
28727         (rdg_flag_uses): Likewise.
28728         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
28729         related code.
28730         (tree_optimize_tail_calls_1): Also split the
28731         edge from the entry block if we have degenerate PHI nodes in
28732         the first basic block.
28733         * tree.c (init_ttree): Remove memory-tag related code.
28734         (tree_code_size): Likewise.
28735         (tree_node_structure): Likewise.
28736         (build7_stat): Re-write to be build6_stat.
28737         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
28738         (SSA_VAR_P): Adjust.
28739         (struct tree_memory_tag): Remove.
28740         (struct tree_memory_partition_tag): Likewise.
28741         (union tree_node): Adjust.
28742         (build7): Re-write to be build6.
28743         * tree-pass.h (pass_reset_cc_flags): Remove.
28744         (TODO_update_address_taken): New flag.
28745         (pass_simple_dse): Remove.
28746         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
28747         * params.h (MAX_ALIASED_VOPS): Remove.
28748         (AVG_ALIASED_VOPS): Likewise.
28749         * omp-low.c (expand_omp_taskreg): Update SSA form.
28750         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
28751         aliases the lhs in a copy stmt.
28752         * tree-ssa-dse.c (struct address_walk_data): Remove.
28753         (memory_ssa_name_same): Likewise.
28754         (memory_address_same): Likewise.
28755         (get_kill_of_stmt_lhs): Likewise.
28756         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
28757         unused stores.  Look through PHI nodes into post-dominated regions.
28758         (dse_optimize_stmt): Simplify.  Properly remove stores.
28759         (tree_ssa_dse): Compute dominators.
28760         (execute_simple_dse): Remove.
28761         (pass_simple_dse): Likewise.
28762         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
28763         gimple_loaded_syms and gimple_stored_syms computation.
28764         * toplev.c (dump_memory_report): Dump alias and pta stats.
28765         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
28766         (vn_reference_eq): Likewise.
28767         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
28768         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
28769         valueize_vuses): Remove.
28770         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
28771         (get_def_ref_stmt_vuse): ... this.
28772         (vn_reference_lookup_2): New function.
28773         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
28774         walking equivalent vuses.  Simplify.
28775         (vn_reference_lookup): Likewise.
28776         (vn_reference_insert): Likewise.
28777         (vn_reference_insert_pieces): Likewise.
28778         (visit_reference_op_call): Simplify.
28779         (visit_reference_op_load): Likewise.
28780         (visit_reference_op_store): Likewise.
28781         (init_scc_vn): Remove shared_lookup_vuses initialization.
28782         (free_scc_vn): Remove shared_lookup_vuses freeing.
28783         (sort_vuses, sort_vuses_heap): Remove.
28784         (get_ref_from_reference_ops): Export.
28785         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
28786         vector with single vuse pointer.
28787         (vn_reference_lookup_pieces, vn_reference_lookup,
28788         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
28789         (shared_vuses_from_stmt): Remove.
28790         (get_ref_from_reference_ops): Declare.
28791         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
28792         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
28793         memory-tag related code.
28794         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
28795         (likely_value): Add comment, skip static-chain of call statements.
28796         (surely_varying_stmt_p): Adjust.
28797         (gimplify_and_update_call_from_tree): Likewise.
28798         (execute_fold_all_builtins): Do not rebuild alias info.
28799         (gimplify_and_update_call_from_tree): Properly update VOPs.
28800         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
28801         (copy_ref_info): Remove memory-tag related code.
28802         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
28803         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
28804         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
28805         computation.
28806         * tree-ssa-dom.c (gimple_p): Remove typedef.
28807         (eliminate_redundant_computations): Adjust.
28808         (record_equivalences_from_stmt): Likewise.
28809         (avail_expr_hash): Likewise.
28810         (avail_expr_eq): Likewise.
28811         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
28812         (stmt_makes_single_load): Likewise.
28813         (stmt_makes_single_store): Likewise.
28814         * tree-ssa-alias.c: Rewrite completely.
28815         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
28816         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
28817         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
28818         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
28819         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
28820         Remove public functions.
28821         (pass_reset_cc_flags): Remove.
28822         (pass_build_alias): Move ...
28823         * tree-ssa-structalias.c (pass_build_alias): ... here.
28824         * tree-ssa-alias.c (may_be_aliased): Move ...
28825         * tree-flow-inline.h (may_be_aliased): ... here.
28826         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
28827         count_uses_and_derefs): Move ...
28828         * gimple.c: ... here.
28829         * gimple.h (count_uses_and_derefs): Declare.
28830         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
28831         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
28832         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
28833         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
28834         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
28835         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
28836         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
28837         New functions.
28838         * tree-dfa.c (refs_may_alias_p): Move ...
28839         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
28840         * tree-ssa-alias.h: New file.
28841         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
28842         (statement_sink_location): Likewise.
28843         * opts.c (decode_options): Do not adjust max-aliased-vops or
28844         avg-aliased-vops values.
28845         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
28846         (TV_CALL_CLOBBER): Likewise.
28847         (TV_FLOW_SENSITIVE): Likewise.
28848         (TV_FLOW_INSENSITIVE): Likewise.
28849         (TV_MEMORY_PARTITIONING): Likewise.
28850         (TV_ALIAS_STMT_WALK): New timevar.
28851         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
28852         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
28853         (get_address_description): Remove memory-tag related code.
28854         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
28855         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
28856         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
28857         and immediate uses in statements.  Document.
28858         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
28859         (dump_symbols): Remove.
28860         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
28861         * alias.c (get_deref_alias_set): New function split out from ...
28862         (get_alias_set): ... here.
28863         * alias.h (get_deref_alias_set): Declare.
28864         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
28865         type parameter.  Remove restrict pointer handling.  Create a
28866         ref-all pointer in case type-based alias sets do not conflict.
28867         (vect_analyze_data_refs): Remove SMT related code.
28868         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
28869         (vectorizable_load): Likewise.
28870         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
28871         (DR_SYMBOL_TAG, DR_VOPS): Remove.
28872         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
28873         Ignore vops and SMTs.
28874         (dr_analyze_alias): Likewise..
28875         (free_data_ref): Likewise.
28876         (create_data_ref): Likewise.
28877         (analyze_all_data_dependences): Likewise.
28878         (get_references_in_stmt): Adjust.
28879         * tree-flow-inline.h (gimple_aliases_computed_p,
28880         gimple_addressable_vars, gimple_call_clobbered_vars,
28881         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
28882         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
28883         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
28884         gimple_mem_ref_stats): Remove.
28885         (gimple_vop): New function.
28886         (op_iter_next_use): Remove vuses and mayuses cases.
28887         (op_iter_next_def): Remove vdefs case.
28888         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
28889         (clear_and_done_ssa_iter): Do not set removed fields.
28890         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
28891         Assert we are not iterating over vuses or vdefs if not also
28892         iterating over uses or defs.
28893         (op_iter_init_use): Likewise.
28894         (op_iter_init_def): Likewise.
28895         (op_iter_next_vdef): Remove.
28896         (op_iter_next_mustdef): Likewise.
28897         (op_iter_init_vdef): Likewise.
28898         (compare_ssa_operands_equal): Likewise.
28899         (link_use_stmts_after): Handle vuse operand.
28900         (is_call_used): Use is_call_clobbered.
28901         (is_call_clobbered): Global variables are always call clobbered,
28902         query the call-clobbers bitmap.
28903         (mark_call_clobbered): Ignore global variables.
28904         (clear_call_clobbered): Likewise.
28905         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
28906         virtual operands sanity check.
28907         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
28908         Remove.
28909         (TARGET_MEM_REF): Remove TMR_TAG operand.
28910         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
28911         Remove call-clobber related code.
28912         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
28913         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
28914         partitions or escape reason.
28915         (get_single_def_stmt, get_single_def_stmt_from_phi,
28916         get_single_def_stmt_with_phi): Remove.
28917         (dump_referenced_vars): Tidy.
28918         (get_ref_base_and_extent): Allow bare decls.
28919         (collect_dfa_stats): Adjust.
28920         * graphite.c (rename_variables_in_stmt): Adjust.
28921         (graphite_copy_stmts_from_block): Likewise.
28922         (translate_clast): Likewise.
28923         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
28924         (EXPR_DIES): New.
28925         (translate_vuse_through_block): Use the oracle.
28926         (phi_translate_1): Adjust.
28927         (value_dies_in_block_x): Use the oracle.  Cache the outcome
28928         in EXPR_DIES.
28929         (valid_in_sets): Check if the VUSE for
28930         a REFERENCE is available.
28931         (eliminate): Do not remove stmts during elimination,
28932         instead queue and remove them afterwards.
28933         (do_pre): Do not rebuild alias info.
28934         (pass_pre): Run TODO_rebuild_alias before PRE.
28935         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
28936         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
28937         (mark_all_v_defs_stmt): Remove.
28938         (mark_all_v_defs_seq): Adjust.
28939         (sra_replace): Likewise.
28940         (scalarize_use): Likewise.
28941         (scalarize_copy): Likewise.
28942         (scalarize_init): Likewise.
28943         (scalarize_ldst): Likewise.
28944         (todoflags): Remove.
28945         (tree_sra): Do not rebuild alias info.
28946         (tree_sra_early): Adjust.
28947         (pass_sra): Run TODO_update_address_taken before SRA.
28948         * tree-predcom.c (set_alias_info): Remove.
28949         (prepare_initializers_chain): Do not call it.
28950         (mark_virtual_ops_for_renaming): Adjust.
28951         (mark_virtual_ops_for_renaming_list): Remove.
28952         (initialize_root_vars): Adjust.
28953         (initialize_root_vars_lm): Likewise.
28954         (prepare_initializers_chain): Likewise.
28955         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
28956         (may_propagate_copy_into_stmt): Likewise.
28957         (merge_alias_info): Do nothing for now.
28958         (propagate_tree_value_into_stmt): Adjust.
28959         (stmt_may_generate_copy): Likewise.
28960         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
28961         not mark symbols for renaming.
28962         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
28963         with the same statement, make sure to update the new pointed-to one.
28964         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
28965         call statements, do not mark symbols for renaming.
28966         (mark_operand_necessary): Dump something.
28967         (ref_may_be_aliased): New function.
28968         (mark_aliased_reaching_defs_necessary_1): New helper function.
28969         (mark_aliased_reaching_defs_necessary): Likewise.
28970         (mark_all_reaching_defs_necessary_1): Likewise.
28971         (mark_all_reaching_defs_necessary): Likewise.
28972         (propagate_necessity): Do not process virtual PHIs.  For
28973         non-aliased loads mark all reaching definitions as necessary.
28974         For aliased loads and stores mark the immediate dominating
28975         aliased clobbers as necessary.
28976         (visited): New global static.
28977         (perform_tree_ssa_dce): Free visited bitmap after propagating
28978         necessity.
28979         (remove_dead_phis): Perform simple dead virtual PHI removal.
28980         (remove_dead_stmt): Properly unlink virtual operands when
28981         removing stores.
28982         (eliminate_unnecessary_stmts): Schedule PHI removal after
28983         stmt removal.
28984         * tree-ssa-ter.c (is_replaceable_p): Adjust.
28985         (process_replaceable): Likewise.
28986         (find_replaceable_in_bb): Likewise.
28987         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
28988         based on the single gimple vop.
28989         (verify_flow_insensitive_alias_info): Remove.
28990         (verify_flow_sensitive_alias_info): Likewise.
28991         (verify_call_clobbering): Likewise.
28992         (verify_memory_partitions): Likewise.
28993         (verify_alias_info): Likewise.
28994         (verify_ssa): Adjust..
28995         (execute_update_addresses_taken): Export.  Update SSA
28996         manually.  Optimize only when optimizing.  Use a local bitmap.
28997         (pass_update_address_taken): Remove TODO_update_ssa, add
28998         TODO_dump_func.
28999         (pass_update_address_taken): Just use TODO_update_address_taken.
29000         (init_tree_ssa): Do not initialize addressable_vars.
29001         (verify_ssa): Verify new VUSE / VDEF properties.
29002         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
29003         Do not call verify_alias_info.
29004         (delete_tree_ssa): Clear the VUSE, VDEF operands.
29005         Do not free the loaded and stored syms bitmaps.  Reset the escaped
29006         and callused solutions.  Do not free addressable_vars.
29007         Remove memory-tag related code.
29008         (warn_uninitialized_var): Aliases are always available.
29009         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
29010         * lambda-code.c (can_put_in_inner_loop): Adjust.
29011         (can_put_after_inner_loop): Likewise.
29012         (perfect_nestify): Likewise.
29013         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
29014         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
29015         (vectorizable_conversion): Do not mark symbols for renaming.
29016         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
29017         (expand_call_inline): Unlink the calls virtual operands before
29018         replacing it.
29019         (tree_function_versioning): Do not call update_ssa if we are not
29020         updating clones.  Simplify.
29021         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
29022         (propagate_with_phi): Likewise..
29023         * tree-outof-ssa.c (create_temp): Remove memory tag and call
29024         clobber code.  Assert we are not aliased or global.
29025         * tree-flow.h: Include tree-ssa-alias.h
29026         (enum escape_type): Remove.
29027         (struct mem_sym_stats_d): Likewise.
29028         (struct mem_ref_stats_d): Likewise.
29029         (struct gimple_df): Add vop member.  Remove global_var,
29030         call_clobbered_vars, call_used_vars, addressable_vars,
29031         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
29032         escaped and callused members.
29033         (struct ptr_info_def): Remove all members, add points-to solution
29034         member pt.
29035         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
29036         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
29037         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
29038         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
29039         (tree-ssa-alias.o): Likewise.
29040         (toplev.o): Add tree-ssa-alias.h
29041         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
29042         * gimple.c (gimple_set_bb): Fix off-by-one error.
29043         (is_gimple_reg): Do not handle memory tags.
29044         (gimple_copy): Also copy virtual operands.
29045         Delay updating the statement.  Do not reset loaded and stored syms.
29046         (gimple_set_stored_syms): Remove.
29047         (gimple_set_loaded_syms): Likewise.
29048         (gimple_call_copy_skip_args): Copy the virtual operands
29049         and mark the new statement modified.
29050         * tree-ssa-structalias.c (may_alias_p): Remove.
29051         (set_uids_in_ptset): Take the alias set to prune with as
29052         parameter.  Fold in the alias test of may_alias_p.
29053         (compute_points_to_sets): Compute whether a ptr is dereferenced
29054         in a local sbitmap.
29055         (process_constraint): Deal with &ANYTHING on the lhs, reject all
29056         other ADDRESSOF constraints on the lhs.
29057         (get_constraint_for_component_ref): Assert that we don't get
29058         ADDRESSOF constraints from the base of the reference.
29059         Properly generate UNKNOWN_OFFSET for DEREF if needed.
29060         (struct variable_info): Remove collapsed_to member.
29061         (get_varinfo_fc): Remove.
29062         (new_var_info): Do not set collapsed_to.
29063         (dump_constraint): Do not follow cycles.
29064         (dump_constraint_graph): Likewise.
29065         (build_pred_graph): Likewise.
29066         (build_succ_graph): Likewise.
29067         (rewrite_constraints): Likewise.
29068         (do_simple_structure_copy): Remove.
29069         (do_rhs_deref_structure_copy): Remove.
29070         (do_lhs_deref_structure_copy): Remove.
29071         (collapse_rest_of_var): Remove.
29072         (do_structure_copy): Re-implement.
29073         (pta_stats): New global variable.
29074         (dump_pta_stats): New function.
29075         (struct constraint_expr): Make offset signed.
29076         (UNKNOWN_OFFSET): Define special value.
29077         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
29078         (solution_set_expand): New helper function split out from ...
29079         (do_sd_constraint): ... here.
29080         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
29081         (do_ds_constraint): Likewise.
29082         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
29083         and CALLUSED = *CALLUSED.
29084         (set_union_with_increment): Make inc argument signed.
29085         (type_safe): Remove.
29086         (get_constraint_for_ptr_offset): Handle unknown and negative
29087         constant offsets.
29088         (first_vi_for_offset): Handle offsets before start.  Bail
29089         out early for offsets beyond the variable extent.
29090         (first_or_preceding_vi_for_offset): New function.
29091         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
29092         Together with ESCAPED = *ESCAPED this properly computes reachability.
29093         (find_what_var_points_to): New function.
29094         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
29095         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
29096         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
29097         pt_solutions_intersect): New functions.
29098         (compute_call_used_vars): Remove.
29099         (compute_may_aliases): New main entry into PTA computation.
29100         * gimple.h (gimple_p): New typedef.
29101         (struct gimple_statement_base): Remove references_memory_p.
29102         (struct gimple_statement_with_memory_ops_base): Remove
29103         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
29104         members.
29105         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
29106         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
29107         gimple_set_references_memory): Remove.
29108         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
29109         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
29110         New functions.
29111         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
29112         (verify_expr): Allow RESULT_DECL.
29113         (gimple_duplicate_bb): Do not copy virtual operands.
29114         (gimple_duplicate_sese_region): Adjust.
29115         (gimple_duplicate_sese_tail): Likewise.
29116         (mark_virtual_ops_in_region): Remove.
29117         (move_sese_region_to_fn): Do not call it.
29118         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
29119         and pass_simple_dse.
29120         (execute_function_todo): Handle TODO_update_address_taken,
29121         call execute_update_addresses_taken for TODO_rebuild_alias.
29122         (execute_todo): Adjust.
29123         (execute_one_pass): Init dump files early.
29124         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
29125         call-clobbered.
29126         (create_general_new_stmt): Clear vops.
29127         * tree-ssa-reassoc.c (get_rank): Adjust.
29128         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
29129         symbols for renaming.
29130         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
29131         (PARAM_AVG_ALIASED_VOPS): Likewise.
29132         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
29133         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
29134         * tree-ssa-operands.c: Simplify for new virtual operand representation.
29135         (operand_build_cmp, copy_virtual_operands,
29136         create_ssa_artificial_load_stmt, add_to_addressable_set,
29137         gimple_add_to_addresses_taken): Remove public functions.
29138         (unlink_stmt_vdef): New function.
29139
29140 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
29141
29142         * config.gcc (powerpc-*-linux*): Merge variants.
29143
29144 2009-04-02  Chao-ying Fu  <fu@mips.com>
29145             James Grosbach  <james.grosbach@microchip.com>
29146
29147         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
29148         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
29149         cop0_sp_offset.
29150         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
29151         keep_interrupts_masked_p, use_debug_exception_return_p.
29152         (mips_attribute_table): Add interrupt, use_shadow_register_set,
29153         keep_interrupts_masked, use_debug_exception_return.
29154         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
29155         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
29156         New functions.
29157         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
29158         (mips_print_operand): Process COP0 registers to print $0 .. $31
29159         correctly for GAS to process.
29160         (mips_interrupt_extra_call_saved_reg_p): New function.
29161         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
29162         extra registers.
29163         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
29164         (mips_compute_frame_info): Add supports for interrupt context that
29165         includes doubleword accumulators and COP0 registers.
29166         (mips_for_each_saved_acc): New function.
29167         (mips_for_each_saved_gpr_and_fpr): Change the function name from
29168         mips_for_each_saved_reg.
29169         (mips_save_reg): Save accumulators.
29170         (mips_kernel_reg_p): A new for_each_rtx callback.
29171         (mips_expand_prologue): Support interrupt handlers.
29172         (mips_restore_reg): Restore accumulators.
29173         (mips_expand_epilogue): Support interrupt handlers.
29174         (mips_can_use_return_insn): Return false for interrupt handlers.
29175         (mips_epilogue_uses): New function.
29176         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
29177         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
29178         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
29179         cop0_move): New instructions.
29180         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
29181         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
29182         defines.
29183         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
29184         New defines.
29185         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
29186         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
29187         interrupt handlers, we use K0 as the temporary register.
29188         (EPILOGUE_USES): Change to a function call.
29189         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
29190         handlers, we use K0 as the temporary register.
29191
29192         * doc/extend.texi (Function Attributes): Document interrupt,
29193         use_shadow_register_set, keep_interrupts_masked,
29194         use_debug_exception_return for MIPS attributes.
29195
29196 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
29197
29198         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
29199         Remove a number of t-files from tmake_file.
29200         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
29201         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
29202         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
29203         target_prototype, not TARGET_PROTOTYPE.
29204         (LINK_OS_GNU_SPEC): Define.
29205         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
29206         and darwin-ldoubdle.c.
29207
29208 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
29209
29210         PR driver/39293
29211         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
29212         (cpp_options): Ditto.
29213         (default_compilers): Ditto.
29214         (display_help): Ditto.
29215         (process_command): Ditto.
29216         (do_spec_1): Ditto.
29217         (set_input): Use lbasename instead of duplicate code.
29218         (save_temps_prefix): New static for -save-temps=obj.
29219         (save_temps_length): Ditto.
29220
29221         * doc/invoke.texi (-save-temps=obj): Document new variant to
29222         -save-temps switch.
29223
29224 2009-04-02  Jeff Law  <law@redhat.com>
29225
29226         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
29227         variable.
29228
29229 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
29230
29231         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
29232         * configure: Regenerated.
29233
29234 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
29235
29236         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
29237         share the argument list.
29238
29239 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
29240
29241         Merge
29242
29243         2009-02-12  Diego Novillo  <dnovillo@google.com>
29244
29245         * varpool.c (debug_varpool): New.
29246         * cgraph.h (debug_varpool): Declare.
29247
29248 2009-04-02  Jan Hubicka  <jh@suse.cz>
29249
29250         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
29251         pass.
29252
29253 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
29254
29255         * config/i386/i386.c (ix86_abi): Move initialization to ...
29256         (override_options): Here.
29257
29258 2009-04-02  Christian Bruel  <christian.bruel@st.com>
29259
29260         * config/sh/sh.c (sh_dwarf_register_span): New function.
29261         (TARGET_DWARF_REGISTER_SPAN): Define.
29262         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
29263
29264 2009-04-02  Ira Rosen  <irar@il.ibm.com>
29265
29266         PR tree-optimization/39595
29267         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
29268         interleaved loads group is not  greater than the SLP group size.
29269
29270 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
29271
29272         * builtins.c (is_builtin_name): New.
29273         (called_as_built_in): Use is_builtin_name.
29274         * tree.h (is_builtin_name): New.
29275         * varasm.c (incorporeal_function_p): Use is_builtin_name
29276
29277 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
29278
29279         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
29280
29281 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
29282
29283         PR c++/26693
29284         * c-decl.c (clone_underlying_type): Move this ...
29285         * c-common.c (set_underlying_type): ... here.
29286         Also, make sure the function properly sets TYPE_STUB_DECL() on
29287         the newly created typedef variant type.
29288         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
29289         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
29290         points.
29291
29292 2009-04-02  Richard Guenther  <rguenther@suse.de>
29293
29294         PR tree-optimization/37221
29295         * tree-flow.h (degenerate_phi_result): Declare.
29296         * tree-ssa-dom.c (degenerate_phi_result): Export.
29297         * tree-scalar-evolution.c (analyze_initial_condition): If
29298         the initial condition is defined by a degenerate PHI node
29299         use the degenerate value.
29300
29301 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
29302
29303         PR rtl-optimization/39588
29304         * combine.c (merge_outer_ops): Do not set the constant when this
29305         is not necessary.
29306         (simplify_shift_const_1): Do not modify it either in this case.
29307
29308 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
29309
29310         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
29311         tuning is deprecated if -mtune value is set to an Itanium1 variant.
29312
29313 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
29314
29315         PR c/29027
29316         * c-lex.c (interpret_float): Default (no suffix) is double.
29317
29318 2009-04-1  Xinliang David Li  <davidxl@google.com>
29319
29320         * config/i386/i386.c (legitimate_constant_p): Recognize
29321         all one vector constant.
29322
29323 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
29324
29325         * config/vax/vax.c: Add #includes to silence warnings.
29326         Change #include order to silence two warnings.
29327
29328 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
29329
29330         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
29331         (ASM_SPEC): Pass -k to the assembler for PIC code.
29332
29333 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
29334
29335         * config.gcc: Add vax-*-linux* to the switch.
29336         * config/vax/linux.h: New file. (TARGET_VERSION,
29337         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
29338
29339 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
29340
29341         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
29342         Use predicate macros instead of GET_CODE() == foo.
29343         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
29344         ashlsi3, rotrsi3, <unnamed>): Likewise.
29345
29346 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
29347
29348         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
29349         jbbccihi, jbbccisi): Remova trailing whitespace.
29350         * config/vax/constraints.md: Likewise.
29351         * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
29352         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
29353         * config/vax/predicates.md: Likewise.
29354         * config/vax/vax.c (print_operand_address, vax_output_int_move,
29355         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
29356         * config/vax/vax.h: Likewise.
29357         * config/vax/vax.md (nonlocal_goto): Likewise.
29358
29359 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
29360
29361         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
29362         (indirectable_address_p, adjacent_operands_p): Add spaces around
29363         braces.
29364         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
29365
29366 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
29367
29368         * config/vax/vax.c (legitimate_constant_address_p,
29369         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
29370         index_term_p, reg_plus_index_p, legitimate_address_p,
29371         vax_mode_dependent_address_p): Update comments to match functions
29372         modified by the recent int->bool conversion.
29373
29374 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
29375
29376         * config/vax/builtins.md: Update copyright message.
29377         * config/vax/constraints.md: Likewise.
29378         * config/vax/netbsd-elf.h: Likewise.
29379         * config/vax/predicates.md: Likewise.
29380         * config/vax/vax-protos.h: Likewise.
29381         * config/vax/vax.c: Likewise.
29382         * config/vax/vax.h: Likewise.
29383         * config/vax/vax.md: Likewise.
29384         * config/vax/vax.opt: Likewise.
29385
29386 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
29387
29388         * config/vax/builtins.md (ffssi2, ffssi2_internal,
29389         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
29390         * config/vax/constraints.md (B, R): Likewise.
29391         * config/vax/predicates.md (external_memory_operand,
29392         nonimmediate_addsub_di_operand): Likewise.
29393         * config/vax/vax.c (vax_output_int_add): Likewise.
29394         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
29395         untyped_call): Likewise.
29396
29397 2009-04-01  Matt Thomas  <matt@3am-software.com>
29398
29399         * config/vax/predicates.md: New file.
29400         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
29401         external_const_operand, nonsymbolic_operand, external_memory_operand,
29402         indirect_memory_operand, indexed_memory_operand,
29403         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
29404         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
29405         predicate.
29406         * config/vax/constraints.md: New file.
29407         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
29408         New constraint.
29409         * config/vax/builtins.md: New file.
29410         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
29411         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
29412         jbbccisi): Define.
29413         * config/vax/vax.opt (mqmath): Add option.
29414         * config/vax/vax.md (isfx): Extend with DI.
29415         (VAXintQH, VAXintQHSD): Define.
29416         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
29417         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
29418         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
29419         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
29420         (movdi): Update constraints and use vax_output_int_move().
29421         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
29422         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
29423         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
29424         nonlocal_goto): New.
29425         (mov<mode>): Extend accepted operand types.
29426         (subdi3_old): Rename from subdi3, change update constraints and use
29427         a new implementation.
29428         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
29429         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
29430         MOVE_RATIO, CLEAR_RATIO): Define.
29431         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
29432         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
29433         (PRINT_OPERAND): Redefine using a function instead of inlined code.
29434         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
29435         (split_quadword_operands): Make static and really allow variable
29436         splitting.
29437         (print_operand_address): Update for PIC generation.
29438         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
29439         indexable_address_p, fixup_mathdi_operand,
29440         vax_expand_addsub_di_operands, adjacent_operands_p): New.
29441         (vax_float_literal, legitimate_constant_p,
29442         indirectable_constant_address_p, index_term_p,
29443         reg_plus_index_p): Return bool instead of int.
29444         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
29445         where needed.
29446         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
29447         generation.
29448         (vax_output_conditional_branch): Indent.
29449         (legitimate_constant_address_p, indirectable_constant_address_p,
29450         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
29451         vax_mode_dependent_address_p): Return bool instead of int, update for
29452         PIC generation.
29453         * config/vax/vax-protos.h (legitimate_constant_address_p,
29454         legitimate_constant_p, legitimate_address_p,
29455         vax_mode_dependent_address_p): Change declaration to bool.
29456         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
29457         vax_expand_addsub_di_operands, vax_output_int_subtract,
29458         vax_output_movmemsi): Declare.
29459         (split_quadword_operands, vax_float_literal): Delete declaration.
29460         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
29461         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
29462         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
29463         ASM_OUTPUT_DWARF_PCREL): Define.
29464         (ASM_SPEC): Change definition to allow PIC generation.
29465
29466 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
29467
29468         * doc/sourcebuild.texi: Update front-end requirements.
29469
29470 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
29471
29472         PR target/39226
29473         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
29474         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
29475         (booldi3_internal3): Use boolean_or_operator instead of
29476         boolean_operator.
29477
29478 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
29479
29480         PR c/39605
29481         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
29482         declarator whose size is not an integer constant expression but
29483         folds to an integer constant, then treat it as a constant
29484         subsequently.
29485
29486 2009-04-01  Richard Guenther  <rguenther@suse.de>
29487
29488         * fold-const.c (fold_plusminus_mult_expr): Do not fold
29489         i * 4 + 2 to (i * 2 + 1) * 2.
29490
29491 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
29492
29493         PR c/37772
29494         * c-parser.c (c_parser_asm_statement): Skip until close paren and
29495         return if c_parser_asm_string_literal returned NULL.
29496
29497 2009-04-01  Nick Clifton  <nickc@redhat.com>
29498
29499         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
29500         already defined.
29501         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
29502         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
29503         other typedefs to avoid conflicts with libgcc2.c.  Define labels
29504         to gain 16-bit bit-manipulation functions from libgcc2.c and then
29505         include it.
29506         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
29507         to gain 16-bit trapping arithmetic functions from libgcc2.c and
29508         then include it.
29509
29510 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
29511
29512         * varasm.c (default_function_rodata_section): Declare DOT as
29513         const char*.
29514
29515 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
29516             Andrey Galkin  <agalkin@hypercom.com>
29517
29518         PR/39492
29519         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
29520         Make object_name unique for each process.
29521
29522 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
29523
29524         PR other/39591
29525         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
29526         addressable variables in the parallel that could go out of scope while
29527         running queued tasks.
29528
29529 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
29530
29531         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
29532         (CASE_VALUES_THRESHOLD): Redefine.
29533         * config/avr/avr.c (avr_override_options): Remove initialization of
29534         avr_case_values_threshold variable.
29535         (avr_case_values_threshold): Remove variable. Add new function.
29536         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
29537         * config/avr/avr.opt (mno-tablejump): Remove option.
29538         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
29539
29540 2009-04-01  DJ Delorie  <dj@redhat.com>
29541
29542         * varasm.c (default_function_rodata_section): Don't assume
29543         anything about where the first '.' in the section name is.
29544
29545 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
29546
29547         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
29548         rs6000_emit_stack_tie.
29549
29550 2009-03-31  Ian Lance Taylor  <iant@google.com>
29551
29552         * tree-eh.c (tree_remove_unreachable_handlers): Compare
29553         gimple_code with GIMPLE_RESX, not RESX.
29554
29555 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
29556
29557         * c-common.c (c_get_ident): New.
29558         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
29559
29560 2009-04-01  Ben Elliston  <bje@au.ibm.com>
29561
29562         * config/rs6000/sysv4.opt (msdata): Improve option description.
29563
29564 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
29565
29566         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
29567         (divdf3_internal_lat): Remove.
29568         (divxf3_internal_lat): Remove.
29569         (divxf3_internal_thr): Remove.
29570         (divxf): Use divxf3_internal.
29571         * config/ia64/div.md (divsf3_internal_lat): New.
29572         (divdf3_internal_lat): New.
29573         (divxf3_internal): New.
29574
29575 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
29576
29577         PR c/448
29578         * Makefile.in (USE_GCC_STDINT): Define.
29579         (stmp-int-hdrs): Install stdint.h if applicable.
29580         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
29581         if known.
29582         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
29583         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
29584         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
29585         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
29586         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
29587         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
29588         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
29589         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
29590         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
29591         (c_common_nodes_and_builtins): Initialize
29592         underlying_wchar_type_node.  Do not initialize
29593         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
29594         nodes for new types.
29595         (c_stddef_cpp_builtins): Define macros for new types.
29596         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
29597         Remove.
29598         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
29599         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
29600         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
29601         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
29602         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
29603         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
29604         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
29605         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
29606         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
29607         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
29608         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
29609         int16_type_node, int32_type_node, int64_type_node,
29610         uint8_type_node, uint16_type_node, c_uint32_type_node,
29611         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
29612         int_least32_type_node, int_least64_type_node,
29613         uint_least8_type_node, uint_least16_type_node,
29614         uint_least32_type_node, uint_least64_type_node,
29615         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
29616         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
29617         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
29618         uintptr_type_node): Define.
29619         * c-cppbuiltin.c (builtin_define_constants,
29620         builtin_define_type_minmax): New.
29621         (builtin_define_stdint_macros): Define more macros.
29622         (c_cpp_builtins): Define more limit macros.
29623         (type_suffix): New.
29624         (builtin_define_type_max): Define in terms of
29625         builtin_define_type_minmax.  Remove is_long parameter.  All
29626         callers changed.
29627         * config.gcc (use_gcc_stdint): Define.
29628         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
29629         Add newlib-stdint.h for generic targets.
29630         * config/glibc-stdint.h, config/newlib-stdint.h,
29631         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
29632         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
29633         * config/score/score.h (UINTPTR_TYPE): Define.
29634         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
29635         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
29636         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
29637         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
29638         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
29639         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
29640         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
29641         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
29642         * config/spu/spu.h (STDINT_LONG32): Define.
29643         * configure.ac (use_gcc_stdint): Substitute.
29644         * configure: Regenerate.
29645         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
29646         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
29647         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
29648         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
29649         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
29650         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
29651         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
29652         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
29653         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
29654         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
29655         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
29656         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
29657         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
29658         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
29659         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
29660         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
29661         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
29662         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
29663         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
29664         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
29665         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
29666         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
29667         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
29668         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
29669         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
29670         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
29671         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
29672         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
29673         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
29674
29675 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
29676
29677         * loop-iv.c (suitable_set_for_replacement): Renamed from
29678         simplify_using_assignment; changed to return bool and to accept new
29679         args DEST and SRC.  Return true iff we find a source/destination pair
29680         that can be used to make a replacement, and fill SRC and DEST if so.
29681         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
29682         changed.
29683         (simplify_using_initial_values): Deal with altered regs here and track
29684         more precisely the effect they have on the validity of our expression.
29685
29686         * loop-iv.c (simplify_using_condition): A condition of the form
29687         (EQ REG CONST) can be used to simply make a substitution.
29688         (simplify_using_initial_values): Keep track of conditions we have seen
29689         and keep using them to simplify new expressions, while applying the
29690         same substitutions to them as to the expression.
29691
29692         * simplify-rtx.c (simplify_relational_operation_1): Simplify
29693         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
29694         GEU/LTU reversed.
29695
29696         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
29697         changed.  Use this when trying to improve the upper bound.
29698         Generate the comparison by using simplify_gen_relational.
29699
29700         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
29701
29702         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
29703         functions.
29704         (simplify_using_assignment, simplify_using_initial_values): Call
29705         replace_in_expr to make replacements.  Call replace_single_def_regs
29706         once on the initial version of the expression.
29707
29708 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29709
29710         PR target/27237
29711         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
29712
29713 2009-03-31  Richard Guenther  <rguenther@suse.de>
29714
29715         PR middle-end/31029
29716         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
29717         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
29718
29719 2009-03-31  Richard Guenther  <rguenther@suse.de>
29720
29721         * tree.h (div_if_zero_remainder): Declare.
29722         * fold-const.c (div_if_zero_remainder): Export.
29723         * tree-ssa-forwprop.c
29724         (forward_propagate_addr_into_variable_array_index): Handle
29725         constant array index addition outside of the variable index.
29726
29727 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
29728
29729         PR target/39592
29730         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
29731         define_splits, floatunssi<mode>2): Require x87 conversions from
29732         DImode to be permitted.
29733
29734 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
29735
29736         PR preprocessor/15638
29737         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
29738
29739 2009-03-31  Richard Guenther  <rguenther@suse.de>
29740
29741         PR middle-end/23401
29742         PR middle-end/27810
29743         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
29744         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
29745         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
29746         a separate statement.
29747         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
29748         (lookup_tmp_var): Likewise.
29749         (is_gimple_formal_tmp_or_call_rhs): Remove.
29750         (is_gimple_reg_or_call_rhs): Rename to ...
29751         (is_gimple_reg_rhs_or_call): ... this.
29752         (is_gimple_mem_or_call_rhs): Rename to ...
29753         (is_gimple_mem_rhs_or_call): ... this.
29754         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
29755         DECL_GIMPLE_REG_P only if is_formal is true.
29756         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
29757         for non-proper post-modify expression gimplification.
29758         (gimplify_self_mod_expr): For post-modify expressions gimplify
29759         the lvalue to a minimal lvalue.
29760         (rhs_predicate_for): Remove formal temp case.
29761         (gimplify_modify_expr_rhs): Likewise.
29762         (gimplify_addr_expr): Use is_gimple_reg.
29763         (gimplify_expr): Remove formal temp cases.
29764         (gimple_regimplify_operands): Likewise.
29765         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
29766         and FILTER_EXPR like constants.
29767         * gimple.c (walk_gimple_op): Fix val_only initialization, use
29768         is_gimple_reg.
29769         (is_gimple_formal_tmp_rhs): Remove.
29770         (is_gimple_reg_rhs): Remove special casing.
29771         (is_gimple_mem_rhs): Fix.
29772         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
29773         (is_gimple_formal_tmp_var): Remove.
29774         (is_gimple_formal_tmp_reg): Likewise.
29775         (is_gimple_min_lval): Allow invariant component ref parts.
29776         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
29777         is_gimple_formal_tmp_reg): Remove declarations.
29778         * tree-cfg.c (verify_expr): Verify that variables with address
29779         taken do not have DECL_GIMPLE_REG_P set.
29780         * tree-mudflap.c (mf_build_check_statement_for): Use
29781         force_gimple_operand instead of gimplify_expr.
29782
29783 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
29784
29785         * modulo-sched.c (sms_schedule_by_order): Pass the actual
29786         schedulable rows to compute_split_row.
29787
29788 2009-03-31  Ben Elliston  <bje@au.ibm.com>
29789
29790         PR target/31635
29791         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
29792         OPT_mvrsave.
29793
29794 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
29795
29796         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
29797         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
29798         * configure: Regenerate.
29799         * config.in: Regenerate.
29800         * config/rs6000/rs6000.opt (mtls-markers): Add.
29801         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
29802         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
29803         (tls_ld_aix, tls_ld_sysv): Likewise.
29804         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
29805         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
29806
29807 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
29808
29809         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
29810
29811 2009-03-30  Jan Hubicka  <jh@suse.cz>
29812
29813         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
29814         out of RESX.
29815         (tree_remove_unreachable_handlers): Cleanup EH predecestor
29816         detection and label handling.
29817
29818 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
29819
29820         * ira-int.h (ira_allocno): Rename left_conflicts_num to
29821         left_conflicts_size.
29822         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
29823         ALLOCNO_LEFT_CONFLICTS_SIZE.
29824
29825         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
29826         remove_allocno_from_bucket_and_push,
29827         allocno_spill_priority_compare, push_allocnos_to_stack,
29828         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
29829         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
29830         (setup_allocno_left_conflicts_num): Ditto.  Rename to
29831         setup_allocno_left_conflicts_size.
29832         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
29833         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
29834         setup_allocno_left_conflicts_size instead of
29835         setup_allocno_left_conflicts_num.
29836
29837         * ira-build.c (ira_create_allocno): Use
29838         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
29839         ALLOCNO_LEFT_CONFLICTS_NUM.
29840
29841 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
29842
29843         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
29844         instead of DF_LR_OUT.
29845
29846         * ira-lives.c (process_bb_node_lives): Ditto.
29847
29848         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
29849         instead of DF_LR_{OUT,IN}.
29850
29851         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
29852
29853         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
29854
29855 2009-03-30  Jan Hubicka  <jh@suse.cz>
29856
29857         * except.c (label_to_region_map): Fix thinko.
29858
29859 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
29860
29861         PR middle-end/38237
29862         * tree.h (tree_find_value): New declaration.
29863         * tree.c (tree_find_value): New function.
29864         * varasm.c (assemble_external): Avoid duplicate entries on lists.
29865
29866 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
29867
29868         PR debug/39563
29869         * c-decl.c (struct c_binding): Add locus field.
29870         (bind): Add locus argument, set locus field from it.
29871         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
29872         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
29873         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
29874         implicitly_declare, undeclared_variable, lookup_label,
29875         declare_label, c_make_fname_decl, c_builtin_function,
29876         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
29877         bind callers.
29878
29879 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
29880
29881         PR target/38781
29882         * config/i386/i386.c (classify_argument): Check total size of
29883         structure.
29884
29885 2009-03-30  Martin Jambor  <mjambor@suse.cz>
29886
29887         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
29888         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
29889         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
29890         respectively.
29891
29892         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
29893         seen_variable_array_ref while also traversing a union.
29894
29895         * tree-inline.c (optimize_inline_calls): Do not call
29896         cgraph_node_remove_callees.
29897         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
29898         (pass_remove_cgraph_callee_edges): New variable.
29899         * passes.c (init_optimization_passes): Add
29900         pass_remove_cgraph_callee_edges after early inlining and before all
29901         late intraprocedural passes.
29902
29903         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
29904
29905 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29906
29907         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
29908         Fix typos in names.
29909
29910 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29911
29912         * combine.c (simplify_comparison): Use have_insn_for.
29913         * dojump.c (do_jump): Likewise.
29914
29915 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29916
29917         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
29918         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
29919         sparc_compare_op0 like sparc_compare_emitted used to be handled.
29920         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
29921         instead of sparc_compare_emitted.
29922         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
29923         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
29924         instead of sparc_compare_emitted.
29925
29926 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29927
29928         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
29929         enter/exit cfglayout mode.
29930         (pass_partition_block): Require it.
29931         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
29932         (combine_instructions): Track basic blocks instead of labels.
29933         (update_cfg_for_uncondjump): New.
29934         (try_combine): Use it.  Update jumps after rescanning.
29935         (pass_combine): Require PROP_cfglayout.
29936         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
29937
29938 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29939
29940         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
29941         Provide/destroy PROP_cfglayout respectively.
29942         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
29943         * tree-pass.h (PROP_cfglayout): New.
29944
29945 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29946
29947         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
29948         fold_convert_const_fixed_from_fixed,
29949         fold_convert_const_fixed_from_int,
29950         fold_convert_const_fixed_from_real, fold_negate_const): Do not
29951         set TREE_CONSTANT_OVERFLOW.
29952         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
29953         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
29954
29955 2009-03-30  Ira Rosen  <irar@il.ibm.com>
29956
29957         * tree-vect-loop-manip.c: New file.
29958         * tree-vectorizer.c: Update documentation and included files.
29959         (vect_loop_location): Make extern.
29960         (rename_use_op): Move to tree-vect-loop-manip.c
29961         (rename_variables_in_bb, rename_variables_in_loop,
29962         slpeel_update_phis_for_duplicate_loop,
29963         slpeel_update_phi_nodes_for_guard1,
29964         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
29965         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
29966         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
29967         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
29968         find_loop_location): Likewise.
29969         (new_stmt_vec_info): Move to tree-vect-stmts.c.
29970         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
29971         get_vectype_for_scalar_type, vect_is_simple_use,
29972         supportable_widening_operation, supportable_narrowing_operation):
29973         Likewise.
29974         (bb_in_loop_p): Move to tree-vect-loop.c.
29975         (new_loop_vec_info, destroy_loop_vec_info,
29976         reduction_code_for_scalar_code, report_vect_op,
29977         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
29978         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
29979         (vect_supportable_dr_alignment): Likewise.
29980         * tree-vectorizer.h (tree-data-ref.h): Include.
29981         (vect_loop_location): Declare.
29982         Reorganize function declarations according to the new file structure.
29983         * tree-vect-loop.c: New file.
29984         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
29985         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
29986         * tree-vect-data-refs.c: New file.
29987         * tree-vect-patterns.c (timevar.h): Don't include.
29988         * tree-vect-stmts.c: New file.
29989         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
29990         tree-vect-slp.c, tree-vect-loop.c.
29991         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
29992         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
29993         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
29994         (tree-vect-analyze.o): Remove.
29995         (tree-vect-transform.o): Likewise.
29996         (tree-vect-data-refs.o): Add rule.
29997         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
29998         tree-vect-slp.o): Likewise.
29999         (tree-vect-patterns.o): Remove redundant dependencies.
30000         (tree-vectorizer.o): Likewise.
30001         * tree-vect-slp.c: New file.
30002
30003 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30004
30005         * optc-gen.awk: Warn if an option flag has multiple different
30006         help strings.
30007
30008 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
30009
30010         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
30011         -floop-block): Document dependences on PPL, CLooG and Graphite.
30012
30013 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
30014
30015         PR rtl-optimization/323
30016         * c-common.c (c_fully_fold, convert_and_check,
30017         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
30018         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
30019         * c-common.def (EXCESS_PRECISION_EXPR): New.
30020         * c-cppbuiltin.c (builtin_define_float_constants): Define
30021         constants with enough digits for long double.
30022         * c-lex.c (interpret_float): Interpret constant with excess
30023         precision where appropriate.
30024         * c-opts.c (c_common_post_options): Set
30025         flag_excess_precision_cmdline.  Give an error for
30026         -fexcess-precision=standard for C++ for processors where the
30027         option is significant.
30028         * c-parser.c (c_parser_conditional_expression): Handle excess
30029         precision in condition.
30030         * c-typeck.c (convert_arguments): Handle arguments with excess
30031         precision.
30032         (build_unary_op): Move excess precision outside operation.
30033         (build_conditional_expr): Likewise.
30034         (build_compound_expr): Likewise.
30035         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
30036         (build_modify_expr): Handle excess precision in RHS.
30037         (convert_for_assignment): Handle excess precision in converted
30038         value.
30039         (digest_init, output_init_element, process_init_element): Handle
30040         excess precision in initializer.
30041         (c_finish_return): Handle excess precision in return value.
30042         (build_binary_op): Handle excess precision in operands and add
30043         excess precision as needed for operation.
30044         * common.opt (-fexcess-precision=): New option.
30045         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
30046         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
30047         For standard excess precision, output explicit conversion to and
30048         truncation from XFmode.
30049         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
30050         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
30051         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
30052         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
30053         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
30054         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
30055         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
30056         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
30057         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
30058         define_splits, sqrt<mode>2): Disable where appropriate for
30059         standard excess precision.
30060         * convert.c (convert_to_real): Do not shorten arithmetic to type
30061         for which excess precision would be used.
30062         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
30063         * doc/invoke.texi (-fexcess-precision=): Document option.
30064         (-mfpmath=): Correct index entry.
30065         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
30066         flag_excess_precision): New.
30067         * langhooks.c (lhd_post_options): Set
30068         flag_excess_precision_cmdline.
30069         * opts.c (common_handle_option): Handle -fexcess-precision=.
30070         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
30071         init_excess_precision): New.
30072         (lang_dependent_init_target): Call init_excess_precision.
30073         * tree.c (excess_precision_type): New.
30074         * tree.h (excess_precision_type): Declare.
30075
30076 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
30077
30078         PR c/35235
30079         * c-typeck.c (build_component_ref): Do not copy qualifiers from
30080         non-lvalue to component.
30081
30082 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
30083
30084         PR preprocessor/34695
30085         * Makefile.in (c-opts.o): Depend on c-tree.h.
30086         * c-common.c: Move down include of diagnostic.h.
30087         (done_lexing, c_cpp_error): New.
30088         * c-common.h (done_lexing): Declare.
30089         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
30090         (parse_in).
30091         * c-opts.c: Include c-tree.h.
30092         (c_common_init_options): Set preprocessor error callback.
30093         (c_common_handle_option): Do not set preprocessor
30094         inhibit_warnings, warnings_are_errors, warn_system_headers,
30095         pedantic_errors or inhibit_warnings flags.
30096         (c_common_post_options): Do not check cpp_errors (parse_in).
30097         (c_common_finish): Do not output dependencies if there were
30098         errors.  Do not check return value of cpp_finish.
30099         * c-ppoutput.c (pp_file_change): Set input_location.
30100         * c-tree.h (c_cpp_error): Declare.
30101         * diagnostic.c (diagnostic_set_info_translated): Also initialize
30102         override_column.
30103         (diagnostic_build_prefix): Check override_column.
30104         * diagnostic.h (diagnostic_info): Add override_column field.
30105         (diagnostic_override_column): Define.
30106
30107 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
30108
30109         * c-common.c (c_expand_expr, c_staticp): Remove.
30110         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
30111         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
30112         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
30113         * c-gimplify.c (gimplify_compound_literal_expr,
30114         optimize_compound_literals_in_ctor): Remove.
30115         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
30116         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
30117         * c-semantics.c (emit_local_var): Remove.
30118
30119         * langhooks-def.h (lhd_expand_expr): Remove.
30120         * langhooks.c (lhd_expand_expr): Remove.
30121         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
30122
30123         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
30124         handling from c-semantics.c; don't call into langhook.
30125         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
30126         * gimplify.c (gimplify_compound_literal_expr,
30127         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
30128         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
30129         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
30130         as was done in c-gimplify.c.
30131         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
30132         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
30133         Move from c-common.h.
30134         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
30135
30136         * tree.c (staticp): Do not call langhook.
30137         * langhooks.c (lhd_staticp): Delete.
30138         * langhooks-def.h (lhd_staticp): Delete prototype.
30139         (LANG_HOOKS_STATICP): Delete.
30140         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
30141
30142         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
30143         instead of DECL_STMTs.
30144
30145 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
30146
30147         PR c/456
30148         PR c/5675
30149         PR c/19976
30150         PR c/29116
30151         PR c/31871
30152         PR c/35198
30153         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
30154         void_type_node.
30155         (fold_call_expr): Return a NOP_EXPR from folding rather than the
30156         contained expression.
30157         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
30158         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
30159         conditional expressions for C.
30160         (decl_constant_value_for_optimization): Move from
30161         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
30162         whether optimizing and that the expression is a VAR_DECL not of
30163         array type instead of doing such checks in the caller.  Do not
30164         check pedantic.  Call gcc_unreachable for C++.
30165         * c-common.def (C_MAYBE_CONST_EXPR): New.
30166         * c-common.h (c_fully_fold, c_save_expr,
30167         decl_constant_value_for_optimization): New prototypes.
30168         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
30169         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
30170         EXPR_INT_CONST_OPERANDS): Define.
30171         * c-convert.c (convert): Strip nops from expression.
30172         * c-decl.c (groktypename): Take extra parameters expr and
30173         expr_const_operands.  Update call to grokdeclarator.
30174         (start_decl): Update call to grokdeclarator.  Add statement for
30175         expressions used in type of decl.
30176         (grokparm): Update call to grokdeclarator.
30177         (push_parm_decl): Update call to grokdeclarator.
30178         (build_compound_literal): Add parameter non_const and build a
30179         C_MAYBE_COSNT_EXPR if applicable.
30180         (grokdeclarator): Take extra parameters expr and
30181         expr_const_operands.  Track expressions used in declaration
30182         specifiers and declarators.  Fold array sizes and track whether
30183         they are constant expressions and whether they are integer
30184         constant expressions.
30185         (parser_xref_tag): Set expr and expr_const_operands fields in
30186         return value.
30187         (grokfield): Update call to grokdeclarator.
30188         (start_function): Update call to grokdeclarator.
30189         (build_null_declspecs): Set expr and expr_const_operands fields in
30190         return value.
30191         (declspecs_add_type): Handle expressions in typeof specifiers.
30192         * c-parser.c (c_parser_declspecs): Set expr and
30193         expr_const_operands fields for declaration specifiers.
30194         (c_parser_enum_specifier): Likewise.
30195         (c_parser_struct_or_union_specifier): Likewise.
30196         (c_parser_typeof_specifier): Likewise.  Update call to
30197         groktypename.  Fold expression as needed.  Return expressions with
30198         type instead of adding statements.
30199         (c_parser_attributes): Update calls to c_parser_expr_list.
30200         (c_parser_statement_after_labels): Fold expression before passing
30201         to objc_build_throw_stmt.
30202         (c_parser_condition): Fold expression.
30203         (c_parser_asm_operands): Fold expression.
30204         (c_parser_conditional_expression): Use c_save_expr.  Update call
30205         to build_conditional_expr.
30206         (c_parser_alignof_expression): Update call to groktypename.
30207         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
30208         original_code.  Fold expression argument of va_arg.  Create
30209         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
30210         argument to va_arg.  Update calls to groktypename.  Fold array
30211         index for offsetof.  Verify that first argument to
30212         __builtin_choose_expr has integer type.
30213         (c_parser_postfix_expression_after_paren_type): Update calls to
30214         groktypename and build_compound_literal.  Handle expressions with
30215         side effects in type name.
30216         (c_parser_postfix_expression_after_primary): Update call to
30217         c_parser_expr_list.  Set original_code for calls to
30218         __builtin_constant_p.
30219         (c_parser_expr_list): Take extra parameter fold_p.  Fold
30220         expressions if requested.
30221         (c_parser_objc_type_name): Update call to groktypename.
30222         (c_parser_objc_synchronized_statement): Fold expression.
30223         (c_parser_objc_receiver): Fold expression.
30224         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
30225         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
30226         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
30227         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
30228         (struct c_typespec): Add elements expr and expr_const_operands.
30229         (struct c_declspecs): Add elements expr and expr_const_operands.
30230         (groktypename, build_conditional_expr, build_compound_literal):
30231         Update prototypes.
30232         (in_late_binary_op): Declare.
30233         * c-typeck.c (note_integer_operands): New function.
30234         (in_late_binary_op): New variable.
30235         (decl_constant_value_for_broken_optimization): Move to c-common.c
30236         and rename to decl_constant_value_for_optimization.
30237         (default_function_array_conversion): Do not strip nops.
30238         (default_conversion): Do not call
30239         decl_constant_value_for_broken_optimization.
30240         (build_array_ref): Do not fold result.
30241         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
30242         result when operand is a VLA.
30243         (c_expr_sizeof_type): Update call to groktypename.  Handle
30244         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
30245         result when operand names a VLA type.
30246         (build_function_call): Update call to build_compound_literal.
30247         Only fold result for calls to __builtin_* functions.  Strip
30248         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
30249         the function designator.
30250         (convert_arguments): Fold arguments.  Update call to
30251         convert_for_assignment.
30252         (build_unary_op): Handle increment and decrement of
30253         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
30254         decrement earlier.  Fold operand of increment and decrement.
30255         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
30256         built for integer operand.  Wrap returns that are INTEGER_CSTs
30257         without being integer constant expressions or that have integer
30258         constant operands without being INTEGER_CSTs.
30259         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
30260         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
30261         result is an integer constant expression or can be used in
30262         unevaluated parts of one and avoid folding and wrap as
30263         appropriate.  Fold operands before possibly doing -Wsign-compare
30264         warnings.
30265         (build_compound_expr): Wrap result for C99 if operands can be used
30266         in integer constant expressions.
30267         (build_c_cast): Update call to digest_init.  Do not ignore
30268         overflow from casting floating-point constants to integers.  Wrap
30269         results that could be confused with integer constant expressions,
30270         null pointer constants or floating-point constants.
30271         (c_cast_expr): Update call to groktypename.  Handle expressions
30272         included in type name.
30273         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
30274         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
30275         Update calls to convert_for_assignment.
30276         (convert_for_assignment): Take new parameter
30277         null_pointer_constant.  Do not strip nops or call
30278         decl_constant_value_for_broken_optimization.  Set
30279         in_late_binary_op for conversions to boolean.
30280         (store_init_value): Update call to digest_init.
30281         (digest_init): Take new parameter null_pointer_constant.  Do not
30282         call decl_constant_value_for_broken_optimization.  pedwarn for
30283         initializers not constant expressions.  Update calls to
30284         convert_for_assignment.
30285         (constructor_nonconst): New.
30286         (struct constructor_stack): Add nonconst element.
30287         (really_start_incremental_init, push_init_level, pop_init_level):
30288         Handle constructor_nonconst and nonconst element.
30289         (set_init_index): Call constant_expression_warning for array
30290         designators.
30291         (output_init_element): Fold value.  Set constructor_nonconst as
30292         applicable.  pedwarn for initializers not constant expressions.
30293         Update call to digest_init.  Call constant_expression_warning
30294         where constant initializers are required.
30295         (process_init_element): Use c_save_expr.
30296         (c_finish_goto_ptr): Fold expression.
30297         (c_finish_return): Fold return value.  Update call to
30298         convert_for_assignment.
30299         (c_start_case): Fold switch expression.
30300         (c_process_expr_stmt): Fold expression.
30301         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
30302         ensure statement expression is not evaluated in constant expression.
30303         (build_binary_op): Track whether results are integer constant
30304         expressions or may occur in such, disable folding and wrap results
30305         as applicable.  Fold operands for -Wsign-compare warnings unless
30306         in_late_binary_op.
30307         (c_objc_common_truthvalue_conversion): Handle results folded to
30308         integer constants that are not integer constant expressions.
30309         * doc/extend.texi: Document when typeof operands are evaluated,
30310         that condition of __builtin_choose_expr is an integer constant
30311         expression, and more about use of __builtin_constant_p in
30312         initializers.
30313
30314 2009-03-29  Richard Guenther  <rguenther@suse.de>
30315
30316         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
30317         propagate addresses of array references.
30318
30319 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
30320
30321         * regmove.c (perhaps_ends_bb_p): Remove.
30322         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
30323         from INSN and check that the main loop stays within that basic block.
30324         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
30325         (regmove_forward_pass): Split out from regmove_optimize.  Use
30326         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
30327         (regmove_backward_pass): Split out from regmove_optimize.  Use
30328         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
30329         (regmove_optimize): Simplify.
30330
30331 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
30332
30333         PR target/39545
30334         * config/i386/i386.c (classify_argument): Ignore flexible array
30335         member in struct and warn ABI change.
30336
30337 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
30338
30339         * config/i386/i386-protos.h (ix86_agi_dependent): New.
30340
30341         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
30342         (ix86_adjust_cost): Updated.
30343
30344 2009-03-29  Jan Hubicka  <jh@suse.cz>
30345
30346         PR middle-end/28850
30347         * tree-pass.h (pass_cleanup_eh): New function.
30348         (remove_unreachable_regions): Break code handling RTL
30349         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
30350         that can not be reached by runtime.
30351         (can_be_reached_by_runtime): New function.
30352         (label_to_region_map): New function.
30353         (num_eh_regions): New function.
30354         (rtl_remove_unreachable_regions): New function.
30355         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
30356         (remove_eh_region): New function.
30357         * except.h: Include sbitmap and vecprim.
30358         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
30359         num_eh_regions): Declare.
30360         * passes.c (init_optimization_passes): Schedule cleanup_eh.
30361         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
30362         * tree-eh.c (tree_remove_unreachable_handlers): New function.
30363         (tree_empty_eh_handler_p): New function.
30364         (cleanup_empty_eh): New function.
30365         (cleanup_eh): New function.
30366         (pass_cleanup_eh): New function.
30367
30368 2009-03-29  Jan Hubicka  <jh@suse.cz>
30369
30370         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
30371         for removed regions.
30372
30373 2009-03-29  Jan Hubicka  <jh@suse.cz>
30374
30375         * except.c (dump_eh_tree): Dump all datastructures.
30376
30377 2009-03-29  Jan Hubicka  <jh@suse.cz>
30378
30379         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
30380         (duplicate_eh_regions_1): Likewise.
30381         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
30382         vector; call EH verification.
30383         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
30384         Be ready for region being removed.
30385
30386 2009-03-29  Jan Hubicka  <jh@suse.cz>
30387
30388         * bitmap.c (bitmap_last_set_bit): New function.
30389         * bitmap.h (bitmap_last_set_bit): Declare.
30390
30391 2009-03-29  David Ayers  <ayers@fsfe.org>
30392
30393         PR objc/27377
30394         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
30395         by calling objc_compare_types and surpress warnings about
30396         incompatible C pointers that are compatible ObjC pointers.
30397
30398 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
30399
30400         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
30401         call initialize_inline_failed.
30402         (initialize_inline_failed): Move it from here ...
30403         * cgraph.c (initialize_inline_failed): ... to here.
30404         (cgraph_create_edge): Call initialize_inline_failed rather than
30405         setting inline_failed directly.
30406
30407 2009-03-29  Ben Elliston  <bje@au.ibm.com>
30408
30409         PR target/32542
30410         * sysv4.opt (msdata): Improve comment.
30411         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
30412         * sysv4.h (SVR4_ASM_SPEC): Likewise.
30413
30414 2009-03-29  Ben Elliston  <bje@au.ibm.com>
30415
30416         PR target/30451
30417         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
30418         load and store attributes.
30419
30420 2009-03-29  Ben Elliston  <bje@au.ibm.com>
30421
30422         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
30423         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
30424         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
30425         * doc/extend.texi (X86 Built-in Functions): Add index entries for
30426         __builtin_infq and __builtin_huge_valq.
30427
30428 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
30429
30430         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
30431         atmega8m1 devices.
30432         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
30433         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
30434
30435 2009-03-28  Xinliang David Li  <davidxl@google.com>
30436
30437         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
30438         (do_dbg_cnt): New function.
30439
30440 2009-03-28  Jan Hubicka  <jh@suse.cz>
30441
30442         Merge from pretty-ipa:
30443
30444         2009-03-27  Jan Hubicka  <jh@suse.cz>
30445
30446         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
30447         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
30448         * passes.c (function_called_by_processed_nodes_p): New.
30449         * ipa-pure-const.c (check_call): Fix handling of operands.
30450         (analyze_function): Dump debug output for skipped bodies.
30451         (local_pure_const): Use function_called_by_processed_nodes_p.
30452         * dwarf2out.c (reference_to_unused): Use output.
30453         * passes.c (do_per_function_toporder): Likewise.
30454
30455         2008-11-12  Jan Hubicka  <jh@suse.cz>
30456
30457         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
30458         * ipa-pure-const.c (funct_state_d): Add can throw field; make
30459         state_set_in_source enum
30460         (check_decl): Ignore memory tags; do not set fake looping flags;
30461         dump diagnostics.
30462         (check_operand, check_tree, check_rhs_var, check_lhs_var,
30463         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
30464         (check_call, analyze_function): Rewrite.
30465         (check_stmt): New.
30466         (add_new_function): Update call of analyze_function.
30467         (generate_summary): Add call of analyze_function.
30468         (propagate): Propagate can_throw; handle state_set_in_source correctly.
30469         (local_pure_const): New function.
30470         (pass_local_pure_const): New pass.
30471         * ipa-inline.c (inline_transform): Set after_inlining.
30472         * tree-eh.c (stmt_can_throw_external): New.
30473         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
30474         work with aliasing built.
30475         * tree-flow.h (stmt_can_throw_external): New.
30476         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
30477         and local pure/const pass in early and late optimization queue.
30478
30479 2009-03-28  Martin Jambor  <mjambor@suse.cz>
30480
30481         * fold-const.c (get_pointer_modulus_and_residue): New parameter
30482         allow_func_align.
30483         (fold_binary): Allow function decl aligment consideration is the
30484         second argument is integer constant one.
30485         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
30486         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
30487         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
30488
30489 2009-03-28  Jan Hubicka  <jh@suse.cz>
30490
30491         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
30492         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
30493         * function.h (rtl_data): Add nothrow flag.
30494         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
30495         set DECL_NOTHROW for AVAILABLE functions.
30496
30497 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
30498
30499         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
30500         following vector keyword has expansion starting with pixel or bool
30501         keyword, expand vector to __vector and pixel or bool to __pixel or
30502         __bool.
30503
30504         PR c++/39554
30505         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
30506         warn_if_disallowed_function_p): Removed.
30507         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
30508         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
30509         warning_if_disallowed_function_p.
30510         * flags.h (warn_if_disallowed_function_p,
30511         warn_disallowed_functions): Removed.
30512         * common.opt (Wdisallowed-function-list=): Removed.
30513         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
30514
30515 2009-03-28  Richard Guenther  <rguenther@suse.de>
30516
30517         PR tree-optimization/38723
30518         * tree-ssa-pre.c (compute_avail): Add all default definitions to
30519         the entry block.
30520
30521 2009-03-28  Jan Hubicka  <jh@suse.cz>
30522
30523         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
30524         test introduced by my previous patch.
30525
30526 2009-03-28  Richard Guenther  <rguenther@suse.de>
30527
30528         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
30529         the PHIs value undefined.
30530
30531 2009-03-28  Jan Hubicka  <jh@suse.cz>
30532
30533         * tree-pass.h (pass_fixup_cfg): New pass.
30534         * ipa-inline.c (inline_transform): Set
30535         always_inline_functions_inlined/after_inlining.
30536         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
30537         (pass_fixup_cfg): New pass.
30538         * passes.c (init_optimization_passes): Add fixup_cfg.
30539
30540 2009-03-28  Richard Guenther  <rguenther@suse.de>
30541
30542         PR tree-optimization/38458
30543         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
30544         argument use the arguments copy-of value.
30545
30546 2009-03-28  Richard Guenther  <rguenther@suse.de>
30547
30548         PR tree-optimization/38180
30549         * tree-ssa-ccp.c (get_default_value): Simplify.
30550         (likely_value): Likewise.
30551         (surely_varying_stmt_p): Properly handle VOP case.
30552         (ccp_initialize): Likewise.
30553         (ccp_fold): Handle propagating through *&.
30554         (fold_const_aggregate_ref): Also handle decls.
30555
30556 2009-03-28  Jan Hubicka  <jh@suse.cz>
30557
30558         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
30559         * cgraph.h (cgraph_node): Likewise.
30560         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
30561         (cgraph_reset_node): Use process flag.
30562         (cgraph_mark_functions_to_output): Likewise.
30563         (cgraph_expand_function): Likewise.
30564         (cgraph_expand_all_functions): Likewise.
30565         (cgraph_output_in_order): Likewise.
30566         * dwarf2out.c (reference_to_unused): Likewise.
30567         * passes.c do_per_function_toporder): Likewise.
30568
30569 2009-03-28  Jan Hubicka  <jh@suse.cz>
30570
30571         Bring from lto-branch:
30572
30573         2008-09-03  Doug Kwan  <dougkwan@google.com>
30574
30575         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
30576         enums instead of reason strings.
30577         * cgraph.c (cgraph_create_edge): Same.
30578         (cgraph_inline_failed_string): New function.
30579         * cgraph.h (cgraph_inline_failed_t): New enum type.
30580         (cgraph_inline_failed_string): New prototype.
30581         (struct cgraph_edge): Change type of INLINED_FAILED from constant
30582         char pointer to cgraph_inline_failed_t.
30583         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
30584         (cgraph_default_inline_p): Ditto.
30585         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
30586         to cgraph_inline_failed_t pointer.
30587         * cif-code.def: New file.
30588         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
30589         reason string.
30590         (cgraph_check_inline_limits): Change type of REASON to pointer to
30591         cgraph_inline_failed_t.  Replace reason strings with enums.
30592         (cgraph_default_inline_p): Ditto.
30593         (cgraph_recursive_inlining_p): Ditto.
30594         (update_caller_keys): Change type of FAILED_REASON to
30595         cgraph_inline_failed_t.
30596         (cgraph_set_inline_failed): Change type of REASON to pointer to
30597         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
30598         convert enums to strings for text output.
30599         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
30600         to be of type cgraph_inline_failed_t.  Replace reason strings with
30601         enums.  Call cgraph_inline_failed_string to covert enums
30602         to strings for text output.
30603         (cgraph_decide_inlining): Replace reason strings with enums.
30604         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
30605         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
30606         for text output.
30607         * tree-inline.c (expand_call_inline): Change type of REASON
30608         to cgraph_inline_failed_t.  Replace reason strings with enums.
30609         Call cgraph_inline_failed_string for text output.
30610         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
30611         (cgraph.o): Ditto.
30612
30613 2009-03-28  Jan Hubicka  <jh@suse.cz>
30614
30615         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
30616         cgraph_clone_node): Remove master clone handling.
30617         (cgraph_is_master_clone, cgraph_master_clone): Remove.
30618         * cgraph.h (master_clone): Remove.
30619         (cgraph_is_master_clone, cgraph_master_clone): Remove.
30620         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
30621         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
30622
30623 2009-03-28  Jan Hubicka  <jh@suse.cz>
30624
30625         * cgraph.c (cgraph_function_body_availability): Functions declared
30626         inline are always safe to assume that it is not going to be replaced.
30627
30628 2009-03-28  Richard Guenther  <rguenther@suse.de>
30629
30630         PR tree-optimization/38513
30631         * tree-ssa-pre.c (eliminate): Remove redundant stores.
30632         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
30633         EXC_PTR_EXPR and FILTER_EXPR.
30634         (get_ref_from_reference_ops): Likewise.
30635
30636 2009-03-28  Richard Guenther  <rguenther@suse.de>
30637
30638         PR tree-optimization/38968
30639         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
30640         Use FLOOR_MOD_EXPR to compute misalignment.
30641
30642 2009-03-28  Richard Guenther  <rguenther@suse.de>
30643
30644         PR tree-optimization/37795
30645         * tree.h (combine_comparisons): Declare.
30646         * fold-const.c (combine_comparisons): Export.
30647         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
30648         comparisons.
30649         (ifcombine_iforif): Use combine_comparisons.
30650
30651 2009-03-28  Jan Hubicka  <jh@suse.cz>
30652
30653         * tree-eh.c (inlinable_call_p): New function.
30654         (make_eh_edges): Use it.
30655         (verify_eh_edges): Use it.
30656         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
30657         * except.c (reachable_next_level): Add inlinable_function argument
30658         (sjlj_find_directly_reachable_regions): Update.
30659         (add_reachable_handler): Do not set saw_any_handlers.
30660         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
30661         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
30662         Add new inlinable call parameter.
30663         (can_throw_internal, can_throw_external): Update.
30664         * except.h (can_throw_internal_1, can_throw_external_1,
30665         foreach_reachable_handler): Update declaration.
30666
30667 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
30668
30669         * config/arm/t-arm-coff, config/h8300/coff.h,
30670         config/i386/i386-aout.h, config/i386/i386-coff.h,
30671         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
30672         config/pdp11/2bsd.h, config/rs6000/aix41.h,
30673         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
30674         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
30675         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
30676         sys-types.h: Remove.
30677         * Makefile.in: Remove protoize and fixproto support and references
30678         in comments.
30679         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
30680         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
30681         Remove.
30682         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
30683         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
30684         unprotoize$(exeext).
30685         (rest.encap): Don't depend on $(STMP_FIXPROTO)
30686         (.PHONY): Don't depend on proto.
30687         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
30688         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
30689         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
30690         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
30691         build/gen-protos.o, build/scan.o, xsys-protos.h,
30692         build/fix-header$(build_exeext), build/fix-header.o,
30693         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
30694         stmp-install-fixproto): Remove.
30695         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
30696         SYSCALLS.c or fixproto files.
30697         (install-common): Don't install protoize.
30698         (install-headers-tar, install-headers-cpio, install-headers-cp):
30699         Don't depend on $(STMP_FIXPROTO).
30700         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
30701         install fixproto files or write out fixproto settings.
30702         (uninstall): Don't uninstall protoize.
30703         * config.gcc (use_fixproto): Remove.
30704         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
30705         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
30706         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
30707         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
30708         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
30709         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
30710         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
30711         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
30712         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
30713         * config/t-vxworks (STMP_FIXPROTO): Remove.
30714         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
30715         STMP_FIXPROTO): Remove.
30716         * config.in, configure: Regenerate.
30717         * crtstuff.c (gid_t, uid_t): Don't undefine.
30718         * doc/install.texi: Change m68k-coff to m68k-elf in example.
30719         (arm-*-coff, arm-*-aout: Remove target entries.
30720         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
30721         Remove mention of AIX 4.1.
30722         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
30723         * doc/invoke.texi (Running Protoize): Remove.
30724         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
30725         (Protoize Caveats): Remove.
30726         * tsystem.h: Update comments on headers assumed to exist.
30727
30728 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
30729
30730         * genautomata.c: Add a new year to the copyright.  Add a new
30731         reference.
30732         (struct insn_reserv_decl): Add comments for member bypass_list.
30733         (find_bypass): Remove.
30734         (insert_bypass): New.
30735         (process_decls): Use insert_bypass.
30736         (output_internal_insn_latency_func): Output all bypasses with the
30737         same input insn in one switch case.
30738
30739         * rtl.def (define_bypass): Describe bypass choice.
30740         * doc/md.texi (define_bypass): Ditto.
30741
30742 2009-03-27  Richard Guenther  <rguenther@suse.de>
30743
30744         * gimplify.c (mark_addressable): Export.
30745         * tree-flow.h (mark_addressable): Declare.
30746         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
30747         * tree-ssa.c (verify_phi_args): Verify that address taken
30748         variables have TREE_ADDRESSABLE set.
30749
30750 2009-03-27  Richard Guenther  <rguenther@suse.de>
30751
30752         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
30753         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
30754         Do not mark decls TREE_ADDRESSABLE.
30755         (build_fold_addr_expr): Adjust.
30756         (fold_addr_expr): Remove.
30757         (fold_unary): Use build_fold_addr_expr.
30758         (fold_comparison): Likewise.
30759         (split_address_to_core_and_offset): Likewise.
30760         * coverage.c (tree_coverage_counter_addr): Mark the array decl
30761         TREE_ADDRESSABLE.
30762         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
30763         (gimplify_modify_expr_to_memcpy): Mark source and destination
30764         addressable.
30765         * omp-low.c (create_omp_child_function): Mark the object decl
30766         TREE_ADDRESSABLE.
30767         (lower_rec_input_clauses): Mark the var we take the address of
30768         TREE_ADDRESSABLE.
30769         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
30770
30771 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30772
30773         PR middle-end/39315
30774         * cfgexpand.c (expand_one_stack_var_at): Change alignment
30775         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
30776
30777 2009-03-27  Richard Guenther  <rguenther@suse.de>
30778
30779         PR tree-optimization/39120
30780         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
30781         constraints.
30782         (handle_lhs_call): Process return constraints.  Add escape
30783         constraints if necessary.
30784         (handle_const_call): Fill out return constraints.  Make nested
30785         case more precise.  Avoid consttmp if possible.
30786         (handle_pure_call): Fill out return constraints.  Avoid
30787         callused if possible.
30788         (find_func_aliases): Simplify call handling.
30789
30790 2009-03-27  Richard Guenther  <rguenther@suse.de>
30791
30792         PR tree-optimization/39120
30793         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
30794         as a representative.
30795         (solve_graph): Do propagate CALLUSED.
30796         (handle_pure_call): Use a scalar constraint from CALLUSED for
30797         the return value.
30798         (find_what_p_points_to): CALLUSED shall not appear in poins-to
30799         solutions.
30800
30801 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30802
30803         PR c/39323
30804         * c-common.c (handle_aligned_attribute): Properly check alignment
30805         overflow.  Use (1U << i) instead of (1 << i).
30806
30807         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
30808
30809         * expr.h (get_mem_align_offset): Updated.
30810
30811         * tree.h (tree_decl_common): Change align to "unsigned int" and
30812         move it before pointer_alias_set.
30813
30814 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30815             Jakub Jelinek  <jakub@redhat.com>
30816
30817         PR target/38034
30818         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
30819         gr_register_operand with gr_reg_or_0_operand.
30820         (cmpxchg_rel_di): Likewise.
30821         (sync_lock_test_and_set<mode>): Likewise.
30822
30823 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30824
30825         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
30826         (true_regnum): Likewise.
30827
30828         * rtlanal.c (subreg_info): Moved to ...
30829         * rtl.h (subreg_info): Here.  New.
30830         (subreg_get_info): New.
30831
30832         * rtlanal.c (subreg_get_info): Make it extern.
30833
30834 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30835
30836         PR target/39472
30837         * config/i386/i386.c (ix86_abi): New.
30838         (override_options): Handle -mabi=.
30839         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
30840         (ix86_call_abi_override): Likewise.
30841         (init_cumulative_args): Likewise.
30842         (function_arg_advance): Likewise.
30843         (function_arg_64): Likewise.
30844         (function_arg): Likewise.
30845         (ix86_pass_by_reference): Likewise.
30846         (ix86_function_value_regno_p): Likewise.
30847         (ix86_build_builtin_va_list_abi): Likewise.
30848         (setup_incoming_varargs_64): Likewise.
30849         (is_va_list_char_pointer): Likewise.
30850         (ix86_init_machine_status): Likewise.
30851         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
30852         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
30853         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
30854         (ix86_function_abi): Make it static and return enum calling_abi.
30855         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
30856         with ix86_abi.
30857         (ix86_fn_abi_va_list): Updated.
30858
30859         * config/i386/i386.h (ix86_abi): New.
30860         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
30861         (CONDITIONAL_REGISTER_USAGE): Likewise.
30862         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
30863         (machine_function): Likewise.
30864
30865         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
30866         with ix86_abi.
30867         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
30868         (STACK_BOUNDARY): Likewise.
30869         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
30870
30871         * config/i386/i386.opt (mabi=): New.
30872
30873         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
30874         return enum calling_abi.
30875         (ix86_function_type_abi): Likewise.
30876         (ix86_function_abi): Removed.
30877
30878         * doc/invoke.texi: Document -mabi= option for x86.
30879
30880 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
30881
30882         * builtins.c (real_dconstp): Delete.
30883         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
30884
30885 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
30886             Jakub Jelinek  <jakub@redhat.com>
30887
30888         PR debug/37959
30889         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
30890         (gen_subprogram_die): When a function is explicit, generate the
30891         DW_AT_explicit attribute.
30892         * langhooks.h (struct lang_hooks_for_decls): Add
30893         function_decl_explicit_p langhook.
30894         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
30895         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
30896
30897 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
30898
30899         * builtins.c (fold_builtin_memory_op): Optimize memmove
30900         into memcpy if we can prove source and destination don't overlap.
30901
30902         * tree-inline.c: Include gt-tree-inline.h.
30903         (clone_fn_id_num): New variable.
30904         (clone_function_name): New function.
30905         (tree_function_versioning): Use it.
30906         * Makefile.in (GTFILES): Add tree-inline.c.
30907
30908 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
30909
30910         * BASE-VER: Change to 4.5.0.
30911
30912 2009-03-27  Xinliang David Li  <davidxl@google.com>
30913
30914         PR tree-optimization/39557
30915         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
30916
30917 2009-03-27  Xinliang David Li  <davidxl@google.com>
30918
30919         PR tree-optimization/39548
30920         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
30921         candidate check.
30922
30923 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30924
30925         * c-common.c (pointer_int_sum): Use %wd on return from
30926         tree_low_cst.
30927
30928 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30929
30930         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
30931         on return from tree_low_cst.
30932
30933 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
30934
30935         PR c++/36799
30936         * ginclude/stdarg.h (va_copy): Define also for
30937         __GXX_EXPERIMENTAL_CXX0X__.
30938
30939 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
30940
30941         PR c++/35652
30942         * builtins.h (c_strlen): Do not warn here.
30943         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
30944         * c-common.c (pointer_int_sum): Take an explicit location.
30945         Warn about offsets out of bounds.
30946         * c-common.h (pointer_int_sum): Adjust declaration.
30947
30948 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30949
30950         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
30951         markup glitch.
30952
30953 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
30954
30955         PR c++/39554
30956         * opts.c (warn_if_disallowed_function_p): Don't assume
30957         get_callee_fndecl must return non-NULL.
30958
30959 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
30960
30961         PR rtl-optimization/39522
30962         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
30963         when reg_reloaded_valid is set.
30964
30965 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30966
30967         * config/spu/divv2df3.c: New file.
30968         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
30969         (DPBIT_FUNCS): Filter out _div_df.
30970
30971 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
30972
30973         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
30974         a jump insn, count that jump in the distance to the loop start.
30975
30976 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
30977
30978         PR target/39523
30979         * config/sh/sh.c (calc_live_regs): Fix condition for global
30980         registers except PIC_OFFSET_TABLE_REGNUM.
30981
30982 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
30983
30984         PR/39518
30985         * doc/invoke.texi (-mconsole): New.
30986         (-mcygwin): New.
30987         (-mno-cygwin): New.
30988         (-mdll): New.
30989         (-mnop-fun-dllimport): New.
30990         (-mthread): New.
30991         (-mwin32): New.
30992         (-mwindows): New.
30993         (sub section "i386 and x86-64 Windows Options"): New.
30994
30995 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
30996
30997         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
30998         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
30999
31000 2009-03-25  Richard Guenther  <rguenther@suse.de>
31001
31002         PR middle-end/39497
31003         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
31004         of -Wno-error.
31005
31006 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
31007
31008         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
31009         neither of haifa/selective schedulers are working.
31010
31011 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31012
31013         * doc/invoke.texi (Debugging Options): Fix description of
31014         -fno-merge-debug-strings.
31015
31016 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
31017
31018         * config/cris/libgcc.ver: New version-script.
31019         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
31020
31021         * configure.ac <GAS features, nop mnemonic>: Add pattern
31022         crisv32-*-* for "nop".
31023         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
31024         * configure: Regenerate.
31025
31026 2009-03-24  Ira Rosen  <irar@il.ibm.com>
31027
31028         PR tree-optimization/39529
31029         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
31030         mark_sym_for_renaming for the tag copied to the new vector
31031         pointer.
31032
31033 2009-03-24  Arthur Loiret  <aloiret@debian.org>
31034
31035         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
31036         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
31037         EXTRA_SPEC_FUNCTIONS.
31038         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
31039         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
31040         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
31041         -march and -mtune options.
31042
31043 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
31044
31045         * config/m68k/t-rtems: Add m5329 multilib.
31046
31047 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
31048             Jakub Jelinek  <jakub@redhat.com>
31049
31050         PR debug/39524
31051         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
31052         nodes.
31053
31054 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
31055
31056         PR c/39495
31057         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
31058         instead of c_parser_expression_conv, if original_code isn't one of the
31059         4 allowed comparison codes, fail.
31060
31061 2009-03-23  Richard Guenther  <rguenther@suse.de>
31062
31063         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
31064         * tree.h (struct tree_type): Likewise.
31065         * reload.h (struct insn_chain): Likewise.
31066         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
31067         * function.h (struct function): Likewise.
31068         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
31069
31070 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
31071
31072         PR tree-optimization/39516
31073         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
31074
31075 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
31076
31077         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
31078         should be set true if BITS_PER_WORD of target is bigger than 32
31079
31080 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
31081
31082         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
31083         Translate -B-options to -rpath-link.  Correct existing
31084         rpath-link and conditionalize on !nostdlib.
31085
31086 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31087
31088         * doc/extend.texi (Function Attributes, Variable Attributes):
31089         Fix typos.
31090         * doc/invoke.texi (Debugging Options, Optimize Options)
31091         (i386 and x86-64 Options, MCore Options): Likewise.
31092
31093 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
31094
31095         PR debug/37890
31096         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
31097         it for block local namespace aliases.
31098         (gen_decl_die): Pass context_die to gen_namespace_die.
31099
31100 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
31101
31102         PR c/39495
31103         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
31104         minimum or maximum value.
31105
31106 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
31107
31108         * reginfo.c (globalize_reg): Recompute derived reg sets.
31109
31110 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
31111
31112         PR target/39063
31113         * libgcc2.c (mprotect): Do not use signed arguments for
31114         VirtualProtect, use DWORD arguments.  Also fix the 'may
31115         be used uninitialized' warning for the np variable.
31116
31117 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
31118
31119         PR target/39496
31120         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
31121         functions using regparm calling conventions when not optimizing.
31122         (ix86_function_sseregparm): Similarly for sseregparm calling
31123         conventions.
31124
31125 2009-03-19  Li Feng  <nemokingdom@gmail.com>
31126
31127         PR middle-end/39500
31128         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
31129         dependence if the first conflict is after niter iterations.
31130
31131 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
31132
31133         PR middle-end/38609
31134         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
31135         functions with dynamic stack-pointer adjustments.
31136
31137 2009-03-19  Ben Elliston  <bje@au.ibm.com>
31138
31139         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
31140         option; change to -msdata=data.
31141
31142 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31143
31144         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
31145         and -fopenmp.
31146
31147 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
31148
31149         PR target/35180
31150         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
31151
31152 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
31153
31154         * doc/invoke.texi (Code Gen Options): Expand discussion of
31155         -fno-common.
31156
31157 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
31158
31159         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
31160         * matrix-reorg.c (struct matrix_info): Likewise.
31161         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
31162         * rtl.h (struct mem_attrs): Likewise.
31163         * df.h (struct df): Likewise.
31164         * tree-data-ref.h (struct data_dependence_relation): Likewise.
31165         * ira-int.h (struct ira_allocno): Likewise.
31166         * df-scan.c (struct df_collection_rec): Likewise.
31167         * ira.c (struct equivalence): Likewise.
31168         * function.c (struct temp_slot): Likewise.
31169         * cfgloop.h (struct loop): Likewise.
31170
31171         PR debug/39485
31172         * function.c (use_register_for_decl): When not optimizing, disregard
31173         register keyword for variables with types containing methods.
31174
31175 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
31176
31177         PR middle-end/39447
31178         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
31179         (is_simple_operand): Call contains_component_ref_p before calling data
31180         reference analysis that would fail on COMPONENT_REFs.
31181
31182         * tree-vrp.c (search_for_addr_array): Fix formatting.
31183
31184 2009-03-18  Richard Guenther  <rguenther@suse.de>
31185
31186         * tree-vect-transform.c (vect_loop_versioning): Fold the
31187         generated comparisons.
31188         * tree-vectorizer.c (set_prologue_iterations): Likewise.
31189         (slpeel_tree_peel_loop_to_edge): Likewise.
31190
31191 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31192
31193         PR middle-end/37805
31194         * opts.c (print_specific_help): In addition to `undocumented',
31195         accept `separate' and `joined' flags if passed alone.  Describe
31196         output by the first matched one of those.
31197         (common_handle_option): Skip over empty strings.
31198         * gcc.c (display_help): Fix help string for `--help='.
31199         * doc/invoke.texi (Option Summary, Overall Options): With
31200         `--help=', classes and qualifiers can both be repeated, but
31201         only the latter can be negated.  One should not pass only
31202         negated qualifiers.  Fix markup and examples.
31203
31204         Revert
31205         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
31206         PR middle-end/37805
31207         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
31208         and -fhelp=separate.
31209
31210 2009-03-17  Jing Yu  <jingyu@google.com>
31211
31212         PR middle-end/39378
31213         * function.h (struct rtl_data): Move is_thunk from here...
31214         (struct function): ...to here.
31215         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
31216         * varasm.c (assemble_start_function): Change is_thunk from crtl to
31217         cfun.
31218         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
31219         cfun.
31220         (alpha_does_function_need_gp, alpha_start_function): Likewise.
31221         (alpha_output_function_end_prologue): Likewise.
31222         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
31223         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
31224         (rs6000_output_function_epilogue): Likewise.
31225         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
31226
31227 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
31228
31229         PR target/39482
31230         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
31231         from different units in a single alternative.
31232         (*truncdfsf_i387): Ditto.
31233         (*truncxfsf2_mixed): Ditto.
31234         (*truncxfdf2_mixed): Ditto.
31235
31236 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
31237
31238         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
31239         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
31240
31241         PR debug/39474
31242         * tree-ssa-live.c (remove_unused_locals): Don't remove local
31243         unused non-artificial variables when not optimizing.
31244
31245         PR debug/39471
31246         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
31247         DW_TAG_imported_module even if decl is IMPORTED_DECL with
31248         NAMESPACE_DECL in its DECL_INITIAL.
31249
31250         PR middle-end/39443
31251         * optabs.c (set_user_assembler_libfunc): New function.
31252         * expr.h (set_user_assembler_libfunc): New prototype.
31253         * c-common.c: Include libfuncs.h.
31254         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
31255         for memcmp, memset, memcpy, memmove and abort.
31256         * Makefile.in (c-common.o): Depend on libfuncs.h.
31257
31258         PR debug/39412
31259         * dwarf2out.c (gen_inlined_enumeration_type_die,
31260         gen_inlined_structure_type_die, gen_inlined_union_type_die,
31261         gen_tagged_type_instantiation_die): Removed.
31262         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
31263         do nothing.
31264
31265 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
31266
31267         PR testsuite/38526
31268         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
31269         its use.
31270         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
31271         (check-parallel-%): Ditto.
31272         (check-consistency): Ditto.
31273
31274 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
31275
31276         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
31277         local variable rhs by NULL_TREE.
31278
31279 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
31280
31281         PR target/39477
31282         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
31283
31284 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
31285
31286         PR target/39476
31287         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
31288
31289 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
31290
31291         PR target/39473
31292         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
31293         for ms->sysv ABI calls only in 64bit mode.
31294
31295         * config/i386/i386.md (untyped_call): Support 32bit.
31296
31297 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
31298
31299         * doc/extend.texi: Replace x86_65 with x86_64.
31300
31301 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
31302
31303         PR tree-optimization/39455
31304         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
31305         mismatches for POINTER_TYPE_P (type).
31306         (number_of_iterations_le): Likewise.
31307
31308 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
31309
31310         * config/picochip/picochip.c: Removed profiling support.
31311         * config/picochip/picochip.md: Removed profiling instruction.
31312         * config/picochip/picochip.h: Removed profiling builtin.
31313
31314 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
31315
31316         * doc/install.texi (--with-host-libstdcxx): Document.
31317
31318 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
31319
31320         PR target/34299
31321         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
31322         generate a warning if the function name does not begin with
31323         "__vector" and the function has either the 'signal' or 'interrupt'
31324         attribute, from here to ...
31325         (avr_declare_function_name): ...here. New function.
31326         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
31327         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
31328
31329 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
31330
31331         PR bootstrap/39454
31332         * cse.c (fold_rtx): Don't modify original const_arg1 when
31333         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
31334         separate variable instead.
31335         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
31336         from out of range shift counts.
31337         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
31338
31339 2009-03-13  Catherine Moore  <clm@codesourcery.com>
31340
31341         * config/i386/x-mingw32 (host-mingw32.o): Replace
31342         diagnostic.h with $(DIAGNOSTIC_H).
31343
31344 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
31345
31346         PR target/39431
31347         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
31348         predicate.
31349         * config/i386/sync.md (sync_compare_and_swap<mode>,
31350         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
31351         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
31352         into a register.
31353         (sync_double_compare_and_swapdi_pic,
31354         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
31355         cmpxchg8b_pic_memory_operand instead of just memory_operand.
31356
31357 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
31358
31359         PR target/39445
31360         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
31361
31362 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
31363
31364         PR target/39327
31365         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
31366         (avx_addsubv4df3): Likewise.
31367         (*avx_addsubv4sf3): Likewise.
31368         (sse3_addsubv4sf3): Likewise.
31369
31370 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
31371
31372         PR target/38824
31373         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
31374
31375 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
31376
31377         PR debug/39432
31378         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
31379         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
31380         registers for allocnos created from user-defined variables.
31381
31382 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31383
31384         PR target/39181
31385         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
31386         of non-integer mode as well.
31387
31388 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
31389
31390         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
31391         for functions for which the parameter types are unknown.
31392
31393 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
31394
31395         PR target/39137
31396         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
31397         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
31398         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
31399         * config/i386/i386.c (ix86_local_alignment): For
31400         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
31401         long long variables on the stack to avoid dynamic realignment.
31402         Allow the first argument to be a decl rather than type.
31403         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
31404
31405 2009-03-11  Nick Clifton  <nickc@redhat.com>
31406
31407         PR target/5362
31408         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
31409         options.
31410         Add description to mno-lsim option.
31411         * config/mcore/mcore.h: Remove comment about deprecated m4align
31412         option.
31413         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
31414         * doc/invoke.texi: Add description of mno-lsim and
31415         mstack-increment options.
31416
31417         * config/fr30/fr30.opt: Document the -mno-lsim option.
31418         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
31419         and -mno-lsim options.
31420
31421 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31422
31423         * fold-const.c (fold_comparison): Only call fold_inf_compare
31424         if the mode supports infinities.
31425
31426 2009-03-11  Jason Merrill  <jason@redhat.com>
31427
31428         PR debug/39086
31429         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
31430         end already did.  Notice GIMPLE_CALL modifications of the result.
31431         Don't copy debug information from an ignored decl or a decl from
31432         another function.
31433
31434 2009-03-10  Richard Guenther  <rguenther@suse.de>
31435             Nathan Froyd  <froydnj@codesourcery.com>
31436
31437         PR middle-end/37850
31438         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
31439         (__divMODE3): Likewise.
31440
31441 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
31442
31443         PR tree-optimization/39394
31444         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
31445         DECL_SIZE_UNIT of variable length FIELD_DECLs.
31446
31447 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31448
31449         * recog.c (verfiy_changes): Disallow renaming of hard regs in
31450         inline asms for register asm ("") declarations.
31451
31452 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
31453
31454         * fold-const.c (fold_unary): Fix comment.
31455
31456 2009-03-07  Jan Hubicka  <jh@suse.cz>
31457
31458         PR target/39361
31459         * tree-inline.c (setup_one_parameter): Do replacement of const
31460         argument by constant in SSA form.
31461
31462 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31463
31464         PR middle-end/38028
31465         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
31466         determine alignment passed to assign_stack_local.
31467         (assign_parms_unsplit_complex): Likewise.
31468         * except.c (sjlj_build_landing_pads): Likewise.
31469
31470 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
31471
31472         PR middle-end/39360
31473         * tree-flow.h (add_referenced_var): Return bool instead of void.
31474         * tree-dfa.c (add_referenced_var): Return result of
31475         referenced_var_check_and_insert call.
31476         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
31477         of referenced_var_check_and_insert.
31478
31479         PR debug/39372
31480         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
31481         (gen_variable_die): Emit DW_AT_location on abstract static variable's
31482         DIE, don't emit it if abstract origin already has it.
31483         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
31484         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
31485
31486 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
31487
31488         * genpreds.c (needs_variable): Fix parentheses at variable name
31489         detection.
31490         (write_tm_constrs_h): Indent generated code.
31491
31492 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31493
31494         * doc/extend.texi (Function Attributes): Add documentation
31495         for isr attributes.
31496
31497 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
31498
31499         PR debug/39387
31500         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
31501         take locus from its DECL_SOURCE_LOCATION instead of input_location.
31502
31503 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
31504
31505         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
31506         the loop as bad.
31507
31508 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
31509
31510         PR debug/39379
31511         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
31512         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
31513
31514 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
31515
31516         * config/i386/i386.md (R8_REG, R9_REG): New constants.
31517         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
31518         constants instead of magic numbers.
31519         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
31520         (QI_REG_P): Ditto.
31521         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
31522         (x86_64_ms_abi_int_parameter_registers): Ditto.
31523         (x86_64_int_return_registers): Ditto.
31524         (ix86_maybe_switch_abi): Ditto.
31525         (ix86_expand_call): Ditto for clobbered_registers array.
31526         (ix86_hard_regno_mode_ok): Ditto.
31527         (x86_extended_QIreg_mentioned_p): Ditto.
31528
31529 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
31530
31531         PR tree-optimization/39349
31532         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
31533
31534         * combine.c (gen_lowpart_for_combine): Use omode when generating
31535         clobber.
31536
31537 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
31538
31539         PR rtl-optimization/39235
31540         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
31541
31542 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
31543
31544         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
31545
31546 2009-03-04  Richard Guenther  <rguenther@suse.de>
31547
31548         PR tree-optimization/39362
31549         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
31550         that occur in abnormal PHIs should be varying.
31551
31552 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
31553
31554         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
31555         Extend comments.
31556         (simple_iv):  Take loop as an argument instead of statement.
31557         * tree-scalar-evolution.h (simple_iv): Declaration changed.
31558         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
31559         to simple_iv.
31560         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
31561         Ditto.
31562         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
31563         * matrix-reorg.c (analyze_transpose): Ditto.
31564         * tree-data-ref.c (dr_analyze_innermost): Ditto.
31565         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
31566         * tree-predcom.c (ref_at_iteration): Ditto.
31567         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
31568
31569 2009-03-04  Richard Guenther  <rguenther@suse.de>
31570
31571         PR tree-optimization/39358
31572         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
31573         escaped_id and callused_id.
31574         (solve_graph): Likewise.
31575
31576 2009-03-04  Richard Guenther  <rguenther@suse.de>
31577
31578         PR tree-optimization/39339
31579         * tree-sra.c (try_instantiate_multiple_fields): Make it
31580         no longer ICE on the above.
31581
31582 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
31583
31584         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
31585         that fits within Pmode.
31586
31587 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
31588
31589         PR middle-end/10109
31590         * tm.texi (LIBCALL_VALUE): Update description.
31591
31592 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
31593
31594         PR middle-end/34443
31595         * doc/extend.texi (section): Update description.
31596
31597 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
31598
31599         PR middle-end/39345
31600         * tree-inline.c (remapped_type): New.
31601         (can_be_nonlocal): Call remapped_type instead of remap_type.
31602
31603 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
31604
31605         PR fortran/39354
31606         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
31607         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
31608
31609 2009-03-03  Richard Guenther  <rguenther@suse.de>
31610
31611         PR middle-end/39272
31612         * tree.c (tree_nonartificial_location): New function.
31613         * tree.h (tree_nonartificial_location): Declare.
31614         * builtins.c (expand_builtin_memory_chk): Provide location
31615         of the call location for artificial function pieces.
31616         (maybe_emit_chk_warning): Likewise.
31617         (maybe_emit_sprintf_chk_warning): Likewise.
31618         (maybe_emit_free_warning): Likewise.
31619         * expr.c (expand_expr_real_1): Likewise.
31620
31621 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
31622
31623         PR tree-optimization/39343
31624         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
31625         COMPONENT_REF t has ARRAY_TYPE.
31626
31627 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
31628
31629         PR middle-end/39335
31630         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
31631         when the type precision of the induction variable should be
31632         larger than the type precision of nit.
31633         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
31634         * graphite.c (graphite_loop_normal_form): Same.
31635         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
31636
31637 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
31638
31639         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
31640         (*call_1_rex64_ms_sysv): Use named constants instead of magic
31641         numbers to describe clobbered registers.
31642         (*call_value_0_rex64_ms_sysv): Ditto.
31643         * config/i386/mmx.md (mmx_emms): Ditto.
31644         (mmx_femms): Ditto.
31645
31646 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
31647
31648         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
31649         of ABI_64.
31650
31651 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31652
31653         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
31654         (spu_section_type_flags): New function.
31655
31656 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
31657
31658         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
31659         reg_class_contents of FLOAT_REGS into a temporary.
31660
31661 2009-03-02  Richard Guenther  <rguenther@suse.de>
31662             Ira Rosen  <irar@il.ibm.com>
31663
31664         PR tree-optimization/39318
31665         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
31666         information to the vectorized statement.
31667
31668 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
31669
31670         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
31671         variable.  Use defined names instead of magic constants for REX SSE
31672         registers.
31673
31674 2009-03-01  Richard Guenther  <rguenther@suse.de>
31675
31676         PR tree-optimization/39331
31677         * omp-low.c (lower_send_shared_vars): Do not receive new
31678         values for the reference of DECL_BY_REFERENCE parms or results.
31679
31680 2009-03-01  Jan Hubicka  <jh@suse.cz>
31681
31682         PR debug/39267
31683         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
31684         BLOCK_NONLOCALIZED_VAR): New macros.
31685         (tree_block): Add nonlocalized_vars.
31686         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
31687         gen_decl_die): Add origin argument.  Allow generation of die with
31688         origin at hand only.
31689         (gen_member_die, gen_type_die_with_usage, force_decl_die,
31690         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
31691         of gen_*.
31692         (gen_block_die): Fix checking for unused blocks.
31693         (process_scope_var): Break out from .... ; work with origins only.
31694         (decls_for_scope) ... here; process nonlocalized list.
31695         (dwarf2out_ignore_block): Look for nonlocalized vars.
31696         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
31697         vars.
31698         (dump_scope_block): Dump them.
31699         * tree-inline.c (remap_decls): Handle nonlocalized vars.
31700         (remap_block): Likewise.
31701         (can_be_nonlocal): New predicate.
31702         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
31703
31704 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31705
31706         * configure: Regenerate.
31707
31708 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31709
31710         * optc-gen.awk: No need to duplicate option flags twice.
31711         Reuse help texts for duplicate options which do not have any.
31712
31713         * gcc.c (display_help): Document --version.
31714
31715         * gcc.c (main): If print_help_list and verbose_flag, ensure
31716         driver output comes before subprocess output.
31717
31718         * optc-gen.awk: Assign all remaining fields to help string,
31719         space-separated, for multi-line help in *.opt.
31720
31721         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
31722         -Wno-pedantic-ms-format is for MinGW targets only.
31723
31724         * doc/options.texi (Option file format): Fix bad indentation,
31725         restoring dropped sentence.
31726
31727 2009-02-28  Jan Hubicka  <jh@suse.cz>
31728
31729         * tree-inline.c (tree_function_versioning): Output debug info.
31730
31731 2009-02-28  Jan Hubicka  <jh@suse.cz>
31732
31733         PR debug/39267
31734         * tree-inline.c (setup_one_parameter): Do not copy propagate
31735         arguments when not optimizing.
31736
31737 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
31738
31739         PR target/39327
31740         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
31741         (avx_addsubv4df3): Likewise.
31742         (*avx_addsubv4sf3): Likewise.
31743         (sse3_addsubv4sf3): Likewise.
31744         (*avx_addsubv2df3): Likewise.
31745         (sse3_addsubv2df3): Likewise.
31746         (avx_unpckhps256): Correct item selectors.
31747         (avx_unpcklps256): Likewise.
31748         (avx_unpckhpd256): Likewise.
31749         (avx_unpcklpd256): Likewise.
31750
31751 2009-02-28  Jan Hubicka  <jh@suse.cz>
31752
31753         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
31754         static vars.
31755         (copy_arguments_for_versioning): If var is declared don't declare it.
31756         (tree_function_versioning): First setup substitutions and then copy
31757         args.
31758
31759 2009-02-27  Jan Hubicka  <jh@suse.cz>
31760
31761         PR debug/39267
31762         * cgraph.h (varpool_output_debug_info): Remove.
31763         * cgraphunit.c (varpool_output_debug_info): Remove.
31764         * dwarf2out.c (deferred_locations_struct): New struct
31765         (deferred_locations): New type.
31766         (deferred_locations_list): New static var.
31767         (deffer_location): New function.
31768         (gen_variable_die): Use it.
31769         (decls_for_scope): Output info on local static vars.
31770         (dwarf2out_finish): Process deferred locations.
31771         * varpool.c (varpool_output_debug_info): Remove.
31772
31773 2009-02-27  Jan Hubicka  <jh@suse.cz>
31774
31775         PR debug/39267
31776         * tree.h (TREE_PROTECTED): Fix comment.
31777         (BLOCK_HANDLER_BLOCK): Remove.
31778         (struct tree_block): Remove handler_block add body_block.
31779         (inlined_function_outer_scope_p): New.
31780         (is_body_block): Remove.
31781         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
31782         * dwarf2out.c (is_inlined_entry_point): Remove.
31783         (add_high_low_attributes): Use inlined_function_outer_scope_p.
31784         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
31785         code.
31786         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
31787         * gimplify.c (gimplify_expr): Gimplify body blocks.
31788         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
31789         block with multiple subblocks.
31790         (dump_scope_block): Prettier output; dump more flags and info.
31791         (dump_scope_blocks): New.
31792         (remove_unused_locals): Use dump_scope_blocks.
31793         * tree-flow.h (dump_scope_blocks): Declare.
31794         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
31795         * stmt.c (is_body_block): Remove.
31796         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
31797         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
31798
31799 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
31800
31801         PR middle-end/39308
31802         * graphite.c (graphite_loop_normal_form): Do not call
31803         number_of_iterations_exit from a gcc_assert.
31804
31805 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31806
31807         * config/s390/s390.c (s390_swap_cmp): Look for conditional
31808         jumps if COND is NULL.
31809         (find_cond_jump): New function.
31810         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
31811         * config/s390/s390.md: Remove z10_cobra attribute value.
31812
31813 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
31814
31815         * config/alpha/alpha.h (alpha_expand_mov): Return false if
31816         force_const_mem returns NULL_RTX.
31817
31818 2009-02-26  Jan Hubicka  <jh@suse.cz>
31819
31820         PR debug/39267
31821         * cgraph.h (varpool_output_debug_info): Remove.
31822         * cgraphunit.c (varpool_output_debug_info): Remove.
31823         * dwarf2out.c (deferred_locations_struct): New struct
31824         (deferred_locations): New type.
31825         (deferred_locations_list): New static var.
31826         (deffer_location): New function.
31827         (gen_variable_die): Use it.
31828         (decls_for_scope): Output info on local static vars.
31829         (dwarf2out_finish): Process deferred locations.
31830         * varpool.c (varpool_output_debug_info): Remove.
31831
31832 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
31833
31834         PR rtl-optimization/39241
31835         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
31836         to subreg_offset_representable_p.
31837
31838 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
31839
31840         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
31841         execute function prototype.  Get f and nregs from max_reg_num
31842         and get_insns.  Remove the first backward pass as it's dead,
31843         guard the forward pass by flag_expensive_optimizations.
31844         (rest_of_handle_regmove): Delete.
31845         (pass_regmove): Replace it with regmove_optimize.
31846
31847 2009-02-25  Martin Jambor  <mjambor@suse.cz>
31848
31849         PR tree-optimization/39259
31850         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
31851         calls_alloca function flags.
31852         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
31853         calls are detected.
31854
31855 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
31856
31857         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
31858         flags_set_1_rtx, flags_set_1_set): Delete.
31859         (regmove_optimize): Do not call mark_flags_life_zones.
31860
31861 2009-02-24  Julian Brown  <julian@codesourcery.com>
31862
31863         PR target/35965
31864         * config/arm/arm.c (require_pic_register): Only set
31865         cfun->machine->pic_reg once per function.
31866
31867 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
31868
31869         * doc/invoke.texi (Link Options): Document an easier way to pass
31870         options that take arguments to the GNU linker using -Xlinker and -Wl.
31871
31872 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
31873
31874         PR target/33785
31875         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
31876
31877 2009-02-24  Richard Guenther  <rguenther@suse.de>
31878
31879         PR debug/39285
31880         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
31881
31882 2009-02-24  Richard Guenther  <rguenther@suse.de>
31883             Zdenek Dvorak  <ook@ucw.cz>
31884
31885         PR tree-optimization/39233
31886         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
31887         from converting them to a generic type.
31888
31889 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
31890
31891         PR tree-optimization/39260
31892         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
31893         contains a condition with a real type.
31894         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
31895
31896 2009-02-23  Jason Merrill  <jason@redhat.com>
31897
31898         PR c++/38880
31899         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
31900         narrowing_initializer_constant_valid_p.
31901         (narrowing_initializer_constant_valid_p): Don't return
31902         null_pointer_node for adding a pointer to itself.
31903
31904 2009-02-23  Jan Hubicka  <jh@suse.cz>
31905
31906         PR c/12245
31907         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
31908         resizing.
31909
31910 2009-02-23  Jan Hubicka  <jh@suse.cz>
31911
31912         PR tree-optimization/37709
31913         * tree.c (block_ultimate_origin): Move here from dwarf2out.
31914         * tree.h (block_ultimate_origin): Declare.
31915         * dwarf2out.c (block_ultimate_origin): Move to tree.c
31916         * tree-ssa-live.c (remove_unused_scope_block_p):
31917         Eliminate blocks containig no instructions nor live variables nor
31918         nested blocks.
31919         (dump_scope_block): New function.
31920         (remove_unused_locals): Enable removal of dead blocks by default;
31921         enable dumping at TDF_DETAILS.
31922
31923 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
31924
31925         * config/i386/i386.c (classify_argument): Don't allow COImode
31926         and OImode.
31927         (function_arg_advance_32): Don't allow OImode.
31928         (function_arg_32): Likewise.
31929         (function_value_32): Likewise.
31930         (return_in_memory_32): Likewise.
31931         (function_arg_64): Remove OImode comment.
31932
31933 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
31934
31935         PR target/39261
31936         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
31937         ix86_expand_vector_set for V4DImode in 64bit mode only.
31938         (ix86_expand_vector_init_one_var): Likewise.
31939
31940 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
31941
31942         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
31943
31944 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
31945
31946         PR bootstrap/39257
31947         * loop-iv.c: Revert last change.
31948         * emit-rtl.c: Likewise.
31949
31950 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
31951
31952         PR target/39256
31953         * config/i386/i386.c (type_natural_mode): Remove an extra
31954         space in the warning message.
31955         (function_value_32): Handle 32-byte vector modes.
31956         (return_in_memory_32): Likewise.
31957
31958 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
31959
31960         * loop-iv.c (truncate_value): New function.
31961         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
31962         of lowpart_subreg.
31963         (lowpart_subreg): Move to...
31964         * emit-rtl.c: ...here.
31965
31966 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
31967
31968         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
31969         accidental and undocumented change at revision 140860.
31970
31971 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
31972
31973         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
31974         take gimple_seq * arguments.
31975         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
31976         types_compatible_p langhook.
31977
31978 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
31979             Joseph Myers  <joseph@codesourcery.com>
31980
31981         * config/arm/arm.c (arm_builtin_va_list): New function.
31982         (arm_expand_builtin_va_start): Likewise.
31983         (arm_gimplify_va_arg_expr): Likewise.
31984         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
31985         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
31986         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
31987         (va_list_type): New variable.
31988         (arm_mangle_type): Mangle va_list_type appropriately.
31989
31990 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
31991
31992         PR middle-end/39157
31993         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
31994         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
31995         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
31996         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
31997         parameter to 1000 for -O1 by default.
31998         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
31999         parameter.
32000         * loop-invariant.c: Include params.h.
32001         (move_loop_invariants): Don't call move_single_loop_invariants on
32002         very large loops.
32003
32004 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
32005
32006         * calls.c (emit_library_call_value_1): Use slot_offset instead of
32007         offset when calculating bounds for indexing stack_usage_map.  Fixes
32008         a buffer overflow with certain target setups.
32009
32010 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
32011
32012         PR target/39240
32013         * calls.c (expand_call): Clear try_tail_call if caller and callee
32014         disagree in promotion of function return value.
32015
32016 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
32017
32018         PR target/39175
32019         * c-common.c (c_determine_visibility): If visibility changed and
32020         DECL_RTL has been already set, call make_decl_rtl to update symbol
32021         flags.
32022
32023 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
32024
32025         PR c++/39188
32026         * varasm.c (assemble_variable): Don't check DECL_NAME when
32027         globalizing a variable.
32028
32029 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
32030
32031         PR c/38483
32032         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
32033         expression before any __builtin_trap call.
32034         * c-typeck.c (build_function_call): Convert and check function
32035         arguments before generating a call to a trap.  Evaluate the
32036         function arguments before the trap.
32037
32038 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
32039
32040         PR target/39228
32041         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
32042         (UNSPEC_FXAM_MEM): New unspec.
32043         (fxam<mode>2_i387_with_temp): New insn and split pattern.
32044         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
32045         memory using fxam<mode>2_i387_with_temp to remove excess precision.
32046
32047 2009-02-19  Richard Guenther  <rguenther@suse.de>
32048
32049         PR tree-optimization/39207
32050         PR tree-optimization/39074
32051         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
32052         storedanything_tree): New.
32053         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
32054         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
32055         (build_succ_graph): Add edges from STOREDANYTHING to all
32056         non-direct nodes.
32057         (init_base_vars): Initialize STOREDANYTHING.
32058         (compute_points_to_sets): Free substitution info after
32059         building the succ graph.
32060         (ipa_pta_execute): Likewise.
32061
32062         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
32063         field.
32064         (do_ds_constraint): Do not add to special var or non-pointer
32065         field solutions.
32066         (type_could_have_pointers): Split out from ...
32067         (could_have_pointers): ... here.  For arrays use the element type.
32068         (create_variable_info_for): Initialize may_have_pointers.
32069         (new_var_info): Likewise.
32070         (handle_lhs_call): Make the HEAP variable unknown-sized.
32071         (intra_create_variable_infos): Use a type with pointers for
32072         PARM_NOALIAS, make it unknown-sized.
32073
32074 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
32075
32076         PR target/39224
32077         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
32078
32079 2009-02-18  Jason Merrill  <jason@redhat.com>
32080
32081         PR target/39179
32082         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
32083         value if DECL_EXTERNAL.
32084         * tree-sra.c (sra_walk_gimple_assign): Likewise.
32085         * target.h (gcc_target::binds_local_p): Clarify "module".
32086         * tree.h (TREE_PUBLIC): Clarify "module".
32087
32088 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
32089
32090         PR target/38891
32091         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
32092         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
32093
32094 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
32095
32096         PR target/39082
32097         * c.opt (Wabi): Support C and ObjC.
32098         (Wpsabi): New.
32099
32100         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
32101
32102         * config/i386/i386.c (classify_argument): Warn once about the ABI
32103         change when passing union with long double.
32104
32105         * doc/invoke.texi: Update -Wabi for warning psABI changes.
32106
32107 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
32108
32109         PR c/35447
32110         * c-parser.c (c_parser_compound_statement): Always enter and leave
32111         a scope.
32112
32113 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32114
32115         PR target/34587
32116         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
32117
32118 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
32119
32120         PR tree-optimization/36922
32121         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
32122         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
32123         Likewise.
32124
32125 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
32126
32127         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
32128         to 0 for EABI64.
32129
32130 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
32131
32132         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
32133
32134 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
32135
32136         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
32137         tree sharing.
32138
32139 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
32140             Richard Sandiford  <rdsandiford@googlemail.com>
32141
32142         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
32143         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
32144         (loongson_biadd): ...this.
32145
32146 2009-02-17  Richard Guenther  <rguenther@suse.de>
32147
32148         PR tree-optimization/39202
32149         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
32150         a var make sure to follow existing collapses.
32151
32152 2009-02-17  Richard Guenther  <rguenther@suse.de>
32153
32154         PR middle-end/39214
32155         * langhooks.c (lhd_print_error_function): Check for NULL block.
32156
32157 2009-02-17  Richard Guenther  <rguenther@suse.de>
32158
32159         PR tree-optimization/39204
32160         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
32161         of the PHI arg.
32162
32163 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
32164
32165         * config/soft-fp/double.h: Update from glibc CVS.
32166
32167 2009-02-17  Richard Guenther  <rguenther@suse.de>
32168
32169         PR tree-optimization/39207
32170         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
32171         strict-aliasing warnings for pointers pointing to NULL.
32172
32173 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
32174
32175         PR c/35446
32176         * c-parser.c (c_parser_braced_init): Call pop_init_level when
32177         skipping until next close brace.
32178
32179 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
32180
32181         PR target/37049
32182         * config/i386/i386.c (ix86_expand_push): Set memory alignment
32183         to function argument boundary.
32184
32185 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
32186
32187         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
32188         in the lea_add. Reload eventually constraints it properly.
32189         * config/picochip/constraints.md: Remove the target constraint
32190         "b", since it is not needed anymore.
32191
32192 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
32193
32194         * gthr-dce.h: Uglify function parameter and local variable names.
32195         * gthr-gnat.h: Likewise.
32196         * gthr-mipssde.h: Likewise.
32197         * gthr-nks.h: Likewise.
32198         * gthr-posix95.h: Likewise.
32199         * gthr-posix.h: Likewise.
32200         * gthr-rtems.h: Likewise.
32201         * gthr-single.h: Likewise.
32202         * gthr-solaris.h: Likewise.
32203         * gthr-tpf.h: Likewise.
32204         * gthr-vxworks.h: Likewise.
32205         * gthr-win32.h: Likewise.
32206
32207 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
32208
32209         PR target/39196
32210         * config/i386/i386.md: Restrict the new peephole2 to move
32211         between MMX/SSE registers.
32212
32213 2009-02-15  Richard Guenther  <rguenther@suse.de>
32214
32215         Revert
32216         2009-02-13  Richard Guenther  <rguenther@suse.de>
32217
32218         * configure.ac: Enable LFS.
32219         * configure: Re-generate.
32220         * config.in: Likewise.
32221
32222 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32223
32224         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
32225         spu_srqwbyte, spu_srqwbytebc): Define.
32226         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
32227         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
32228         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
32229         "shrqby_<mode>"): New insn-and-split patterns.
32230         * config/spu/spu.c (expand_builtin_args): Determine and return
32231         number of operands using spu_builtin_description data.
32232         (spu_expand_builtin_1): Use it.
32233
32234 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
32235
32236         PR target/38056
32237         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
32238         TARGET_CONST_GP.
32239
32240 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
32241
32242         PR target/39149
32243         * config/i386/i386.c (override_options): Correct warning
32244         messages for -malign-loops, -malign-jumps and -malign-functions.
32245
32246 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
32247
32248         PR target/39152
32249         * config/i386/i386.md: Restrict the new peephole2 to move
32250         between the general purpose registers.
32251
32252 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
32253
32254         PR target/39162
32255         * config/i386/i386.c (type_natural_mode): Add a new argument.
32256         Return the original mode and warn ABI change if vector size is 32byte.
32257         (function_arg_advance): Updated.
32258         (function_arg): Likewise.
32259         (ix86_function_value): Likewise.
32260         (ix86_return_in_memory): Likewise.
32261         (ix86_sol10_return_in_memory): Likewise.
32262         (ix86_gimplify_va_arg): Likewise.
32263         (function_arg_32): Don't warn ABX ABI change here.
32264         (function_arg_64): Likewise.
32265
32266 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
32267
32268         * loop-iv.c (implies_p): In the final case, test that operands 0
32269         of the two comparisons match.
32270
32271         * config/bfin/bfin.c (find_prev_insn_start): New function.
32272         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
32273         (find_next_insn_start): Move.
32274
32275 2009-02-13  Richard Guenther  <rguenther@suse.de>
32276
32277         * configure.ac: Enable LFS.
32278         * configure: Re-generate.
32279         * config.in: Likewise.
32280
32281 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
32282
32283         PR c/35444
32284         * c-parser.c (c_parser_parms_list_declarator): Discard pending
32285         sizes on syntax error after some arguments have been parsed.
32286
32287 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
32288
32289         * doc/invoke.texi (-fira): Remove.
32290
32291 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
32292
32293         * caller-save.c: Replace regclass.c with reginfo.c in comments.
32294         * recog.c: Likewise.
32295         * rtl.h: Likewise.
32296
32297 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
32298
32299         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
32300         (umul_ppmm): Likewise.
32301         (count_leading_zeros): Likewise.
32302         (count_trailing_zeros): Likewise.
32303         (UMUL_TIME): Likewise.
32304
32305 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
32306
32307         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
32308         soft-fp/t-softfp to tmake_file.
32309
32310         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
32311         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
32312         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
32313         IA64_BUILTIN_INFQ]: New.
32314         (ia64_init_builtins): Initialize __builtin_infq,
32315         __builtin_fabsq and __builtin_copysignq if not HPUX.
32316         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
32317         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
32318
32319         * config/ia64/lib1funcs.asm (__divtf3): Define only if
32320         SHARED is defined.
32321         (__fixtfti): Likewise.
32322         (__fixunstfti): Likewise.
32323         (__floattitf): Likewise.
32324
32325         * config/ia64/libgcc-glibc.ver: New.
32326         * config/ia64/t-fprules-softfp: Likewise.
32327         * config/ia64/sfp-machine.h: Likewise.
32328
32329         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
32330         (LIBGCC2_TF_CEXT): Likewise.
32331         (TF_SIZE): Likewise.
32332         (TARGET_INIT_LIBFUNCS): Likewise.
32333
32334         * config/ia64/t-glibc (SHLINB_MAPFILES):
32335         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
32336
32337 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
32338
32339         * config/i386/i386.c (construct_container): Rewrite processing
32340         BLKmode with X86_64_SSE_CLASS.
32341
32342 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
32343
32344         PR target/39152
32345         * config/i386/i386.md: Replace simplify_replace_rtx with
32346         replace_rtx in the new peephole2.
32347
32348 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
32349
32350         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
32351         loop unrolling do not happen at -O2.
32352
32353 2009-02-12  Michael Matz  <matz@suse.de>
32354
32355         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
32356
32357 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
32358
32359         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
32360         for -g3.
32361
32362 2009-02-12  Ben Elliston  <bje@au.ibm.com>
32363
32364         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
32365         patterns when updating the back chain.  Missed in the 2009-02-10
32366         change.
32367
32368 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
32369
32370         * doc/extend.texi (Decimal Floating Types): Update identifier of
32371         draft TR and list of missing support.
32372
32373 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
32374
32375         PR middle-end/39154
32376         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
32377         bit to variable length decl's flags, add it also to its
32378         pointer replacement variable.
32379
32380 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
32381             Jakub Jelinek  <jakub@redhat.com>
32382
32383         PR target/39118
32384         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
32385         (memory_blockage): New expander.
32386         (*memory_blockage): New insn pattern.
32387         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
32388         instead of general blockage at the end of function prologue when
32389         frame pointer is used to access red zone area.  Do not emit blockage
32390         when profiling, it is emitted in generic code.
32391         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
32392         function epilogue when frame pointer is used to access red zone area.
32393
32394 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
32395
32396         PR target/38824
32397         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
32398         by arithmetic with memory operands.
32399         * config/i386/predicates.md (commutative_operator): New.
32400
32401 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
32402
32403         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
32404         bulleted lists.
32405
32406 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
32407
32408         * alias.h (record_alias_subset): Declare.
32409         * alias.c (record_alias_subset): Make global.
32410
32411 2009-02-10  Nick Clifton  <nickc@redhat.com>
32412
32413         * tree-parloops.c: Change license to GPLv3.
32414         * ipa-struct-reorg.c: Change license to GPLv3.
32415         * ipa-struct-reorg.h: Change license to GPLv3.
32416
32417 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
32418
32419         PR c/39084
32420         * c-decl.c (start_struct): Return NULL on error.
32421
32422 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
32423
32424         PR middle-end/39124
32425         * cfgloopmanip.c (remove_path): Call remove_bbs after
32426         cancel_loop_tree, not before it.
32427
32428         PR target/39139
32429         * function.h (struct function): Add has_local_explicit_reg_vars bit.
32430         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
32431         VAR_DECLs were seen.
32432         * tree-ssa-live.c (remove_unused_locals): Recompute
32433         cfun->has_local_explicit_reg_vars.
32434         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
32435         copies or clearings if cfun->has_local_explicit_reg_vars.
32436
32437 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
32438
32439         PR target/39118
32440         * config/i386/i386.c (expand_prologue): Emit blockage at the end
32441         of function prologue when frame pointer is used to access
32442         red zone area.
32443
32444 2009-02-10  Richard Guenther  <rguenther@suse.de>
32445
32446         PR middle-end/39127
32447         * gimplify.c (gimple_regimplify_operands): Always look if
32448         we need to create a temporary.
32449
32450 2009-02-10  Richard Guenther  <rguenther@suse.de>
32451
32452         PR tree-optimization/39132
32453         * tree-loop-distribution.c (todo): New global var.
32454         (generate_memset_zero): Trigger TODO_rebuild_alias.
32455         (tree_loop_distribution): Return todo.
32456
32457 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
32458
32459         PR target/39119
32460         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
32461         (x86_64_reg_class_name): Removed.
32462         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
32463         first one isn't X86_64_SSE_CLASS or any other ones aren't
32464         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
32465         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
32466         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
32467         and 3 X86_64_SSEUP_CLASS.
32468         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
32469         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
32470
32471 2009-02-10  Ben Elliston  <bje@au.ibm.com>
32472
32473         * config/rs6000/rs6000.md (allocate_stack): Always use an update
32474         form instruction to update the stack back chain word, even if the
32475         user has disabled the generation of update instructions.
32476         (movdi_<mode>_update_stack): New.
32477         (movsi_update_stack): Likewise.
32478         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
32479         always use an update form instruction to update the stack back
32480         chain word.
32481
32482 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
32483
32484         PR middle-end/38953
32485         * graphite.c (if_region_set_false_region): After moving a region in
32486         the false branch of a condition, remove the empty dummy basic block.
32487         (gloog): Remove wrong fix for PR38953.
32488
32489 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32490
32491         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
32492         generation due to implicit sign extension.
32493
32494 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
32495
32496         PR middle-end/38981
32497         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
32498         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
32499
32500 2009-02-09  Richard Guenther  <rguenther@suse.de>
32501
32502         PR middle-end/35202
32503         * convert.c (convert_to_real): Disable (float)fn((double)x)
32504         to fnf(x) conversion if errno differences may occur and
32505         -fmath-errno is set.
32506
32507 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
32508
32509         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
32510         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
32511         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
32512
32513 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
32514
32515         PR c/35434
32516         * c-common.c (handle_alias_attribute): Disallow attribute for
32517         anything not a FUNCTION_DECL or VAR_DECL.
32518
32519 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
32520
32521         PR c/39035
32522         * real.c (do_compare): Special-case compare of zero against
32523         decimal float value.
32524
32525 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
32526
32527         PR c/36432
32528         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
32529         as indicating flexible array members unless the field itself is
32530         being declarared as the incomplete array.
32531
32532 2009-02-06  Jan Hubicka  <jh@suse.cz>
32533
32534         PR tree-optimization/38844
32535         * ipa-inline.c (try_inline): Stop inlining recursion when edge
32536         is already inlined.
32537
32538 2009-02-06  Richard Guenther  <rguenther@suse.de>
32539
32540         PR middle-end/38977
32541         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
32542         fork because we may expand it as __gcov_fork.
32543
32544 2009-02-06  Nick Clifton  <nickc@redhat.com>
32545
32546         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
32547
32548 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
32549
32550         PR tree-optimization/35659
32551         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
32552         vn_phi_eq): Shortcut if hashcode does not match.
32553         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
32554         NULL operands.
32555         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
32556         and avoid iterative_hash_expr.
32557         (FOR_EACH_VALUE_ID_IN_SET): New.
32558         (value_id_compare): Remove.
32559         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
32560         sort expressions by value id.
32561
32562 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
32563
32564         PR target/38991
32565         * config/sh/predicates.md (general_movsrc_operand): Don't check
32566         the subreg of system registers here.
32567
32568 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
32569
32570         PR c++/39106
32571         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
32572         on the copied decl.
32573
32574 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
32575
32576         PR rtl-optimization/39110
32577         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
32578         addresses, not aligned ones.
32579
32580 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
32581             Richard Guenther  <rguenther@suse.de>
32582
32583         PR tree-optimization/39100
32584         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
32585         comment says and add edges.
32586
32587 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
32588
32589         PR c/35435
32590         * c-common.c (handle_tls_model_attribute): Ignore attribute for
32591         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
32592
32593 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
32594
32595         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
32596         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
32597         register_bb_in_sese, new_sese, free_sese): Moved.
32598         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
32599         outermost_loop_in_scop, build_scop_iteration_domain,
32600         expand_scalar_variables_ssa_name, get_vdef_before_scop,
32601         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
32602         Use loop_in_sese_p instead of loop_in_scop_p.
32603         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
32604         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
32605         (scopdet_basic_block_info): Fix bug in scop detection.
32606         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
32607         eq_loop_to_cloog_loop): Remove.
32608         (nb_loops_around_loop_in_scop, nb_loop
32609         ref_nb_loops): Moved here...
32610         * graphite.h (ref_nb_loops): ... from here.
32611         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
32612         (loop_domain_dim, loop_iteration_vector_dim): Remove.
32613         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
32614
32615 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
32616             Hans-Peter Nilsson  <hp@axis.com>
32617
32618         PR rtl-optimization/37889
32619         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
32620         Move offset handling from PLUS to before the switch.  Use new
32621         arguments when considering SYMBOL_REFs too.
32622         (rtx_addr_can_trap_p): Pass dummy offset and size.
32623         (enum may_trap_p_flags): Remove.
32624         (may_trap_p_1): Pass size from MEM_SIZE.
32625
32626         PR rtl-optimization/38921
32627         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
32628         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
32629         * rtlanal.c (may_trap_after_code_motion_p): Delete.
32630         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
32631
32632 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
32633
32634         AVX Programming Reference (January, 2009)
32635         * config/i386/sse.md (*vpclmulqdq): New.
32636
32637 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
32638
32639         PR tree-optimization/38977
32640         PR gcov-profile/38292
32641         * calls.c (special_function_p): Disregard __builtin_ prefix.
32642
32643 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
32644
32645         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
32646         non-indexable addresses even before reload.
32647
32648 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
32649
32650         PR c/29129
32651         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
32652         as having variable size.  Do not give an error for unnamed
32653         parameters with [*] declarators.  Give a warning for type names
32654         with [*] declarators and mark them as variable size.
32655         * c-parser.c (c_parser_sizeof_expression): Do not give an error
32656         for sizeof applied to [*] type names.
32657
32658 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
32659
32660         PR C++/36607
32661         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
32662
32663 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
32664
32665         * gcc.c (process_command): Update copyright notice dates.
32666         * gcov.c (print_version): Likewise.
32667         * gcov-dump.c (print_version): Likewise.
32668         * mips-tfile.c (main): Likewise.
32669         * mips-tdump.c (main): Likewise.
32670
32671 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
32672
32673         PR c/35433
32674         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
32675         for composite type involving a zero-length array type.
32676
32677 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
32678
32679         PR target/35318
32680         * function.c (match_asm_constraints_1): Skip over
32681         initial optional % in the constraint.
32682
32683         PR inline-asm/39059
32684         * c-parser.c (c_parser_postfix_expression): If fixed point is not
32685         supported, don't accept FIXED_CSTs.
32686         * c-decl.c (finish_declspecs): Error if fixed point is not supported
32687         and _Sat is used without _Fract/_Accum.  Set specs->type to
32688         integer_type_node for cts_fract/cts_accum if fixed point is not
32689         supported.
32690
32691 2009-02-02  Catherine Moore  <clm@codesourcery.com>
32692
32693         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
32694
32695 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
32696
32697         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
32698         (ABI_HAS_64BIT_SYMBOLS): Use it.
32699         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
32700
32701 2009-02-02  Paul Brook  <paul@codesourcery.com>
32702
32703         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
32704
32705 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
32706
32707         PR inline-asm/39058
32708         * recog.h (asm_operand_ok): Add constraints argument.
32709         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
32710         recurse on matching constraint.
32711         (check_asm_operands): Pass constraints as 3rd argument to
32712         asm_operand_ok.  Don't look up matching constraint here.
32713         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
32714         to asm_operand_ok.
32715
32716 2009-02-02  Ben Elliston  <bje@au.ibm.com>
32717
32718         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
32719         TARGET_NARROW_VOLATILE_BITFIELD macro names.
32720
32721 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32722
32723         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
32724         information.  Remove some obsolete information.  Reorganize.
32725
32726         * config/pa/fptr.c: Revert license to GPL 2.
32727         * config/pa/milli64.S: Likewise.
32728
32729 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
32730
32731         PR target/38904
32732         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
32733         LIBRARY name in, instead of hard-coding it.
32734         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
32735         extra target make frag to tmake_files according to EH model.
32736         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
32737         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
32738         frags that define makefile variable EH_MODEL appropriately.
32739         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
32740         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
32741         to "-sjlj" according to type of EH configured.
32742         (LIBGCC_SONAME):  Concatenate it to shared library base name.
32743         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
32744         to "_sjlj" according to type of EH configured.
32745         (LIBGCC_SONAME):  Concatenate it to shared library base name.
32746         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
32747         (SHLIB_LINK):  Add missing semicolon to if-else construct.
32748         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
32749         string value of "pe_dll" command-line option.
32750         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
32751         (SHLIB_SONAME):  Use it when overriding t-cygming default.
32752         (SHLIB_IMPLIB):  Override t-cygming default.
32753         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
32754         string value of "pe_dll" command-line option.
32755
32756 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
32757
32758         PR target/38952
32759         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
32760         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
32761
32762 2009-01-31  Richard Guenther  <rguenther@suse.de>
32763
32764         PR tree-optimization/38937
32765         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
32766         computing the transitive closure.
32767
32768 2009-01-30  Richard Guenther  <rguenther@suse.de>
32769
32770         PR tree-optimization/39041
32771         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
32772         Propagate variable indices only if the types match for this stmt.
32773
32774 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
32775
32776         PR target/39013
32777         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
32778         inline but never defined.
32779
32780 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
32781
32782         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
32783         (*insv_h_di_reg_extimm): New insn.
32784         (*insv_l<mode>_reg_extimm): New insn.
32785
32786 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
32787
32788         * config/picochip/picochip.c (flag_conserve_stack): set
32789         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
32790         fconserve-stack. Reduce call-overhead used by inliner.
32791
32792 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
32793
32794         PR/38157
32795         * common.opt (flag_conserve_stack): Initialised to zero.
32796
32797 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
32798
32799         PR/39002
32800         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
32801         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
32802         method.
32803
32804 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
32805
32806         * ira-color.c (allocno_reload_assign): Update comments.
32807         * regmove.c (regmove_optimize): Likewise.
32808
32809         * ra.h: Removed.
32810
32811 2009-01-29  Robert Millan  <rmh@aybabtu.com>
32812
32813         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
32814         * config/i386/kopensolaris-gnu.h: New file.  Undefine
32815         `MD_UNWIND_SUPPORT'.
32816         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
32817
32818 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
32819
32820         PR tree-optimization/39007
32821         * tree-loop-distribution.c (generate_builtin): Use
32822         recompute_dominator to compute the immediate dominator of the
32823         basic block just after the loop.
32824
32825 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
32826
32827         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
32828         (ASM_OUTPUT_DWARF_PCREL): Define.
32829
32830 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
32831
32832         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
32833         * doc/passes.texi: Remove entries about regclass, local-alloc, and
32834         global.  Modify entries about regmove and IRA.
32835
32836         * ra-conflict.c: Remove the file.
32837
32838         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
32839
32840         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
32841         (pass_regclass_init): Rename to pass_reginfo_init.
32842
32843         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
32844
32845         * toplev.h (flag_ira): Remove.
32846
32847         * caller-save.c (setup_save_areas): Remove flag_ira.
32848
32849         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
32850
32851         * global.c: Remove the file.
32852
32853         * opts.c (decode_options): Remove flag_ira.
32854
32855         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
32856
32857         * regmove.c: Modify file description.
32858         (find_use_as_address, try_auto_increment): Define them only if
32859         AUTO_INC_DEC is defined.
32860         (replacement_quality, replace_in_call_usage, fixup_match_1,
32861         stable_and_no_regs_but_for_p): Remove.
32862         (reg_set_in_bb): Make it static.
32863         (regmove_optimize): Remove flag_ira and code which worked for
32864         !flag_ira.
32865
32866         * local-alloc.c: Remove the file.
32867
32868         * common.opt (fira): Remove.
32869
32870         * ira.c: Include except.h.
32871         (eliminable_regset): Move from global.c.
32872         (mark_elimination): Ditto.  Remove flag_ira.
32873         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
32874         equiv_mem_modified, validate_equiv_mem_from_store,
32875         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
32876         contains_replace_regs, memref_referenced_p, memref_used_between_p,
32877         no_equiv, recorded_label_ref): Move from local-alloc.c.
32878         (update_equiv_regs): Ditto.  Make it static.
32879         (print_insn_chain, print_insn_chains): Move it from global.c.
32880         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
32881         (build_insn_chain): Ditto.  Make it static.
32882         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
32883         Rename to init_live_subregs.
32884         (gate_ira): Remove flag_ira.
32885
32886         * regclass.c: Rename reginfo.c.  Change file description.
32887         (FORBIDDEN_INC_DEC_CLASSES): Remove.
32888         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
32889         (init_reg_sets_1): Remove code for evaluation of
32890         reg_class_superclasses and losing_caller_save_reg_set.
32891         (init_regs): Remove init_reg_autoinc.
32892         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
32893         ok_for_base_p_nonstrict): Remove.
32894         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
32895         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
32896         corresponding entries.
32897         (dump_regclass, record_operand_costs, scan_one_insn,
32898         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
32899         record_address_regs, auto_inc_dec_reg_p): Remove.
32900         (gt-regclass.h): Rename to gt-reginfo.h.
32901
32902         * rtl.h (dump_global_regs, retry_global_alloc,
32903         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
32904
32905         * Makefile.in (RA_H): Remove.
32906         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
32907         Rename regclass.o to reginfo.o.
32908         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
32909         gt-reginfo.h.
32910         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
32911         (GTFILES): Rename regclass.c to reginfo.c.
32912
32913         * passes.c (init_optimization_passes): Remove pass_local_alloc and
32914         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
32915
32916         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
32917         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
32918         Remove flag_ira.
32919         (finish_spills): Ditto.  Remove code for !flag_ira.
32920
32921 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
32922
32923         PR middle-end/35854
32924         * doc/invoke.texi (rtl debug options): Complete rewrite.
32925         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
32926         to auto_inc_dec".
32927         * mode-switching.c (pass_mode_switching): Rename pass from
32928         "mode-sw" to "mode_sw".
32929         * except.c (pass_convert_to_eh_ranges): Rename pass from
32930         "eh-ranges" to "eh_ranges".
32931         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
32932         to "subreg1".
32933
32934
32935 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
32936             Alexander Monakov  <amonakov@ispras.ru>
32937
32938         PR middle-end/38857
32939         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
32940         register.
32941         (move_exprs_to_boundary): Change return type and pass through
32942         should_move from move_op.  Relax assert.  Update usage ...
32943         (schedule_expr_on_boundary): ... here.  Use should_move instead of
32944         cant_move.
32945         (move_op_orig_expr_found): Indicate that insn was disconnected from
32946         stream.
32947         (code_motion_process_successors): Do not call after_merge_succs
32948         callback if original expression was not found when traversing any of
32949         the branches.
32950         (code_motion_path_driver): Change return type.  Update prototype.
32951         (move_op): Update comment.  Add a new parameter (should_move).  Update
32952         prototype.  Set *should_move based on indication provided by
32953         move_op_orig_expr_found.
32954
32955 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
32956
32957         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
32958         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
32959         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
32960         * config/rs6000/rs6000.c (rs6000_override_options): Default
32961         avoid-indexed-addresses on for Power6, off for everything else.
32962         (avoiding_indexed_address_p): New function.
32963         (rs6000_legitimize_address): Use it.
32964         (rs6000_legitimate_address): Likewise.
32965         * config/rs6000/rs6000.md (movXX_updateX): Likewise
32966
32967 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
32968
32969         PR tree-optimization/38997
32970         * tree-loop-distribution.c (generate_memset_zero): Use
32971         POINTER_PLUS_EXPR for a pointer addition.
32972
32973 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
32974
32975         * config/s390/s390.md (bswap<mode>2): New pattern added.
32976
32977 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
32978
32979         * config/s390/s390.md (*tls_load_31): Added type attribute.
32980
32981 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
32982
32983         * config/s390/s390.md: Fix a few comments.
32984
32985 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
32986
32987         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
32988         (*tm<mode>_full): Fixed z10prop attribute.
32989         (*tst<mode>_extimm): Fixed z10prop attribute.
32990         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
32991         (*tstqiCCT_cconly): Fixed z10prop attribute.
32992         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
32993         (*movsi_larl): Fixed z10prop attribute.
32994         (*movsi_zarch): Fixed z10prop attribute.
32995         (*movsi_eas): Fixed z10prop attribute.
32996         (*movhi): Fixed z10prop attribute.
32997         (*movqi): Fixed z10prop attribute.
32998         (*movstrictqi): Fixed z10prop attribute.
32999         (*mov<mode>): Fixed z10prop attribute.
33000         (*movcc): Fixed z10prop attribute.
33001         (*sethighpartdi_64): Fixed z10prop attribute.
33002         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
33003         (*negdi2_sign_cc): Fixed z10prop attribute.
33004         (*negdi2_sign): Fixed z10prop attribute.
33005         (*absdi2_sign_cc): Fixed z10prop attribute.
33006         (*absdi2_sign): Fixed z10prop attribute.
33007         (*negabsdi2_sign_cc): Fixed z10prop attribute.
33008         (*negabsdi2_sign): Fixed z10prop attribute.
33009         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
33010         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
33011         (doloop_si64): Fixed z10prop attribute.
33012         (doloop_si31): Fixed z10prop attribute.
33013         (doloop_long): Fixed z10prop attribute.
33014         (indirect_jump): Fixed z10prop attribute.
33015         (nop): Fixed z10prop attribute.
33016         (main_base_64): Fixed z10prop attribute.
33017         (reload_base_64): Fixed z10prop attribute.
33018
33019 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
33020
33021         PR rtl-optimization/38740
33022         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
33023         if !optimize.
33024         * config/mips/mips.c (mips_reorg): Likewise.
33025
33026 2009-01-28  Richard Guenther  <rguenther@suse.de>
33027
33028         PR tree-optimization/38926
33029         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
33030         with the correct value id to a value.
33031         (do_regular_insertion): Use the value number of edoubleprime
33032         for the value number of the expr.
33033
33034         Revert
33035         2008-08-21  Richard Guenther  <rguenther@suse.de>
33036
33037         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
33038         a PHI ask VN if it is already available.
33039         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
33040         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
33041
33042 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
33043
33044         PR middle-end/38934
33045         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
33046         set to varying whenever max has TREE_OVERFLOW set, similarly
33047         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
33048
33049 2009-01-28  Richard Guenther  <rguenther@suse.de>
33050
33051         PR middle-end/38908
33052         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
33053         uninitialized aggregate uses in call arguments.
33054
33055 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
33056
33057         PR tree-optimization/38984
33058         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
33059         the nothing_id variable if -fno-delete-null-pointer-checks.
33060
33061 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
33062
33063         PR target/38988
33064         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
33065         (set_got_offset_rex64): Ditto.
33066
33067 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
33068
33069         PR target/38941
33070         * doc/extend.texi: Improve local variable with asm reg.
33071
33072 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
33073
33074         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
33075         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
33076         was not supplied then set warn_packed_bitfield_compat to the
33077         default value of 1.
33078         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
33079         against 1.
33080
33081 2009-01-27  Richard Guenther  <rguenther@suse.de>
33082
33083         PR tree-optimization/38503
33084         * cfgexpand.c (expand_gimple_basic_block): Ignore
33085         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
33086         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
33087         variables that cannot have TBAA applied.
33088         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
33089         statements.
33090
33091 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
33092
33093         PR middle-end/38969
33094         * calls.c (initialize_argument_information): Do not wrap complex
33095         arguments in SAVE_EXPR.
33096
33097 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
33098
33099         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
33100         (INSTALL_LIBGCC): Revert typo commit.
33101
33102 2009-01-26  Richard Guenther  <rguenther@suse.de>
33103
33104         PR tree-optimization/38745
33105         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
33106         from special handling.
33107
33108 2009-01-26  Richard Guenther  <rguenther@suse.de>
33109
33110         PR tree-optimization/38745
33111         * tree-ssa.c (execute_update_addresses_taken): Do not include
33112         variables that cannot possibly be a register in not_reg_needs.
33113         Do not clear TREE_ADDRESSABLE on vars that may not become
33114         registers.
33115         * tree-ssa.c (update_alias_info_1): Include those in the set
33116         of addressable vars.
33117
33118 2009-01-26  Richard Guenther  <rguenther@suse.de>
33119
33120         PR middle-end/38851
33121         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
33122         * tree-ssa-dse.c: Include langhooks.h
33123         (execute_simple_dse): Remove stores with zero size.
33124
33125 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
33126
33127         PR c/38957
33128         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
33129         as PLUS_EXPR.
33130
33131 2009-01-24  Julian Brown  <julian@codesourcery.com>
33132
33133         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
33134         config/arm/linux-atomic.c.
33135         * config/arm/linux-atomic.c: New.
33136
33137 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
33138
33139         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
33140         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
33141         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
33142
33143 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
33144
33145         PR c/38938
33146         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
33147         properly.
33148
33149 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
33150
33151         PR tree-optimization/38953
33152         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
33153         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
33154         (gloog): Split the exit of the scop when the scop exit is a loop exit.
33155         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
33156         changed the CFG.
33157
33158 2009-01-24  Paul Brook  <paul@codesourcery.com>
33159
33160         * config/arm/neon.md (neon_type): Move to arm.md.
33161         (neon_mov<VSTRUCT>): Add neon_type attribute.
33162         * config/arm/arm.md (neon_type): Move to here.
33163         (conds): Add "unconditioal" and use as default for NEON insns.
33164
33165 2009-01-24  Ben Elliston  <bje@au.ibm.com>
33166
33167         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
33168         void *' warning from -Wc++-compat.
33169         * Makefile.in (dominance.o-warn): Remove.
33170
33171 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
33172
33173         PR tree-optimization/38932
33174         * fold-const.c (fold_unary_ignore_overflow): New.
33175         * tree.h (fold_unary_ignore_overflow): Declare.
33176         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
33177         * tree-ssa-sccvn.c (visit_reference_op_load,
33178         simplify_unary_expression): Likewise.
33179
33180 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
33181
33182         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
33183         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
33184         regardless of their type.
33185         * c-common.c (handle_packed_attribute): Don't ignore packed on
33186         bitfields.
33187         * c.opt (Wpacked-bitfield-compat): New warning option.
33188         * stor-layout.c (place_field): Warn if offset of a field changed.
33189         * doc/extend.texi (packed): Mention the ABI change.
33190         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
33191         (Warning Options): Add it to the list.
33192
33193 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
33194
33195         * c-opts.c (c_common_post_options): Fix a typo in comments.
33196
33197 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
33198
33199         PR middle-end/38615
33200         * gimplify.c (gimplify_init_constructor): Fix promotion of const
33201         variables to static.
33202         * doc/invoke.texi (-fmerge-all-constants): Update description.
33203
33204 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
33205
33206         PR target/38931
33207         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
33208         (*movdi_1_rex64): Use type "mmx" for alternative 5.
33209
33210 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
33211
33212         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
33213         a word boundary.
33214         (LOCAL_ALIGNMENT): Similarly.
33215
33216 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
33217             Joseph Myers  <joseph@codesourcery.com>
33218
33219         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
33220         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
33221         * config/arm/arm-tune.md: Regenerate.
33222         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
33223         -march=iwmmxt2.
33224
33225 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
33226
33227         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
33228         version number to five.
33229
33230 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
33231
33232         PR c++/38930
33233         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
33234         * c-common.c (set_underlying_type): Likewise.
33235         (is_typedef_decl ): Likewise
33236         * tree.h: Likewise
33237         (set_underlying_type): Likewise.
33238         (is_typedef_type): Likewise.
33239
33240 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
33241
33242         PR middle-end/38587
33243         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
33244         crossing setjmps.
33245
33246 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
33247
33248         PR bootstrap/37660
33249         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
33250         (LIBGCC_SPEC):  Don't define.
33251         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
33252
33253 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
33254
33255         PR rtl-optimization/38879
33256         * alias.c (base_alias_check): Unaligned access via AND address can
33257         alias all surrounding object types except those with sizes equal
33258         or wider than the size of unaligned access.
33259
33260 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
33261
33262         PR c++/26693
33263         * c-decl.c (clone_underlying_type): Move this ...
33264         * c-common.c (set_underlying_type): ... here.
33265         Also, make sure the function properly sets TYPE_STUB_DECL() on
33266         the newly created typedef variant type.
33267         (is_typedef_decl ): New entry point.
33268         * tree.h: Added a new member member_types_needing_access_check to
33269         struct tree_decl_non_common.
33270         (set_underlying_type): New entry point.
33271         (is_typedef_type): Likewise.
33272
33273 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
33274
33275         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
33276         Check whether two instructions have memory references that
33277         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
33278         are helper functions for traversing.
33279         * alias.h (insn_alias_sets_confilict_p): New prototypes.
33280         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
33281         not to draw dependency edge for instructions with non-conflicting
33282         alias sets.
33283
33284 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
33285
33286         PR other/38758
33287         * longlong.h: Update copyright years.  Use soft-fp license notice.
33288         Sync __clz_tab declaration with glibc.
33289
33290 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
33291
33292         PR target/30687
33293         * doc/extend.texi (syscall_linkage): New.
33294         (version_id): Modify.
33295
33296 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
33297             Richard Guenther  <rguenther@suse.de>
33298
33299         PR tree-optimization/38747
33300         PR tree-optimization/38748
33301         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
33302         conversion if the base address is an indirect reference and the
33303         aliasing sets could cause issues.
33304
33305 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
33306
33307         * common.opt (fgraphite, fgraphite-identity): Add comment for
33308         explaining why these options are not documented.
33309
33310 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
33311
33312         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
33313         gimple_call_lhs is NULL.
33314
33315 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33316
33317         PR target/38868
33318         * emit-rtl.c (adjust_address_1): Make sure memref is never
33319         overwritten.
33320
33321 2009-01-20  Ben Elliston  <bje@au.ibm.com>
33322
33323         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
33324         const qualifier from arg parameter. Remove unnecessary cast to char *.
33325         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
33326         const qualifier from arg 2.
33327
33328 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
33329
33330         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
33331
33332 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
33333
33334         PR c/38869
33335         * rtl.h (reinit_regs): New prototype.
33336         * regclass.c: Include ira.h.
33337         (reinit_regs): New.
33338         * Makefile.in (regclass.o): Add ira.h.
33339         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
33340
33341 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
33342
33343         PR target/38736
33344         * c-common.c (handle_aligned_attribute): Use
33345         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
33346         default alignment value.
33347
33348         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
33349
33350         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
33351         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
33352
33353         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
33354         __BIGGEST_ALIGNMENT__.
33355
33356         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
33357
33358 2009-01-18  Richard Guenther  <rguenther@suse.de>
33359
33360         PR tree-optimization/38819
33361         * tree-flow.h (operation_could_trap_helper_p): Declare.
33362         * tree-eh.c (operation_could_trap_helper_p): Export.
33363         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
33364         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
33365         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
33366         are about to insert a possibly trapping instruction and fail
33367         in this case.
33368
33369 2009-01-18  Andreas Schwab  <schwab@suse.de>
33370
33371         * doc/install.texi (Configuration): Remove obsolete paragraph
33372         about use of --with-gnu-ld with --with-gnu-as.
33373
33374 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
33375
33376         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
33377         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
33378         Follow spelling conventions.
33379
33380 2009-01-18  Ben Elliston  <bje@au.ibm.com>
33381
33382         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
33383         C++ warning about implicit conversion from void * to struct
33384         bitmap_head_def *.
33385         (bitmap_obstack_free): Likewise for bitmap_element *.
33386         * Makefile.in (bitmap.o-warn): Remove.
33387
33388 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
33389
33390         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
33391
33392 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
33393             Tobias Grosser  <tobi.grosser@amd.com>
33394
33395         * graphite.c (graphite_trans_scop_block): Do not block single
33396         nested loops.
33397
33398 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
33399
33400         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
33401         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
33402         test with assertion.
33403
33404 2009-01-16  Richard Guenther  <rguenther@suse.de>
33405
33406         PR tree-optimization/38835
33407         PR middle-end/36227
33408         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
33409         and INT + PTR -> (INT)(PTR p+ INT) folding.
33410         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
33411
33412 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
33413
33414         PR target/38554
33415         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
33416         the subreg from a lowpart subreg if it is also casting the value.
33417
33418 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
33419             Tobias Grosser  <tobi.grosser@amd.com>
33420
33421         * graphite.c (compare_prefix_loops): New.
33422         (build_scop_canonical_schedules): Rewritten.
33423         (graphite_transform_loops): Move build_scop_canonical_schedules
33424         after build_scop_iteration_domain.
33425
33426 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
33427             Tobias Grosser  <tobi.grosser@amd.com>
33428
33429         * graphite.c (add_conditions_to_domain): Add the loops to
33430         the dimension of the iteration domain.  Do copy the domain
33431         only when it exists.
33432         (build_scop_conditions_1): Do not call add_conditions_to_domain.
33433         (add_conditions_to_constraints): New.
33434         (can_generate_code_stmt, can_generate_code): Removed.
33435         (gloog): Do not call can_generate_code.
33436         (graphite_transform_loops): Call add_conditions_to_constraints
33437         after building the iteration domain.
33438
33439 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
33440
33441         PR tree-optimization/38789
33442         * tree-ssa-threadedge.c
33443         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
33444         __builtin_constant_p.
33445
33446 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
33447
33448         * dce.c (delete_unmarked_insns): Reversed the order that insns are
33449         examined before deleting them.
33450
33451 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
33452
33453         * function.c (aggregate_value_p): Correctly extract the function
33454         type from CALL_EXPR_FN lookup.
33455
33456 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
33457
33458         * config/picochip/picochip.c (picochip_override_options): Revert
33459         CFI asm flag disable commited previously.
33460
33461 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
33462             Tobias Grosser  <tobi.grosser@amd.com>
33463             Jan Sjodin  <jan.sjodin@amd.com>
33464
33465         * graphite.c (scan_tree_for_params): On substractions negate
33466         all the coefficients of the term.
33467         (clast_to_gcc_expression_red): New.  Handle reduction expressions
33468         of more than two operands.
33469         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
33470         (get_vdef_before_scop): Handle also the case of default definitions.
33471
33472 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
33473
33474         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
33475         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
33476         Also use them when walking CALL_INSN_FUNCTION_USAGE.
33477
33478 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
33479             Joey Ye  <joey.ye@intel.com>
33480
33481         PR middle-end/37843
33482         * cfgexpand.c (expand_stack_alignment): Don't update stack
33483         boundary nor check incoming stack boundary here.
33484         (gimple_expand_cfg): Update stack boundary and check incoming
33485         stack boundary here.
33486
33487 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
33488
33489         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
33490
33491 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
33492
33493         PR rtl-optimization/38245
33494         * calls.c (expand_call): Add stack arguments to
33495         CALL_INSN_FUNCTION_USAGE even for pure calls (when
33496         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
33497         in regs and partially in memory or BLKmode arguments.
33498         (emit_library_call_value_1): Add stack arguments to
33499         CALL_INSN_FUNCTION_USAGE even for pure calls (when
33500         ACCUMULATE_OUTGOING_ARGS).
33501         * dce.c: Include tm_p.h.
33502         (find_call_stack_args): New function.
33503         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
33504         argument.
33505         (mark_insn): Call find_call_stack_args for CALL_Ps.
33506         (prescan_insns_for_dce): Walk insns backwards in bb rather than
33507         forwards.  Allocate and free arg_stores bitmap if needed, pass it
33508         down to deletable_insn_p, don't mark stores set in arg_stores
33509         bitmap, clear the bitmap at the beginning of each bb.
33510         * Makefile.in (dce.o): Depend on $(TM_P_H).
33511
33512 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
33513
33514         PR target/22599
33515         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
33516         to make sure the insn is a conditional test (bug 22599).  Reformat a
33517         few long lines.
33518
33519 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
33520
33521         PR middle-end/38431
33522         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
33523         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
33524         (gloog): Do not call cleanup_tree_cfg.
33525         (graphite_transform_loops): Call cleanup_tree_cfg after all
33526         scops have been code generated.
33527
33528 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
33529         * doc/gty.texi (Invoking the garbage collector): Added new node
33530         and section documenting ggc_collect.
33531
33532 2009-01-14  Richard Guenther  <rguenther@suse.de>
33533
33534         PR tree-optimization/38826
33535         PR middle-end/38477
33536         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
33537         initialization notes only if we actually emitted a warning.
33538         (intra_create_variable_infos): Add constraints for a result decl
33539         that is passed by hidden reference.
33540         (build_pred_graph): Mark all related variables non-direct on
33541         address-taking.
33542
33543 2009-01-14  Nick Clifton  <nickc@redhat.com>
33544
33545         * ira-conflicts.c: Include addresses.h for the definition of
33546         base_reg_class.
33547         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
33548         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
33549
33550 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
33551
33552         PR target/38811
33553         * Makefile.in (ira-lives.o): Add except.h.
33554
33555         * ira-lives.c: Include except.h.
33556         (process_bb_node_lives): Process can_throw_internal.
33557
33558 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
33559
33560         PR rtl-optimization/38774
33561         * combine.c (simplify_set): When undoing cc_use change, don't do
33562         PUT_CODE on the newly created comparison, but instead put back the
33563         old comparison.
33564
33565 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
33566
33567         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
33568         values.  Remove duplicate arm8 entry.
33569
33570 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
33571
33572         PR tree-optimization/38786
33573         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
33574         the SSA_NAME case of expand_scalar_variables_expr.
33575         Set the type of an expression to the type of its assign statement.
33576         (expand_scalar_variables_expr): Also gather the scalar computation
33577         used to index the memory access.  Do not pass loop_p.
33578         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
33579         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
33580         the gimple_stmt_iterator where it inserts new code.
33581         Do not pass loop_p.
33582         (copy_bb_and_scalar_dependences): Do not pass loop_p.
33583         (translate_clast): Update call to copy_bb_and_scalar_dependences.
33584
33585 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
33586
33587         * graphite.h (debug_value): Removed.
33588         * graphite.c (debug_value): Removed.
33589
33590 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
33591
33592         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
33593         ldrd/strd with two 32-bit instructions.
33594
33595 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
33596
33597         * config/arm/arm.c (struct processors): Pass for speed down into
33598         cost helper functions.
33599         (const_ok_for_op): Handle COMPARE and inequality nodes.
33600         (arm_rtx_costs_1): Rewrite.
33601         (arm_size_rtx_costs): Update prototype.
33602         (arm_rtx_costs): Pass speed down to helper functions.
33603         (arm_slowmul_rtx_costs): Rework cost calculations.
33604         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
33605         (arm_9e_rtx_costs): Likewise.
33606
33607 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
33608
33609         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
33610         relocations of local symbols wider than UNITS_PER_WORD are not valid.
33611         (alpha_legitimize_address): Do not split local symbols wider than
33612         UNITS_PER_WORD into HIGH/LO_SUM parts.
33613
33614 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
33615
33616         PR bootstrap/38580
33617         * gcc.c (process_command): Replace call to execvp with calls
33618         to pex_one and exit.
33619
33620 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
33621
33622         PR target/29141
33623         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
33624         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
33625         variant for devices with 3-byte PC.
33626         (__tablejump_elpm__): New.
33627
33628 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
33629
33630         PR c/32041
33631         * c-parser.c (c_parser_postfix_expression): Allow `->' in
33632         offsetof member-designator, handle it as `[0].'.
33633
33634 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33635
33636         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
33637         function when not using named sections on targets with named sections
33638         if branch distance is less than 262132.
33639
33640 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
33641
33642         * combine.c (combine_instructions):  Recompute
33643         optimize_this_for_speed_p  for each BB in the main combine loop.
33644
33645 2009-01-12  Tomas Bily  <tbily@suse.cz>
33646
33647         PR middlend/38385
33648         * tree-loop-distribution.c (prop_phis): New function.
33649         (generate_builtin): Call prop_phis.
33650
33651 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
33652
33653         PR tree-optimization/38807
33654         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
33655         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
33656
33657 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
33658
33659         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
33660         subreg of op0 to the original op0.
33661
33662 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
33663
33664         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
33665
33666 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
33667
33668         PR debug/7055
33669         * mips-tfile.c (parse_def): Fix parsing of def strings
33670         starting with digits.
33671
33672 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
33673
33674         PR target/38695
33675         * config/arm/arm.c (arm_is_long_call_p): Don't call
33676         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
33677
33678 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
33679
33680         * regrename.c (regrename_optimize): Fix dumping.
33681         (find_oldest_value_reg): Preserve REG_POINTER.
33682         (copy_hardreg_forward_1): Likewise.
33683
33684 2009-01-09  Diego Novillo  <dnovillo@google.com>
33685
33686         * gimple.h (struct gimple_statement_base) <uid>: Document
33687         the restrictions on its use.
33688         (gimple_uid): Tidy.
33689         (gimple_set_uid): Tidy.
33690
33691 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
33692
33693         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
33694         zero guard even if align_bytes != 0 and count is smaller than
33695         size_needed.
33696
33697 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
33698
33699         PR rtl-optimization/38495
33700         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
33701         (add_range_and_copies_from_move_list): Print all added ranges.
33702         Add ranges to memory optimized destination.
33703
33704 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
33705
33706         PR target/38686
33707         PR target/38708
33708         * config/i386/i386.c (override_options): Reject
33709         -mstringop-strategy=rep_8byte with -m32.
33710         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
33711         to 1.  Do count comparison against epilogue_size_needed at compile
33712         time even when count_exp was constant forced into register.  For
33713         size_needed don't jump to epilogue, instead just avoid aligning
33714         and invoke the body algorithm.  If need_zero_guard, add zero guard
33715         even if count is non-zero, but smaller than size_needed + number of
33716         bytes that could be stored for alignment.
33717         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
33718         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
33719         but smaller than size_needed + number of bytes that could be stored
33720         for alignment.  Compare size_needed with epilogue_size_needed instead
33721         of desired_align - align, don't adjust size_needed, pass
33722         epilogue_size_needed to the epilogue expanders.
33723
33724         PR c/35742
33725         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
33726
33727 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33728
33729         * pa.c (last_address): Change to unsigned.
33730         (update_total_code_bytes): Change argument to unsigned.  Don't
33731         check if insn addresses are set.
33732         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
33733         addresses are not set.
33734         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
33735
33736 2009-01-09  Nick Clifton  <nickc@redhat.com>
33737
33738         * config/sh/symbian.c: Replace uses of DECL_INLINE with
33739         DECL_DECLARED_INLINE_P.
33740
33741 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
33742
33743         PR middle-end/38347
33744         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
33745         GET_MODE (op0) in operand_subword_force calls.
33746
33747         PR middle-end/38771
33748         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
33749         fold_convert arg0 operands to TREE_TYPE (op0) first.
33750
33751 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
33752
33753         * params.def (ira-max-conflict-table-size): Decrease default value
33754         to 1000.
33755
33756 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
33757
33758         PR tree-optimization/37031
33759         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
33760         on parameter_set.
33761         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
33762         allocate it using gc instead of heap, use VEC_quick_push instead of
33763         VEC_safe_push.
33764         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
33765         instead of heap, use VEC_quick_push instead of VEC_safe_push.
33766         * tree-data-ref.h (struct access_matrix): Change matrix to gc
33767         allocated vector from heap allocated.
33768         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
33769         * tree-loop-linear.c (linear_transform_loops): Allocate nest
33770         vector only after perfect_loop_nest_depth call.
33771
33772 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
33773             Jan Sjodin  <jan.sjodin@amd.com>
33774
33775         PR tree-optimization/38559
33776         * graphite.c (debug_value, copy_constraint,
33777         swap_constraint_variables, scale_constraint_variable, ): New.
33778         (get_lower_bound, get_upper_bound): Removed.
33779         (graphite_trans_bb_strip_mine): Clean up this code that works
33780         only for constant number of iterations.  Fully copy upper and
33781         lower bound constraints, not only the constant part of them.
33782         * graphite.h (debug_value): Declared.
33783
33784 2009-01-08  Ira Rosen  <irar@il.ibm.com>
33785
33786         PR tree-optimization/37194
33787         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
33788         Don't add the cost of cost model guard in prologue to scalar
33789         outside cost in case of known number of iterations.
33790
33791 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
33792             Alan Modra  <amodra@bigpond.net.au>
33793
33794         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
33795         non-word-aligned REG+CONST addressing.
33796
33797 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
33798
33799         PR target/38706
33800         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
33801         free_after_compilation when outputting a thunk.
33802         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
33803         Do not call free_after_compilation here.
33804
33805 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
33806
33807         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
33808         (ix86_valid_target_attribute_inner_p): Ditto.
33809
33810 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
33811
33812         PR tree-optimization/38492
33813         PR tree-optimization/38498
33814         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
33815         * tree-chrec.h (scev_is_linear_expression): Declared.
33816         * graphite.c (graphite_cannot_represent_loop_niter): New.
33817         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
33818         (graphite_loop_normal_form): Use gcc_assert.
33819         (scan_tree_for_params): Use CASE_CONVERT.
33820         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
33821         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
33822         Use gcc_assert.  Discard scops that contain unhandled cases.
33823         (build_scop_conditions): Return a boolean status for unhandled cases.
33824         (strip_mine_profitable_p): Print the loop number, not its depth.
33825         (is_interchange_valid): Pass the depth of the loop nest, don't
33826         recompute it wrongly.
33827         (graphite_trans_bb_block): Same.
33828         (graphite_trans_bb_block): Print tentative of loop blocking.
33829         (graphite_trans_scop_block): Do not print that the loop has been
33830         blocked.
33831         (graphite_transform_loops): Do not handle scops that contain condition
33832         scalar phi nodes.
33833
33834 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
33835
33836         AVX Programming Reference (December, 2008)
33837         * config/i386/avxintrin.h (_mm256_stream_si256): New.
33838         (_mm256_stream_pd): Likewise.
33839         (_mm256_stream_ps): Likewise.
33840
33841         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
33842         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
33843         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
33844         (bdesc_special_args): Add __builtin_ia32_movntdq256,
33845         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
33846         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
33847         (ix86_expand_special_args_builtin): Likewise.
33848
33849         * config/i386/sse.md (AVXMODEDI): New.
33850         (avx_movnt<mode>): Likewise.
33851         (avx_movnt<mode>): Likewise.
33852         (<sse>_movnt<mode>): Remove AVX support.
33853         (sse2_movntv2di): Likewise.
33854
33855 2009-01-07  Richard Guenther  <rguenther@suse.de>
33856
33857         PR middle-end/38751
33858         * fold-const.c (extract_muldiv): Remove obsolete comment.
33859         (fold_plusminus_mult_expr): Undo MINUS_EXPR
33860         to PLUS_EXPR canonicalization for the canonicalization.
33861
33862 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
33863
33864         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
33865         hosted cross-compilers generating less efficient code.
33866
33867 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
33868
33869         * function.h (rtl_data): Add a dbr_scheduled_p field.
33870         * reorg.c (dbr_schedule): Set it.
33871         (gate_handle_delay_slots): Check it.
33872         * config/mips/mips.c (mips_base_delayed_branch): Delete.
33873         (mips_reorg): Check flag_delayed_branch instead of
33874         mips_base_delayed_branch.
33875         (mips_override_options): Don't set mips_base_delayed_branch
33876         or flag_delayed_branch.
33877
33878 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
33879
33880         PR rtl-optimization/38426.
33881         * ira.c (ira): Set current_function_is_leaf earlier.
33882
33883 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
33884
33885         PR rtl-optimization/38722
33886         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
33887         too early, only set a flag and modify after last possible
33888         undo_all point.
33889
33890 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
33891
33892         PR c/34252
33893         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
33894         * real.c (decimal_single_format): Correct values of emin and emax.
33895         (decimal_double_format): Ditto.
33896         (decimal_quad_format): Ditto.
33897         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
33898         computation of DECnn_MIN and DECnn_MAX for corrected values of
33899         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
33900         __DECnn_MIN__, and adjust its computation for the corrected value
33901         of emin.
33902
33903 2009-01-06  Jan Hubicka  <jh@suse.cz>
33904
33905         PR target/38744
33906         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
33907
33908 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
33909
33910         * doc/contrib.texi (Contributors): Slightly adjust the end note.
33911         Add Robert Clark to the list of testers.
33912
33913 2009-01-06  Jan Hubicka  <jh@suse.cz>
33914             Kai Tietz  <kai.tietz@onevision.com>
33915
33916         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
33917         * config/i386/i386.c (ix86_expand_call): Add clobbers.
33918
33919 2009-01-06  Jan Hubicka  <jh@suse.cz>
33920             Kai Tietz  <kai.tietz@onevision.com>
33921
33922         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
33923         for w64 ABI.
33924         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
33925         (ix86_nsaved_regs): Count only general purpose regs.
33926         (ix86_nsaved_sseregs): New.
33927         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
33928         to 16 for w64; compute padding and size of sse reg save area.
33929         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
33930         general purpose regs.
33931         (ix86_emit_save_sse_regs_using_mov): New.
33932         (ix86_expand_prologue): Save SSE regs if needed.
33933         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
33934         (ix86_emit_restore_sse_regs_using_mov): New.
33935         (ix86_expand_epilogue): Save SSE regs if needed.
33936
33937 2009-01-06  Jan Hubicka  <jh@suse.cz>
33938             Kai Tietz  <kai.tietz@onevision.com>
33939
33940         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
33941         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
33942         functions when accumulate outgoing args is off.
33943
33944 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
33945
33946         PR bootstrap/38742
33947         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
33948         before using pseudos_have_intersected_live_ranges_p.
33949
33950         * ira-int.h (ira_assert): Always define.
33951
33952 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
33953
33954         AVX Programming Reference (December, 2008)
33955         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
33956         (_mm256_permute2_pd): Likewise.
33957         (_mm_permute2_ps): Likewise.
33958         (_mm256_permute2_ps): Likewise.
33959         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
33960         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
33961
33962         * config/i386/i386.c (ix86_builtins): Remove
33963         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
33964         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
33965         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
33966         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
33967         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
33968         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
33969         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
33970         __builtin_ia32_vpermil2ps256.
33971         (ix86_init_mmx_sse_builtins): Updated.
33972         (ix86_expand_args_builtin): Likewise.
33973
33974 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33975
33976         * pa.c (output_call): Relocate non-jump insns in the delay slot of
33977         long absolute calls when generating PA 2.0 code.
33978
33979 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
33980
33981         PR rtl-optimization/38583
33982         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
33983
33984         * params.def (ira-max-conflict-table-size): New.
33985
33986         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
33987
33988         * ira.h (ira_conflicts_p): New external definition.
33989
33990         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
33991         table.  Report this.  Return result of building.
33992         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
33993         building conflict table.
33994
33995         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
33996         (ira_color): Use ira_conflicts_p.
33997
33998         * global.c: Include ira.h.
33999         (pseudo_for_reload_consideration_p, build_insn_chain): Use
34000         ira_conflicts_p.
34001
34002         * Makefile.in (global.o): Add ira.h.
34003
34004         * ira-build.c (mark_all_loops_for_removal,
34005         propagate_some_info_from_allocno): New.
34006         (remove_unnecessary_allocnos): Call
34007         propagate_some_info_from_allocno.
34008         (remove_low_level_allocnos): New.
34009         (remove_unnecessary_regions): Add parameter.  Call
34010         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
34011         parameter to remove_unnecessary_regions.
34012         (ira_build): Remove all regions but root if the conflict table was
34013         not built.  Update conflict hard regs for allocnos crossing calls.
34014
34015         * ira.c (ira_conflicts_p): New global.
34016         (ira): Define and use ira_conflicts_p.
34017
34018         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
34019         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
34020         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
34021
34022 2009-01-06  Ben Elliston  <bje@au.ibm.com>
34023
34024         * gengtype-lex.l (YY_NO_INPUT): Define.
34025
34026 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
34027
34028         PR c/34911
34029         * c-common.c (handle_vector_size_attribute): Also reject
34030         BOOLEAN_TYPE types.
34031
34032 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
34033
34034         PR tree-optimization/38492
34035         * graphite.c (rename_map_elt, debug_rename_elt,
34036         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
34037         rename_map_elt_info, eq_rename_map_elts,
34038         get_new_name_from_old_name, bb_in_sese_p): Moved around.
34039         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
34040         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
34041         (sese_build_livein_liveouts): New.
34042         (new_sese, free_sese): New.
34043         (new_scop): Call new_sese.
34044         (free_scop): Call free_sese.
34045         (rename_variables_from_edge, rename_phis_end_scop): Removed.
34046         (register_old_new_names): Renamed register_old_and_new_names.
34047         (register_scop_liveout_renames, add_loop_exit_phis,
34048         insert_loop_close_phis, struct igp,
34049         default_liveout_before_guard, add_guard_exit_phis,
34050         insert_guard_phis, copy_renames): New.
34051         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
34052         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
34053         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
34054         (scop_adjust_phis_for_liveouts): New.
34055         (gloog): Call scop_adjust_phis_for_liveouts.
34056
34057         * graphite.h (struct sese): Documented.  Added fields liveout,
34058         num_ver and livein.
34059         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
34060         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
34061         (struct scop): Added field liveout_renames.
34062         (SCOP_LIVEOUT_RENAMES): New.
34063
34064 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
34065
34066         PR tree-optimization/38510
34067         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
34068         (translate_clast): Call recompute_all_dominators before
34069         graphite_verify.
34070         (gloog): Call recompute_all_dominators before graphite_verify.
34071
34072 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
34073             Jan Sjodin  <jan.sjodin@amd.com>
34074
34075         PR tree-optimization/38500
34076         * graphite.c (create_sese_edges): Call fix_loop_structure after
34077         splitting blocks.
34078
34079 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
34080
34081         * config.gcc: Add m32r*-*-rtems*.
34082         * config/m32r/rtems.h: New file.
34083
34084 2009-01-05  Ben Elliston  <bje@au.ibm.com>
34085
34086         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
34087         (.po.pox): Likewise.
34088         (po/gcc.pot): Likewise.
34089
34090 2009-01-04  David S. Miller  <davem@davemloft.net>
34091
34092         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
34093         (STARTING_FRAME_OFFSET): Always set to zero.
34094
34095 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
34096
34097         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
34098         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
34099         fixed-point types, and vectors of the same.
34100
34101 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
34102
34103         * config/mips/sync.md (*mb_barrier): Rename to...
34104         (*memory_barrier): ...this.
34105
34106 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
34107
34108         * doc/extend.texi (Function Attributes): Move @cindex after @item
34109         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
34110         and put in alphabetical order. Fix 'target' name and put in order.
34111         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
34112         typos.
34113
34114 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
34115
34116         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
34117         (memory_barrier): Expand as unspec instead of unspec_volatile.
34118         Remove mem:BLK from insn operands.  Use Pmode scratch register.
34119         (*memory_barrier): Define as unspec instead of unspec_volatile.
34120         Use (match_dup 0) as input operand.
34121
34122         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
34123         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
34124         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
34125         scratch register.  Remove operand 1.
34126         (*stbar): Define as unspec instead of unspec_volatile.
34127         Use (match_dup 0) as input operand, remove (const_int 8).
34128         (*membar): Define as unspec instead of unspec_volatile.
34129         Use (match_dup 0) as input operand, remove input operand 2.
34130
34131         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
34132         (memory_barrier): Expand as unspec instead of unspec_volatile.
34133         Remove mem:BLK from insn operands.  Use Pmode scratch register.
34134         (*memory_barrier): Define as unspec instead of unspec_volatile.
34135         Use (match_dup 0) as input operand.
34136
34137         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
34138         Remove mem:BLK from insn operands.  Use Pmode scratch register.
34139         Set volatile flag on operand 0.
34140         (*memory_barrier): New insn pattern.
34141
34142         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
34143         insn operands.
34144         (*memory_barrier): Use (match_dup 0) as input operand.
34145
34146         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
34147         Remove mem:BLK from insn operands.  Use Pmode scratch register.
34148         Set volatile flag on operand 0.
34149         (*mb_internal): New insn pattern.
34150
34151         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
34152
34153 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
34154
34155         PR middle-end/38586
34156         * function.c (struct temp_slot): Move to the section of the file
34157         that deals with temp slots.  Remove field 'address'.
34158         (temp_slot_address_table): New hash table of address -> temp slot.
34159         (struct temp_slot_address_entry): New struct, items for the table.
34160         (temp_slot_address_compute_hash, temp_slot_address_hash,
34161         temp_slot_address_eq, insert_temp_slot_address): Support functions
34162         for the new table.
34163         (find_temp_slot_from_address): Rewrite to use the new hash table.
34164         (remove_unused_temp_slot_addresses): Remove addresses of temp
34165         slots that have been made available.
34166         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
34167         worker function for remove_unused_temp_slot_addresses.
34168         (assign_stack_temp_for_type): Don't clear the temp slot address list.
34169         Add the temp slot address to the address -> temp slot map.
34170         (update_temp_slot_address): Update via insert_temp_slot_address.
34171         (free_temp_slots): Call remove_unused_temp_slot_addresses.
34172         (pop_temp_slots): Likewise.
34173         (init_temp_slots): Allocate the address -> temp slot map, or empty
34174         the map if it is already allocated.
34175         (prepare_function_start): Initialize temp slot processing.
34176
34177 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
34178
34179         PR middle-end/38584
34180         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
34181         Calculate the size of all stack vars assuming no packing of stack
34182         vars will happen, replacing a quadratic algorithm with a linear one.
34183
34184 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
34185
34186         PR target/38707
34187         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
34188         can't be used.
34189
34190 2009-01-03  Diego Novillo  <dnovillo@google.com>
34191
34192         * doc/contrib.texi: Update contributions.
34193
34194 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
34195
34196         PR c++/38705
34197         * builtins.c (fold_builtin_memory_op): Give up if either operand
34198         is volatile.  Set srctype or desttype to non-qualified version
34199         of the other type.
34200
34201         PR c/38700
34202         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
34203         and FUNCTION_DECLs.
34204
34205 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
34206
34207         PR rtl-optimization/35805
34208         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
34209         problem if fast dce is able to remove any instructions.
34210         * dce.c (dce_process_block): Fix dump message.
34211
34212 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
34213
34214         PR 33649
34215         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
34216
34217 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
34218
34219         PR middle-end/38690
34220         * tree-flow.h (op_code_prio, op_prio): New prototypes.
34221         * tree-pretty-print.c (op_code_prio): New function.
34222         (op_prio): No longer static.  Use op_code_prio.
34223         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
34224         Use op_prio and op_code_prio to determine if () should be
34225         printed around operand(s) or not.
34226
34227         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
34228         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
34229         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
34230         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
34231         pp_character instead of pp_string for single letter printing.
34232
34233 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
34234
34235         * doc/extend.texi: Fix '#pragma GCC option' typo.
34236
34237 2009-01-02  Richard Guenther  <rguenther@suse.de>
34238
34239         * doc/install.texi (--enable-checking): Mention different
34240         default for stage1.
34241         (--enable-stage1-checking): Document.
34242
34243 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
34244
34245         PR middle-end/30142
34246         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
34247         case to be an error.
34248
34249 2009-01-02  Ben Elliston  <bje@au.ibm.com>
34250
34251         * config/fp-bit.h (pack_d): Constify argument.
34252         * config/fp-bit.c (makenan): Constify return type. Remove casts.
34253         (isnan): Constify argument.
34254         (isinf): Likewise.
34255         (iszero): Likewise.
34256         (pack_d): Likewise.
34257         (_fpadd_parts): Constify return type.
34258         (_fpmul_parts): Likewise.
34259         (_fpdiv_parts): Likewise.
34260
34261 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
34262
34263         PR c/36489
34264         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
34265         warn about overwriting initializer with side-effects or
34266         -Woverride-init if !IMPLICIT.
34267         (output_init_element): Likewise.  Pass IMPLICIT down to
34268         add_pending_init.
34269         (process_init_element): Add IMPLICIT argument.  Pass it down
34270         to output_init_element.
34271         (push_init_element, pop_init_level, set_designator): Adjust
34272         process_init_element callers.
34273         (set_nonincremental_init, set_nonincremental_init_from_string):
34274         Adjust add_pending_init callers.
34275         (output_pending_init_elements): Adjust output_init_element callers.
34276         * c-tree.h (process_init_element): Adjust prototype.
34277         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
34278         process_init_element callers.
34279
34280 \f
34281 Copyright (C) 2009 Free Software Foundation, Inc.
34282
34283 Copying and distribution of this file, with or without modification,
34284 are permitted in any medium without royalty provided the copyright
34285 notice and this notice are preserved.