OSDN Git Service

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