OSDN Git Service

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