OSDN Git Service

764d4d10870cda4e687ecd1d5f3e84c23a667222
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-08-18  Richard Guenther  <rguenther@suse.de>
2
3         PR middle-end/41094
4         * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
5         pow(x,y*z) only if x is nonnegative.
6
7 2009-08-18  Jakub Jelinek  <jakub@redhat.com>
8
9         * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
10         on jumps.
11
12         PR target/40971
13         * config/rs6000/rs6000.c (rs6000_legitimize_address): For
14         [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
15
16 2009-08-17  DJ Delorie  <dj@redhat.com>
17
18         * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
19         * config/m32c/prologue.md (epilogue_freit): New.
20         (fset_b): New.
21         * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
22         (bank_switch_p): Likewise.
23         (fast_interrupt_p): Likewise.
24         (interrupt_p): Likewise.
25         (m32c_conditional_register_usage): Round memregs size up.
26         (need_to_save): We only need to save $a0 when we use ENTER.
27         (interrupt_p): Check for fast_interrupt too.
28         (bank_switch_p): New.
29         (fast_interrupt_p): New.
30         (m32c_attribute_table): Add bank_switch and fast_interrupt.
31         (m32c_emit_prolog): Support bank switching and fast interrupts.
32         * doc/extend.texi (Function Attributes): Add bank_switch and
33         fast_interrupt.
34
35 2009-08-17  Douglas B Rupp  <rupp@gnat.com>
36
37         * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
38         * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
39
40 2009-08-16  Douglas B Rupp  <rupp@gnat.com>
41
42         * doc/invoke.texi (Target options):
43         Add new option list for IA-64/VMS.
44         (menu): Add IA-64/VMS Options.
45         (IA-64/VMS Options): Likewise.
46
47 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
48
49         PR target/38599
50         * config/mips/mips.md (*lwxs): Use :P for pointer values.
51
52 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
53
54         * config/mips/mips-protos.h (mips_push_asm_switch): New function.
55         (mips_pop_asm_switch): Likewise.
56         * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
57         with...
58         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
59         (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
60         (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
61         (mips_print_operand_punctuation): Use them.  Check mips_noreorder
62         instead of set_noreorder.
63         (mips_output_function_prologue): Use the new functions.
64         (mips_output_function_epilogue): Likewise.
65         (mips_need_noat_wrapper_p): New function, split out from...
66         (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
67         Use mips_push_asm_switch and mips_pop_asm_switch.
68         * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
69         and mips_pop_asm_switch.
70         (ASM_OUTPUT_REG_POP): Likewise.
71         (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
72         Use mips_pop_asm_switch.
73         (mips_asm_switch): New structure.
74         (set_noreorder, set_nomacro): Replace with...
75         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
76         * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
77         instead of set_nomacro.
78         (fix_truncsfsi2_macro): Likewise.
79         (cprestore): Likewise.
80         (hazard): Use mips_noreorder instead of set_noreorder.
81         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
82
83 2009-08-16  Uros Bizjak  <ubizjak@gmail.com>
84
85         * config/alpha/alpha.c (alpha_and_function): Handle NULL_RTX returned
86         from prev_active_insn.
87
88 2009-08-16  Anatoly Sokolov  <aesok@post.ru>
89
90         * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
91         * config/avr/avr.c (avr_override_options): Initialize
92         avr_current_arch variable.
93         (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
94         __AVR_HAVE_16BIT_SP__ according to the device type.
95         (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
96         TARGET_TINY_STACK.
97         (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
98         Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
99
100 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
101
102         PR debug/37801
103         * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
104         generating inlined subroutine die only. We shouldn't be
105         called for anything else.
106         (gen_block_die): Don't generate inline subroutine debug info for
107         abstract blocks.
108
109 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
110
111         * graphite-poly.c (print_pbb): Print PBB index.
112
113 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
114
115         PR middle-end/40981
116         * graphite-interchange.c (ppl_max_for_le): Moved...
117         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
118         * graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
119         ppl_Pointset_Powerset_C_Polyhedron_maximize.
120         * graphite-ppl.h (ppl_max_for_le): Declared.
121
122 2009-08-14  Olatunji Ruwase <tjruwase@google.com>
123
124         * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
125         supported on all platforms.
126         * target.h (struct gcc_target): Remove
127         handle_pragma_redefine_extname.
128         * c-cppbuiltin.c: Remove use of
129         targetm.handle_pragma_redefine_extname.
130         * c-pragma.c: Likewise.
131         * target-def.h (TARGET_INITIALIZER): Remove
132         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
133         * config/sol2.h: Remove use of
134         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
135
136 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
137
138         * config/ia64/fde-vms.c: New file.
139         * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
140         * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
141         (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
142         (uw_frame_state_for): Only register a personality routine if it is
143         known to be compatible with our expectations.
144         (_Unwind_FindEnclosingFunction, uw_frame_state_for):
145         Declare unw_table_entry stack variable and
146         mod all calls to _Unwind_FindTableEntry to add arg.
147         * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
148         (_Unwind_FindTableEntry): Add arg to prototype.
149
150 2009-08-14  Eric Botcazou  <ebotcazou@adacore.com>
151
152         * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
153         field 'signal_pfs_loc'.
154         (uw_frame_state_for): Remove duplicate code dealing with leaf
155         procedures without unwind info.
156         If in the frame after unwinding through a signal handler, restore
157         the AR.PFS register instead of the CFM if AR.PFS has not been saved.
158         * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
159         'pfs_loc' to the AR.PFS location in the signal context; instead
160         set 'signal_pfs_loc'.
161         Manually generate the unwind info for the AR.PFS register.
162         (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
163         ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
164         (ia64_handle_unwabi): Test 'fs->unwabi' against them.
165         Do not set 'pfs_loc' to the AR.PFS location in the signal context;
166         instead set 'signal_pfs_loc'.
167         Remove code preventing the AR.PFS register from being restored
168         from the signal context.
169
170 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
171             Tristan Gingold  <gingold@adacore.com>
172
173         * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
174         * config/ia64/t-vms: New file.
175         * config/ia64/vms64.h: New file.
176         * config/ia64/vms.h: New file.
177         * config/ia64/vms-crtinit.asm: New file.
178         * config/ia64/vms_symvec_libgcc_s.opt: New file.
179         * config/ia64/vms-unwind.h: New file.
180
181 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
182
183         * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
184         TFmode compares.
185
186 2009-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
187
188         PR middle-end/30789
189         * builtins.c (do_mpc_arg2): Make extern, define for any MPC
190         version.  Move declaration...
191         * real.h (do_mpc_arg2): ... here.
192         * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
193         and RDIV_EXPR.
194
195 2009-08-14  Rafael Avila de Espindola  <espindola@google.com>
196
197         * final.c (add_debug_prefix_map): Don't use GC memory for
198         old_prefix and new_prefix.
199
200 2009-08-14  Richard Guenther  <rguenther@suse.de>
201
202         * ipa-prop.c (compute_complex_pass_through): If we cannot
203         compute a non-varying offset for IPA_JF_ANCESTOR punt.
204
205 2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
206
207         * c-lex.c (c_lex_with_flags): Increase size of local variable
208         to avoid memory clobber.
209
210 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
211
212         PR target/40934
213         * config/i386/i386.c (ix86_fp_comparison_strategy):
214         Only enable/disable sahf at function granularity.
215
216 2009-08-14  Hans-Peter Nilsson  <hp@axis.com>
217
218         PR rtl-optimization/41064
219         * reload1.c (reload_as_needed): Don't call extract_insn
220         for known invalid replacements after calling
221         validate_replace_rtx_group and verify_changes.
222
223 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
224
225         PR target/41019
226         * config/i386/sse.md (SSEMODE124C8): New mode iterator.
227         (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
228         ix86_expand_fp_vcond.
229         (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
230         Assert that operation is supported by ix86_expand_int_vcond.
231         (vcondu<SSEMODE124C8:mode>): Ditto.
232
233 2009-08-13  DJ Delorie  <dj@redhat.com>
234
235         * config/i386/djgpp-stdint.h: New.
236         * config.gcc (djgpp): Use it.
237
238 2009-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
239
240         * config/sh/sh.c (sh_override_options): When flag_exceptions or
241         flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
242
243 2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
244
245         * tree-ssa-loop-prefetch.c
246         (prune_ref_by_group_reuse): Enhance probabilistic analysis
247         for long-stride pruning.
248         (compute_miss_rate): New function to compute the probability
249         that two memory references access different cache lines.
250
251 2009-08-13  Dave Korn  <dave.korn.cygwin@gmail.com>
252
253         * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
254
255 2009-08-13  Richard Guenther  <rguenther@suse.de>
256
257         PR middle-end/41047
258         * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
259         use the constant pointer type.
260         * gimplify.c (canonicalize_addr_expr): Canonicalize independent
261         of CV qualifiers on the target pointer type.
262         * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
263         conversion check before restrict check.
264
265 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
266
267         PR target/41029
268         * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
269
270 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
271
272         * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
273
274 2009-08-12  Richard Guenther  <rguenther@suse.de>
275
276         PR tree-optimization/41011
277         * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
278         and reference constructing.
279
280 2009-08-12  Xinliang David Li  <davidxl@google.com>
281
282         PR tree-optimization/41012
283         * tree-flow.h : New external interface.
284         * gimple-low.c (check_call_arg): Change to public function.
285         Remove argument mismatch check in lowering.
286         * tree-inline.h (tree_can_inline_p): Interface change.
287         * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
288         into this function.
289         * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
290         Call change to tree_can_inline_p function.
291         (cgraph_decide_inlining_incrementally): Ditto.
292
293 2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
294
295         PR tree-optimization/41031
296         * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
297         on the partition variable rather than promote_mode on the source
298         type.  Assert that the partition variable's type has the same
299         mode as the source value's.
300
301 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
302
303         * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
304         for for_return == 2.
305         * function.c (assign_parm_setup_reg): Use for_return == 2, improve
306         comments.
307         * calls.c (expand_call): Fix typo.
308         * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
309         and PARM_DECL.
310         * stmt.c (expand_value_return): Use promote_function_mode to copy out
311         of pseudo.
312         * targhooks.c (default_promote_function_mode): Handle for_return == 2.
313         * config/cris/cris.c (cris_promote_function_mode): Likewise.
314         * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
315         * config/pa/pa.c (pa_promote_function_mode): Likewise.
316
317 2009-08-11  Andrew Haley  <aph@redhat.com>
318
319         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
320
321 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
322
323         PR bootstrap/40103
324         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
325
326 2009-08-12  Richard Guenther  <rguenther@suse.de>
327
328         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
329         * gimplify.c (gimplify_modify_expr): Do not use
330         lang_hooks.types_compatible_p.
331         * tree-ssa.c (useless_type_conversion_p): For aggregates
332         just return false if the canonical types differ.
333
334 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
335
336         PR middle-end/40980
337         * sese.c (convert_for_phi_arg): New.
338         (add_guard_exit_phis): Use convert_for_phi_arg.
339
340 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
341
342         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
343         unknown subscript upper bounds.
344
345 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
346             Pranav Garg  <pranav.garg2107@gmail.com>
347
348         * graphite-interchange.c (gather_access_strides): Removed.
349         (ppl_max_for_le): New.
350         (build_linearized_memory_access): New.
351         (memory_stride_in_loop): New.
352         (pbb_interchange_profitable_p): Reimplemented.
353         * graphite-ppl.h (ppl_new_id_map): New.
354         (ppl_interchange): New.
355
356 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
357
358         * graphite-interchange.c (compute_subscript): Removed.
359         (compute_array_size_cstr): Removed.
360         (compute_array_size_poly): Removed.
361         (compute_array_size): Removed.
362         (gather_access_strides_poly): Removed.
363         (gather_access_strides): Empty.
364
365 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
366
367         * graphite-dependences.c (dependence_polyhedron_1): Replace
368         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
369         (graphite_legal_transform_dr): Same.
370         (graphite_carried_dependence_level_k): Same.
371         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
372         Initialize PDR_NB_SUBSCRIPTS.
373         (print_pdr_access_layout): Replace pdr_nb_subscripts with
374         PDR_NB_SUBSCRIPTS.
375         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
376         (PDR_NB_SUBSCRIPTS): New.
377         (pdr_nb_subscripts): Removed.
378         (pdr_dim): Simplified.
379         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
380         with PDR_NB_SUBSCRIPTS.
381
382 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
383
384         * graphite-interchange.c (compute_array_size): Remove use of
385         PDR_DATA_CONTAINER.
386         * graphite-poly.c (new_poly_dr): Remove argument data_container.
387         Do not initialize PDR_DATA_CONTAINER.
388         (print_pdr): Do not print PDR_DATA_CONTAINER.
389         * graphite-poly.h (struct poly_dr): Remove data_container field.
390         (PDR_DATA_CONTAINER): Removed.
391         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
392         PDR_DATA_CONTAINER.
393         (build_poly_dr): Same.
394
395 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
396             Sebastian Pop  <sebastian.pop@amd.com>
397
398         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
399         copy of the dependence polyhedron.  Free the temporary objects.
400         (graphite_carried_dependence_level_k): Free unused objects before
401         returning.
402
403         * testsuite/gcc.dg/graphite/interchange-1.c: XFAILed.
404         * testsuite/gcc.dg/graphite/interchange-2.c: XFAILed.
405         * testsuite/gcc.dg/graphite/interchange-3.c: XFAILed.
406         * testsuite/gcc.dg/graphite/interchange-4.c: XFAILed.
407         * testsuite/gcc.dg/graphite/interchange-7.c: XFAILed.
408
409 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
410
411         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
412         Early return without analyzing the data dependences if no
413         transform has been done.  Call restore_scattering if the transform
414         is not legal.
415         (graphite-interchange.c): Same.
416         * graphite-poly.c (print_scattering_function): Test for
417         PBB_TRANSFORMED.
418         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
419         (apply_poly_transforms): Do not gcc_assert that
420         the transform is legal.
421         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
422         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
423         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
424         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
425         * graphite-poly.h (struct poly_scattering): New.
426         (struct poly_bb): Add original, transformed, and saved fields.
427         Remove transformed_scattering, original_scattering,
428         nb_local_variables and nb_scattering_transform fields.
429         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
430         (poly_scattering_new): New.
431         (poly_scattering_free): New.
432         (poly_scattering_copy): New.
433         (store_scattering_pbb): New.
434         (store_scattering): New.
435         (restore_scattering_pbb): New.
436         (restore_scattering): New.
437         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
438         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
439
440 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
441
442         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
443         (print_scop): Same.
444
445 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
446
447         * Makefile.in (graphite.o): Depends on PREDICT_H.
448         * graphite.c: Include predict.h.
449         (graphite_finalize): Call tree_estimate_probability.
450         * predict.c (predict_loops): Do not call scev_initialize and
451         scev_finalize.
452         (tree_estimate_probability_bb): New.
453         (tree_estimate_probability): Do not initialize loops: move that
454         code to the driver.  Call tree_estimate_probability_bb.
455         (tree_estimate_probability_driver): New.
456         (pass_profile): Use tree_estimate_probability_driver.
457         * predict.h (tree_estimate_probability): Declared.
458
459 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
460
461         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
462         * graphite-dependences.c (graphite_legal_transform): Add time to
463         TV_GRAPHITE_DATA_DEPS.
464         (dependency_between_pbbs_p): Same.
465         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
466
467 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
468
469         PR rtl-optimization/41033
470         * alias.c (nonoverlapping_component_refs_p): Punt when strict
471         aliasing is disabled.
472
473 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
474
475         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
476         si_mask_operand, and_load_operand, low_bitmask_operand,
477         and_reg_operand, and_operand): New predicates.
478         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
479         * config/mips/mips.c (and_operands_ok): New function.
480         * config/mips/mips-protos.h (and_operands_ok): Declare it.
481         * config/mips/mips.md (move_type): Add ext_ins and logical.
482         (type): Handle them.
483         (and<mode>3): Use and_reg_operand as the second operand's predicate.
484         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
485         shift_shift.  Remove commutative constraint modifier.
486         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
487         shift_shift.
488         (*clear_upper32_dext): Remove define_insn_and_split.
489         (*clear_upper32): Turn this define_insn_and_split ...
490         (splitter for ANDing register with 0xffff_ffff): .. into this.
491
492 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
493
494         * combine.c (try_widen_shift_mode): Factor out code to check if an
495         integer constant is a low-order bitmask from here ...
496         * rtlanal.c (low_bitmask_len): ... to here.
497         * rtl.h (low_bitmask_len): Declare.
498
499 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
500
501         PR target/8603
502         * config/alpha/alpha.md (addsi3): Remove expander.
503         (addsi3): Rename from *addsi3_internal insn pattern.
504         (subsi3): Remove expander.
505         (subsi3): Rename from *subsi3_internal insn pattern.
506
507 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
508
509         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
510         FWRITE_UNLOCKED.
511
512 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
513             Eric Botcazou  <botcazou@adacore.com>
514             Douglas B Rupp  <rupp@gnat.com>
515
516         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
517         that records that fit in 64 bits are returned by immediate value,
518         as required by OpenVMS Calling Standard.
519         (function_value): Adjust for above modification.
520         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
521         virtual_incoming_args_rtx as base object, not next_arg.
522         * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
523
524 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
525
526         * reload.c (find_reloads_subreg_address): Check the original
527         req_equiv_mem address to detect the case where an address is
528         not valid in the outer mode.
529
530 2009-08-11  Richard Guenther  <rguenther@suse.de>
531
532         PR bootstrap/40788
533         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
534
535 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
536
537         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
538         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
539
540 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
541             Douglas B Rupp  <rupp@gnat.com>
542
543         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
544         PT_STACK when frame_pointer_needed on OpenVMS.
545         (alpha_pv_save_size, alpha_using_fp): Remove.
546         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
547         with proper processing for PT_NULL.
548         (alpha_vms_initial_elimination_offset): New function. Support for
549         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
550         (alpha_sa_size): Force procedure type to PT_STACK when
551         frame_pointer_needed on OpenVMS.
552         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
553         (alpha_using_fp): Likewise.
554         (alpha_vms_can_eliminate): Add prototype.
555         (alpha_vms_initial_elimination_offset): Likewise.
556         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
557         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
558
559 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
560             Douglas B Rupp  <rupp@gnat.com>
561
562         * config/alpha/alpha.c (common_object_handler): New function.
563         (vms_attribute_table): Declare a single attribute "common_object".
564         (vms_output_aligned_decl_common): New global function.
565         (SECTION_VMS_OVERLAY): Delete.
566         (SECTION_VMS_GLOBAL): Likewise.
567         (SECTION_VMS_INITIALIZE): Likewise.
568         (vms_asm_named_section): Remove support for above flags.
569         (vms_section_type_flags): Delete.
570         (TARGET_SECTION_TYPE_FLAGS): Likewise.
571         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
572         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
573         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
574
575 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
576
577         PR target/41015
578         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
579         (sub_ddmmss): Likewise.
580
581 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
582
583         PR bootstrap/41018
584         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
585         year.
586
587 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
588
589         PR target/37053
590         * reload1.c (reload_as_needed): Use cancel_changes to completely
591         undo a failed replacement attempt.
592
593 2009-08-10  Richard Guenther  <rguenther@suse.de>
594
595         PR middle-end/41006
596         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
597         (useless_type_conversion_p): ... here.  Require pointer targets
598         to be compatible.
599
600 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
601
602         PR c++/40866
603         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
604         loose the original type of the statement list.
605
606 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
607
608         * config/alpha/alpha.c: Include libfuncs.h
609         (avms_asm_output_extern): New function.
610         (alpha_init_libfuncs): Init some decc libfuncs.
611         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
612         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
613         (DO_CRTL_NAMES): Define.
614         (LIB_SPEC): Remove.
615         * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef.
616         (LONG_TYPE_SIZE): Define.
617         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
618         (SUBTARGET_SWITCHES): Define malloc64 switch.
619         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
620         (MASK_RETURN_ADDR): Define.
621         doc/invoke.texi (mmalloc64): Document switch.
622
623 2009-08-09  Olivier Hainque  <hainque@adacore.com>
624             Douglas B Rupp  <rupp@gnat.com>
625
626         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
627         uses_condition_handler.
628         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
629         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
630         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
631         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
632         (code_for_builtin): New insn codes for the new alpha_builtins.
633         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
634         (alpha_sa_size): Account for uses_condition_handler.
635         (alpha_expand_prologue): Likewise.
636         (alpha_start_function): Likewise.
637         (alpha_expand_epilogue): Likewise.
638         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
639         establish/revert expanders.
640         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
641         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
642         New expander, resorting to the alpha.c associated function.
643         (builtin_revert_vms_condition_handler): Likewise.
644         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
645         __gcc_shell_handler, the static VMS condition handler used as
646         an indirection wrapper to the current dynamically established
647         handler.
648         * config/alpha/vms-unwind.h: Complete rewrite.
649         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
650         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
651
652 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
653             Douglas B Rupp  <rupp@gnat.com>
654
655         * config/alpha/alpha.c (alpha_links): Add 'target' field.
656         (alpha_need_linkage): Handle aliases.  Return function symbol.
657         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
658         Use ultimate alias target for the linkage name.
659         * config/alpha/alpha.md (movmemdi): Use the symbol returned
660         by alpha_need_linkage for the function symbol.
661         (setmemdi): Likewise.
662
663 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
664
665         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
666         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
667         (ASM_WEAKEN_LABEL): Define.
668         (CRT_CALL_STATIC_FUNCTION): Define.
669         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
670         (ENDFILE_SPEC): Define.
671         (INIT_SECTION_ASM_OP): Define.
672         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
673         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
674         crtend.o crtendS.o.
675         (MULTILIB_OSDIRNAMES): Define.
676         (shlib_version): Define.
677         (SHLIB_EXT): Define.
678         (SHLIB_OBJS): Define.
679         (SHLIB_NAME): Define.
680         (SHLIB_MULTILIB): Define.
681         (SHLIB_INSTALL): Define.
682         (SHLIB_SYMVEC): Define.
683         (SHLIB_SYMVECX2): Define.
684         (SHLIB_LINK): Define.
685
686 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
687
688         * config/alpha/alpha.c (alpha_initialize_trampoline):
689         Initialize VMS trampoline IAW ABI for bounded procedure calls.
690         (alpha_start_function): Emit transfer address on nested functions
691         for VMS trampoline call.
692         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
693         since no longer used.
694         * config/alpha/vms-tramp.asm: Remove.
695         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
696         since now only data initialized at runtime.
697
698 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
699
700         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
701         (LINK_GCC_C_SEQUENCE_SPEC): Define.
702         (MD_EXEC_PREFIX): Remove, no longer used.
703         (MD_STARTFILE_PREFIX): Likewise.
704         (INCLUDE_DEFAULTS): Likewise.
705         * config/alpha/t-vms:
706         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
707
708 2009-08-09  Richard Guenther  <rguenther@suse.de>
709
710         PR tree-optimization/41016
711         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
712         (operand_precision): Remove.
713         (integral_operand_p): Likewise.
714         (recognize_single_bit_test): Adjust.
715
716 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
717
718         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
719         operation overflows.  Likewise non-cast unary arithmetic.
720         If one arm of a conditional expression is always taken,
721         inhibit evaluation warnings for the other arm.  Likewise inhibit
722         evaluation warnings for the second && or || operand if the first
723         operand is enough to determine the result.
724         * c-typeck.c (build_conditional_expr): Apply the same inhibition
725         rules here.
726         (build_binary_op): Prevent duplicate evaluation warnings.
727
728 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
729
730         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
731         and destination have different modes, Use promote_mode to
732         determine the signedness of the conversion.  Assert that the
733         promoted source mode matches the destination mode.  Don't pass
734         the destination and destination mode to expand_expr if the source
735         mode is different.  Simplify conversion logic.
736
737 2009-08-09  Ira Rosen  <irar@il.ibm.com>
738
739         PR tree-optimization/41008
740         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
741         from condition only in case it's a comparison. Adjust checks.
742
743 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
744
745         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
746         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
747         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
748         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
749         (dump_cand): Handle them.
750         (struct iv_cand): New members COST_STEP and AINC_USE.
751         (stmt_after_increment): Likewise.
752         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
753         callers changed.  Use gimple_uid comparison instead of scanning.
754         (add_candidate_1): When looking for identical candidates, take
755         AINC_USE into account.  Set it for new candidates.
756         (force_expr_to_var_cost): Cast target_spill_cost to int.
757         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
758         All callers changed.  Check for availability of autoinc addressing
759         modes, both in general for a given mode, and in the specific use case.
760         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
761         changed.
762         (get_computation_cost): Likewise.
763         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
764         add_autoinc_candidates): New static functions.
765         (add_candidate): Call add_autoinc_candidates for candidates based on
766         a USE_ADDRESS use.
767         (find_iv_candidates): Call set_autoinc_for_original_candidates.
768         (determine_use_iv_cost_address): If we have an autoinc candidate at
769         the matching use, verify autoinc is possible and subtract the cost
770         of the candidate's step from the cost.
771         (determine_iv_cost): Record the cost of the increment in the COST_STEP
772         member of the candidate.
773         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
774         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
775
776 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
777
778         * config.build (ia64-hp-*vms*): New target.
779         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
780         with ia64-hp-*vms*.
781         * config.gcc (ia64-hp-*vms*): New target.
782         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
783         with ia64-hp-*vms*.
784         * config.host (ia64-hp-*vms*): New target.
785         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
786         with ia64-hp-*vms*.
787
788 2009-08-08  Richard Guenther  <rguenther@suse.de>
789
790         PR tree-optimization/40991
791         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
792
793 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
794
795         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
796         mode check.  Do truncations in an integer mode.
797         (force_to_mode): Handle subregs for all mode types.  Only do
798         arithmetic simplifications on integer modes.
799
800 2009-08-07  Richard Guenther  <rguenther@suse.de>
801
802         PR tree-optimization/40999
803         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
804         (maybe_fold_reference): Lookup constant initializers.
805         (fold_gimple_assign): Likewise.
806
807 2009-08-07  Richard Guenther  <rguenther@suse.de>
808
809         * tree-ssa.c (useless_type_conversion_p_1): Only for types
810         that require structural equality defer to the langhook.
811
812 2009-08-07  Martin Jambor  <mjambor@suse.cz>
813
814         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
815         comments.
816         (struct ipa_pass_through_data): New type.
817         (struct ipa_ancestor_jf_data): New type.
818         (union jump_func_value): Removed field formal_id, added fields
819         pass_through and ancestor.
820         (struct ipa_param_call_note): Changed type of formal_id to int from
821         unsigned.
822         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
823         operations jump functions and ancestor jump functions.
824         (compute_complex_pass_through): New function.
825         (compute_scalar_jump_functions): Call compute_complex_pass_through,
826         reflect changes in the jump function strucutre.
827         (update_jump_functions_after_inlining): Ignore complex pass-through
828         and ancestor jump functions.
829         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
830         polynomial pass-through with operation jump functions.
831
832 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
833
834         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
835         fde->dw_fde_begin as begin label instead of hot/cold label.
836         Use LLSDAC label instead of LLSDA for second section lsda.
837         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
838         label instead of LLSDA if it is true.
839         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
840         callers.
841         * except.c (add_call_site, dw2_size_of_call_site_table): Add
842         SECTION argument.  Use it as index into crtl->eh.call_site_record
843         array.
844         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
845         use it to determine how to print table entries instead of using
846         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
847         label instead of normal begin label as base.
848         (sjlj_assign_call_site_values): Adjust add_call_site caller.
849         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
850         ensure no EH range spans between sections and that landing pads
851         are always in the corresponding section.
852         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
853         for crtl->eh.call_site_record being an array rather than scalar.
854         (output_one_function_exception_table): New function, copied
855         from output_function_exception_table.  Adjust
856         dw2_size_of_call_site_table, dw2_output_call_site_table
857         callers.  For SECOND section use *C suffixed labels.
858         (output_function_exception_table): Call
859         output_one_function_exception_table and, when doing hot/cold
860         partitioning, also another time for the second section.
861         * opts.c: Include except.h.
862         (decode_options): Allow -freorder-blocks-and-partition with
863         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
864         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
865         * function.h (struct rtl_eh): Change call_site_record from
866         scalar into array of 2 elements.
867
868 2009-08-07  Martin Jambor  <mjambor@suse.cz>
869
870         * ipa-prop.c (count_formal_params_1): New function.
871         (ipa_get_vector_of_formal_parms): New function.
872         (get_vector_of_formal_parm_types): New function.
873         (ipa_modify_formal_parameters): New function.
874         (ipa_modify_call_arguments): New function.
875         (index_in_adjustments_multiple_times_p): New function.
876         (ipa_combine_adjustments): New function.
877         (ipa_dump_param_adjustments): New function.
878         * ipa-prop.h (struct ipa_parm_adjustment): New type.
879         (ipa_get_vector_of_formal_parms): Declare.
880         (ipa_modify_formal_parameters): Declare.
881         (ipa_modify_call_arguments): Declare.
882         (ipa_combine_adjustments): Declare.
883         (ipa_dump_param_adjustments): Declare.
884         (build_ref_for_offset): Declare.
885         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
886         * tree-sra.c: Include ipa-prop.c.
887         (build_ref_for_offset): Make public.
888
889 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
890
891         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
892
893 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
894
895         * gcc/doc/extend.texi (__builtin_extract_return_address)
896         (__builtin_frob_return_address): Document.
897
898 2009-08-06  Paul Brook  <paul@codesourcery.com>
899
900         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
901         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
902         implementation on ARMv6-M.
903
904 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
905
906         * doc/extend.texi (pcs): Document new attribute for ARM.
907
908 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
909
910         * arm.c (pcs_attribute_args): Comment out unsupported attribute
911         variants.
912
913 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
914
915         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
916         warning ().
917
918 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
919
920         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
921
922 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
923
924         Merge ARM/hard_vfp_branch to trunk.
925
926         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
927
928         * arm.c (libcall_eq): New function.
929         (libcall_hash): New function.
930         (add_libcall): New function.
931         (arm_libcall_uses_aapcs_base): New function.
932         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
933         libcalls using the base PCS.
934         (arm_init_cumulative_args): Likewise.
935
936         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
937
938         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
939         Use base ABI for conversion libfuncs between HFmode and SFmode.
940
941         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
942
943         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
944         V4SImode as representatives of all 64-bit and 128-bit vector
945         types.  Allow vector types without vector modes.
946         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
947         without vector modes like BLKmode.
948         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
949         BLKmode.  Avoid unsupported vector modes or TImode moves for
950         non-TARGET_NEON.
951         (aapcs_vfp_allocate_return_reg): Likewise.
952         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
953         V8QImode if TARGET_NEON || TARGET_IWMMXT.
954
955         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
956
957         * config/arm/arm.c (arm_handle_pcs_attribute): New.
958         (arm_get_pcs_model): Pass attribute arguments to
959         arm_pcs_from_attribute.
960         (arm_init_cumulative_args): Use base AAPCS for conversions from
961         floating-point types to DImode.
962         (arm_attribute_table): Add pcs attribute.
963         (arm_handle_pcs_attribute): New.
964         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
965         conversions from floating-point types to DImode, also declare them
966         to use base AAPCS and declare functions they call to use base
967         AAPCS and their RTABI names.
968
969         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
970
971         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
972         -mfloat-abi=hard not being supported for VFP.
973
974         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
975
976         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
977         SYMBOL_REF to hard_libcall_value.
978
979         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
980             Richard Earnshaw  <rearnsha@arm.com>
981
982         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
983         has been put on the stack, all remaining co-processory arguments for
984         that co-processor also go on the stack.
985
986         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
987
988         * config/arm/arm.c (arm_return_in_memory): Handle returning
989         vectors of suitable size in registers also for AAPCS case.
990
991         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
992
993         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
994
995         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
996
997         ARM Hard-VFP calling convention
998         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
999         * target.h (gcc_target): Add libcall_value to table of call hooks.
1000         * targhooks.h (default_libcall_value): Default implementation.
1001         * targhooks.c (default_libcall_value): Likewise.
1002         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
1003         * optabs.c (expand_unop): Use it.
1004         * expr.h (hard_libcall_value): Pass the function RTX through.
1005         * calls.c (emit_library_call_value_1): Update call to
1006         hard_libcall_value.
1007         * explow.c (hard_libcall_value): Use new target hook.
1008         * testsuite/lib/target-supports.exp
1009         (check_effective_target_arm_hard_vfp_ok): New hook.
1010         (check_effective_target_arm_neon_ok): Improve test for neon
1011         availability.
1012         * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
1013         * config/arm/arm.c: Include cgraph.h
1014         (TARGET_FUNCTION_VALUE): Override default hook.
1015         (arm_pcs_default): New variable.
1016         (arm_override_options): Don't fault hard calling convention with VFP.
1017         Add support for AAPCS variants.
1018         (arm_function_value): Make static.  Handle AAPCS variants.
1019         (arm_libcall_value): New function.
1020         (arm_apply_result_size): Handle VFP registers in results.
1021         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
1022         conventions.
1023         (pcs_attribute_args): New variable.
1024         (arm_pcs_from_attribute): New function.
1025         (arm_get_pcs_model): New function.
1026         (aapcs_vfp_cum_init): New function.
1027         (aapcs_vfp_sub_candidate): New function.
1028         (aapcs_vfp_is_return_candidate): New function.
1029         (aapcs_vfp_is_call_candidate): New function.
1030         (aapcs_vfp_allocate): New function.
1031         (aapcs_vfp_allocate_return_reg): New function.
1032         (aapcs_vfp_advance): New function.
1033         (aapcs_cp_arg_layout): New variable.
1034         (aapcs_select_call_coproc): New function.
1035         (aapcs_select_return_coproc): New function.
1036         (aapcs_allocate_return_reg): New function.
1037         (aapcs_libcall_value): New function.
1038         (aapcs_layout_arg): New function.
1039         (arm_init_cumulative_args): Initialize AAPCS args data.
1040         (arm_function_arg): Handle AAPCS variants using new interface.
1041         (arm_arg_parital_bytes): Likewise.
1042         (arm_function_arg_advance): New function.
1043         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
1044         calling conventions.
1045         (arm_setup_incoming_varargs): Handle new AAPCS args data.
1046         * arm.h (NUM_VFP_ARG_REGS): Define.
1047         (LIBCALL_VALUE): Update.
1048         (FUNCTION_VALUE): Delete.
1049         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
1050         (arm_pcs): New enum.
1051         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
1052         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
1053         (FUNCTION_ARG_REGNO_P): Add VFP regs.
1054         * arm-protos.h (arm_function_arg_advance): Add.
1055         (aapcs_libcall_value): Add.
1056         (arm_function_value): Delete.
1057
1058 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
1059             H.J. Lu  <hongjiu.lu@intel.com>
1060
1061         PR target/40957
1062         * config/i386/i386.c (standard_sse_mode_p): Remove.
1063         (standard_sse_constant_p): Return 2 for integer mode
1064         vector_all_ones_operand when SSE2 is enabled.
1065         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
1066         (ix86_expand_vector_move): Do not check for negative values from
1067         standard_sse_constant_p.
1068
1069 2009-08-06  Richard Guenther  <rguenther@suse.de>
1070
1071         * tree-ssa.c (useless_type_conversion_p_1): Make function and
1072         array type comparisons frontend independent.
1073         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
1074         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
1075         out array reference lower bound and element size operands.
1076         (ao_ref_init_from_vn_reference): Properly compute the offset
1077         for ARRAY_RANGE_REF.
1078         (vn_reference_fold_indirect): Fill out array reference lower
1079         bound and element size operands.
1080         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
1081         a non gimple valued reference operand which can happen for
1082         array reference lower bound or element size.
1083         (create_component_ref_by_pieces_1): Properly generate the
1084         element size operand for array references.
1085
1086 2009-08-06  Richard Guenther  <rguenther@suse.de>
1087
1088         PR tree-optimization/40964
1089         * tree.c (iterative_hash_host_wide_int): Export.
1090         * tree.h (iterative_hash_host_wide_int): Declare.
1091         * tree-ssa-structalias.c (heapvar_map): New struct.
1092         (heapvar_map_eq): New function.
1093         (heapvar_map_hash): Likewise.
1094         (heapvar_lookup): Adjust.
1095         (heapvar_insert): Likewise.
1096         (make_constraint_from_heapvar): Allow multiple heap variables
1097         per decl at different offsets.
1098         (init_alias_heapvars): Adjust.
1099
1100 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
1101
1102         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
1103         * mips_output_sync_loop (mips_output_sync_loop): Only emit
1104         trailing sync if TARGET_SYNC_AFTER_SC.
1105
1106 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
1107
1108         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
1109         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
1110         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
1111         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
1112         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
1113         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
1114         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
1115         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
1116         test_and_set_12): Rewrite calls to mips_output_sync_loop.
1117         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
1118         the prototype declaration match the definition.
1119         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
1120         instructions explicitly.  Add barrier_before and operands
1121         parameters.
1122         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
1123         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
1124         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
1125         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
1126         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
1127         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
1128
1129 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
1130
1131         * tree-ssa-alias.c: Fix intervals to use [) syntax.
1132
1133 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
1134             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
1135
1136         PR target/40906
1137         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
1138         source operand.
1139
1140 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
1141
1142         PR rtl-optimization/40924
1143         * dse.c (canon_address): Before calling cselib_expand_value_rtx
1144         make sure canon_rtx (mem_address) isn't simpler than
1145         canon_rtx (expanded_mem_address).
1146
1147 2009-08-05  Li Feng  <nemokingdom@gmail.com>
1148
1149         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
1150         for each poly_bb_p.
1151         (build_scop_drs): Build alias set for each SCoP.
1152
1153 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
1154
1155         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
1156         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
1157         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
1158         (MIPS_ARCH_FLOAT_SPEC): Likewise.
1159         (BASE_DRIVER_SELF_SPECS): Likewise.
1160
1161 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
1162
1163         * tree-ssa-alias.c: Fix some comment typos.
1164
1165 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
1166
1167         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
1168         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
1169
1170 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
1171
1172         PR c/39902
1173         * simplify-rtx.c (simplify_binary_operation_1): Disable
1174         simplifications for decimal float operations.
1175
1176 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
1177
1178         PR middle-end/40943
1179         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
1180         operand of INDIRECT_REF.
1181
1182 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
1183
1184         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
1185         constants referencing TLS symbols.
1186
1187 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1188
1189         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
1190         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
1191
1192 2009-08-03  Richard Guenther  <rguenther@suse.de>
1193
1194         * tree.c (make_vector_type): Build a main variant first,
1195         get the canonical one and then build the variant.
1196         * tree-ssa.c (useless_type_conversion_p_1): Handle
1197         fixed-point types.
1198         (useless_type_conversion_p): Conversions to pointers to
1199         incomplete record types are useless.
1200
1201 2009-08-03  Richard Guenther  <rguenther@suse.de>
1202
1203         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
1204         file will be created.
1205         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
1206         * toplev.c (compile_file): Adjust comment.
1207
1208 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
1209
1210         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
1211         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
1212         (TARGET_PROMOTE_FUNCTION_MODE): Define.
1213         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
1214         (sh_promote_function_mode): Fix typo.
1215
1216 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
1217
1218         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
1219
1220 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1221
1222         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
1223         declaration arguments.
1224
1225 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
1226
1227         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
1228         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
1229         (ix86_split_ashl): Ditto.
1230         (ix86_expand_vector_init_one_nonzero): Ditto.
1231         (ix86_expand_vector_set): Ditto.
1232         (ix86_expand_reduc_v4sf): Ditto.
1233
1234 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
1235
1236         * explow.c (promote_function_mode): Remove assert.
1237         * config/sh/sh.c (sh_promote_function_mode): Declare.
1238
1239 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1240
1241         * config/pa/pa.c (pa_promote_function_mode): Declare.
1242         Change to static.  Fix promote_mode call.
1243
1244         * gthr-dce.h (CONST_CAST2): Define if not defined.
1245         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
1246
1247         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
1248
1249 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
1250
1251         * expr.c (store_constructor): Use promote_decl_mode.  Remove
1252         now write-only variable unsignedp.
1253         (expand_expr_real_1): Use promote_decl_mode.
1254         * expr.h (promote_function_mode, promote_decl_mode): New.
1255         (promote_mode): Remove last argument.
1256         * function.c (assign_temp): Drop last argument of promote_mode.
1257         (assign_parm_find_data_types): Use promote_function_mode.
1258         (assign_parm_setup_reg): Likewise.
1259         (expand_function_end): Use promote_function_mode.
1260         * calls.c (initialize_argument_information): Use promote_function_mode.
1261         (precompute_arguments): Use promote_mode instead of checking if
1262         only PROMOTE_FUNCTION_MODE is defined.
1263         (expand_call): When making sibcall decisions, use promote_function_mode.
1264         Below, remove an if for targetm.calls.promote_function_return and
1265         and use promote_function_mode.
1266         (emit_library_call_value_1): Use promote_function_mode, fix bug
1267         where promote_mode was passed FOR_CALL == 0 for a return value in an
1268         assertion.
1269         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
1270         * explow.c (promote_function_mode, promote_decl_mode): New.
1271         (promote_mode): Keep only the FOR_CALL == 0 case.
1272         * combine.c (setup_incoming_promotion): Remove test of
1273         promote_function_args.  Use promote_function_mode.
1274         * stmt.c (expand_value_return): Use promote_decl_mode.
1275         (expand_decl): Use promote_decl_mode.
1276
1277         * expr.c (store_constructor): Use promote_decl_mode.  Remove
1278         now write-only variable unsignedp.
1279         (expand_expr_real_1): Use promote_decl_mode.
1280         * expr.h (promote_function_mode, promote_decl_mode): New.
1281         (promote_mode): Remove last argument.
1282         * function.c (assign_temp): Drop last argument of promote_mode.
1283         (assign_parm_find_data_types): Use promote_function_mode.
1284         (assign_parm_setup_reg): Likewise.
1285         (expand_function_end): Use promote_function_mode.
1286         * calls.c (initialize_argument_information): Use promote_function_mode.
1287         (precompute_arguments): Use promote_mode instead of checking if
1288         only PROMOTE_FUNCTION_MODE is defined.
1289         (expand_call): When making sibcall decisions, use promote_function_mode.
1290         Below, remove an if for targetm.calls.promote_function_return and
1291         and use promote_function_mode.
1292         (emit_library_call_value_1): Use promote_function_mode, fix bug
1293         where promote_mode was passed FOR_CALL == 0 for a return value in an
1294         assertion.
1295         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
1296         * explow.c (promote_function_mode, promote_decl_mode): New.
1297         (promote_mode): Keep only the FOR_CALL == 0 case.
1298         * combine.c (setup_incoming_promotion): Remove test of
1299         promote_function_args.  Use promote_function_mode.
1300         * stmt.c (expand_value_return): Use promote_decl_mode.
1301         (expand_decl): Use promote_decl_mode.
1302
1303         * explow.c (promote_function_mode): Just call the target hook.
1304         * targhooks.c (default_promote_function_mode,
1305         default_promote_function_mode_always_promote): New.
1306         * targhooks.h (default_promote_function_mode,
1307         default_promote_function_mode_always_promote): Declare.
1308         * target.h (promote_function_args, promote_function_return): Remove.
1309         (promote_function_mode): New.
1310         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
1311         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1312         (TARGET_PROMOTE_FUNCTION_MODE): New.
1313         (TARGET_CALLS): Adjust.
1314         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
1315         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
1316
1317         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
1318         * config/s390/s390.c (s390_promote_function_mode): ... here,
1319         with pointer handling.
1320         (TARGET_PROMOTE_FUNCTION_MODE): Define.
1321         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1322
1323         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
1324         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
1325         with pointer handling.
1326         (TARGET_PROMOTE_FUNCTION_MODE): Define.
1327         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1328
1329         * config/sh/sh-protos.h (sh_promote_function_mode): New.
1330         * config/sh/sh.c (sh_promote_function_mode): New.
1331         (TARGET_PROMOTE_FUNCTION_MODE): Define.
1332         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1333
1334         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
1335         * config/cris/cris.c (cris_promote_function_mode): ... here.
1336         (TARGET_PROMOTE_FUNCTION_MODE): Define.
1337         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
1338
1339         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
1340         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
1341         (TARGET_PROMOTE_FUNCTION_MODE): Define.
1342         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
1343
1344         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
1345         * config/arm/arm.c (arm_promote_function_mode): ... here, without
1346         complex type handling.
1347         (TARGET_PROMOTE_FUNCTION_MODE): Define.
1348         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1349
1350         * config/pa/pa.c (pa_promote_function_mode): New.
1351         (TARGET_PROMOTE_FUNCTION_MODE): Define.
1352         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1353
1354         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
1355         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1356         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
1357         * config/xtensa/xtensa.c: Likewise.
1358         * config/stormy16/stormy16.c: Likewise.
1359         * config/iq2000/iq2000.c: Likewise.
1360         * config/rs6000/rs6000.c: Likewise.
1361         * config/picochip/picochip.c: Likewise.
1362         * config/arc/arc.c: Likewise.
1363         * config/mcore/mcore.c: Likewise.
1364         * config/score/score.c: Likewise.
1365         * config/mips/mips.c: Likewise.
1366         * config/bfin/bfin.c: Likewise.
1367         * config/ia64/ia64.c: Likewise (disabled though).
1368
1369         * config/frv/frv.h: Remove pointless remark.
1370
1371         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
1372         TARGET_PROMOTE_FUNCTION_ARGS,
1373         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
1374         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
1375
1376 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
1377
1378         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
1379         -floop-parallelize-all.
1380         * toplev.c (process_options): Rename flag_graphite_force_parallel to
1381         flag_loop_parallelize_all.
1382         * tree-ssa-loop.c (gate_graphite_transforms): Same.
1383         * graphite.c (graphite_transform_loops): Same.
1384         * common.opt: Same.
1385         * graphite-poly.c (apply_poly_transforms): Same.
1386
1387 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
1388
1389         PR tree-optimization/40914
1390         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
1391         if set, then check the delta field of the PMF record.
1392         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
1393         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
1394         call is stored in the delta.
1395
1396 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
1397
1398         * config/mips/mips.md (*clear_upper32_dext): New pattern.
1399
1400 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
1401
1402         * config/i386/bsd.h (ASM_BYTE): New define.
1403         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
1404         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
1405         .byte.  Use fputs or putc instead of fprintf where appropriate.
1406         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
1407         fputs or putc instead of fprintf where appropriate.
1408         * config/i386/i386elf.h: Ditto.
1409         * config/i386/sysv4.h: Ditto.
1410
1411         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
1412         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
1413         (*tls_global_dynamic_64): Ditto.
1414
1415 2009-07-31  Christian Bruel  <christian.bruel@st.com>
1416
1417         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
1418
1419 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1420
1421         * config/arm/arm.c (arm_arm_address_cost): Fix typo.
1422         Remove dead code for MINUS.
1423
1424 2009-07-31  Anthony Green  <green@moxielogic.com>
1425
1426         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
1427         $r12 in prologue.
1428         (moxie_expand_epilogue): Ditto for epilogue.
1429         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
1430         incoming arguments.
1431         (moxie_function_arg): Ditto.
1432         (moxie_pass_by_reference): Ditto.
1433         (moxie_arg_partial_bytes): Ditto.
1434         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
1435         (FUNCTION_ARG_ADVANCE) Ditto.
1436         (REG_PARM_STACK_SPACE) Ditto.
1437         (FUNCTION_ARG_REGNO_P) Dito.
1438
1439         * config.gcc: Add moxie linux config support.
1440         * gcc/config/moxie/uclinux.h: New file.
1441
1442 2009-07-31  DJ Delorie  <dj@redhat.com>
1443
1444         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
1445         (UNSPECV_SP_SWITCH_E): New.
1446         (sp_switch_1): Change to an unspec.
1447         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
1448         replace $r15.
1449         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
1450         reference the new stack's address
1451
1452 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1453
1454         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
1455         graphite-clast-to-gimple.o, graphite-dependences.o,
1456         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
1457         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
1458         (graphite-blocking.o,
1459         graphite-clast-to-gimple.o, graphite-dependences.o,
1460         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
1461         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
1462         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
1463         * cfgloop.h (struct loop): Add can_be_parallel field.
1464         * common.opt (fgraphite-identity): Moved up.
1465         (fgraphite-force-parallel): New flag.
1466         * graphite.c: Rewrite.
1467         * graphite.h: Rewrite.
1468         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
1469         after Graphite.
1470         * toplev.c (graphite_out_file): New file descriptor.
1471         (graphite_in_file): New.
1472         (process_options): flag_graphite_force_parallel cannot be used without
1473         Graphite.
1474         * tree-ssa-loop.c: Include toplev.h.
1475         (gate_graphite_transforms): Enable flag_graphite for
1476         flag_graphite_force_parallel.
1477
1478 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1479
1480         * ChangeLog.graphite: New.
1481         * graphite-blocking.c: New.
1482         * graphite-clast-to-gimple.c: New.
1483         * graphite-clast-to-gimple.h: New.
1484         * graphite-dependences.c: New.
1485         * graphite-dependences.h: New.
1486         * graphite-interchange.c: New.
1487         * graphite-poly.c: New.
1488         * graphite-poly.h: New.
1489         * graphite-ppl.c: New.
1490         * graphite-ppl.h: New.
1491         * graphite-scop-detection.c: New.
1492         * graphite-scop-detection.h: New.
1493         * graphite-sese-to-poly.c: New.
1494         * graphite-sese-to-poly.h: New.
1495         * sese.c: New.
1496         * sese.h: New.
1497
1498 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1499
1500         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
1501         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
1502
1503 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1504
1505         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
1506         (scev_is_linear_expression): Return false if the evolution is not
1507         affine multivariate.
1508
1509 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1510
1511         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
1512         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
1513
1514 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1515
1516         * tree-data-ref.c (debug_data_references): New.
1517         (debug_data_reference): New.
1518         * tree-data-ref.h (debug_data_references): Declared.
1519         (debug_data_reference): Declared.
1520
1521 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1522
1523         * tree-data-ref.c (stmt_simple_memref_p: Removed.
1524         * tree-data-ref.h (scop_p): Removed.
1525         (struct data_reference): Remove field scop.
1526         (DR_SCOP): Removed.
1527         (stmt_simple_memref_p): Removed.
1528
1529 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1530
1531         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
1532         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
1533         basic block empty.
1534
1535 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1536
1537         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
1538
1539 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1540
1541         * doc/invoke.texi (-fgraphite-identity): Documented.
1542
1543 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1544
1545         * tree-scalar-evolution.c: Fix comment.
1546         (instantiate_scev_1): Return unknow from scev instantiation if the
1547         result is not above instantiate_below.
1548
1549 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1550
1551         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
1552         static anymore.  Instantiate the symbols that may have been introduced
1553         by chrec_apply.
1554         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
1555         Declared.
1556
1557 2009-07-30  DJ Delorie  <dj@redhat.com>
1558
1559         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
1560         .vliw directive to VLIW sections.
1561
1562 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1563
1564         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1565         New variables.
1566         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1567         (AUTOHEADER): New variable.
1568         ($(srcdir)/cstamp-h.in): Use it.
1569
1570 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
1571             Pat Haugen  <pthaugen@us.ibm.com>
1572             Revital Eres <ERES@il.ibm.com>
1573
1574         * config/rs6000/vector.md (VEC_F): Add VSX support.
1575         (VEC_A): Ditto.
1576         (VEC_N): Ditto.
1577         (mov<mode>): Ditto.
1578         (vector_load_<mode>): Ditto.
1579         (vector_store_<mode>): Ditto.
1580         (vector GPR move split): Ditto.
1581         (vec_reload_and_plus_<mptrsize>): Ditto.
1582         (vec_reload_and_reg_<mptrsize>): Ditto.
1583         (add<mode>3): Ditto.
1584         (sub<mode>3): Ditto.
1585         (mul<mode>3): Ditto.
1586         (neg<mode>2): Ditto.
1587         (abs<mode>2): Ditto.
1588         (smin<mode>3): Ditto.
1589         (smax<mode>3): Ditto.
1590         (vector_eq<mode>): Ditto.
1591         (vector_gt<mode>): Ditto.
1592         (vector_ge<mode>): Ditto.
1593         (vector_gtu<mode>): Ditto.
1594         (vector_select_<mode>_uns): Ditto.
1595         (vector_eq_<mode>_p): Ditto.
1596         (vector_gt_<mode>_p): Ditto.
1597         (vector_ge_<mode>_p): Ditto.
1598         (vector_gtu_<mode>_p): Ditto.
1599         (cr6_test_for_zero): Ditto.
1600         (cr6_test_for_zero_reverse): Ditto.
1601         (cr6_test_for_lt): Ditto.
1602         (cr6_test_for_lt_reverse): Ditto.
1603         (xor<mode>3): Ditto.
1604         (ior<mode>3): Ditto.
1605         (and<mode>3): Ditto.
1606         (one_cmpl<mode>2): Ditto.
1607         (nor<mode>2): Ditto.
1608         (andc<mode>2): Ditto.
1609         (float<VEC_int<mode>2): Ditto.
1610         (unsigned_float<VEC_int><mode>2): Ditto.
1611         (fix_trunc<mode><VEC_int>2): Ditto.
1612         (fixuns_trunc<mode><VEC_int>2): Ditto.
1613         (vec_init<mode>):
1614         (vec_set<mode>): Ditto.
1615         (vec_extract<mode>): Ditto.
1616         (vec_interleave_highv4sf): Ditto.
1617         (vec_interleave_lowv4sf): Ditto.
1618         (vec_realign_load_<mode>): Ditto.
1619         (vec_shl_<mode>): Ditto.
1620         (vec_shr_<mode>): Ditto.
1621         (div<mode>3): New patterns for VSX.
1622         (vec_interleave_highv2df): Ditto.
1623         (vec_interleave_lowv2df): Ditto.
1624         (vec_pack_trunc_v2df): Ditto.
1625         (vec_pack_sfix_trunc_v2df): Ditto.
1626         (vec_pack_ufix_trunc_v2df): Ditto.
1627         (vec_unpacks_hi_v4sf): Ditto.
1628         (vec_unpacks_lo_v4sf): Ditto.
1629         (vec_unpacks_float_hi_v4si): Ditto.
1630         (vec_unpacks_float_lo_v4si): Ditto.
1631         (vec_unpacku_float_hi_v4si): Ditto.
1632         (vec_unpacku_float_lo_v4si): Ditto.
1633         (movmisalign<mode>): Ditto.
1634         (vector_ceil<mode>2): New patterns for vectorizing math library.
1635         (vector_floor<mode>2): Ditto.
1636         (vector_btrunc<mode>2): Ditto.
1637         (vector_copysign<mode>3): Ditto.
1638
1639         * config/rs6000/predicates.md (easy_vector_constant_msb): New
1640         predicate for setting the high bit in each word, used for copysign.
1641
1642         * config/rs6000/ppc-asm.h (f19): Whitespace.
1643         (f32-f63): Define if VSX.
1644         (v0-v31): Define if Altivec.
1645         (vs0-vs63): Define if VSX.
1646
1647         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
1648
1649         * config/rs6000/power7.md: New file, provide tuning parameters for
1650         -mcpu=power7.
1651
1652         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
1653         (rs6000_cpu_cpp_builtins): Ditto.
1654         (altivec_overloaded_builtins): Ditto.
1655         (altivec_resolve_overloaded_builtin): Ditto.
1656
1657         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
1658         debug switch to disable vectorizing simple math builtin
1659         functions.
1660
1661         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
1662         Vectorize simple math builtin functions.
1663         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
1664         hook to vectorize math builtins.
1665         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
1666         (rs6000_builtin_conversion): Add VSX/power7 support.
1667         (rs6000_builtin_vec_perm): Ditto.
1668         (vsplits_constant): Add support for loading up a vector constant
1669         with just the high bit set in each part.
1670         (rs6000_expand_vector_init): Add VSX/power7 support.
1671         (rs6000_expand_vector_set): Ditto.
1672         (rs6000_expand_vector_extract): Ditto.
1673         (rs6000_emit_move): Ditto.
1674         (bdesc_3arg): Ditto.
1675         (bdesc_2arg): Ditto.
1676         (bdesc_1arg): Ditto.
1677         (rs6000_expand_ternop_builtin): Ditto.
1678         (altivec_expand_builtin): Ditto.
1679         (rs6000_expand_unop_builtin): Ditto.
1680         (rs6000_init_builtins): Ditto.
1681         (altivec_init_builtins): Ditto.
1682         (builtin_function_type): Ditto.
1683         (rs6000_common_init_builtins): Ditto.
1684         (rs6000_handle_altivec_attribute); Ditto.
1685         (rs6000_mangle_type): Ditto.
1686         (rs6000_vector_mode_supported_p): Ditto.
1687         (rs6000_mode_dependent_address): Altivec addresses with AND -16
1688         are mode dependent.
1689
1690         * config/rs6000/vsx.md: New file for VSX support.
1691
1692         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
1693         identifing values with just the most significant bit set.
1694         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
1695         vectorized builtins.
1696
1697         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
1698         (UNSPEC_VRFIM): Delete.
1699         (splitter for loading up vector with most significant bit): New
1700         splitter for vectorizing copysign.
1701         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
1702         vectorizing simple math functions.
1703         (altivec_vrfip): Add support for vectorizing simple math functions.
1704         (altivec_vrfim): Ditto.
1705         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
1706
1707         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
1708         (power7.md, vsx.md): Include for power7 support.
1709         (copysigndf3): Use VSX instructions if -mvsx.
1710         (negdf2_fpr): Ditto.
1711         (absdf2_fpr): Ditto.
1712         (nabsdf2_fpr): Ditto.
1713         (adddf3_fpr): Ditto.
1714         (subdf3_fpr): Ditto.
1715         (muldf3_fpr): Ditto.
1716         (divdf3_fpr): Ditto.
1717         (fix_truncdfdi2_fpr): Ditto.
1718         (cmpdf_internal1): Ditto.
1719         (fred, fred_fpr): Convert into expander/insn to add VSX support.
1720         (btruncdf2, btruncdf2_fpr): Ditto.
1721         (ceildf2, ceildf2_fpr): Ditto.
1722         (floordf2, floordf2_fpr): Ditto.
1723         (floatdidf2, floatdidf2_fpr): Ditto.
1724         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
1725         (fmsubdf4_fpr): Ditto.
1726         (fnmadddf4_fpr_1): Ditto.
1727         (fnmadddf4_fpr_2): Ditto.
1728         (fnmsubdf4_fpr_1): Ditto.
1729         (fnmsubdf4_fpr_2): Ditto.
1730         (fixuns_truncdfdi2): Add expander for VSX support.
1731         (fix_truncdfdi2): Ditto.
1732         (fix_truncdfsi2): Ditto.
1733         (ftruncdf2): Ditto.
1734         (btruncsf2): Whitespace.
1735         (movdf_hardfloat32): Add support for VSX registers.
1736         (movdf_softfloat32): Ditto.
1737         (movdf_hardfloat64): Ditto.
1738         (movdf_hardfloat64_mfpgpr): Ditto.
1739         (movdf_softfloat64): Ditto.
1740         (movti splitters): Add check for vector registers supporting
1741         TImode in the future.
1742         (bpermd): Add power7 bpermd instruction.
1743
1744         * config/rs6000/altivec.h (vec_div): Define if VSX.
1745         (vec_mul): Ditto.
1746         (vec_msub): Ditto.
1747         (vec_nmadd): Ditto.
1748         (vec_nearbyint): Ditto.
1749         (vec_rint): Ditto.
1750         (vec_sqrt): Ditto.
1751         (all predicates): Use the generic builtin function, and not the V4SF
1752         specific function so that the predicates will work with VSX's V2DF.
1753         (vec_all_*): Ditto.
1754         (vec_any_*): Ditto.
1755
1756         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
1757         Document new VSX functions and types.
1758
1759         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
1760         switches.
1761
1762         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
1763         "wa", and "j" constraints.  Modify "v" to talk about Altivec
1764         instead of just vector.
1765
1766 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
1767
1768         PR debug/26475
1769         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
1770         location for phi arguments.
1771         (rewrite_update_phi_arguments): Find locations for reaching defs.
1772         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
1773         Add location to add_phi_arg calls.
1774         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
1775         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
1776         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
1777         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
1778         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
1779         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
1780         * tree-phinodes.c (make_phi_node): Initialize location.
1781         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
1782         (add_phi_arg): Add location parameter.
1783         (remove_phi_arg_num): Move location when moving phi argument.
1784         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
1785         location.
1786         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
1787         slpeel_update_phi_nodes_for_guard1,
1788         slpeel_update_phi_nodes_for_guard2,
1789         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
1790         vect_loop_versioning): Set locations.
1791         * tree-parloops.c (create_phi_for_local_result,
1792         transform_to_exit_first_loop, create_parallel_loop): Add locations.
1793         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
1794         * tree-vect-loop.c (get_initial_def_for_induction,
1795         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
1796         locations.
1797         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
1798         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
1799         (gimple_phi_arg_set_location): New.  Set locus.
1800         (gimple_phi_arg_has_location): New.  Check for locus.
1801         (redirect_edge_var_map_location): New.  Return locus from var_map.
1802         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
1803         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
1804         combining PHI arguments.
1805         (cond_store_replacement): Set location.
1806         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
1807         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
1808         scop_add_exit_phis_edge): Add locations.
1809         * tree-cfgcleanup.c (remove_forwarder_block,
1810         remove_forwarder_block_with_phi): Add locations.
1811         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
1812         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
1813         locations.
1814         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
1815         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
1816         flush_pending_stmts): Add source location.
1817         * lambda-code.c (perfect_nestify): Maintain location stack with argument
1818         stack to preserve locations.
1819         * tree-vect-stmts.c (vectorizable_load): Add location.
1820         * tree-inline.c (copy_phis_for_bb): Copy locus.
1821         (setup_one_parameter): Add call locus to inlined parameter stmts.
1822         (initialize_inlined_parameters): Pass in call location as parameter
1823         assignment locus.
1824         (tree_function_versioning): Pass location to setup_one_parameter.
1825         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
1826         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
1827         copy and edge lists.
1828         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
1829         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
1830         locus parameter and override the stmt default if provided.
1831         (new_elim_graph, clear_elim_graph, delete_elim_graph,
1832         elim_graph_add_edge, elim_graph_remove_succ_edge,
1833         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
1834         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
1835         eliminate_phi):  Add locus info in elimination graph for each edge and
1836         value copy.
1837         (insert_backedge_copies): Copy locus if present.
1838         * tree-flow.h (struct _edge_var_map): Add locus field.
1839         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
1840         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
1841         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
1842         locations.
1843         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
1844
1845 2009-07-30  Martin Jambor  <mjambor@suse.cz>
1846
1847         PR tree-optimization/40570
1848         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
1849         use inlining loops.
1850
1851 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
1852
1853         * ssa-loop-manip.c: Include langhooks.h.
1854         (rewrite_phi_with_iv): New.
1855         (rewrite_all_phi_nodes_with_iv): New.
1856         (canonicalize_loop_ivs): Move here from tree-parloops.c.
1857         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
1858         * tree-parloops.c (loop_parallel_p): Move out all conditions
1859         except dependency check.
1860         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
1861         (gen_parallel_loop): Call canonicalize_loop_ivs without
1862         reduction_list argument.
1863         (build_new_reduction): New.
1864         (gather_scalar_reductions): New.
1865         (try_get_loop_niter): New.
1866         (try_create_reduction_list): New.
1867         (parallleize_loops): Change the parallel conditions check.
1868         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
1869         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
1870
1871 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
1872
1873         * opt-functions.awk (opt_args): Allow argument to be enclosed in
1874         curly braces.
1875         * doc/options.texi (Option properties):  Mention new quoting syntax.
1876
1877 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
1878
1879         * config/alpha/alpha.c (alpha_start_function):
1880         Handle VMS_DEBUG_MAIN_POINTER
1881         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
1882         * doc/invoke.texi: Document -mdebug-main switch.
1883
1884 2009-07-29  Richard Henderson  <rth@redhat.com>
1885
1886         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
1887         (cgraph_create_edge_including_clones): Likewise.
1888         * tree-inline.c (copy_bb): Operate on the correct edges
1889         when updating the callgraph.
1890
1891 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
1892
1893         * config/alpha/vms-cc.c: Deleted.
1894         * config/alpha/vms-ld.c: Deleted.
1895         * config/alpha/t-vms64: Moved to config/vms
1896         * config/alpha/vms-crt0-64.c: Moved to config/vms
1897         * config/alpha/vms-crt0.c: Moved to config/vms
1898         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
1899         * config/alpha/vms-psxcrt0.c: Moved to config/vms
1900         * config/alpha/xm-vms.h: Moved to config/vms
1901         * config/alpha/x-vms: Moved to config/vms
1902         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
1903         config/vms/t-vms.
1904         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
1905         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
1906         (version): Set.
1907         * config/vms/t-vms64: Moved here from config/alpha
1908         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
1909         (argc,argv,envp): Enforce 32bit malloc'ing.
1910         * config/vms/vms-psxcrt0-64.c: Likewise.
1911         * config/vms/vms-crt0.c: Moved here from config/alpha.
1912         * config/vms/vms-psxcrt0.c: Likewise.
1913         * config/vms/vms-crtl-64.h: New file.
1914         * config/vms/vms-crtl.h: New file.
1915         * config/vms/vms.opt: New file.
1916         * config/vms/xm-vms64.h: New file.
1917         * config/vms/xm-vms.h: Moved here from config/alpha.
1918         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
1919         Set.
1920         * config/vms/x-vms: Moved here from config/alpha.
1921         (version, VMS_EXTRA_PARTS): Moved to t-vms.
1922         (vms-ld.o, vms-cc.o): Removed.
1923         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
1924
1925 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
1926
1927         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
1928         correct stack (obvious VMS fix).
1929
1930 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
1931
1932         * dwarf2out.c (output_file_names): Output VMS style file name, size,
1933         date, version info if VMS_DEBUGGING_INFO defined.
1934         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
1935         size, date calculating code moved here.
1936
1937 2009-07-29  Paul Brook  <paul@codesourcery.com>
1938
1939         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
1940         do_push/do_pop.
1941
1942 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
1943
1944         PR target/40577
1945         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
1946         to DImode when generating insq_le insn.
1947
1948 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
1949
1950         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
1951         New macro set for VMS_DEBUGGGING_INFO.
1952         (AT_string_form): Use it.
1953
1954 2009-07-28  DJ Delorie  <dj@redhat.com>
1955
1956         * config/mep/mep.c (vtext_section): New.
1957         (vftext_section): New.
1958         (ftext_section): New.
1959         (mep_select_section): Add support for functions.
1960         (mep_unique_section): Likewise.
1961         (mep_asm_init_sections): Likewise.
1962         (mep_encode_section_info): Remove it from here.
1963
1964         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
1965
1966 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
1967
1968         * tree.h (TREE_DEPRECATED): Document it is used for types too.
1969         (TYPE_VECTOR_OPAQUE): Use default_def_flag
1970
1971 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
1972
1973         * dwarf2out.c (output_file_names): Test new macro
1974         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
1975         (add_comp_dir_attribute): Likewise.
1976
1977 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
1978
1979         * config/i386/mingw-w64.h (LINK_SPEC): Add
1980         separating space between commands.
1981
1982 2009-07-28  Jan Hubicka  <jh@suse.cz>
1983
1984         PR tree-optimization/40759
1985         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
1986         for renaming.
1987
1988 2009-07-27  DJ Delorie  <dj@redhat.com>
1989
1990         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
1991         types are dword-aligned.
1992         (mep_expand_va_start): Likewise.
1993
1994 2009-07-27  Olivier Hainque  <hainque@adacore.com>
1995             Douglas B Rupp  <rupp@gnat.com>
1996
1997         * convert.c (convert_to_pointer): Don't assume the target
1998         pointer type is POINTER_SIZE long. Fetch its precision instead.
1999
2000 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
2001
2002         * system.h (fopen): Undefine if macro.
2003
2004 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
2005
2006         * dwarf2out.c (output_cfi_p): Removed.
2007         (output_cfis): New function.
2008         (output_fde): New function, split from output_call_frame_info.
2009         (output_call_frame_info): Use it.
2010         (dwarf2out_switch_text_section): Use output_cfis.
2011
2012 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
2013
2014         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
2015         TARGET_BI_ARCH is specified without enabling SJLJ.
2016         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
2017         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
2018
2019 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
2020
2021         * arm.md (negdi2): Use DImode if forcing a value into a register.
2022
2023 2009-07-26  Ira Rosen  <irar@il.ibm.com>
2024
2025         PR tree-optimization/40801
2026         * tree-vect-stmts.c (vectorizable_call): Get previous copy
2027         of vector operand from the previous copy of vector statement.
2028         Pass the correct definition type value to
2029         vect_get_vec_def_for_stmt_copy().
2030
2031 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2032
2033         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
2034         const char ** conversion.
2035
2036 2009-07-25 David Daney <ddaney@caviumnetworks.com>
2037
2038         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
2039         fancy_abort() if !ENABLE_ASSERT_CHECKING.
2040         (gcc_unreachable): Invoke __builtin_unreachable() if
2041         !ENABLE_ASSERT_CHECKING.
2042
2043 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
2044
2045         PR rtl-optimization/40445
2046         * emit-rtl.c (next_nonnote_insn_bb): New function.
2047         * rtl.h (next_nonnote_insn_bb): Declare new function.
2048         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
2049         with no successors that is the successor of the ENTRY_BLOCK.
2050         Continue from the top after removing an empty fallthrough block.
2051         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
2052         of next_nonnote_insn.
2053
2054 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
2055
2056         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
2057
2058 2009-07-25  Martin Jambor  <mjambor@suse.cz>
2059
2060         * c-common.c (c_common_attribute_table): New element for noclone.
2061         (handle_noclone_attribute): New function. Forward-declare.
2062         * tree-inline.c (tree_versionable_function_p): Check for noclone
2063         attribute.
2064         * doc/extend.texi (Labels as Values): Document need for noclone.
2065         (Function Attributes): Document noclone attribute.
2066
2067 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
2068
2069         PR rtl-optimization/34999
2070         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
2071         and dw_fde_switched_cold_to_hot fields.
2072         (output_cfi_p): New function.
2073         (output_call_frame_info): If fde->dw_fde_switched_sections,
2074         output 2 FDEs instead of one with corrupted header.
2075         (dwarf2out_do_cfi_startproc): New function.
2076         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
2077         and fde->dw_fde_switched_cold_to_hot.
2078         (dwarf2out_switch_text_section): Compute
2079         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
2080         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
2081         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
2082         Otherwise, compute fde->dw_fde_switch_cfi.
2083
2084 2009-07-24  Cary Coutant  <ccoutant@google.com>
2085
2086         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
2087
2088 2009-07-24  Cary Coutant  <ccoutant@google.com>
2089
2090         * cfghooks.c (split_block): Copy discriminator to new block.
2091         * tree-cfg.c (assign_discriminator): Check location of last
2092         instruction in block as well as first.
2093
2094 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
2095
2096         * config/i386/linux.c: Use fputs or putc instead of fprintf
2097         where appropriate.
2098         * config/i386/gas.h: Ditto.
2099         * config/i386/x86-64.h: Ditto.
2100         * config/i386/att.h: Ditto.
2101
2102 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2103
2104         * expmed.c (emit_store_flag): Use a recursive call to optimize the
2105         xor case.
2106
2107 2009-07-24  Martin Jambor  <mjambor@suse.cz>
2108
2109         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
2110         (ipa_push_func_to_list_1): Declare.
2111         (ipa_push_func_to_list): New function.
2112
2113         * ipa-prop.c (ipa_push_func_to_list_1): New function.
2114         (ipa_init_func_list): Call ipa_push_func_to_list_1.
2115         (ipa_push_func_to_list): Removed.
2116         (ipa_pop_func_from_list): Clear node_enqueued flag.
2117
2118 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
2119
2120         * config/s390/s390.c (override_options): Default
2121         max-unrolled-insns to 100 for z10 tuning.
2122
2123 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
2124
2125         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
2126         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
2127         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
2128         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
2129         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
2130         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
2131         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
2132
2133 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
2134
2135         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
2136         use default set in mingw32.h header.
2137         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
2138         64-bit /mingw/include path.
2139         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
2140         path.
2141
2142 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
2143
2144         PR rtl-optimization/40209
2145         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
2146
2147 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
2148
2149         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
2150         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
2151         with the rest of string where appropriate.  Use fputs or putc
2152         instead of fprintf where appropriate.
2153
2154 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
2155             Pat Haugen  <pthaugen@us.ibm.com>
2156             Revital Eres <ERES@il.ibm.com>
2157
2158         * config/rs6000/vector.md: New file.  Move most of the vector
2159         expander support here from altivec.md to allow for the VSX vector
2160         unit in the future.  Add support for secondary_reload patterns.
2161         Rewrite the patterns for vector comparison, and vector comparison
2162         predicate instructions so that the RTL expresses the desired
2163         behavior, instead of using unspec.
2164
2165         * config/rs6000/constraints.md ("f" constraint): Use
2166         rs6000_constraints to hold the precalculated register class.
2167         ("d" constraint): Ditto.
2168         ("wd" constraint): New constraint for VSX.
2169         ("wf" constraint): Ditto.
2170         ("ws" constraint): Ditto.
2171         ("wa" constraint): Ditto.
2172         ("wZ" constraint): Ditto.
2173         ("j" constraint): Ditto.
2174
2175         * config/rs6000/predicates.md (vsx_register_operand): New
2176         predicate for VSX.
2177         (vfloat_operand): New predicate for vector.md.
2178         (vint_operand): Ditto.
2179         (vlogical_operand): Ditto.
2180         (easy_fp_constant): If VSX, 0.0 is an easy constant.
2181         (easy_vector_constant): Add VSX support.
2182         (altivec_indexed_or_indirect_operand): New predicate for
2183         recognizing Altivec style memory references with AND -16.
2184
2185         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
2186         for vector secondary reload support.
2187         (rs6000_vector_reg_class): Delete, replacing it with
2188         rs6000_constraints.
2189         (rs6000_vsx_reg_class): Ditto.
2190         (rs6000_constraints): New array to hold the register classes of
2191         each of the register constraints that can vary at runtime.
2192         (builtin_mode_to_type): New static array for builtin function type
2193         creation.
2194         (builtin_hash_table): New static hash table for builtin function
2195         type creation.
2196         (TARGET_SECONDARY_RELOAD): Define target hook.
2197         (TARGET_IRA_COVER_CLASSES): Ditto.
2198         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
2199         registers are 128 bits if VSX memory reference instructions are used.
2200         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
2201         unit is being used.
2202         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
2203         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
2204         Print several of the scheduling related parameters.
2205         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
2206         rs6000_constraints instead of rs6000_vector_reg_class.  Move
2207         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
2208         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
2209         Altivec.  Add VSX support.  Setup for secondary reload support on
2210         Altivec/VSX registers.
2211         (rs6000_override_options): Make power7 set the scheduling groups
2212         like the power5.  Add support for new debug switches to override
2213         the scheduling defaults.  Temporarily disable -mcpu=power7 from
2214         setting -mvsx.  Add support for debug switches -malways-hint,
2215         -msched-groups, and -malign-branch-targets.
2216         (rs6000_buitlin_conversion): Add support for returning unsigned
2217         vector conversion functions to fix regressions due to stricter
2218         type checking.
2219         (rs6000_builtin_mul_widen_even): Ditto.
2220         (rs6000_builtin_mul_widen_odd): Ditto.
2221         (rs6000_builtin_vec_perm): Ditto.
2222         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
2223         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
2224         to zero a register.
2225         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
2226         generated upstream.
2227         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
2228         VSX types for bit operations.  Changes to accomidate vector.md.
2229         (bdesc_2arg): Ditto.
2230         (bdesc_1arg): Ditto.
2231         (struct builtin_description_predicates): Rewrite predicate
2232         handling so that RTL describes the operation, instead of passing
2233         the instruction to be used as a string argument.
2234         (bdesc_altivec_preds): Ditto.
2235         (altivec_expand_predicate_builtin): Ditto.
2236         (altivec_expand_builtin): Ditto.
2237         (rs6000_expand_ternop_builtin): Use a switch instead of an if
2238         statement for vsldoi support.
2239         (altivec_expand_ld_builtin): Change to use new names from vector.md.
2240         (altivec_expand_st_builtin): Ditto.
2241         (paired_expand_builtin): Whitespace changes.
2242         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
2243         builtin_mode_to_type table for secondary reload.  Call
2244         builtin_function_type to build random builtin functions.
2245         (altivec_init_builtins): Change to use builtin_function_type to
2246         create builtin function types dynamically as we need them.
2247         (builtin_hash_function): New support for hashing the tree types
2248         for builtin function as we need it, rather than trying to build
2249         all of the trees that we need.  Add initial preliminary VSX support.
2250         (builtin_function_type): Ditto.
2251         (builtin_function_eq): Ditto.
2252         (builtin_hash_struct): Ditto.
2253         (rs6000_init_builtins): Ditto.
2254         (rs6000_common_init_builtins): Ditto.
2255         (altivec_init_builtins): Ditto.
2256         (rs6000_common_init_builtins): Ditto.
2257         (enum reload_reg_type): New enum for simplifing reg classes.
2258         (rs6000_reload_register_type): Simplify register classes into GPR,
2259         Vector, and other registers.  Altivec and VSX addresses in reload.
2260         (rs6000_secondary_reload_inner): Ditto.
2261         (rs6000_ira_cover_classes): New target hook, that returns the
2262         appropriate cover classes, based on -mvsx being used or not.
2263         (rs6000_secondary_reload_class): Add VSX support.
2264         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
2265         (get_vsel_insn): Ditto.
2266         (rs6000_emit_vector_compare): Rewrite vector conditional support
2267         so that where we can, we use RTL operators, instead of blindly use
2268         UNSPEC.
2269         (rs6000_emit_vector_select): Ditto.
2270         (rs6000_emit_vector_cond_expr): Ditto.
2271         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
2272         (create_TOC_reference): Add -mdebug=addr support.
2273         (emit_frame_save): VSX loads/stores need register indexed addressing.
2274
2275         * config/rs6000/rs6000.md: Include vector.md.
2276
2277         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
2278
2279         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2280         support for V2DI, V2DF in logical, permute, select operations.
2281
2282         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
2283         switch for vsx/power7.
2284         (-mvsx-scalar-memory): Ditto.
2285         (-mvsx-align-128): Ditto.
2286         (-mallow-movmisalign): Ditto.
2287         (-mallow-df-permute): Ditto.
2288         (-msched-groups): Ditto.
2289         (-malways-hint): Ditto.
2290         (-malign-branch-targets): Ditto.
2291
2292         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
2293         hook instead.
2294         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
2295         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
2296         (rs6000_vector_reg_class): Delete.
2297         (rs6000_vsx_reg_class): Ditto.
2298         (enum rs6000_reg_class_enum): New enum for the constraints that
2299         vary based on target switches.
2300         (rs6000_constraints): New array to hold the register class for all
2301         of the register constraints that vary based on the switches used.
2302         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
2303         (enum rs6000_builtins): Add unsigned varients for the builtin
2304         declarations returned by target hooks for expanding multiplies,
2305         select, and permute operations.  Add VSX builtins.
2306         (enum rs6000_builtin_type_index): Add entries for VSX.
2307         (V2DI_type_node): Ditto.
2308         (V2DF_type_node): Ditto.
2309         (unsigned_V2DI_type_node): Ditto.
2310         (bool_long_type_node): Ditto.
2311         (intDI_type_internal_node): Ditto.
2312         (uintDI_type_internal_node): Ditto.
2313         (double_type_internal_node): Ditto.
2314
2315         * config/rs6000/altivec.md (whole file): Move all expanders to
2316         vector.md from altivec.md.  Rename insn matching functions to be
2317         altivec_foo.
2318         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
2319         (altivec_vcmp*): Ditto.
2320         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
2321         (VM): New iterator for moves that includes the VSX types.
2322         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
2323         (altivec_vperm_<mode>_uns): New, for unsigned types.
2324         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
2325         (altivec_eq<mode>): Ditto.
2326         (altivec_gt<mode>): Ditto.
2327         (altivec_gtu<mode>): Ditto.
2328         (altivec_eqv4sf): Ditto.
2329         (altivec_gev4sf): Ditto.
2330         (altivec_gtv4sf): Ditto.
2331         (altivec_vcmpbfp_p): Ditto.
2332
2333 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
2334
2335         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
2336         unsigned HWI.
2337
2338 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
2339
2340         PR target/40832
2341         * config/i386/i386.c (output_387_ffreep): Rewrite to use
2342         ASM_SHORT instead of .word.
2343         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
2344         instead of .word in asm template.
2345
2346 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
2347
2348         PR target/37488
2349         * ira-lives.c (bb_has_abnormal_call_pred): New function.
2350         (process_bb_node_lives): Use it.
2351
2352         * ira.c (setup_cover_and_important_classes): Don't setup
2353         ira_important_class_nums.  Add cover classes to the end of
2354         important classes.
2355         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
2356         New.
2357         (find_reg_class_closure): Use reorder_important_classes.
2358
2359         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
2360
2361         * config/i386/i386.c (i386_ira_cover_classes): New function.
2362         (TARGET_IRA_COVER_CLASSES): Redefine.
2363
2364         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
2365         importance of order of cover classes in the array.
2366
2367 2009-07-22  Diego Novillo  <dnovillo@google.com>
2368
2369         * tree-pass.h (TDF_EH): Define.
2370         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
2371         contains TDF_EH, print the EH region number holding GS.
2372         * tree-dump.c (dump_options): Add "eh".
2373         * doc/invoke.texi: Document it.
2374
2375 2009-07-22  Doug Kwan  <dougkwan@google.com>
2376
2377         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
2378
2379 2009-07-22  Michael Matz  <matz@suse.de>
2380
2381         PR tree-optimization/35229
2382         PR tree-optimization/39300
2383
2384         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
2385         (inhibit_phi_insertion): New function.
2386         (insert_into_preds_of_block): Call it for REFERENCEs.
2387         (init_pre): Initialize and finalize scalar evolutions.
2388         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
2389
2390 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
2391
2392         * config/i386/predicates.md (zero_extended_scalar_load_operand):
2393         Use CONST_VECTOR_NUNITS to determine number of elements.
2394
2395 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
2396
2397         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
2398         (U, W): Constraints are now deprecated and will be removed if we
2399         run out of letters.
2400         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
2401         the file.
2402         ("prefetch"): Add the stcmh instruction for prefetching.
2403         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
2404         changes.
2405         (s390_short_displacement): Return always true if compiling for
2406         machines not providing the long displacement facility.
2407         (s390_mem_constraint): Support the new constraint letter Z.
2408         (s390_check_qrst_address): New function.
2409
2410 2009-07-21  DJ Delorie  <dj@redhat.com>
2411
2412         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
2413         alone too.
2414
2415 2009-07-21  Jason Merrill  <jason@redhat.com>
2416
2417         * c-common.c (max_tinst_depth): Increase default to 1024.
2418
2419 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
2420
2421         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
2422         (vec_unpacku_float_lo_v4si): Ditto.
2423
2424 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
2425
2426         PR target/40811
2427         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
2428         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
2429         (builtin_description): Add __builtin_ia32_cvtudq2ps.
2430         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
2431
2432 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
2433
2434         PR tree-optimization/40813
2435         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
2436         it.
2437
2438 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
2439
2440         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
2441         with a NOP_EXPR if needed.
2442
2443 2009-07-21  Paul Brook <paul@codesourcery.com>
2444
2445         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
2446         Terminate debug dump with newline.
2447
2448 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2449
2450         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
2451         Cast "1" to unsigned HOST_WIDE_INT.
2452         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
2453         deposit length to the maximum length - lsb.  Extend length if
2454         HOST_BITS_PER_WIDE_INT is 32.
2455
2456 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
2457
2458         * cgraph.h (constant_pool_htab): New function.
2459         (constant_descriptor_tree): Move from varasm.c.
2460         * varasm.c (constant_pool_htab): New function.
2461         (constant_descriptor_tree): Move to cgraph.h.
2462
2463 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
2464
2465         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
2466
2467 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
2468
2469         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
2470         $(VARRAY_H).
2471
2472 2009-07-20  Xinliang David Li  <davidxl@google.com>
2473
2474         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
2475
2476 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
2477
2478         * config/mips/mips.md (move_type): Add arith.
2479         (type): Handle arith.
2480         (zero_extendsidi2): Rename this into ...
2481         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
2482         (zero_extendsidi2): New expander.
2483         (*zero_extendsidi2_dext): New pattern.
2484
2485 2009-07-20  Nick Clifton  <nickc@redhat.com>
2486
2487         * config.gcc (mips64-*-*): Add definition of tm_defines in order
2488         to set MIPS_ABI_DEFAULT.
2489         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
2490
2491 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
2492
2493         * tree-object-size.c (addr_object_size): Handle unions with
2494         array in it as last field of structs in __bos (, 1) as __bos (, 0).
2495
2496         PR tree-optimization/40792
2497         * tree.c (build_function_type_skip_args): Remove bogus assert.
2498
2499 2009-07-20  Jan Hubicka  <jh@suse.cz>
2500             Martin Jambor  <mjambor@suse.cz>
2501
2502         * cgraph.h (combined_args_to_skip): New field.
2503         * cgraph.c (cgraph_create_virtual_clone): Properly handle
2504         combined_args_to_skip and args_to_skip.
2505         * tree-inline.c (update_clone_info): New function.
2506         (tree_function_versioning): Call update_clone_info.
2507         * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
2508         functions.
2509         (cgraph_materialize_all_clones): More extensive dumping, working
2510         with combined_args_to_skip rather than args_to_skip.
2511
2512 2009-07-20  Ira Rosen  <irar@il.ibm.com>
2513
2514         * tree-vectorizer.h (vectorizable_condition): Add parameters.
2515         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
2516         (get_initial_def_for_reduction): Likewise.
2517         (vectorizable_reduction): Skip the check of first operand in case
2518         of COND_EXPR. Add check that it is outer loop vectorization if
2519         nested cycle was detected. Call vectorizable_condition() for
2520         COND_EXPR. If reduction epilogue cannot be created do not fail for
2521         nested cycles (if it is not double reduction). Assert that there
2522         is only one type in the loop in case of COND_EXPR. Call
2523         vectorizable_condition() to vectorize COND_EXPR.
2524         * tree-vect-stmts.c (vectorizable_condition): Update comment.
2525         Add parameters. Allow nested cycles if called from
2526         vectorizable_reduction(). Use reduction vector variable if provided.
2527         (vect_analyze_stmt): Call vectorizable_reduction() before
2528         vectorizable_condition().
2529         (vect_transform_stmt): Update call to vectorizable_condition().
2530
2531 2009-07-20  Christian Bruel  <christian.bruel@st.com>
2532
2533         * config/sh/sh.opt (-mfmovd): Resurrect and document.
2534         * doc/invoke.texi (-mfmovd): Likewise.
2535         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
2536
2537 2009-07-20  Jan Hubicka  <jh@suse.cz>
2538
2539         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
2540         when handling SSA name.
2541
2542 2009-07-19  Jan Hubicka  <jh@suse.cz>
2543
2544         PR tree-optimization/40676
2545         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
2546         virtual PHIs in empty BBs.
2547
2548 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
2549
2550         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
2551         re-expanded the compound use gen_lowpart instead to convert to the
2552         desired mode.
2553
2554 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
2555
2556         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
2557         OUTER_CONST arguments.
2558         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
2559         the new wider mode will be masked off.
2560         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
2561
2562 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
2563
2564         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
2565         high-order bits are zero.
2566
2567 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
2568
2569         * combine.c (simplify_shift_const_1): Split code to determine
2570         shift_mode into ...
2571         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
2572         new bits shifted in are identical to the old sign bit.
2573
2574 2009-07-18  Richard Guenther  <rguenther@suse.de>
2575
2576         PR c/40787
2577         * gimplify.c (gimplify_call_expr): Reject code using results from
2578         functions returning void.
2579
2580 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
2581
2582         * doc/md.texi: Document the new PowerPC "es" constraint.
2583         Document that "m" can include automodified addresses on this target,
2584         and explain how %U must be used.  Extend the "Q" and "Z" documentation
2585         to suggest "es" as well as "m".
2586         * config/rs6000/constraints.md (es): New memory constraint.
2587         (Q, Z): Update strings to match new documentation.
2588
2589 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
2590
2591         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
2592         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
2593         * config/rs6000/predicates.md (volatile_mem_operand): Use
2594         offsettable_nonstrict_memref_p.
2595         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
2596         (*floatunssidf2_internal): Likewise.
2597         (*fix_truncdfsi2_internal): Likewise.
2598         (*fix_trunctfsi2_internal): Likewise.
2599
2600 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
2601
2602         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
2603         atmega32u2 devices.
2604         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2605
2606 2009-07-17  Richard Guenther  <rguenther@suse.de>
2607
2608         PR c/40401
2609         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
2610         (pass_warn_unused_result): Likewise.
2611         (TODO_set_props): Remove.
2612         * omp-low.c (diagnose_omp_structured_block_errors): Change to
2613         run as a pass.
2614         (pass_diagnose_omp_blocks): Define.
2615         * c-decl.c (pop_file_scope): Do not finalize the CU here.
2616         (c_gimple_diagnostics_recursively): Remove.
2617         (finish_function): Do not call it.
2618         (c_write_global_declarations): Continue after errors.
2619         Finalize the CU here.
2620         * c-gimplify.c (c_genericize): Do not gimplify here.
2621         * c-common.c (c_warn_unused_result): Move ...
2622         * tree-cfg.c (do_warn_unused_result): ... here.
2623         (run_warn_unused_result): New function.
2624         (gate_warn_unused_result): New function.
2625         (pass_warn_unused_result): New pass.
2626         * c-common.h (c_warn_unused_result): Remove.
2627         * flags.h (flag_warn_unused_result): Declare.
2628         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
2629         * opts.c (flag_warn_unused_result): Initialize to false.
2630         * toplev.c (compile_file): Add comment.
2631         * omp-low.c (create_omp_child_function): Do not register
2632         the function with the frontend.
2633         (diagnose_omp_structured_block_errors): Prepare to be
2634         called as optimization pass.
2635         (gate_diagnose_omp_blocks): New function.
2636         (pass_diagnose_omp_blocks): New pass.
2637         * cgraph.h (cgraph_optimize): Remove.
2638         (cgraph_analyze_function): Likewise.
2639         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
2640         * cgraphunit.c (cgraph_lower_function): Lower nested functions
2641         before their parents here.
2642         (cgraph_finalize_function): Not here.
2643         (cgraph_analyze_function): Gimplify functions here.
2644         (cgraph_finalize_compilation_unit): Continue after errors.
2645         Optimize the callgraph from here.
2646         (cgraph_optimize): Make static.
2647         * langhooks.c (write_global_declarations): Finalize the CU.
2648         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
2649         (gimplify_function_tree): Assert we gimplify only once.
2650         Set PROP_gimple_any property.
2651         * tree-nested.c (gimplify_all_functions): New function.
2652         (lower_nested_functions): Gimplify all nested functions.
2653         * gimple.h (diagnose_omp_structured_block_errors): Remove.
2654         * passes.c (init_optimization_passes): Add pass_warn_unused_result
2655         and pass_diagnose_omp_blocks after gimplification.  Do not
2656         set TODO_set_props on all_lowering_passes.
2657         (execute_one_pass): Do not handle TODO_set_props.
2658         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
2659         (gimplify.o): Add tree-pass.h dependency.
2660         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
2661         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
2662         (unsave_r): Likewise.
2663         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
2664         temporary variable.
2665
2666 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
2667
2668         * doc/service.texi (Service): Restore previously removed link,
2669         which isn't broken after all.
2670
2671 2009-07-17  Richard Guenther  <rguenther@suse.de>
2672
2673         PR tree-optimization/40321
2674         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
2675         PHI nodes to the maximal set.
2676         (make_values_for_phi): Add PHI arguments to the maximal set.
2677         (execute_pre): Dump PHI_GEN and the maximal set.
2678
2679 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
2680
2681         PR c++/40780
2682         * gimplify.c (gimplify_conversion): Don't change non-conversions into
2683         VIEW_CONVERT_EXPR.
2684
2685 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
2686
2687         * doc/extend.texi (Nested Functions): Replace broken link with
2688         textual reference.
2689         * doc/service.texi (Service): Remove broken link.
2690
2691 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
2692
2693         PR bootstrap/40781
2694         * builtins.c (expand_builtin_memcmp): Use loc instead of
2695         EXPR_LOCATION (exp).
2696         (expand_builtin_strncmp): Likewise.
2697
2698 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
2699             Manuel López-Ibáñez  <manu@gcc.gnu.org>
2700
2701         PR 40435
2702         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
2703         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
2704         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
2705         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
2706         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
2707         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
2708         tree-inline.c, c-common.c, c-common.h, gimple.c,
2709         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
2710         convert.c: Add location argument to fold_{unary,binary,ternary},
2711         fold_build[123], build_call_expr, build_size_arg,
2712         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
2713         fold_build1_initializer, fold_build2_initializer,
2714         fold_build3_initializer, fold_build_call_array,
2715         fold_build_call_array_initializer, fold_single_bit_test,
2716         omit_one_operand, omit_two_operands, invert_truthvalue,
2717         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
2718         combine_comparisons, fold_builtin_*, fold_call_expr,
2719         build_range_check, maybe_fold_offset_to_address, round_up,
2720         round_down.
2721
2722 2009-07-16  Jason Merrill  <jason@redhat.com>
2723
2724         PR libstdc++/37907
2725         * c-common.c (c_common_reswords): Add __is_standard_layout
2726         and __is_trivial.
2727         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
2728         * doc/implement-cxx.texi: New.
2729         * doc/gcc.texi: Include it.
2730
2731 2009-07-16  DJ Delorie  <dj@redhat.com>
2732
2733         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
2734         compares that may be indirectly affected by previous instructions.
2735
2736 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2737
2738         * builtins.c (do_mpc_arg2): New.
2739         (fold_builtin_2): Fold builtin cpow.
2740         * real.h (HAVE_mpc_pow): New.
2741
2742 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
2743
2744         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
2745         comparison to skip unprofitable schedule
2746
2747 2009-07-16  Simon Baldwin  <simonb@google.com>
2748
2749         * gcc.c (option_map): New flag -no-canonical-prefixes.
2750         * (display_help): Print help text for new flag.
2751         * (process_command): Move options translation and language specifics
2752         and handle new flag early.  Use it to set a function pointer to a
2753         prefix builder.  Replace make_relative_prefix calls with calls to
2754         the function pointed to.  Ignore new flag in regular options handling.
2755         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
2756
2757 2009-07-15  DJ Delorie  <dj@redhat.com>
2758
2759         * config/mep/mep.md (sibcall_internal): Change register to avoid
2760         argument registers.
2761         (sibcall_value_internal): Likewise.
2762
2763 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
2764
2765         PR rtl-optimization/40710
2766         * resource.c (mark_target_live_regs): Reset DF problem to LR.
2767
2768 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
2769
2770         * config/mips/mips.md (*extenddi_truncate<mode>,
2771         *extendsi_truncate<mode>): Change type attribute to move_type
2772         with shift_shift.  Split out code handling exts from here ...
2773         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
2774         pattern.
2775         (*extendhi_truncateqi): Change type attribute to move_type with
2776         shift_shift.  Split out code handling exts from here ...
2777         (*extendhi_truncateqi_exts): ... to this new pattern.
2778
2779 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
2780
2781         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
2782         instead of "and" with inverted sign bit mask value.  Use
2783         "nonimmediate_operand" for operand 1 and operand 2 predicate.
2784         Allocate registers only for operand 4 and operand 5.
2785
2786 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
2787
2788         PR middle-end/40747
2789         * fold-const.c (fold_cond_expr_with_comparison): When folding
2790         < and <= to MIN, make sure the MIN uses the same type as the
2791         comparison's operands.
2792
2793 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
2794
2795         * arm.md (ior_xor): New code iterator.
2796         (split for ior/xor with shift and zero-extend): New split pattern.
2797         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
2798
2799 2009-07-15  Richard Guenther  <rguenther@suse.de>
2800
2801         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
2802         offset member.
2803
2804 2009-07-15  Richard Guenther  <rguenther@suse.de>
2805
2806         PR middle-end/40753
2807         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
2808
2809 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
2810
2811         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
2812         handle 2.6.30 kernel.
2813
2814 2009-07-15  DJ Delorie  <dj@redhat.com>
2815
2816         * config/mep/mep.md (sibcall_internal): Change register to allow
2817         for 24-bit addresses.
2818         (sibcall_value_internal): Likewise.
2819
2820 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
2821
2822         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
2823         that are enabled/disabled by the flags introduced by a previous patch.
2824
2825 2009-07-14  DJ Delorie  <dj@redhat.com>
2826
2827         * config/mep/mep.md (sibcall_internal): Include non-toggling
2828         non-jmp case.
2829         (sibcall_value_internal): Likewise.
2830
2831 2009-07-14  Taras Glek  <tglek@mozilla.com>
2832             Rafael Espindola  <espindola@google.com>
2833
2834         * doc/sourcebuild.texi: Document install-plugin target.
2835         * configure.ac: Added install-plugin target to language makefiles.
2836         * configure: Regenerate.
2837         * Makefile.in: (install-plugin): Install more headers,
2838         depend on lang.install-plugin.
2839
2840 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2841
2842         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
2843         translation.
2844
2845 2009-07-14  DJ Delorie  <dj@redhat.com>
2846
2847         * config/mep/mep.c (mep_vliw_jmp_match): New function.
2848         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
2849         * config/mep/mep.md (sibcall_internal): Change test from
2850         mep_vliw_mode_match to mep_vliw_jmp_match.
2851         (sibcall_value_internal): Likewise.
2852
2853 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
2854
2855         * config/i386/sse.md (copysign<mode>3): New expander.
2856         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
2857         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
2858         Use ix86_build_const_vector.
2859         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
2860         IX86_BUILTIN_CPYSGNPD.
2861         (builtin_description): Add __builtin_ia32_copysignps and
2862         __builtin_ia32_copysignpd.
2863         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
2864         and BUILT_IN_COPYSIGNF.
2865
2866 2009-07-13  Jason Merrill  <jason@redhat.com>
2867
2868         * builtins.c (can_trust_pointer_alignment): New fn.
2869         (get_pointer_alignment): Factor it out from here.
2870         * tree.h: Declare it.
2871
2872 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
2873
2874         * config/rs6000/predicates.md (offsettable_mem_operand): Test
2875         RTX_AUTOINC class.
2876
2877 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
2878
2879         PR debug/40705
2880         PR c++/403057
2881         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
2882
2883 2009-07-14  Richard Guenther  <rguenther@suse.de>
2884             Andrey Belevantsev <abel@ispras.ru>
2885
2886         PR middle-end/40745
2887         * cfgexpand.c (partition_stack_vars): Do not bother to update
2888         alias information when not optimizing.
2889
2890 2009-07-14  Richard Guenther  <rguenther@suse.de>
2891             Andrey Belevantsev <abel@ispras.ru>
2892
2893         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
2894         (pt_solution_set): Likewise.
2895         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
2896         * tree-ssa-structalias.c (pt_solution_set): New function.
2897         * final.c (rest_of_clean_state): Free SSA data structures.
2898         * print-rtl.c (print_decl_name): Remove.
2899         (print_mem_expr): Implement in terms of print_generic_expr.
2900         * alias.c (ao_ref_from_mem): New function.
2901         (rtx_refs_may_alias_p): Likewise.
2902         (true_dependence): Query alias-export info.
2903         (canon_true_dependence): Likewise.
2904         (write_dependence_p): Likewise.
2905         * tree-dfa.c (get_ref_base_and_extent): For void types leave
2906         size unknown.
2907         * emit-rtl.c (component_ref_for_mem_expr): Remove.
2908         (mem_expr_equal_p): Use operand_equal_p.
2909         (set_mem_attributes_minus_bitpos): Do not use
2910         component_ref_for_mem_expr.
2911         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
2912         (update_alias_info_with_stack_vars): Likewise.
2913         (partition_stack_vars): Call update_alias_info_with_stack_vars.
2914         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
2915         explicitly nor clear stmt operands.
2916         Free the decl-to-pointer map.
2917         * tree-optimize.c (execute_free_datastructures): Do not free
2918         SSA data structures here.
2919         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
2920         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
2921         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
2922         dependencies.
2923         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
2924
2925 2009-07-13  DJ Delorie  <dj@redhat.com>
2926
2927         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
2928         unrolling at the right iteration count.
2929
2930         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
2931         calculations.
2932
2933 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
2934
2935         * haifa-sched.c (rank_for_schedule): Introduced flags to
2936         enable/disable individual scheduling heuristics.
2937         * common.opt: Introduced flags to enable/disable individual
2938         heuristics in the scheduler.
2939         * doc/invoke.texi: Introduced flags to enable/disable individual
2940         heuristics in the scheduler.
2941
2942 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
2943
2944         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
2945         config/i386/mingw-tls.c.
2946         * config/i386/mingw-tls.c: Removed.
2947
2948 2009-07-13  Ira Rosen  <irar@il.ibm.com>
2949
2950         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
2951         checks access only relevant statements.
2952         (vectorizable_reduction): Likewise.
2953
2954 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
2955
2956         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
2957         just for 32-bit case.
2958
2959 2009-07-12  Jan Hubicka  <jh@suse.cz>
2960
2961         PR tree-optimization/40585
2962         * except.c (expand_resx_expr): When there already is resume
2963         instruction, produce linked list.
2964         (build_post_landing_pads): Assert that resume is empty.
2965         (connect_post_landing_pads): Handle resume lists.
2966         (dump_eh_tree): Dump resume list.
2967
2968 2009-07-12  Ira Rosen  <irar@il.ibm.com>
2969
2970         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
2971         with additional argument.
2972         * tree-vectorizer.h (enum vect_def_type): Add
2973         vect_double_reduction_def.
2974         (vect_is_simple_reduction): Add argument.
2975         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
2976         indentation.
2977         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
2978         vect_is_simple_reduction with additional argument.
2979         (vect_analyze_loop_operations): Handle exit phi nodes in case of
2980         double reduction.
2981         (reduction_code_for_scalar_code): Handle additional codes by
2982         returning ERROR_MARK for them. Fix comment and indentation.
2983         (vect_is_simple_reduction): Fix comment, add argument to specify
2984         double reduction. Detect double reduction.
2985         (get_initial_def_for_induction): Fix indentation.
2986         (get_initial_def_for_reduction): Fix comment and indentation.
2987         Handle double reduction. Create initial definitions that do not
2988         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
2989         (vect_create_epilog_for_reduction): Fix comment, add argument to
2990         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
2991         epilogue result extraction. Create double reduction phi node and
2992         replace relevant uses.
2993         (vectorizable_reduction): Call vect_is_simple_reduction with
2994         additional argument. Fix indentation. Update epilogue code treatment
2995         according to the changes in reduction_code_for_scalar_code. Check
2996         for double reduction. Call vect_create_epilog_for_reduction with
2997         additional argument.
2998         * tree-vect-stmts.c (process_use): Handle double reduction, update
2999         documentation.
3000         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
3001         (vect_get_vec_def_for_operand): Likewise.
3002
3003 2009-07-12  Danny Smith  <dansmister@gmail.com>
3004
3005         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
3006         dllexport if !TREE_PUBLIC.
3007         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
3008
3009 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
3010
3011         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
3012         (avr_extra_arch_macro) Remove declatation.
3013         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
3014         (avr_extra_arch_macro) Declare as static.
3015         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
3016
3017 2009-07-11  Jan Hubicka  <jh@suse.cz>
3018
3019         PR middle-end/48388
3020         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
3021
3022 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
3023
3024         PR debug/40713
3025         * dwarf2out.c (dw_fde_struct): Add in_std_section and
3026         cold_in_std_section bits.
3027         (dwarf2out_begin_prologue): Initialize them.
3028         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
3029         if already covered by text_section or cold_text_section range.
3030
3031         PR rtl-optimization/40667
3032         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
3033         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
3034         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
3035         * config/i386/i386.c (ix86_minimum_alignment): New function.
3036         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
3037         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
3038         * emit-rtl.c (gen_reg_rtx): Likewise.
3039         * function.c (assign_parms): Likewise.  If nominal_type needs
3040         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
3041         rather than passed_type's alignment.
3042
3043         PR target/40668
3044         * function.c (assign_parm_setup_stack): Adjust
3045         MEM_OFFSET (data->stack_parm) if promoted_mode is different
3046         from nominal_mode on big endian.
3047
3048 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
3049
3050         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
3051
3052 2009-07-10  DJ Delorie  <dj@redhat.com>
3053
3054         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
3055
3056 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
3057
3058         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
3059         attribute.
3060         (thumb2_cbnz): Likewise.
3061
3062 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
3063
3064         PR target/39079
3065         * config.gcc (supported_defaults): Add synci.
3066         (with_synci): Add validation.
3067         (all_defaults): Add synci.
3068         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
3069         ISA_HAS_SYNCI.
3070         (synci): Same.
3071         * config/mips/mips.opt (msynci): New option.
3072         * config/mips/mips.c (mips_override_options): Warn on use of
3073         -msynci for targets that do now support it.
3074         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
3075         msynci.
3076         * gcc/doc/invoke.texi (-msynci): Document the new option.
3077         * doc/install.texi (--with-synci): Document the new option.
3078
3079 2009-07-10  Richard Guenther  <rguenther@suse.de>
3080
3081         PR tree-optimization/40496
3082         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
3083         the PHI result with a compatible type.
3084
3085 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3086
3087         PR 25509
3088         PR 40614
3089         * c.opt (Wunused-result): New.
3090         * doc/invoke.texi: Document it.
3091         * c-common.c (c_warn_unused_result): Use it.
3092
3093 2009-07-09  DJ Delorie  <dj@redhat.com>
3094
3095         * targhooks.c (default_target_can_inline_p): Rename from
3096         default_target_option_can_inline_p.
3097         * targhooks.h (default_target_can_inline_p): Likewise.
3098         * target-def.h (TARGET_CAN_INLINE_P): Rename from
3099         TARGET_OPTION_CAN_INLINE_P.
3100         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
3101         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
3102         (mep_target_can_inline_p): Rename from
3103         mep_target_option_can_inline_p.
3104
3105         PR target/40626
3106         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
3107         registers used to pass vectors.
3108
3109         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
3110
3111 2009-07-09  Tom Tromey  <tromey@redhat.com>
3112
3113         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
3114         * config/mmix/mmix.c: Include dwarf2.h.
3115         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
3116         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
3117         * config/sh/sh.c: Include dwarf2.h.
3118         * config/i386/i386.c: Include dwarf2.h.
3119         * Makefile.in (DWARF2_H): Remove 'elf'.
3120         * except.c: Include dwarf2.h.
3121         * unwind-dw2.c: Include dwarf2.h.
3122         * dwarf2out.c: Include dwarf2.h.
3123         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
3124         * unwind-dw2-fde.c: Include dwarf2.h.
3125         * dwarf2asm.c: Include dwarf2.h.
3126
3127 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
3128
3129         * haifa-sched.c (insn_finishes_cycle_p): New static function.
3130         (max_issue): Use it.
3131         * sched-int.h (struct sched_info: insn_finishes_block_p): New
3132         scheduler hook.
3133         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
3134         (region_sched_info): Update.
3135         * sched-ebb.c (ebb_sched_info): Update.
3136         * modulo-sched.c (sms_sched_info): Update.
3137         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
3138
3139 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
3140
3141         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
3142
3143 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
3144
3145         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
3146
3147 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
3148
3149         PR middle-end/40692
3150         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
3151         arg1 with arg01 if arg1 is already INTEGER_CST.
3152
3153 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
3154
3155         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
3156         Transform (and (truncate)) into (truncate (and)).
3157
3158 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
3159
3160         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
3161         creating LHS paradoxical subregs.  Fix surrounding returns to
3162         use NULL_RTX rather than 0.
3163
3164 2009-07-08  DJ Delorie  <dj@redhat.com>
3165
3166         * config/mep/mep.c: (mep_option_can_inline_p): New.
3167         (TARGET_OPTION_CAN_INLINE_P): Define.
3168
3169 2009-07-08  Mark Wielaard  <mjw@redhat.com>
3170
3171         PR debug/40659
3172         * dwarf2out.c (add_data_member_location_attribute): When we have
3173         only a constant offset don't emit a new location description using
3174         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
3175         dwarf_version > 2.
3176
3177 2009-07-08  Richard Henderson  <rth@redhat.com>
3178
3179         PR target/38900
3180         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
3181         (enum reg_class): Add CLOBBERED_REGS.
3182         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
3183         * config/i386/i386.c (ix86_conditional_register_usage): Moved
3184         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
3185         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
3186         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
3187         force 64-bit sibcalls into R11.
3188         * config/i386/constraints.md (U): New constraint.
3189         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
3190         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
3191         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
3192
3193 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
3194
3195         * basic-block.h (dump_regset, debug_regset): Remove duplicate
3196         prototypes.
3197         * c-objc-common.h (c_initialize_diagnostics): Ditto.
3198         * ebitmap.h (dump_ebitmap): Ditto.
3199         * optabs.h (optab_libfunc): Ditto.
3200         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
3201         * tree-flow.h (vect_can_force_dr_alignment_p,
3202         get_vectype_for_scalar_type): Ditto.
3203         (vectorize_loops): Move prototype to ...
3204         * tree-vectorizer.h: ... here. Also, adjust comment.
3205         (vect_set_verbosity_level): Remove duplicate prototype.
3206         * tree-ssa-loop.c: Include tree-vectorizer.h.
3207         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
3208
3209 2009-07-08  Nick Clifton  <nickc@redhat.com>
3210
3211         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
3212         forward slash.
3213
3214 2009-07-08  DJ Delorie  <dj@redhat.com>
3215
3216         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
3217         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
3218         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
3219         written to.
3220         * config/mep/intrinsics.md: Regenerated.
3221         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
3222         registers when asm() or calls are detected.
3223
3224 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3225
3226         PR c++/31246
3227         * gimplify.c (gimplify_expr): Propagate no_warning flag when
3228         gimplifying.
3229         * gimple (gimple_build_call_from_tree): Likewise.
3230         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
3231         no_warning flag before warning.
3232
3233 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3234
3235         * tree.c (set_expr_locus): Remove.
3236         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
3237         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
3238         EXPR_LOCATION.
3239         * gimplify.c (internal_get_tmp_var): Likewise.
3240         (gimplify_call_expr): Likewise.
3241         (gimplify_one_sizepos): Likewise.
3242
3243 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
3244
3245         PR debug/40666
3246         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
3247         to variables for debugging purposes.
3248
3249 2009-06-23  Mark Loeser  <mark@halcy0n.com>
3250
3251         PR build/40010
3252         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
3253
3254 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3255
3256         * pretty-print.c (pp_base_format): Remove %J.
3257         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3258         gcc_cxxdiag_char_table): Likewise.
3259         (init_dynamic_diag_info): Likewise.
3260
3261 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3262
3263         * pretty-print.c (pp_base_format): Remove %H.
3264         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3265         gcc_cxxdiag_char_table): Likewise.
3266         (init_dynamic_diag_info): Likewise.
3267         * config/mep/mep.c (mep_select_section): Likewise.
3268
3269 2009-07-07  Duncan Sands  <baldrick@free.fr>
3270
3271         * final.c (pass_clean_state): Give the pass a name.
3272         * passes.c (pass_rest_of_compilation): Likewise.
3273         * tree-optimize.c (pass_all_optimizations): Likewise.
3274
3275 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
3276
3277         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
3278         an extra 'decl' for error_at.
3279
3280 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
3281
3282         PR middle-end/40669
3283         * tree-tailcall.c (adjust_return_value_with_ops,
3284         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
3285         if it has complex or vector type.
3286
3287 2009-07-07  Olivier Hainque  <hainque@adacore.com>
3288
3289         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
3290         pthread symbols.
3291
3292 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
3293
3294         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
3295
3296 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3297
3298         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
3299         * c-decl.c: Likewise.
3300         * function.c: Likewise.
3301         * varasm.c: Likewise.
3302         * tree-ssa.c: Likewise.
3303         * c-common.c: Likewise.
3304         * tree-cfg.c: Likewise.
3305         * config/spu/spu.c: Likewise.
3306         * config/ia64/ia64.c: Likewise.
3307         * config/v850/v850.c: Likewise.
3308
3309 2009-07-06  DJ Delorie  <dj@redhat.com>
3310
3311         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
3312         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
3313         unspecified accesses to control registers.
3314         * config/mep/intrinsics.md: Regenerate.
3315         * config/mep/intrinsics.h: Regenerate.
3316         * config/mep/mep-intrin.h: Regenerate.
3317
3318 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3319
3320         * c-lex.c: Replace %H by an explicit location. Update all calls.
3321         * c-common.c: Likewise.
3322         * c-decl.c: Likewise.
3323         * c-typeck.c: Likewise.
3324         * fold-const.c: Likewise.
3325         * gimplify.c: Likewise.
3326         * stmt.c: Likewise.
3327         * tree-cfg.c: Likewise.
3328         * tree-ssa-loop-niter.c: Likewise.
3329         * tree-vrp.c: Likewise.
3330         * value-prof.c: Likewise.
3331
3332 2009-07-06  Diego Novillo  <dnovillo@google.com>
3333
3334         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
3335         if it has one.  Handle cases where VAR does not have an
3336         annotation or cfun is NULL.
3337
3338 2009-07-06  Diego Novillo  <dnovillo@google.com>
3339
3340         * tree.c: Include debug.h.
3341         (initialize_tree_contains_struct): New.
3342         (init_ttree): Call it.
3343         (tree_node_structure_for_code): Factor out of ...
3344         (tree_node_structure): ... here.
3345         * treestruct.def (TS_PHI_NODE): Remove.
3346         (TS_GIMPLE_STATEMENT): Remove.
3347
3348 2009-07-06  Diego Novillo  <dnovillo@google.com>
3349
3350         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
3351         (debug_tree_chain): Handle cycles.
3352
3353 2009-07-06  Nick Clifton  <nickc@redhat.com>
3354             DJ Delorie  <dj@redhat.com>
3355
3356         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
3357         __FMOVD_ENABLED__ is defined.
3358         * config/sh/sh.h
3359         (TARGET_FMOVD): Provide a default definition.
3360         (MASK_FMOVD): Likewise.
3361         (TARGET_CPU_CPP_BUILTINS): Define
3362         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
3363         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
3364         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
3365         (split for DF load from memory into register): Also handle
3366         MEMs which consist of REG+DISP addressing.
3367         (split for DF store from register to memory): Likewise.
3368         (movsf_ie): Always use single fp_mode.
3369         * config/sh/sh.c (sh_override_options): Do not automatically
3370         enable TARGET_MOVD for the SH2A when supporting doubles - leave
3371         that to the -mfmovd command line switch.
3372         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
3373         (fldi_ok): Always allow.
3374         * config/sh/sh.opt (mfmovd): Remove this switch.
3375         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
3376
3377 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
3378             Kaz Kojima  <kkojima@gcc.gnu.org>
3379
3380         PR rtl-optimization/30807
3381         * postreload.c (reload_combine): For every new use of REG_SUM,
3382         record the use of BASE.
3383
3384 2009-07-06  Jan Hubicka  <jh@suse.cz>
3385
3386         * params.def: Revert my accidental commit at 2009-06-30.
3387
3388 2009-07-04  Ian Lance Taylor  <iant@google.com>
3389
3390         PR target/40636
3391         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
3392         EXPORTED_CONST.
3393         (mingw_format_attribute_overrides): Likewise.
3394
3395 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
3396
3397         PR debug/40596
3398         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
3399         don't check cfa.reg.  Instead of cfa.indirect use
3400         fde && fde->drap_reg != INVALID_REGNUM test.
3401
3402 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
3403
3404         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
3405
3406 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
3407
3408         PR target/40587
3409         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
3410
3411 2009-07-03  Richard Guenther  <rguenther@suse.de>
3412
3413         PR tree-optimization/40640
3414         * tree-switch-conversion.c (build_arrays): Perform arithmetic
3415         in original type.
3416
3417 2009-07-03  Jan Hubicka  <jh@suse.cz>
3418
3419         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
3420         for size, reduce amount of inlining.
3421
3422 2009-07-03  Richard Guenther  <rguenther@suse.de>
3423
3424         PR middle-end/34163
3425         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
3426         if t +- x is known to not overflow and the conversion widens the
3427         operation.
3428         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
3429
3430 2009-07-03  Jan Hubicka  <jh@suse.cz>
3431
3432         * ipa-pure-const.c (analyze): Update loop optimizer init.
3433         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
3434         try_remove_empty_loop, remove_empty_loops): Remove.
3435         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
3436         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
3437         to mark regular loops as neccesary.
3438         (degenerate_phi_p): New function.
3439         (propagate_necessity, remove_dead_phis): Use it.
3440         (forward_edge_to_pdom): Likewise.
3441         (eliminate_unnecessary_stmts): Take care to remove uses of results of
3442         virtual PHI nodes that became unreachable.
3443         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
3444         * tree-flow.h (remove_empty_loops): Remove.
3445         * passes.c (init_optimization_passes): Remove.
3446
3447 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
3448
3449         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
3450         can_create_pseudo_p.
3451         (*fix_trunc<mode>_i387_1): Ditto.
3452         (*floathi<mode>2_1): Ditto.
3453         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
3454         (*fistdi2_1): Ditto.
3455         (*fist<mode>2_1): Ditto.
3456         (frndintxf2_floor): Ditto.
3457         (*fist<mode>2_floor_1): Ditto.
3458         (frndintxf2_ceil): Ditto.
3459         (*fist<mode>2_ceil_1): Ditto.
3460         (frndintxf2_trunc): Ditto.
3461         (frndintxf2_mask_pm): Ditto.
3462         (fxam<mode>2_i387_with_temp): Ditto.
3463         * config/i386/sse.md (mulv16qi3): Ditto.
3464         (*sse2_mulv4si3): Ditto.
3465         (mulv2di3): Ditto.
3466         (sse4_2_pcmpestr): Ditto.
3467         (sse4_2_pcmpistr): Ditto.
3468
3469 2009-07-03  Jan Hubicka  <jh@suse.cz>
3470
3471         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
3472         (mark_stmt_necessary): Set it.
3473         (mark_operand_necessary): Set it.
3474         (mark_control_dependent_edges_necessary): Set it.
3475         (mark_virtual_phi_result_for_renaming): New function.
3476         (get_live_post_dom): New function.
3477         (forward_edge_to_pdom): New function.
3478         (remove_dead_stmt): Fix handling of control dependences.
3479         (tree_dce_init): Init new bitmap.
3480         (tree_dce_done): Free it.
3481
3482 2009-07-02  Richard Guenther  <rguenther@suse.de>
3483
3484         PR bootstrap/40617
3485         * tree-ssa-structalias.c (new_var_info): Initialize
3486         is_restrict_var.
3487
3488 2009-07-02  Jan Hubicka  <jh@suse.cz>
3489
3490         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
3491         local.
3492
3493 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
3494
3495         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
3496         instead of recomputing it.  Adjust calls.
3497         (emit_store_flag): Adjust recursive calls.
3498
3499 2009-07-02  Richard Guenther  <rguenther@suse.de>
3500
3501         * tree-ssa-live.c (remove_unused_locals): Do not remove
3502         heap variables.
3503         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
3504         of DECL_EXTERNAL for HEAP variables.
3505         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
3506         HEAP variables.  Do not adjust RESTRICT vars.
3507         (find_what_var_points_to): Nobody cares if something
3508         points to READONLY.
3509
3510 2009-07-02  Ben Elliston  <bje@au.ibm.com>
3511
3512         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
3513         pc_low and pc_high declarations to the top of the function.
3514
3515 2009-07-01  DJ Delorie  <dj@redhat.com>
3516
3517         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
3518         registers as fixed.
3519         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
3520         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
3521         unspecified accesses to control registers.
3522         * config/mep/intrinsics.md: Regenerate.
3523         * config/mep/intrinsics.h: Regenerate.
3524         * config/mep/mep-intrin.h: Regenerate.
3525
3526 2009-07-01  Anthony Green  <green@moxielogic.com>
3527
3528         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
3529         instruction when possible.
3530         (moxie_expand_prologue): Ditto.  Also, save an instruction and
3531         some complexity by popping off of $r12 instead of $sp.
3532         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
3533         operands.
3534
3535 2009-07-01  Richard Henderson  <rth@redhat.com>
3536
3537         PR bootstrap/40347
3538         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
3539         contained no insns, reposition note before last insn.
3540
3541 2009-07-01  Richard Henderson  <rth@redhat.com>
3542
3543         PR debug/40431
3544         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
3545         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
3546
3547 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
3548
3549         PR bootstrap/40558
3550         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
3551         darwin9 for printing reg addresses with %y.
3552
3553 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
3554
3555         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
3556         truncation from operands in binary operations.
3557
3558 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
3559
3560         Revert:
3561         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
3562         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
3563         subreg of op0 to the original op0.
3564
3565         * expmed.c (store_bit_field_1): Use a temporary as the destination
3566         instead of a paradoxical subreg when we need to truncate the result.
3567
3568 2009-07-01  DJ Delorie  <dj@redhat.com>
3569
3570         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
3571         names to VLIW variants.
3572         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
3573         * config/mep/intrinsics.md: Regenerate.
3574         * config/mep/intrinsics.h: Regenerate.
3575         * config/mep/mep-intrin.h: Regenerate.
3576
3577 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
3578
3579         PR debug/40462
3580         * jump.c (returnjump_p): Revert last patch.
3581         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
3582
3583 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3584
3585         PR target/40575
3586         * pa.md (casesi32p): Use jump table label to determine the offset
3587         of the jump table.
3588         (casesi64p): Likewise.
3589
3590         * pa.c (forward_branch_p): Return bool type.  Use instruction
3591         addresses when available.  Assert that INSN has a jump label.
3592         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
3593         have a jump label.
3594
3595 2009-07-01  Richard Guenther  <rguenther@suse.de>
3596
3597         PR tree-optimization/19831
3598         * tree-ssa-dce.c (propagate_necessity): Calls to functions
3599         that only act as barriers do not make any previous stores necessary.
3600         * tree-ssa-structalias.c (handle_lhs_call): Delay making
3601         HEAP variables global, do not add a constraint from nonlocal.
3602         (find_func_aliases): Handle escapes through return statements.
3603         (compute_points_to_sets): Make escaped HEAP variables global.
3604
3605 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
3606
3607         PR bootstrap/40597
3608         * expmed.c (emit_store_flag): Perform a conversion if necessary,
3609         after reducing a DImode cstore to SImode.
3610
3611 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
3612
3613         * expr.c (expand_expr_real_1): Reinstate fallthrough to
3614         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
3615
3616 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
3617
3618         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
3619         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
3620         to 0.
3621         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
3622         and umod_optab if TARGET_BSD_DIVMOD.
3623         * config/vax/lib1funcs.asm: New file.
3624         * config/vax/t-linux: New file.
3625         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
3626
3627 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
3628
3629         PR c++/40566
3630         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
3631         to type arguments that have void type.
3632
3633         PR debug/40573
3634         * dwarf2out.c (gen_formal_parameter_die): Call
3635         equate_decl_number_to_die if node is different from origin.
3636
3637 2009-06-30  Anthony Green  <green@moxielogic.com>
3638
3639         Clean up moxie port for --enable-build-with-cxx.
3640         * config/moxie/moxie.c (moxie_function_value): First two
3641         parameters are const_tree, not tree.
3642         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
3643         (REG_CLASS_NAMES): Ditto.
3644         (REGNO_REG_CLASS): Ditto.
3645         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
3646         (moxie_function_value): Fix constyness of arguments.
3647
3648 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3649
3650         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
3651         finalize_size_functions before further processing.
3652         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
3653         (variable_size): Call self_referential_size on size expressions
3654         that contain a PLACEHOLDER_EXPR.
3655         (size_functions): New static variable.
3656         (copy_self_referential_tree_r): New static function.
3657         (self_referential_size): Likewise.
3658         (finalize_size_functions): New global function.
3659         * tree.c: Include tree-inline.h.
3660         (push_without_duplicates): New static function.
3661         (find_placeholder_in_expr): New global function.
3662         (substitute_in_expr) <tcc_declaration>: Return the replacement object
3663         on equality.
3664         <tcc_expression>: Likewise.
3665         <tcc_vl_exp>: If the replacement object is a constant, try to inline
3666         the call in the expression.
3667         * tree.h (finalize_size_functions): Declare.
3668         (find_placeholder_in_expr): Likewise.
3669         (FIND_PLACEHOLDER_IN_EXPR): New macro.
3670         (substitute_placeholder_in_expr): Update comment.
3671         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
3672         is true.
3673         (copy_tree_body_r): Likewise.
3674         (copy_tree_body): New static function.
3675         (maybe_inline_call_in_expr): New global function.
3676         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
3677         (maybe_inline_call_in_expr): Declare.
3678         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
3679         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
3680         GIMPLE_H.
3681
3682 2009-06-30  Richard Guenther  <rguenther@suse.de>
3683
3684         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
3685         continue walking.
3686         (propagate_necessity): Do not mark reaching defs of stores
3687         as necessary.
3688
3689 2009-06-30  Jan Hubicka  <jh@suse.cz>
3690
3691         * cfgloopanal.c (check_irred): Move into ...
3692         (mark_irreducible_loops): ... here; return true if ireducible
3693         loops was found.
3694         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
3695         (analyze_function): Try to prove loop finiteness.
3696         * cfgloop.h (mark_irreducible_loops): Update prototype.
3697         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
3698
3699 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
3700
3701         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
3702
3703 2009-06-30  Ira Rosen  <irar@il.ibm.com>
3704
3705         PR tree-optimization/40542
3706         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
3707         types.
3708
3709 2009-06-30  Martin Jambor  <mjambor@suse.cz>
3710
3711         PR tree-optimization/40582
3712         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
3713         than useless_type_conversion_p.
3714         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
3715         proper place.
3716
3717 2009-06-30  Martin Jambor  <mjambor@suse.cz>
3718
3719         PR middle-end/40554
3720         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
3721
3722 2009-06-30  Richard Guenther  <rguenther@suse.de>
3723
3724         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
3725         use ao_ref references.
3726         (walk_aliased_vdefs): Likewise.
3727         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
3728         * tree-ssa-dce.c (struct ref_data): Remove.
3729         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
3730         (mark_aliased_reaching_defs_necessary): Adjust.
3731         (mark_all_reaching_defs_necessary_1): Likewise.
3732
3733 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
3734
3735         PR boostrap/40597
3736         * expmed.c (emit_cstore): New name of emit_store_flag_1.
3737         (emit_store_flag_1): Extract from emit_store_flag, adjust
3738         calls to (what now is) emit_cstore.
3739         (emit_store_flag): Call emit_store_flag_1 and also use it
3740         for what used to be recursive calls.
3741
3742 2009-06-30  Wei Guozhi  <carrot@google.com>
3743
3744         PR/40416
3745         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
3746         if the target bb post dominates from bb.
3747         * config/i386/i386.c (memory_address_length): Check existence of base
3748         register before using it.
3749
3750 2009-06-30  Nick Clifton  <nickc@redhat.com>
3751             DJ Delorie  <dj@redhat.com>
3752
3753         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
3754         __FMOVD_ENABLED__ is defined.
3755         * config/sh/sh.h
3756         (TARGET_FMOVD): Provide a default definition.
3757         (MASK_FMOVD): Likewise.
3758         (TARGET_CPU_CPP_BUILTINS): Define
3759         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
3760         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
3761         two fmov instructions depending upon whether TARGET_FMOVD is
3762         enabled.
3763         (split for DF load from memory into register): Also handle
3764         MEMs which consist of REG+DISP addressing.
3765         (split for DF store from register to memory): Likewise.
3766         * config/sh/sh.opt (mfmovd): Remove this switch.
3767         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
3768         * config/sh/sh.c (sh_override_options): Do not automatically
3769         enable TARGET_MOVD for the SH2A when supporting doubles - leave
3770         that to the -mfmovd command line switch.
3771
3772         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
3773         the SH4 and SH4A.
3774         (fldi_ok): Always allow.
3775         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
3776
3777 2009-06-29  DJ Delorie  <dj@redhat.com>
3778
3779         * doc/install.texi (mep-x-elf): Correct chip's full name.
3780
3781 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
3782
3783         * doc/extend.texi: Fix typo.
3784
3785 2009-06-29  Tom Tromey  <tromey@redhat.com>
3786
3787         * dwarf2.h: Remove.
3788         * Makefile.in (DWARF2_H): New variable.
3789         (except.o): Use it.
3790         (dwarf2out.o): Likewise.
3791         (dwarf2asm.o): Likewise.
3792         * config/i386/t-i386: Use DWARF2_H.
3793         * except.c: Include elf/dwarf2.h.
3794         * unwind-dw2.c: Include elf/dwarf2.h.
3795         * dwarf2out.c: Include elf/dwarf2.h.
3796         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
3797         <dtprel>: New field.
3798         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
3799         (size_of_loc_descr): Likewise.
3800         (output_loc_operands_raw): Likewise.
3801         (output_loc_operands): Handle new dtprel field.
3802         (loc_checksum): Update.
3803         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
3804         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
3805         * unwind-dw2-fde.c: Include elf/dwarf2.h.
3806         * dwarf2asm.c: Include elf/dwarf2.h.
3807         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
3808         * config/mmix/mmix.c: Include elf/dwarf2.h.
3809         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
3810         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
3811         * config/sh/sh.c: Include elf/dwarf2.h.
3812         * config/i386/i386.c: Include elf/dwarf2.h.
3813
3814 2009-06-29  DJ Delorie  <dj@redhat.com>
3815
3816         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
3817
3818         * doc/extend.texi: Add MeP attributes and pragmas.
3819         * doc/invoke.text: Add MeP Options.
3820         * doc/contrib.texi: Add MeP contribution.
3821         * doc/md.texi: Add MeP constraints.
3822         * doc/install.texi: Add MeP target.
3823
3824 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
3825
3826         * target.h (struct gcc_target): Add frame_pointer_required field.
3827         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
3828         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
3829         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
3830         hook.
3831         * reload1.c (update_eliminables): (Ditto.).
3832         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
3833         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
3834         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
3835
3836         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
3837
3838         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
3839         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
3840         (arm_frame_pointer_required): New function.
3841
3842         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
3843         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3844         (avr_frame_pointer_required_p): Declare as static.
3845         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
3846
3847         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
3848         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
3849         (bfin_frame_pointer_required): Make as static, change return type
3850         to bool.
3851         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
3852
3853         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
3854         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3855         (cris_frame_pointer_required): New function.
3856
3857         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
3858
3859         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
3860         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3861         (fr30_frame_pointer_required): New function.
3862
3863         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
3864         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
3865         (frv_frame_pointer_required): Make as static, change return type
3866         to bool.
3867         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
3868
3869         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
3870         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3871         (ix86_frame_pointer_required): Make as static, change return type to
3872         bool.
3873         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
3874
3875         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
3876         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3877
3878         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
3879
3880         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
3881
3882         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
3883
3884         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
3885         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3886         (mips_frame_pointer_required): Make as static.
3887         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
3888
3889         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
3890         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3891         (mmix_frame_pointer_required): Mew function.
3892
3893         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
3894         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3895
3896         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
3897
3898         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
3899
3900         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
3901
3902         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
3903         (CAN_ELIMINATE): Redefine.
3904         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3905         (sparc_frame_pointer_required): New function.
3906         (sparc_can_eliminate): New function.
3907         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
3908
3909         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
3910         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
3911
3912         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
3913         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
3914         (xtensa_frame_pointer_required): Make as static, change return type
3915         to bool.
3916         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
3917         Remove.
3918
3919 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
3920
3921         * doc/plugins.texi: Document PLUGIN_START_UNIT.
3922         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
3923         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
3924         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
3925         (register_callback): Handle PLUGIN_START_UNIT.
3926         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
3927
3928 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
3929
3930         * tree.c (process_call_operands): Propagate TREE_READONLY from the
3931         operands.
3932         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
3933         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
3934
3935 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
3936
3937         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
3938         move cost.
3939
3940 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
3941
3942         * doc/extend.texi (Additional Floating Types): __float128 is also
3943         supported on i386 targets.
3944
3945 2009-06-29  Richard Guenther  <rguenther@suse.de>
3946
3947         PR middle-end/14187
3948         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
3949         flag.
3950         (pt_solutions_same_restrict_base): Declare.
3951         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
3952         flag.
3953         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
3954         (make_constraint_from, make_copy_constraint): Move earlier.
3955         (make_constraint_from_heapvar): New function.
3956         (make_constraint_from_restrict): Likewise.
3957         (handle_lhs_call): Use it.
3958         (find_func_aliases): Use it to track conversions to restrict
3959         qualified pointers.
3960         (struct fieldoff): Add only_restrict_pointers flag.
3961         (push_fields_onto_fieldstack): Initialize it.
3962         (create_variable_info_for): Track global restrict qualified pointers.
3963         (intra_create_variable_infos): Use make_constraint_from_heapvar.
3964         Track restrict qualified pointer arguments.
3965         (set_uids_in_ptset): Use varinfo is_global_var flag.
3966         (find_what_var_points_to): Set the vars_contains_restrict flag.
3967         Always create the points-to solution for sets including restrict tags.
3968         (pt_solutions_same_restrict_base): New function.
3969         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
3970         qualified pointers use pt_solutions_same_restrict_base as
3971         additional source for disambiguation.
3972
3973 2009-06-29  Richard Guenther  <rguenther@suse.de>
3974
3975         PR middle-end/38212
3976         * alias.c (find_base_decl): Remove.
3977         (get_deref_alias_set_1): Remove restrict handling.
3978         * c-common.c (c_apply_type_quals_to_decl): Do not set
3979         DECL_POINTER_ALIAS_SET.
3980         * gimplify.c (find_single_pointer_decl_1): Remove.
3981         (find_single_pointer_decl): Likewise.
3982         (internal_get_tmp_var): Remove restrict handling.
3983         (gimple_regimplify_operands): Likewise.
3984         * omp-low.c (expand_omp_atomic_pipeline): Do not set
3985         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
3986         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
3987         * tree.c (restrict_base_for_decl): Remove.
3988         (init_ttree): Do not allocate it.
3989         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
3990         LABEL_DECL_UID for label decls.
3991         (copy_node_stat): Do not copy restrict information.
3992         (decl_restrict_base_lookup): Remove.
3993         (decl_restrict_base_insert): Likewise.
3994         (print_restrict_base_statistics): Likewise.
3995         (dump_tree_statistics): Do not call print_restrict_base_statistics.
3996         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
3997         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
3998         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
3999         (LABEL_DECL_UID): Adjust.
4000         (DECL_BASED_ON_RESTRICT_P): Remove.
4001         (DECL_GET_RESTRICT_BASE): Likewise.
4002         (SET_DECL_RESTRICT_BASE): Likewise.
4003         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
4004
4005         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
4006         instead of DECL_POINTER_ALIAS_SET.
4007         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
4008         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
4009         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
4010