OSDN Git Service

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