OSDN Git Service

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