OSDN Git Service

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