OSDN Git Service

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