OSDN Git Service

cadeacee777c7f598837947343ccc6eac20d7b8d
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-08-25  Michael Matz  <matz@suse.de>
2
3         * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
4         * dojump.c (do_jump_by_parts_greater): Take two operands instead of
5         full expression.
6         (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
7         (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
8         (do_jump): Split out code for simple binary comparisons into ...
9         (do_jump_1): ... this, taking the individual operands and code.
10         Change callers to helper function above accordingly.
11         * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
12         comparisons.
13
14 2009-08-25  Michael Matz  <matz@suse.de>
15
16         * expr.h (struct separate_ops, sepops): New type for passing
17         around an exploded simple expression.
18         * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
19         Use this structure instead of expression tree.
20         (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
21         expression, only its type.
22         (expand_vec_cond_expr): Take type and individual operands instead
23         of full expression.
24         * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
25         expand_vec_shift_expr): Change prototype accordingly.
26         * tree-vect-stmts.c (vectorizable_condition): Change call of
27         expand_vec_cond_expr_p to pass only type.
28         * expr.c (do_store_flags): Change prototype and implementation
29         to take an exploded expression.
30         (expand_expr_real_1): New local ops initialized with details
31         of the full expression.  Use it instead of full
32         expression in calls to do_store_flags, expand_vec_cond_expr,
33         expand_widen_pattern_expr and expand_vec_shift_expr.
34
35 2009-08-25  Michael Matz  <matz@suse.de>
36
37         * expr.c (expand_expr_real_1): New local treeop0, treeop1,
38         treeop2 initialized with first three operands of the full expression.
39         Substitute all TREE_OPERAND (exp, [012]) calls with them.
40
41 2009-08-25  Kai Tietz  <kai.tietz@onevision.com>
42
43         * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
44         (__gthread_objc_condition_allocate): Mark arguments as unused.
45         (__gthread_objc_condition_deallocate): Likewise.
46         (__gthread_objc_condition_wait): Likewise.
47         (__gthread_objc_condition_broadcast): Likewise.
48         (__gthread_objc_condition_signal): Likewise.
49         (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
50         (__gthread_objc_thread_id): Likewise.
51
52 2009-08-25  Janus Weil  <janus@gcc.gnu.org>
53
54         PR middle-end/41149
55         * tree-pretty-print.c (print_call_name): Print the correct call name
56         for procedure pointer components.
57
58 2009-08-24  Steve Ellcey  <sje@cup.hp.com>
59
60         * config/ia64/ia64.c (ia64_promote_function_mode): Call
61         default_promote_function_mode when not VMS.
62
63 2009-08-24  Olivier Hainque  <hainque@adacore.com>
64
65         * convert.c (convert_to_integer): Don't assume an input pointer is
66         POINTER_SIZE wide.  Fetch from the type instead.
67
68 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69
70         * configure.ac (AC_PREREQ): Bump to 2.64.
71
72 2009-08-24  Rafael Avila de Espindola  <espindola@google.com>
73
74         * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
75         (process_command): Don't search standard_exec_prefix_1 and
76         standard_exec_prefix_2.
77
78 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
79
80        * config/arm/arm.c (output_return_instruction): Handle for
81        unified syntax.
82
83 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
84
85        * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
86
87 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
88
89         * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
90         (*arm_movdf_vfp): Likewise.
91
92 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
93
94        * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
95        (vashr<mode>3): Rename from ashr<mode>3.
96        (vlshr<mode>3): Rename from lshr<mode>3.
97
98 2009-08-24  Kai Tietz  <kai.tietz@onevision.com>
99
100         PR/40786
101         * c-format.c (format_wanted_type):  Add new member scalar_identity_flag.
102         (check_format_info_main): Use scalar_identify_flag.
103         (check_format_types): Check for scalar size identity if
104         scalar_identify_flag is set.
105         (printf_length_specs): Extend by new field.
106         (asm_fprintf_length_specs): Likewise.
107         (gcc_diag_length_specs): Likewise.
108         (scanf_length_specs): Likewise.
109         (strfmon_length_specs): Likewise.
110         (gcc_gfc_length_specs): Likewise.
111         * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
112         (ms_printf_flag_specs): Likewise.
113         * c-format.h (format_length_info): Add new member scalar_identity_flag.
114
115 2009-08-23  Uros Bizjak  <ubizjak@gmail.com>
116
117         PR target/40718
118         * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
119         (*call_value_pop_1): Ditto.
120         (*sibcall_pop_1): New insn pattern.
121         (*sibcall_value_pop_1): Ditto.
122
123 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
124
125         PR target/41081
126         * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
127         ashrsi3_64): New.
128
129 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
130
131         PR target/41081
132         * fwprop.c (try_fwprop_subst): Allow multiple sets.
133         (get_reg_use_in): New function.
134         (forward_propagate_subreg): Propagate through subreg of zero_extend
135         or sign_extend.
136
137 2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>
138
139         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
140         * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
141
142 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
143
144         * configure.ac: Remove --with-datarootdir, --with-docdir,
145         --with-htmldir switches.  No need to call AC_SUBST for
146         datarootdir, docdir, htmldir any more.
147         * configure: Regenerate.
148         * doc/install.texi (Configuration): Document --datarootdir,
149         --docdir, --htmldir, --pdfdir; update documentation for
150         --infodir, --mandir.
151         (Prerequisites): Bump Autoconf version to 2.64, Automake to
152         1.11, M4 to 1.4.6.
153
154         * aclocal.m4: Regenerate.
155         * config.in: Regenerate.
156         * configure: Regenerate.
157
158 2009-08-21  Douglas B Rupp  <rupp@gnat.com>
159             Olivier Hainque  <hainque@adacore.com>
160
161         * config/ia64/ia64.c: Include libfuncs.h.
162         (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
163         (ia64_expand_call): Use reg 25 on VMS.
164         (ia64_initialize_trampoline): Fix for VMS ABI.
165         (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
166         (ia64_function_arg): Initialize reg 25 on VMS.
167         Fix OpenVMS ABI issues for varargs.
168         For OpenVMS, emit the Argument Information register set in the
169         incoming/sibcall case as well.
170         (ia64_arg_type): New function.
171         (ia64_function_arg_advance): Keep track of cum->words.
172         Fix OpenVMS ABI issues for varargs.
173         (ia64_function_value): On VMS, promote mode of non-aggregate types.
174         (ia64_override_options): Set flag_no_common on VMS.
175         (ia64_init_builtins): Disable FWRITE builtin.
176         (ia64_asm_output_external): Call DO_CRTL_NAMES.
177         (ia64_vms_init_libfuncs): Add decc$ routines.
178         (ia64_vms_valid_pointer_mode): New function.
179         (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
180         (ia64_promote_function_mode): New function
181         * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
182         (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
183         (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
184         (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
185         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
186         (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
187         Suppress trailing '#' if VALUE is numeric.
188         * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
189         ia64_promote_function_mode.
190         (TARGET_VALID_POINTER_MODE): Define.
191
192 2009-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
193
194         PR target/40671
195         * config/rs6000/rs6000.c (rs6000_override_options): Use
196         TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
197
198         PR target/41145
199         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
200         reporting of vector + decimal/boolean/complex error.
201
202 2009-08-21  Jakub Jelinek  <jakub@redhat.com>
203
204         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
205         __vector double TYPE_DECL.
206
207 2009-08-21  Richard Earnshaw  <rearnsha@arm.com>
208
209         * arm.h (MACHMODE): New define.  Include insn-modes.h if available.
210         (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
211         * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
212         to pointer to enum machine_mode.  Update all callers as needed.
213
214 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
215
216         * config/alpha/alpha.md (exception_receiver): Emit alternative
217         GP load sequence if flag_reorder_blocks_and_partition is set.
218         (*exception_receiver_2): Also enable when
219         flag_reorder_blocks_and_partition is set.
220
221 2009-08-20  Matt Rice  <ratmice@gmail.com>
222             Diego Novillo  <dnovillo@google.com>
223
224         * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
225         tree-ssa-sccvn.h.
226
227 2009-08-20  Richard Guenther  <rguenther@suse.de>
228
229         * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
230         * c-tree.h (c_dup_lang_specific_decl): Remove.
231         (struct lang_decl, struct lang_type): Move definitions ...
232         * c-lang.h: ... here.  New file.
233         * c-decl.c: Include c-lang.h.
234         (c_dup_lang_specific_decl): Remove.
235         * c-typeck.c: Include c-lang.h.
236         * Makefile.in (c-decl.o): Add c-lang.h dependency.
237         (c-typeck.o): Likewise.
238         * c-config-lang.in (gtfiles): Add c-lang.h.
239         * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
240         like c-tree.h.
241
242 2009-08-20  Uros Bizjak  <ubizjak@gmail.com>
243
244         * config/alpha/alpha.c (alpha_end_function): Do not clear
245         crtl->emit structure and free insn locators if cfun->is_thunk is true,
246         this is now handled in generic code.
247
248 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
249
250         * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
251         (s390_z10_fix_long_loop_prediction): New function.
252         (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
253         (s390_reorg): Walk over the INSNs and invoke
254         s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
255
256 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
257
258         * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
259         "*brx_64bit", "*brx_31bit"): New patterns.
260         * config/s390/s390.c ('E'): New output modifier.
261
262 2009-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
263             Richard Earnshaw  <richard.earnshaw@arm.com>
264
265         * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
266         * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
267
268 2009-08-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
269
270         * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
271         patterns.
272         * pa.c (emit_move_sequence): Check if address of operand1 is valid
273         for mode mode of operand0 when doing secondary reload for SAR.
274
275 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
276
277         PR middle-end/41123
278         * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
279         of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
280
281 2009-08-19  Jason Merrill  <jason@redhat.com>
282
283         * doc/invoke.texi (C++ Dialect Options): Note change of minimum
284         supported template depth in C++0x.
285
286 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
287
288         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
289         free_after_compilation.
290         * config/score/score7.c (score7_output_mi_thunk): Likewise.
291         * config/score/score3.c (score3_output_mi_thunk): Likewise.
292         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
293         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
294         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
295         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
296         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
297
298 2009-08-19  Ian Lance Taylor  <iant@google.com>
299
300         * doc/md.texi (Insn Canonicalizations): Correct canonicalization
301         of (plus (mult (neg B) C) A).
302
303 2009-08-18  Michael Matz  <matz@suse.de>
304
305         * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
306         instead of comparing TYPE_MAIN_VARIANT for equality.
307         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
308         vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
309         * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
310         * gimplify.c (goa_lhs_expr_p): Ditto and use
311         STRIP_USELESS_TYPE_CONVERSION.
312
313 2009-08-18  Michael Matz  <matz@suse.de>
314
315         * tree-ssa-structalias.c (create_variable_info_for): Also mark
316         first field in a struct.
317         (intra_create_variable_infos): Don't deal with flag_argument_noalias.
318
319 2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
320
321         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
322         locators before emit_insn is called.  Remove assert that
323         cfun->is_thunk.
324         (alpha_end_function): Clear crtl->emit structure and free insn
325         locators if cfun->is_thunk is true.
326
327 2009-08-18  Jason Merrill  <jason@redhat.com>
328
329         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
330         type if available.
331         * configure.ac: Test for it.
332         * configure, config.in: Regenerate.
333         * doc/install.texi: Document --enable-gnu-unique-object.
334
335 2009-08-18  Richard Guenther  <rguenther@suse.de>
336
337         PR middle-end/41094
338         * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
339         pow(x,y*z) only if x is nonnegative.
340
341 2009-08-18  Jakub Jelinek  <jakub@redhat.com>
342
343         * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
344         on jumps.
345
346         PR target/40971
347         * config/rs6000/rs6000.c (rs6000_legitimize_address): For
348         [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
349
350 2009-08-17  DJ Delorie  <dj@redhat.com>
351
352         * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
353         * config/m32c/prologue.md (epilogue_freit): New.
354         (fset_b): New.
355         * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
356         (bank_switch_p): Likewise.
357         (fast_interrupt_p): Likewise.
358         (interrupt_p): Likewise.
359         (m32c_conditional_register_usage): Round memregs size up.
360         (need_to_save): We only need to save $a0 when we use ENTER.
361         (interrupt_p): Check for fast_interrupt too.
362         (bank_switch_p): New.
363         (fast_interrupt_p): New.
364         (m32c_attribute_table): Add bank_switch and fast_interrupt.
365         (m32c_emit_prolog): Support bank switching and fast interrupts.
366         * doc/extend.texi (Function Attributes): Add bank_switch and
367         fast_interrupt.
368
369 2009-08-17  Douglas B Rupp  <rupp@gnat.com>
370
371         * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
372         * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
373
374 2009-08-16  Douglas B Rupp  <rupp@gnat.com>
375
376         * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
377         (menu): Add IA-64/VMS Options.
378         (IA-64/VMS Options): Likewise.
379
380 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
381
382         PR target/38599
383         * config/mips/mips.md (*lwxs): Use :P for pointer values.
384
385 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
386
387         * config/mips/mips-protos.h (mips_push_asm_switch): New function.
388         (mips_pop_asm_switch): Likewise.
389         * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
390         with...
391         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
392         (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
393         (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
394         (mips_print_operand_punctuation): Use them.  Check mips_noreorder
395         instead of set_noreorder.
396         (mips_output_function_prologue): Use the new functions.
397         (mips_output_function_epilogue): Likewise.
398         (mips_need_noat_wrapper_p): New function, split out from...
399         (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
400         Use mips_push_asm_switch and mips_pop_asm_switch.
401         * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
402         and mips_pop_asm_switch.
403         (ASM_OUTPUT_REG_POP): Likewise.
404         (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
405         Use mips_pop_asm_switch.
406         (mips_asm_switch): New structure.
407         (set_noreorder, set_nomacro): Replace with...
408         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
409         * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
410         instead of set_nomacro.
411         (fix_truncsfsi2_macro): Likewise.
412         (cprestore): Likewise.
413         (hazard): Use mips_noreorder instead of set_noreorder.
414         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
415
416 2009-08-16  Uros Bizjak  <ubizjak@gmail.com>
417
418         * config/alpha/alpha.c (alpha_and_function): Handle NULL_RTX returned
419         from prev_active_insn.
420
421 2009-08-16  Anatoly Sokolov  <aesok@post.ru>
422
423         * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
424         * config/avr/avr.c (avr_override_options): Initialize
425         avr_current_arch variable.
426         (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
427         __AVR_HAVE_16BIT_SP__ according to the device type.
428         (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
429         TARGET_TINY_STACK.
430         (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
431         Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
432
433 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
434
435         PR debug/37801
436         * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
437         generating inlined subroutine die only. We shouldn't be
438         called for anything else.
439         (gen_block_die): Don't generate inline subroutine debug info for
440         abstract blocks.
441
442 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
443
444         * graphite-poly.c (print_pbb): Print PBB index.
445
446 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
447
448         PR middle-end/40981
449         * graphite-interchange.c (ppl_max_for_le): Moved...
450         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
451         * graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
452         ppl_Pointset_Powerset_C_Polyhedron_maximize.
453         * graphite-ppl.h (ppl_max_for_le): Declared.
454
455 2009-08-14  Olatunji Ruwase <tjruwase@google.com>
456
457         * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
458         supported on all platforms.
459         * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
460         * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
461         * c-pragma.c: Likewise.
462         * target-def.h (TARGET_INITIALIZER): Remove
463         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
464         * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
465
466 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
467
468         * config/ia64/fde-vms.c: New file.
469         * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
470         * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
471         (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
472         (uw_frame_state_for): Only register a personality routine if it is
473         known to be compatible with our expectations.
474         (_Unwind_FindEnclosingFunction, uw_frame_state_for):
475         Declare unw_table_entry stack variable and
476         mod all calls to _Unwind_FindTableEntry to add arg.
477         * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
478         (_Unwind_FindTableEntry): Add arg to prototype.
479
480 2009-08-14  Eric Botcazou  <ebotcazou@adacore.com>
481
482         * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
483         field 'signal_pfs_loc'.
484         (uw_frame_state_for): Remove duplicate code dealing with leaf
485         procedures without unwind info.
486         If in the frame after unwinding through a signal handler, restore
487         the AR.PFS register instead of the CFM if AR.PFS has not been saved.
488         * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
489         'pfs_loc' to the AR.PFS location in the signal context; instead
490         set 'signal_pfs_loc'.
491         Manually generate the unwind info for the AR.PFS register.
492         (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
493         ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
494         (ia64_handle_unwabi): Test 'fs->unwabi' against them.
495         Do not set 'pfs_loc' to the AR.PFS location in the signal context;
496         instead set 'signal_pfs_loc'.
497         Remove code preventing the AR.PFS register from being restored
498         from the signal context.
499
500 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
501             Tristan Gingold  <gingold@adacore.com>
502
503         * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
504         * config/ia64/t-vms: New file.
505         * config/ia64/vms64.h: New file.
506         * config/ia64/vms.h: New file.
507         * config/ia64/vms-crtinit.asm: New file.
508         * config/ia64/vms_symvec_libgcc_s.opt: New file.
509         * config/ia64/vms-unwind.h: New file.
510
511 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
512
513         * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
514         TFmode compares.
515
516 2009-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
517
518         PR middle-end/30789
519         * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
520         Move declaration...
521         * real.h (do_mpc_arg2): ... here.
522         * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
523         and RDIV_EXPR.
524
525 2009-08-14  Rafael Avila de Espindola  <espindola@google.com>
526
527         * final.c (add_debug_prefix_map): Don't use GC memory for
528         old_prefix and new_prefix.
529
530 2009-08-14  Richard Guenther  <rguenther@suse.de>
531
532         * ipa-prop.c (compute_complex_pass_through): If we cannot
533         compute a non-varying offset for IPA_JF_ANCESTOR punt.
534
535 2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
536
537         * c-lex.c (c_lex_with_flags): Increase size of local variable
538         to avoid memory clobber.
539
540 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
541
542         PR target/40934
543         * config/i386/i386.c (ix86_fp_comparison_strategy):
544         Only enable/disable sahf at function granularity.
545
546 2009-08-14  Hans-Peter Nilsson  <hp@axis.com>
547
548         PR rtl-optimization/41064
549         * reload1.c (reload_as_needed): Don't call extract_insn
550         for known invalid replacements after calling
551         validate_replace_rtx_group and verify_changes.
552
553 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
554
555         PR target/41019
556         * config/i386/sse.md (SSEMODE124C8): New mode iterator.
557         (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
558         ix86_expand_fp_vcond.
559         (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
560         Assert that operation is supported by ix86_expand_int_vcond.
561         (vcondu<SSEMODE124C8:mode>): Ditto.
562
563 2009-08-13  DJ Delorie  <dj@redhat.com>
564
565         * config/i386/djgpp-stdint.h: New.
566         * config.gcc (djgpp): Use it.
567
568 2009-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
569
570         * config/sh/sh.c (sh_override_options): When flag_exceptions or
571         flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
572
573 2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
574
575         * tree-ssa-loop-prefetch.c
576         (prune_ref_by_group_reuse): Enhance probabilistic analysis
577         for long-stride pruning.
578         (compute_miss_rate): New function to compute the probability
579         that two memory references access different cache lines.
580
581 2009-08-13  Dave Korn  <dave.korn.cygwin@gmail.com>
582
583         * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
584
585 2009-08-13  Richard Guenther  <rguenther@suse.de>
586
587         PR middle-end/41047
588         * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
589         use the constant pointer type.
590         * gimplify.c (canonicalize_addr_expr): Canonicalize independent
591         of CV qualifiers on the target pointer type.
592         * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
593         conversion check before restrict check.
594
595 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
596
597         PR target/41029
598         * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
599
600 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
601
602         * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
603
604 2009-08-12  Richard Guenther  <rguenther@suse.de>
605
606         PR tree-optimization/41011
607         * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
608         and reference constructing.
609
610 2009-08-12  Xinliang David Li  <davidxl@google.com>
611
612         PR tree-optimization/41012
613         * tree-flow.h : New external interface.
614         * gimple-low.c (check_call_arg): Change to public function.
615         Remove argument mismatch check in lowering.
616         * tree-inline.h (tree_can_inline_p): Interface change.
617         * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
618         into this function.
619         * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
620         Call change to tree_can_inline_p function.
621         (cgraph_decide_inlining_incrementally): Ditto.
622
623 2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
624
625         PR tree-optimization/41031
626         * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
627         on the partition variable rather than promote_mode on the source
628         type.  Assert that the partition variable's type has the same
629         mode as the source value's.
630
631 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
632
633         * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
634         for for_return == 2.
635         * function.c (assign_parm_setup_reg): Use for_return == 2, improve
636         comments.
637         * calls.c (expand_call): Fix typo.
638         * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
639         and PARM_DECL.
640         * stmt.c (expand_value_return): Use promote_function_mode to copy out
641         of pseudo.
642         * targhooks.c (default_promote_function_mode): Handle for_return == 2.
643         * config/cris/cris.c (cris_promote_function_mode): Likewise.
644         * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
645         * config/pa/pa.c (pa_promote_function_mode): Likewise.
646
647 2009-08-12  Andrew Haley  <aph@redhat.com>
648
649         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
650
651 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
652
653         PR bootstrap/40103
654         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
655
656 2009-08-12  Richard Guenther  <rguenther@suse.de>
657
658         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
659         * gimplify.c (gimplify_modify_expr): Do not use
660         lang_hooks.types_compatible_p.
661         * tree-ssa.c (useless_type_conversion_p): For aggregates
662         just return false if the canonical types differ.
663
664 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
665
666         PR middle-end/40980
667         * sese.c (convert_for_phi_arg): New.
668         (add_guard_exit_phis): Use convert_for_phi_arg.
669
670 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
671
672         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
673         unknown subscript upper bounds.
674
675 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
676             Pranav Garg  <pranav.garg2107@gmail.com>
677
678         * graphite-interchange.c (gather_access_strides): Removed.
679         (ppl_max_for_le): New.
680         (build_linearized_memory_access): New.
681         (memory_stride_in_loop): New.
682         (pbb_interchange_profitable_p): Reimplemented.
683         * graphite-ppl.h (ppl_new_id_map): New.
684         (ppl_interchange): New.
685
686 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
687
688         * graphite-interchange.c (compute_subscript): Removed.
689         (compute_array_size_cstr): Removed.
690         (compute_array_size_poly): Removed.
691         (compute_array_size): Removed.
692         (gather_access_strides_poly): Removed.
693         (gather_access_strides): Empty.
694
695 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
696
697         * graphite-dependences.c (dependence_polyhedron_1): Replace
698         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
699         (graphite_legal_transform_dr): Same.
700         (graphite_carried_dependence_level_k): Same.
701         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
702         Initialize PDR_NB_SUBSCRIPTS.
703         (print_pdr_access_layout): Replace pdr_nb_subscripts with
704         PDR_NB_SUBSCRIPTS.
705         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
706         (PDR_NB_SUBSCRIPTS): New.
707         (pdr_nb_subscripts): Removed.
708         (pdr_dim): Simplified.
709         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
710         with PDR_NB_SUBSCRIPTS.
711
712 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
713
714         * graphite-interchange.c (compute_array_size): Remove use of
715         PDR_DATA_CONTAINER.
716         * graphite-poly.c (new_poly_dr): Remove argument data_container.
717         Do not initialize PDR_DATA_CONTAINER.
718         (print_pdr): Do not print PDR_DATA_CONTAINER.
719         * graphite-poly.h (struct poly_dr): Remove data_container field.
720         (PDR_DATA_CONTAINER): Removed.
721         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
722         PDR_DATA_CONTAINER.
723         (build_poly_dr): Same.
724
725 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
726             Sebastian Pop  <sebastian.pop@amd.com>
727
728         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
729         copy of the dependence polyhedron.  Free the temporary objects.
730         (graphite_carried_dependence_level_k): Free unused objects before
731         returning.
732
733         * testsuite/gcc.dg/graphite/interchange-1.c: XFAILed.
734         * testsuite/gcc.dg/graphite/interchange-2.c: XFAILed.
735         * testsuite/gcc.dg/graphite/interchange-3.c: XFAILed.
736         * testsuite/gcc.dg/graphite/interchange-4.c: XFAILed.
737         * testsuite/gcc.dg/graphite/interchange-7.c: XFAILed.
738
739 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
740
741         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
742         Early return without analyzing the data dependences if no
743         transform has been done.  Call restore_scattering if the transform
744         is not legal.
745         (graphite-interchange.c): Same.
746         * graphite-poly.c (print_scattering_function): Test for
747         PBB_TRANSFORMED.
748         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
749         (apply_poly_transforms): Do not gcc_assert that
750         the transform is legal.
751         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
752         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
753         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
754         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
755         * graphite-poly.h (struct poly_scattering): New.
756         (struct poly_bb): Add original, transformed, and saved fields.
757         Remove transformed_scattering, original_scattering,
758         nb_local_variables and nb_scattering_transform fields.
759         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
760         (poly_scattering_new): New.
761         (poly_scattering_free): New.
762         (poly_scattering_copy): New.
763         (store_scattering_pbb): New.
764         (store_scattering): New.
765         (restore_scattering_pbb): New.
766         (restore_scattering): New.
767         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
768         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
769
770 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
771
772         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
773         (print_scop): Same.
774
775 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
776
777         * Makefile.in (graphite.o): Depends on PREDICT_H.
778         * graphite.c: Include predict.h.
779         (graphite_finalize): Call tree_estimate_probability.
780         * predict.c (predict_loops): Do not call scev_initialize and
781         scev_finalize.
782         (tree_estimate_probability_bb): New.
783         (tree_estimate_probability): Do not initialize loops: move that
784         code to the driver.  Call tree_estimate_probability_bb.
785         (tree_estimate_probability_driver): New.
786         (pass_profile): Use tree_estimate_probability_driver.
787         * predict.h (tree_estimate_probability): Declared.
788
789 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
790
791         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
792         * graphite-dependences.c (graphite_legal_transform): Add time to
793         TV_GRAPHITE_DATA_DEPS.
794         (dependency_between_pbbs_p): Same.
795         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
796
797 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
798
799         PR rtl-optimization/41033
800         * alias.c (nonoverlapping_component_refs_p): Punt when strict
801         aliasing is disabled.
802
803 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
804
805         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
806         si_mask_operand, and_load_operand, low_bitmask_operand,
807         and_reg_operand, and_operand): New predicates.
808         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
809         * config/mips/mips.c (and_operands_ok): New function.
810         * config/mips/mips-protos.h (and_operands_ok): Declare it.
811         * config/mips/mips.md (move_type): Add ext_ins and logical.
812         (type): Handle them.
813         (and<mode>3): Use and_reg_operand as the second operand's predicate.
814         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
815         shift_shift.  Remove commutative constraint modifier.
816         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
817         shift_shift.
818         (*clear_upper32_dext): Remove define_insn_and_split.
819         (*clear_upper32): Turn this define_insn_and_split ...
820         (splitter for ANDing register with 0xffff_ffff): .. into this.
821
822 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
823
824         * combine.c (try_widen_shift_mode): Factor out code to check if an
825         integer constant is a low-order bitmask from here ...
826         * rtlanal.c (low_bitmask_len): ... to here.
827         * rtl.h (low_bitmask_len): Declare.
828
829 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
830
831         PR target/8603
832         * config/alpha/alpha.md (addsi3): Remove expander.
833         (addsi3): Rename from *addsi3_internal insn pattern.
834         (subsi3): Remove expander.
835         (subsi3): Rename from *subsi3_internal insn pattern.
836
837 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
838
839         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
840         FWRITE_UNLOCKED.
841
842 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
843             Eric Botcazou  <botcazou@adacore.com>
844             Douglas B Rupp  <rupp@gnat.com>
845
846         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
847         that records that fit in 64 bits are returned by immediate value,
848         as required by OpenVMS Calling Standard.
849         (function_value): Adjust for above modification.
850         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
851         virtual_incoming_args_rtx as base object, not next_arg.
852         * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
853
854 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
855
856         * reload.c (find_reloads_subreg_address): Check the original
857         req_equiv_mem address to detect the case where an address is
858         not valid in the outer mode.
859
860 2009-08-11  Richard Guenther  <rguenther@suse.de>
861
862         PR bootstrap/40788
863         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
864
865 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
866
867         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
868         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
869
870 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
871             Douglas B Rupp  <rupp@gnat.com>
872
873         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
874         PT_STACK when frame_pointer_needed on OpenVMS.
875         (alpha_pv_save_size, alpha_using_fp): Remove.
876         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
877         with proper processing for PT_NULL.
878         (alpha_vms_initial_elimination_offset): New function. Support for
879         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
880         (alpha_sa_size): Force procedure type to PT_STACK when
881         frame_pointer_needed on OpenVMS.
882         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
883         (alpha_using_fp): Likewise.
884         (alpha_vms_can_eliminate): Add prototype.
885         (alpha_vms_initial_elimination_offset): Likewise.
886         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
887         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
888
889 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
890             Douglas B Rupp  <rupp@gnat.com>
891
892         * config/alpha/alpha.c (common_object_handler): New function.
893         (vms_attribute_table): Declare a single attribute "common_object".
894         (vms_output_aligned_decl_common): New global function.
895         (SECTION_VMS_OVERLAY): Delete.
896         (SECTION_VMS_GLOBAL): Likewise.
897         (SECTION_VMS_INITIALIZE): Likewise.
898         (vms_asm_named_section): Remove support for above flags.
899         (vms_section_type_flags): Delete.
900         (TARGET_SECTION_TYPE_FLAGS): Likewise.
901         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
902         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
903         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
904
905 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
906
907         PR target/41015
908         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
909         (sub_ddmmss): Likewise.
910
911 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
912
913         PR bootstrap/41018
914         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
915         year.
916
917 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
918
919         PR target/37053
920         * reload1.c (reload_as_needed): Use cancel_changes to completely
921         undo a failed replacement attempt.
922
923 2009-08-10  Richard Guenther  <rguenther@suse.de>
924
925         PR middle-end/41006
926         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
927         (useless_type_conversion_p): ... here.  Require pointer targets
928         to be compatible.
929
930 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
931
932         PR c++/40866
933         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
934         loose the original type of the statement list.
935
936 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
937
938         * config/alpha/alpha.c: Include libfuncs.h
939         (avms_asm_output_extern): New function.
940         (alpha_init_libfuncs): Init some decc libfuncs.
941         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
942         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
943         (DO_CRTL_NAMES): Define.
944         (LIB_SPEC): Remove.
945         * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef.
946         (LONG_TYPE_SIZE): Define.
947         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
948         (SUBTARGET_SWITCHES): Define malloc64 switch.
949         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
950         (MASK_RETURN_ADDR): Define.
951         doc/invoke.texi (mmalloc64): Document switch.
952
953 2009-08-09  Olivier Hainque  <hainque@adacore.com>
954             Douglas B Rupp  <rupp@gnat.com>
955
956         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
957         uses_condition_handler.
958         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
959         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
960         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
961         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
962         (code_for_builtin): New insn codes for the new alpha_builtins.
963         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
964         (alpha_sa_size): Account for uses_condition_handler.
965         (alpha_expand_prologue): Likewise.
966         (alpha_start_function): Likewise.
967         (alpha_expand_epilogue): Likewise.
968         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
969         establish/revert expanders.
970         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
971         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
972         New expander, resorting to the alpha.c associated function.
973         (builtin_revert_vms_condition_handler): Likewise.
974         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
975         __gcc_shell_handler, the static VMS condition handler used as
976         an indirection wrapper to the current dynamically established
977         handler.
978         * config/alpha/vms-unwind.h: Complete rewrite.
979         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
980         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
981
982 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
983             Douglas B Rupp  <rupp@gnat.com>
984
985         * config/alpha/alpha.c (alpha_links): Add 'target' field.
986         (alpha_need_linkage): Handle aliases.  Return function symbol.
987         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
988         Use ultimate alias target for the linkage name.
989         * config/alpha/alpha.md (movmemdi): Use the symbol returned
990         by alpha_need_linkage for the function symbol.
991         (setmemdi): Likewise.
992
993 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
994
995         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
996         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
997         (ASM_WEAKEN_LABEL): Define.
998         (CRT_CALL_STATIC_FUNCTION): Define.
999         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
1000         (ENDFILE_SPEC): Define.
1001         (INIT_SECTION_ASM_OP): Define.
1002         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
1003         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
1004         crtend.o crtendS.o.
1005         (MULTILIB_OSDIRNAMES): Define.
1006         (shlib_version): Define.
1007         (SHLIB_EXT): Define.
1008         (SHLIB_OBJS): Define.
1009         (SHLIB_NAME): Define.
1010         (SHLIB_MULTILIB): Define.
1011         (SHLIB_INSTALL): Define.
1012         (SHLIB_SYMVEC): Define.
1013         (SHLIB_SYMVECX2): Define.
1014         (SHLIB_LINK): Define.
1015
1016 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
1017
1018         * config/alpha/alpha.c (alpha_initialize_trampoline):
1019         Initialize VMS trampoline IAW ABI for bounded procedure calls.
1020         (alpha_start_function): Emit transfer address on nested functions
1021         for VMS trampoline call.
1022         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
1023         since no longer used.
1024         * config/alpha/vms-tramp.asm: Remove.
1025         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
1026         since now only data initialized at runtime.
1027
1028 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
1029
1030         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
1031         (LINK_GCC_C_SEQUENCE_SPEC): Define.
1032         (MD_EXEC_PREFIX): Remove, no longer used.
1033         (MD_STARTFILE_PREFIX): Likewise.
1034         (INCLUDE_DEFAULTS): Likewise.
1035         * config/alpha/t-vms:
1036         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
1037
1038 2009-08-09  Richard Guenther  <rguenther@suse.de>
1039
1040         PR tree-optimization/41016
1041         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
1042         (operand_precision): Remove.
1043         (integral_operand_p): Likewise.
1044         (recognize_single_bit_test): Adjust.
1045
1046 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
1047
1048         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
1049         operation overflows.  Likewise non-cast unary arithmetic.
1050         If one arm of a conditional expression is always taken,
1051         inhibit evaluation warnings for the other arm.  Likewise inhibit
1052         evaluation warnings for the second && or || operand if the first
1053         operand is enough to determine the result.
1054         * c-typeck.c (build_conditional_expr): Apply the same inhibition
1055         rules here.
1056         (build_binary_op): Prevent duplicate evaluation warnings.
1057
1058 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
1059
1060         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
1061         and destination have different modes, Use promote_mode to
1062         determine the signedness of the conversion.  Assert that the
1063         promoted source mode matches the destination mode.  Don't pass
1064         the destination and destination mode to expand_expr if the source
1065         mode is different.  Simplify conversion logic.
1066
1067 2009-08-09  Ira Rosen  <irar@il.ibm.com>
1068
1069         PR tree-optimization/41008
1070         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
1071         from condition only in case it's a comparison. Adjust checks.
1072
1073 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
1074
1075         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
1076         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
1077         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
1078         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
1079         (dump_cand): Handle them.
1080         (struct iv_cand): New members COST_STEP and AINC_USE.
1081         (stmt_after_increment): Likewise.
1082         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
1083         callers changed.  Use gimple_uid comparison instead of scanning.
1084         (add_candidate_1): When looking for identical candidates, take
1085         AINC_USE into account.  Set it for new candidates.
1086         (force_expr_to_var_cost): Cast target_spill_cost to int.
1087         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
1088         All callers changed.  Check for availability of autoinc addressing
1089         modes, both in general for a given mode, and in the specific use case.
1090         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
1091         changed.
1092         (get_computation_cost): Likewise.
1093         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
1094         add_autoinc_candidates): New static functions.
1095         (add_candidate): Call add_autoinc_candidates for candidates based on
1096         a USE_ADDRESS use.
1097         (find_iv_candidates): Call set_autoinc_for_original_candidates.
1098         (determine_use_iv_cost_address): If we have an autoinc candidate at
1099         the matching use, verify autoinc is possible and subtract the cost
1100         of the candidate's step from the cost.
1101         (determine_iv_cost): Record the cost of the increment in the COST_STEP
1102         member of the candidate.
1103         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
1104         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
1105
1106 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
1107
1108         * config.build (ia64-hp-*vms*): New target.
1109         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
1110         with ia64-hp-*vms*.
1111         * config.gcc (ia64-hp-*vms*): New target.
1112         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
1113         with ia64-hp-*vms*.
1114         * config.host (ia64-hp-*vms*): New target.
1115         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
1116         with ia64-hp-*vms*.
1117
1118 2009-08-08  Richard Guenther  <rguenther@suse.de>
1119
1120         PR tree-optimization/40991
1121         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
1122
1123 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
1124
1125         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
1126         mode check.  Do truncations in an integer mode.
1127         (force_to_mode): Handle subregs for all mode types.  Only do
1128         arithmetic simplifications on integer modes.
1129
1130 2009-08-07  Richard Guenther  <rguenther@suse.de>
1131
1132         PR tree-optimization/40999
1133         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
1134         (maybe_fold_reference): Lookup constant initializers.
1135         (fold_gimple_assign): Likewise.
1136
1137 2009-08-07  Richard Guenther  <rguenther@suse.de>
1138
1139         * tree-ssa.c (useless_type_conversion_p_1): Only for types
1140         that require structural equality defer to the langhook.
1141
1142 2009-08-07  Martin Jambor  <mjambor@suse.cz>
1143
1144         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
1145         comments.
1146         (struct ipa_pass_through_data): New type.
1147         (struct ipa_ancestor_jf_data): New type.
1148         (union jump_func_value): Removed field formal_id, added fields
1149         pass_through and ancestor.
1150         (struct ipa_param_call_note): Changed type of formal_id to int from
1151         unsigned.
1152         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
1153         operations jump functions and ancestor jump functions.
1154         (compute_complex_pass_through): New function.
1155         (compute_scalar_jump_functions): Call compute_complex_pass_through,
1156         reflect changes in the jump function strucutre.
1157         (update_jump_functions_after_inlining): Ignore complex pass-through
1158         and ancestor jump functions.
1159         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
1160         polynomial pass-through with operation jump functions.
1161
1162 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
1163
1164         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
1165         fde->dw_fde_begin as begin label instead of hot/cold label.
1166         Use LLSDAC label instead of LLSDA for second section lsda.
1167         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
1168         label instead of LLSDA if it is true.
1169         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
1170         callers.
1171         * except.c (add_call_site, dw2_size_of_call_site_table): Add
1172         SECTION argument.  Use it as index into crtl->eh.call_site_record
1173         array.
1174         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
1175         use it to determine how to print table entries instead of using
1176         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
1177         label instead of normal begin label as base.
1178         (sjlj_assign_call_site_values): Adjust add_call_site caller.
1179         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
1180         ensure no EH range spans between sections and that landing pads
1181         are always in the corresponding section.
1182         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
1183         for crtl->eh.call_site_record being an array rather than scalar.
1184         (output_one_function_exception_table): New function, copied
1185         from output_function_exception_table.  Adjust
1186         dw2_size_of_call_site_table, dw2_output_call_site_table
1187         callers.  For SECOND section use *C suffixed labels.
1188         (output_function_exception_table): Call
1189         output_one_function_exception_table and, when doing hot/cold
1190         partitioning, also another time for the second section.
1191         * opts.c: Include except.h.
1192         (decode_options): Allow -freorder-blocks-and-partition with
1193         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
1194         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
1195         * function.h (struct rtl_eh): Change call_site_record from
1196         scalar into array of 2 elements.
1197
1198 2009-08-07  Martin Jambor  <mjambor@suse.cz>
1199
1200         * ipa-prop.c (count_formal_params_1): New function.
1201         (ipa_get_vector_of_formal_parms): New function.
1202         (get_vector_of_formal_parm_types): New function.
1203         (ipa_modify_formal_parameters): New function.
1204         (ipa_modify_call_arguments): New function.
1205         (index_in_adjustments_multiple_times_p): New function.
1206         (ipa_combine_adjustments): New function.
1207         (ipa_dump_param_adjustments): New function.
1208         * ipa-prop.h (struct ipa_parm_adjustment): New type.
1209         (ipa_get_vector_of_formal_parms): Declare.
1210         (ipa_modify_formal_parameters): Declare.
1211         (ipa_modify_call_arguments): Declare.
1212         (ipa_combine_adjustments): Declare.
1213         (ipa_dump_param_adjustments): Declare.
1214         (build_ref_for_offset): Declare.
1215         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
1216         * tree-sra.c: Include ipa-prop.c.
1217         (build_ref_for_offset): Make public.
1218
1219 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
1220
1221         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
1222
1223 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
1224
1225         * gcc/doc/extend.texi (__builtin_extract_return_address)
1226         (__builtin_frob_return_address): Document.
1227
1228 2009-08-06  Paul Brook  <paul@codesourcery.com>
1229
1230         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
1231         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
1232         implementation on ARMv6-M.
1233
1234 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
1235
1236         * doc/extend.texi (pcs): Document new attribute for ARM.
1237
1238 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
1239
1240         * arm.c (pcs_attribute_args): Comment out unsupported attribute
1241         variants.
1242
1243 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
1244
1245         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
1246         warning ().
1247
1248 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
1249
1250         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
1251
1252 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
1253
1254         Merge ARM/hard_vfp_branch to trunk.
1255
1256         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
1257
1258         * arm.c (libcall_eq): New function.
1259         (libcall_hash): New function.
1260         (add_libcall): New function.
1261         (arm_libcall_uses_aapcs_base): New function.
1262         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
1263         libcalls using the base PCS.
1264         (arm_init_cumulative_args): Likewise.
1265
1266         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
1267
1268         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
1269         Use base ABI for conversion libfuncs between HFmode and SFmode.
1270
1271         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
1272
1273         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
1274         V4SImode as representatives of all 64-bit and 128-bit vector
1275         types.  Allow vector types without vector modes.
1276         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
1277         without vector modes like BLKmode.
1278         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
1279         BLKmode.  Avoid unsupported vector modes or TImode moves for
1280         non-TARGET_NEON.
1281         (aapcs_vfp_allocate_return_reg): Likewise.
1282         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
1283         V8QImode if TARGET_NEON || TARGET_IWMMXT.
1284
1285         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
1286
1287         * config/arm/arm.c (arm_handle_pcs_attribute): New.
1288         (arm_get_pcs_model): Pass attribute arguments to
1289         arm_pcs_from_attribute.
1290         (arm_init_cumulative_args): Use base AAPCS for conversions from
1291         floating-point types to DImode.
1292         (arm_attribute_table): Add pcs attribute.
1293         (arm_handle_pcs_attribute): New.
1294         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
1295         conversions from floating-point types to DImode, also declare them
1296         to use base AAPCS and declare functions they call to use base
1297         AAPCS and their RTABI names.
1298
1299         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
1300
1301         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
1302         -mfloat-abi=hard not being supported for VFP.
1303
1304         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
1305
1306         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
1307         SYMBOL_REF to hard_libcall_value.
1308
1309         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
1310             Richard Earnshaw  <rearnsha@arm.com>
1311
1312         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
1313         has been put on the stack, all remaining co-processory arguments for
1314         that co-processor also go on the stack.
1315
1316         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
1317
1318         * config/arm/arm.c (arm_return_in_memory): Handle returning
1319         vectors of suitable size in registers also for AAPCS case.
1320
1321         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
1322
1323         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
1324
1325         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
1326
1327         ARM Hard-VFP calling convention
1328         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
1329         * target.h (gcc_target): Add libcall_value to table of call hooks.
1330         * targhooks.h (default_libcall_value): Default implementation.
1331         * targhooks.c (default_libcall_value): Likewise.
1332         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
1333         * optabs.c (expand_unop): Use it.
1334         * expr.h (hard_libcall_value): Pass the function RTX through.
1335         * calls.c (emit_library_call_value_1): Update call to
1336         hard_libcall_value.
1337         * explow.c (hard_libcall_value): Use new target hook.
1338         * testsuite/lib/target-supports.exp
1339         (check_effective_target_arm_hard_vfp_ok): New hook.
1340         (check_effective_target_arm_neon_ok): Improve test for neon
1341         availability.
1342         * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
1343         * config/arm/arm.c: Include cgraph.h
1344         (TARGET_FUNCTION_VALUE): Override default hook.
1345         (arm_pcs_default): New variable.
1346         (arm_override_options): Don't fault hard calling convention with VFP.
1347         Add support for AAPCS variants.
1348         (arm_function_value): Make static.  Handle AAPCS variants.
1349         (arm_libcall_value): New function.
1350         (arm_apply_result_size): Handle VFP registers in results.
1351         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
1352         conventions.
1353         (pcs_attribute_args): New variable.
1354         (arm_pcs_from_attribute): New function.
1355         (arm_get_pcs_model): New function.
1356         (aapcs_vfp_cum_init): New function.
1357         (aapcs_vfp_sub_candidate): New function.
1358         (aapcs_vfp_is_return_candidate): New function.
1359         (aapcs_vfp_is_call_candidate): New function.
1360         (aapcs_vfp_allocate): New function.
1361         (aapcs_vfp_allocate_return_reg): New function.
1362         (aapcs_vfp_advance): New function.
1363         (aapcs_cp_arg_layout): New variable.
1364         (aapcs_select_call_coproc): New function.
1365         (aapcs_select_return_coproc): New function.
1366         (aapcs_allocate_return_reg): New function.
1367         (aapcs_libcall_value): New function.
1368         (aapcs_layout_arg): New function.
1369         (arm_init_cumulative_args): Initialize AAPCS args data.
1370         (arm_function_arg): Handle AAPCS variants using new interface.
1371         (arm_arg_parital_bytes): Likewise.
1372         (arm_function_arg_advance): New function.
1373         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
1374         calling conventions.
1375         (arm_setup_incoming_varargs): Handle new AAPCS args data.
1376         * arm.h (NUM_VFP_ARG_REGS): Define.
1377         (LIBCALL_VALUE): Update.
1378         (FUNCTION_VALUE): Delete.
1379         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
1380         (arm_pcs): New enum.
1381         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
1382         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
1383         (FUNCTION_ARG_REGNO_P): Add VFP regs.
1384         * arm-protos.h (arm_function_arg_advance): Add.
1385         (aapcs_libcall_value): Add.
1386         (arm_function_value): Delete.
1387
1388 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
1389             H.J. Lu  <hongjiu.lu@intel.com>
1390
1391         PR target/40957
1392         * config/i386/i386.c (standard_sse_mode_p): Remove.
1393         (standard_sse_constant_p): Return 2 for integer mode
1394         vector_all_ones_operand when SSE2 is enabled.
1395         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
1396         (ix86_expand_vector_move): Do not check for negative values from
1397         standard_sse_constant_p.
1398
1399 2009-08-06  Richard Guenther  <rguenther@suse.de>
1400
1401         * tree-ssa.c (useless_type_conversion_p_1): Make function and
1402         array type comparisons frontend independent.
1403         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
1404         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
1405         out array reference lower bound and element size operands.
1406         (ao_ref_init_from_vn_reference): Properly compute the offset
1407         for ARRAY_RANGE_REF.
1408         (vn_reference_fold_indirect): Fill out array reference lower
1409         bound and element size operands.
1410         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
1411         a non gimple valued reference operand which can happen for
1412         array reference lower bound or element size.
1413         (create_component_ref_by_pieces_1): Properly generate the
1414         element size operand for array references.
1415
1416 2009-08-06  Richard Guenther  <rguenther@suse.de>
1417
1418         PR tree-optimization/40964
1419         * tree.c (iterative_hash_host_wide_int): Export.
1420         * tree.h (iterative_hash_host_wide_int): Declare.
1421         * tree-ssa-structalias.c (heapvar_map): New struct.
1422         (heapvar_map_eq): New function.
1423         (heapvar_map_hash): Likewise.
1424         (heapvar_lookup): Adjust.
1425         (heapvar_insert): Likewise.
1426         (make_constraint_from_heapvar): Allow multiple heap variables
1427         per decl at different offsets.
1428         (init_alias_heapvars): Adjust.
1429
1430 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
1431
1432         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
1433         * mips_output_sync_loop (mips_output_sync_loop): Only emit
1434         trailing sync if TARGET_SYNC_AFTER_SC.
1435
1436 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
1437
1438         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
1439         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
1440         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
1441         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
1442         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
1443         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
1444         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
1445         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
1446         test_and_set_12): Rewrite calls to mips_output_sync_loop.
1447         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
1448         the prototype declaration match the definition.
1449         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
1450         instructions explicitly.  Add barrier_before and operands
1451         parameters.
1452         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
1453         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
1454         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
1455         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
1456         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
1457         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
1458
1459 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
1460
1461         * tree-ssa-alias.c: Fix intervals to use [) syntax.
1462
1463 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
1464             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
1465
1466         PR target/40906
1467         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
1468         source operand.
1469
1470 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
1471
1472         PR rtl-optimization/40924
1473         * dse.c (canon_address): Before calling cselib_expand_value_rtx
1474         make sure canon_rtx (mem_address) isn't simpler than
1475         canon_rtx (expanded_mem_address).
1476
1477 2009-08-05  Li Feng  <nemokingdom@gmail.com>
1478
1479         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
1480         for each poly_bb_p.
1481         (build_scop_drs): Build alias set for each SCoP.
1482
1483 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
1484
1485         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
1486         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
1487         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
1488         (MIPS_ARCH_FLOAT_SPEC): Likewise.
1489         (BASE_DRIVER_SELF_SPECS): Likewise.
1490
1491 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
1492
1493         * tree-ssa-alias.c: Fix some comment typos.
1494
1495 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
1496
1497         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
1498         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
1499
1500 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
1501
1502         PR c/39902
1503         * simplify-rtx.c (simplify_binary_operation_1): Disable
1504         simplifications for decimal float operations.
1505
1506 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
1507
1508         PR middle-end/40943
1509         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
1510         operand of INDIRECT_REF.
1511
1512 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
1513
1514         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
1515         constants referencing TLS symbols.
1516
1517 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1518
1519         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
1520         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
1521
1522 2009-08-03  Richard Guenther  <rguenther@suse.de>
1523
1524         * tree.c (make_vector_type): Build a main variant first,
1525         get the canonical one and then build the variant.
1526         * tree-ssa.c (useless_type_conversion_p_1): Handle
1527         fixed-point types.
1528         (useless_type_conversion_p): Conversions to pointers to
1529         incomplete record types are useless.
1530
1531 2009-08-03  Richard Guenther  <rguenther@suse.de>
1532
1533         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
1534         file will be created.
1535         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
1536         * toplev.c (compile_file): Adjust comment.
1537
1538 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
1539
1540         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
1541         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
1542         (TARGET_PROMOTE_FUNCTION_MODE): Define.
1543         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
1544         (sh_promote_function_mode): Fix typo.
1545
1546 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
1547
1548         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
1549
1550 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1551
1552         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
1553         declaration arguments.
1554
1555 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
1556
1557         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
1558         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
1559         (ix86_split_ashl): Ditto.
1560         (ix86_expand_vector_init_one_nonzero): Ditto.
1561         (ix86_expand_vector_set): Ditto.
1562         (ix86_expand_reduc_v4sf): Ditto.
1563
1564 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
1565
1566         * explow.c (promote_function_mode): Remove assert.
1567         * config/sh/sh.c (sh_promote_function_mode): Declare.
1568
1569 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1570
1571         * config/pa/pa.c (pa_promote_function_mode): Declare.
1572         Change to static.  Fix promote_mode call.
1573
1574         * gthr-dce.h (CONST_CAST2): Define if not defined.
1575         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
1576
1577         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
1578
1579 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
1580
1581         * expr.c (store_constructor): Use promote_decl_mode.  Remove
1582         now write-only variable unsignedp.
1583         (expand_expr_real_1): Use promote_decl_mode.
1584         * expr.h (promote_function_mode, promote_decl_mode): New.
1585         (promote_mode): Remove last argument.
1586         * function.c (assign_temp): Drop last argument of promote_mode.
1587         (assign_parm_find_data_types): Use promote_function_mode.
1588         (assign_parm_setup_reg): Likewise.
1589         (expand_function_end): Use promote_function_mode.
1590         * calls.c (initialize_argument_information): Use promote_function_mode.
1591         (precompute_arguments): Use promote_mode instead of checking if
1592         only PROMOTE_FUNCTION_MODE is defined.
1593         (expand_call): When making sibcall decisions, use promote_function_mode.
1594         Below, remove an if for targetm.calls.promote_function_return and
1595         and use promote_function_mode.
1596         (emit_library_call_value_1): Use promote_function_mode, fix bug
1597         where promote_mode was passed FOR_CALL == 0 for a return value in an
1598         assertion.
1599         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
1600         * explow.c (promote_function_mode, promote_decl_mode): New.
1601         (promote_mode): Keep only the FOR_CALL == 0 case.
1602         * combine.c (setup_incoming_promotion): Remove test of
1603         promote_function_args.  Use promote_function_mode.
1604         * stmt.c (expand_value_return): Use promote_decl_mode.
1605         (expand_decl): Use promote_decl_mode.
1606
1607         * expr.c (store_constructor): Use promote_decl_mode.  Remove
1608         now write-only variable unsignedp.
1609         (expand_expr_real_1): Use promote_decl_mode.
1610         * expr.h (promote_function_mode, promote_decl_mode): New.
1611         (promote_mode): Remove last argument.
1612         * function.c (assign_temp): Drop last argument of promote_mode.
1613         (assign_parm_find_data_types): Use promote_function_mode.
1614         (assign_parm_setup_reg): Likewise.
1615         (expand_function_end): Use promote_function_mode.
1616         * calls.c (initialize_argument_information): Use promote_function_mode.
1617         (precompute_arguments): Use promote_mode instead of checking if
1618         only PROMOTE_FUNCTION_MODE is defined.
1619         (expand_call): When making sibcall decisions, use promote_function_mode.
1620         Below, remove an if for targetm.calls.promote_function_return and
1621         and use promote_function_mode.
1622         (emit_library_call_value_1): Use promote_function_mode, fix bug
1623         where promote_mode was passed FOR_CALL == 0 for a return value in an
1624         assertion.
1625         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
1626         * explow.c (promote_function_mode, promote_decl_mode): New.
1627         (promote_mode): Keep only the FOR_CALL == 0 case.
1628         * combine.c (setup_incoming_promotion): Remove test of
1629         promote_function_args.  Use promote_function_mode.
1630         * stmt.c (expand_value_return): Use promote_decl_mode.
1631         (expand_decl): Use promote_decl_mode.
1632
1633         * explow.c (promote_function_mode): Just call the target hook.
1634         * targhooks.c (default_promote_function_mode,
1635         default_promote_function_mode_always_promote): New.
1636         * targhooks.h (default_promote_function_mode,
1637         default_promote_function_mode_always_promote): Declare.
1638         * target.h (promote_function_args, promote_function_return): Remove.
1639         (promote_function_mode): New.
1640         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
1641         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1642         (TARGET_PROMOTE_FUNCTION_MODE): New.
1643         (TARGET_CALLS): Adjust.
1644         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
1645         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
1646
1647         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
1648         * config/s390/s390.c (s390_promote_function_mode): ... here,
1649         with pointer handling.
1650         (TARGET_PROMOTE_FUNCTION_MODE): Define.
1651         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1652
1653         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
1654         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
1655         with pointer handling.
1656         (TARGET_PROMOTE_FUNCTION_MODE): Define.
1657         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1658
1659         * config/sh/sh-protos.h (sh_promote_function_mode): New.
1660         * config/sh/sh.c (sh_promote_function_mode): New.
1661         (TARGET_PROMOTE_FUNCTION_MODE): Define.
1662         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1663
1664         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
1665         * config/cris/cris.c (cris_promote_function_mode): ... here.
1666         (TARGET_PROMOTE_FUNCTION_MODE): Define.
1667         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
1668
1669         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
1670         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
1671         (TARGET_PROMOTE_FUNCTION_MODE): Define.
1672         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
1673
1674         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
1675         * config/arm/arm.c (arm_promote_function_mode): ... here, without
1676         complex type handling.
1677         (TARGET_PROMOTE_FUNCTION_MODE): Define.
1678         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1679
1680         * config/pa/pa.c (pa_promote_function_mode): New.
1681         (TARGET_PROMOTE_FUNCTION_MODE): Define.
1682         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1683
1684         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
1685         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1686         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
1687         * config/xtensa/xtensa.c: Likewise.
1688         * config/stormy16/stormy16.c: Likewise.
1689         * config/iq2000/iq2000.c: Likewise.
1690         * config/rs6000/rs6000.c: Likewise.
1691         * config/picochip/picochip.c: Likewise.
1692         * config/arc/arc.c: Likewise.
1693         * config/mcore/mcore.c: Likewise.
1694         * config/score/score.c: Likewise.
1695         * config/mips/mips.c: Likewise.
1696         * config/bfin/bfin.c: Likewise.
1697         * config/ia64/ia64.c: Likewise (disabled though).
1698
1699         * config/frv/frv.h: Remove pointless remark.
1700
1701         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
1702         TARGET_PROMOTE_FUNCTION_ARGS,
1703         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
1704         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
1705
1706 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
1707
1708         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
1709         -floop-parallelize-all.
1710         * toplev.c (process_options): Rename flag_graphite_force_parallel to
1711         flag_loop_parallelize_all.
1712         * tree-ssa-loop.c (gate_graphite_transforms): Same.
1713         * graphite.c (graphite_transform_loops): Same.
1714         * common.opt: Same.
1715         * graphite-poly.c (apply_poly_transforms): Same.
1716
1717 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
1718
1719         PR tree-optimization/40914
1720         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
1721         if set, then check the delta field of the PMF record.
1722         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
1723         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
1724         call is stored in the delta.
1725
1726 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
1727
1728         * config/mips/mips.md (*clear_upper32_dext): New pattern.
1729
1730 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
1731
1732         * config/i386/bsd.h (ASM_BYTE): New define.
1733         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
1734         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
1735         .byte.  Use fputs or putc instead of fprintf where appropriate.
1736         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
1737         fputs or putc instead of fprintf where appropriate.
1738         * config/i386/i386elf.h: Ditto.
1739         * config/i386/sysv4.h: Ditto.
1740
1741         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
1742         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
1743         (*tls_global_dynamic_64): Ditto.
1744
1745 2009-07-31  Christian Bruel  <christian.bruel@st.com>
1746
1747         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
1748
1749 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1750
1751         * config/arm/arm.c (arm_arm_address_cost): Fix typo.
1752         Remove dead code for MINUS.
1753
1754 2009-07-31  Anthony Green  <green@moxielogic.com>
1755
1756         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
1757         $r12 in prologue.
1758         (moxie_expand_epilogue): Ditto for epilogue.
1759         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
1760         incoming arguments.
1761         (moxie_function_arg): Ditto.
1762         (moxie_pass_by_reference): Ditto.
1763         (moxie_arg_partial_bytes): Ditto.
1764         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
1765         (FUNCTION_ARG_ADVANCE) Ditto.
1766         (REG_PARM_STACK_SPACE) Ditto.
1767         (FUNCTION_ARG_REGNO_P) Dito.
1768
1769         * config.gcc: Add moxie linux config support.
1770         * gcc/config/moxie/uclinux.h: New file.
1771
1772 2009-07-31  DJ Delorie  <dj@redhat.com>
1773
1774         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
1775         (UNSPECV_SP_SWITCH_E): New.
1776         (sp_switch_1): Change to an unspec.
1777         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
1778         replace $r15.
1779         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
1780         reference the new stack's address
1781
1782 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1783
1784         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
1785         graphite-clast-to-gimple.o, graphite-dependences.o,
1786         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
1787         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
1788         (graphite-blocking.o,
1789         graphite-clast-to-gimple.o, graphite-dependences.o,
1790         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
1791         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
1792         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
1793         * cfgloop.h (struct loop): Add can_be_parallel field.
1794         * common.opt (fgraphite-identity): Moved up.
1795         (fgraphite-force-parallel): New flag.
1796         * graphite.c: Rewrite.
1797         * graphite.h: Rewrite.
1798         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
1799         after Graphite.
1800         * toplev.c (graphite_out_file): New file descriptor.
1801         (graphite_in_file): New.
1802         (process_options): flag_graphite_force_parallel cannot be used without
1803         Graphite.
1804         * tree-ssa-loop.c: Include toplev.h.
1805         (gate_graphite_transforms): Enable flag_graphite for
1806         flag_graphite_force_parallel.
1807
1808 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1809
1810         * ChangeLog.graphite: New.
1811         * graphite-blocking.c: New.
1812         * graphite-clast-to-gimple.c: New.
1813         * graphite-clast-to-gimple.h: New.
1814         * graphite-dependences.c: New.
1815         * graphite-dependences.h: New.
1816         * graphite-interchange.c: New.
1817         * graphite-poly.c: New.
1818         * graphite-poly.h: New.
1819         * graphite-ppl.c: New.
1820         * graphite-ppl.h: New.
1821         * graphite-scop-detection.c: New.
1822         * graphite-scop-detection.h: New.
1823         * graphite-sese-to-poly.c: New.
1824         * graphite-sese-to-poly.h: New.
1825         * sese.c: New.
1826         * sese.h: New.
1827
1828 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1829
1830         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
1831         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
1832
1833 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1834
1835         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
1836         (scev_is_linear_expression): Return false if the evolution is not
1837         affine multivariate.
1838
1839 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1840
1841         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
1842         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
1843
1844 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1845
1846         * tree-data-ref.c (debug_data_references): New.
1847         (debug_data_reference): New.
1848         * tree-data-ref.h (debug_data_references): Declared.
1849         (debug_data_reference): Declared.
1850
1851 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1852
1853         * tree-data-ref.c (stmt_simple_memref_p: Removed.
1854         * tree-data-ref.h (scop_p): Removed.
1855         (struct data_reference): Remove field scop.
1856         (DR_SCOP): Removed.
1857         (stmt_simple_memref_p): Removed.
1858
1859 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1860
1861         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
1862         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
1863         basic block empty.
1864
1865 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1866
1867         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
1868
1869 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1870
1871         * doc/invoke.texi (-fgraphite-identity): Documented.
1872
1873 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1874
1875         * tree-scalar-evolution.c: Fix comment.
1876         (instantiate_scev_1): Return unknow from scev instantiation if the
1877         result is not above instantiate_below.
1878
1879 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1880
1881         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
1882         static anymore.  Instantiate the symbols that may have been introduced
1883         by chrec_apply.
1884         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
1885         Declared.
1886
1887 2009-07-30  DJ Delorie  <dj@redhat.com>
1888
1889         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
1890         .vliw directive to VLIW sections.
1891
1892 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1893
1894         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1895         New variables.
1896         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1897         (AUTOHEADER): New variable.
1898         ($(srcdir)/cstamp-h.in): Use it.
1899
1900 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
1901             Pat Haugen  <pthaugen@us.ibm.com>
1902             Revital Eres <ERES@il.ibm.com>
1903
1904         * config/rs6000/vector.md (VEC_F): Add VSX support.
1905         (VEC_A): Ditto.
1906         (VEC_N): Ditto.
1907         (mov<mode>): Ditto.
1908         (vector_load_<mode>): Ditto.
1909         (vector_store_<mode>): Ditto.
1910         (vector GPR move split): Ditto.
1911         (vec_reload_and_plus_<mptrsize>): Ditto.
1912         (vec_reload_and_reg_<mptrsize>): Ditto.
1913         (add<mode>3): Ditto.
1914         (sub<mode>3): Ditto.
1915         (mul<mode>3): Ditto.
1916         (neg<mode>2): Ditto.
1917         (abs<mode>2): Ditto.
1918         (smin<mode>3): Ditto.
1919         (smax<mode>3): Ditto.
1920         (vector_eq<mode>): Ditto.
1921         (vector_gt<mode>): Ditto.
1922         (vector_ge<mode>): Ditto.
1923         (vector_gtu<mode>): Ditto.
1924         (vector_select_<mode>_uns): Ditto.
1925         (vector_eq_<mode>_p): Ditto.
1926         (vector_gt_<mode>_p): Ditto.
1927         (vector_ge_<mode>_p): Ditto.
1928         (vector_gtu_<mode>_p): Ditto.
1929         (cr6_test_for_zero): Ditto.
1930         (cr6_test_for_zero_reverse): Ditto.
1931         (cr6_test_for_lt): Ditto.
1932         (cr6_test_for_lt_reverse): Ditto.
1933         (xor<mode>3): Ditto.
1934         (ior<mode>3): Ditto.
1935         (and<mode>3): Ditto.
1936         (one_cmpl<mode>2): Ditto.
1937         (nor<mode>2): Ditto.
1938         (andc<mode>2): Ditto.
1939         (float<VEC_int<mode>2): Ditto.
1940         (unsigned_float<VEC_int><mode>2): Ditto.
1941         (fix_trunc<mode><VEC_int>2): Ditto.
1942         (fixuns_trunc<mode><VEC_int>2): Ditto.
1943         (vec_init<mode>):
1944         (vec_set<mode>): Ditto.
1945         (vec_extract<mode>): Ditto.
1946         (vec_interleave_highv4sf): Ditto.
1947         (vec_interleave_lowv4sf): Ditto.
1948         (vec_realign_load_<mode>): Ditto.
1949         (vec_shl_<mode>): Ditto.
1950         (vec_shr_<mode>): Ditto.
1951         (div<mode>3): New patterns for VSX.
1952         (vec_interleave_highv2df): Ditto.
1953         (vec_interleave_lowv2df): Ditto.
1954         (vec_pack_trunc_v2df): Ditto.
1955         (vec_pack_sfix_trunc_v2df): Ditto.
1956         (vec_pack_ufix_trunc_v2df): Ditto.
1957         (vec_unpacks_hi_v4sf): Ditto.
1958         (vec_unpacks_lo_v4sf): Ditto.
1959         (vec_unpacks_float_hi_v4si): Ditto.
1960         (vec_unpacks_float_lo_v4si): Ditto.
1961         (vec_unpacku_float_hi_v4si): Ditto.
1962         (vec_unpacku_float_lo_v4si): Ditto.
1963         (movmisalign<mode>): Ditto.
1964         (vector_ceil<mode>2): New patterns for vectorizing math library.
1965         (vector_floor<mode>2): Ditto.
1966         (vector_btrunc<mode>2): Ditto.
1967         (vector_copysign<mode>3): Ditto.
1968
1969         * config/rs6000/predicates.md (easy_vector_constant_msb): New
1970         predicate for setting the high bit in each word, used for copysign.
1971
1972         * config/rs6000/ppc-asm.h (f19): Whitespace.
1973         (f32-f63): Define if VSX.
1974         (v0-v31): Define if Altivec.
1975         (vs0-vs63): Define if VSX.
1976
1977         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
1978
1979         * config/rs6000/power7.md: New file, provide tuning parameters for
1980         -mcpu=power7.
1981
1982         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
1983         (rs6000_cpu_cpp_builtins): Ditto.
1984         (altivec_overloaded_builtins): Ditto.
1985         (altivec_resolve_overloaded_builtin): Ditto.
1986
1987         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
1988         debug switch to disable vectorizing simple math builtin
1989         functions.
1990
1991         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
1992         Vectorize simple math builtin functions.
1993         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
1994         hook to vectorize math builtins.
1995         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
1996         (rs6000_builtin_conversion): Add VSX/power7 support.
1997         (rs6000_builtin_vec_perm): Ditto.
1998         (vsplits_constant): Add support for loading up a vector constant
1999         with just the high bit set in each part.
2000         (rs6000_expand_vector_init): Add VSX/power7 support.
2001         (rs6000_expand_vector_set): Ditto.
2002         (rs6000_expand_vector_extract): Ditto.
2003         (rs6000_emit_move): Ditto.
2004         (bdesc_3arg): Ditto.
2005         (bdesc_2arg): Ditto.
2006         (bdesc_1arg): Ditto.
2007         (rs6000_expand_ternop_builtin): Ditto.
2008         (altivec_expand_builtin): Ditto.
2009         (rs6000_expand_unop_builtin): Ditto.
2010         (rs6000_init_builtins): Ditto.
2011         (altivec_init_builtins): Ditto.
2012         (builtin_function_type): Ditto.
2013         (rs6000_common_init_builtins): Ditto.
2014         (rs6000_handle_altivec_attribute); Ditto.
2015         (rs6000_mangle_type): Ditto.
2016         (rs6000_vector_mode_supported_p): Ditto.
2017         (rs6000_mode_dependent_address): Altivec addresses with AND -16
2018         are mode dependent.
2019
2020         * config/rs6000/vsx.md: New file for VSX support.
2021
2022         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
2023         identifing values with just the most significant bit set.
2024         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
2025         vectorized builtins.
2026
2027         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
2028         (UNSPEC_VRFIM): Delete.
2029         (splitter for loading up vector with most significant bit): New
2030         splitter for vectorizing copysign.
2031         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
2032         vectorizing simple math functions.
2033         (altivec_vrfip): Add support for vectorizing simple math functions.
2034         (altivec_vrfim): Ditto.
2035         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
2036
2037         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
2038         (power7.md, vsx.md): Include for power7 support.
2039         (copysigndf3): Use VSX instructions if -mvsx.
2040         (negdf2_fpr): Ditto.
2041         (absdf2_fpr): Ditto.
2042         (nabsdf2_fpr): Ditto.
2043         (adddf3_fpr): Ditto.
2044         (subdf3_fpr): Ditto.
2045         (muldf3_fpr): Ditto.
2046         (divdf3_fpr): Ditto.
2047         (fix_truncdfdi2_fpr): Ditto.
2048         (cmpdf_internal1): Ditto.
2049         (fred, fred_fpr): Convert into expander/insn to add VSX support.
2050         (btruncdf2, btruncdf2_fpr): Ditto.
2051         (ceildf2, ceildf2_fpr): Ditto.
2052         (floordf2, floordf2_fpr): Ditto.
2053         (floatdidf2, floatdidf2_fpr): Ditto.
2054         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
2055         (fmsubdf4_fpr): Ditto.
2056         (fnmadddf4_fpr_1): Ditto.
2057         (fnmadddf4_fpr_2): Ditto.
2058         (fnmsubdf4_fpr_1): Ditto.
2059         (fnmsubdf4_fpr_2): Ditto.
2060         (fixuns_truncdfdi2): Add expander for VSX support.
2061         (fix_truncdfdi2): Ditto.
2062         (fix_truncdfsi2): Ditto.
2063         (ftruncdf2): Ditto.
2064         (btruncsf2): Whitespace.
2065         (movdf_hardfloat32): Add support for VSX registers.
2066         (movdf_softfloat32): Ditto.
2067         (movdf_hardfloat64): Ditto.
2068         (movdf_hardfloat64_mfpgpr): Ditto.
2069         (movdf_softfloat64): Ditto.
2070         (movti splitters): Add check for vector registers supporting
2071         TImode in the future.
2072         (bpermd): Add power7 bpermd instruction.
2073
2074         * config/rs6000/altivec.h (vec_div): Define if VSX.
2075         (vec_mul): Ditto.
2076         (vec_msub): Ditto.
2077         (vec_nmadd): Ditto.
2078         (vec_nearbyint): Ditto.
2079         (vec_rint): Ditto.
2080         (vec_sqrt): Ditto.
2081         (all predicates): Use the generic builtin function, and not the V4SF
2082         specific function so that the predicates will work with VSX's V2DF.
2083         (vec_all_*): Ditto.
2084         (vec_any_*): Ditto.
2085
2086         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
2087         Document new VSX functions and types.
2088
2089         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
2090         switches.
2091
2092         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
2093         "wa", and "j" constraints.  Modify "v" to talk about Altivec
2094         instead of just vector.
2095
2096 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
2097
2098         PR debug/26475
2099         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
2100         location for phi arguments.
2101         (rewrite_update_phi_arguments): Find locations for reaching defs.
2102         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
2103         Add location to add_phi_arg calls.
2104         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
2105         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
2106         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
2107         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
2108         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
2109         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
2110         * tree-phinodes.c (make_phi_node): Initialize location.
2111         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
2112         (add_phi_arg): Add location parameter.
2113         (remove_phi_arg_num): Move location when moving phi argument.
2114         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
2115         location.
2116         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
2117         slpeel_update_phi_nodes_for_guard1,
2118         slpeel_update_phi_nodes_for_guard2,
2119         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
2120         vect_loop_versioning): Set locations.
2121         * tree-parloops.c (create_phi_for_local_result,
2122         transform_to_exit_first_loop, create_parallel_loop): Add locations.
2123         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
2124         * tree-vect-loop.c (get_initial_def_for_induction,
2125         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
2126         locations.
2127         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
2128         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
2129         (gimple_phi_arg_set_location): New.  Set locus.
2130         (gimple_phi_arg_has_location): New.  Check for locus.
2131         (redirect_edge_var_map_location): New.  Return locus from var_map.
2132         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
2133         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
2134         combining PHI arguments.
2135         (cond_store_replacement): Set location.
2136         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
2137         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
2138         scop_add_exit_phis_edge): Add locations.
2139         * tree-cfgcleanup.c (remove_forwarder_block,
2140         remove_forwarder_block_with_phi): Add locations.
2141         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
2142         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
2143         locations.
2144         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
2145         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
2146         flush_pending_stmts): Add source location.
2147         * lambda-code.c (perfect_nestify): Maintain location stack with argument
2148         stack to preserve locations.
2149         * tree-vect-stmts.c (vectorizable_load): Add location.
2150         * tree-inline.c (copy_phis_for_bb): Copy locus.
2151         (setup_one_parameter): Add call locus to inlined parameter stmts.
2152         (initialize_inlined_parameters): Pass in call location as parameter
2153         assignment locus.
2154         (tree_function_versioning): Pass location to setup_one_parameter.
2155         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
2156         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
2157         copy and edge lists.
2158         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
2159         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
2160         locus parameter and override the stmt default if provided.
2161         (new_elim_graph, clear_elim_graph, delete_elim_graph,
2162         elim_graph_add_edge, elim_graph_remove_succ_edge,
2163         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
2164         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
2165         eliminate_phi):  Add locus info in elimination graph for each edge and
2166         value copy.
2167         (insert_backedge_copies): Copy locus if present.
2168         * tree-flow.h (struct _edge_var_map): Add locus field.
2169         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
2170         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
2171         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
2172         locations.
2173         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
2174
2175 2009-07-30  Martin Jambor  <mjambor@suse.cz>
2176
2177         PR tree-optimization/40570
2178         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
2179         use inlining loops.
2180
2181 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
2182
2183         * ssa-loop-manip.c: Include langhooks.h.
2184         (rewrite_phi_with_iv): New.
2185         (rewrite_all_phi_nodes_with_iv): New.
2186         (canonicalize_loop_ivs): Move here from tree-parloops.c.
2187         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
2188         * tree-parloops.c (loop_parallel_p): Move out all conditions
2189         except dependency check.
2190         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
2191         (gen_parallel_loop): Call canonicalize_loop_ivs without
2192         reduction_list argument.
2193         (build_new_reduction): New.
2194         (gather_scalar_reductions): New.
2195         (try_get_loop_niter): New.
2196         (try_create_reduction_list): New.
2197         (parallleize_loops): Change the parallel conditions check.
2198         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
2199         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
2200
2201 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
2202
2203         * opt-functions.awk (opt_args): Allow argument to be enclosed in
2204         curly braces.
2205         * doc/options.texi (Option properties):  Mention new quoting syntax.
2206
2207 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
2208
2209         * config/alpha/alpha.c (alpha_start_function):
2210         Handle VMS_DEBUG_MAIN_POINTER
2211         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
2212         * doc/invoke.texi: Document -mdebug-main switch.
2213
2214 2009-07-29  Richard Henderson  <rth@redhat.com>
2215
2216         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
2217         (cgraph_create_edge_including_clones): Likewise.
2218         * tree-inline.c (copy_bb): Operate on the correct edges
2219         when updating the callgraph.
2220
2221 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
2222
2223         * config/alpha/vms-cc.c: Deleted.
2224         * config/alpha/vms-ld.c: Deleted.
2225         * config/alpha/t-vms64: Moved to config/vms
2226         * config/alpha/vms-crt0-64.c: Moved to config/vms
2227         * config/alpha/vms-crt0.c: Moved to config/vms
2228         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
2229         * config/alpha/vms-psxcrt0.c: Moved to config/vms
2230         * config/alpha/xm-vms.h: Moved to config/vms
2231         * config/alpha/x-vms: Moved to config/vms
2232         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
2233         config/vms/t-vms.
2234         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
2235         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
2236         (version): Set.
2237         * config/vms/t-vms64: Moved here from config/alpha
2238         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
2239         (argc,argv,envp): Enforce 32bit malloc'ing.
2240         * config/vms/vms-psxcrt0-64.c: Likewise.
2241         * config/vms/vms-crt0.c: Moved here from config/alpha.
2242         * config/vms/vms-psxcrt0.c: Likewise.
2243         * config/vms/vms-crtl-64.h: New file.
2244         * config/vms/vms-crtl.h: New file.
2245         * config/vms/vms.opt: New file.
2246         * config/vms/xm-vms64.h: New file.
2247         * config/vms/xm-vms.h: Moved here from config/alpha.
2248         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
2249         Set.
2250         * config/vms/x-vms: Moved here from config/alpha.
2251         (version, VMS_EXTRA_PARTS): Moved to t-vms.
2252         (vms-ld.o, vms-cc.o): Removed.
2253         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
2254
2255 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
2256
2257         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
2258         correct stack (obvious VMS fix).
2259
2260 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
2261
2262         * dwarf2out.c (output_file_names): Output VMS style file name, size,
2263         date, version info if VMS_DEBUGGING_INFO defined.
2264         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
2265         size, date calculating code moved here.
2266
2267 2009-07-29  Paul Brook  <paul@codesourcery.com>
2268
2269         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
2270         do_push/do_pop.
2271
2272 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
2273
2274         PR target/40577
2275         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
2276         to DImode when generating insq_le insn.
2277
2278 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
2279
2280         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
2281         New macro set for VMS_DEBUGGGING_INFO.
2282         (AT_string_form): Use it.
2283
2284 2009-07-28  DJ Delorie  <dj@redhat.com>
2285
2286         * config/mep/mep.c (vtext_section): New.
2287         (vftext_section): New.
2288         (ftext_section): New.
2289         (mep_select_section): Add support for functions.
2290         (mep_unique_section): Likewise.
2291         (mep_asm_init_sections): Likewise.
2292         (mep_encode_section_info): Remove it from here.
2293
2294         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
2295
2296 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
2297
2298         * tree.h (TREE_DEPRECATED): Document it is used for types too.
2299         (TYPE_VECTOR_OPAQUE): Use default_def_flag
2300
2301 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
2302
2303         * dwarf2out.c (output_file_names): Test new macro
2304         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
2305         (add_comp_dir_attribute): Likewise.
2306
2307 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
2308
2309         * config/i386/mingw-w64.h (LINK_SPEC): Add
2310         separating space between commands.
2311
2312 2009-07-28  Jan Hubicka  <jh@suse.cz>
2313
2314         PR tree-optimization/40759
2315         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
2316         for renaming.
2317
2318 2009-07-27  DJ Delorie  <dj@redhat.com>
2319
2320         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
2321         types are dword-aligned.
2322         (mep_expand_va_start): Likewise.
2323
2324 2009-07-27  Olivier Hainque  <hainque@adacore.com>
2325             Douglas B Rupp  <rupp@gnat.com>
2326
2327         * convert.c (convert_to_pointer): Don't assume the target
2328         pointer type is POINTER_SIZE long. Fetch its precision instead.
2329
2330 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
2331
2332         * system.h (fopen): Undefine if macro.
2333
2334 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
2335
2336         * dwarf2out.c (output_cfi_p): Removed.
2337         (output_cfis): New function.
2338         (output_fde): New function, split from output_call_frame_info.
2339         (output_call_frame_info): Use it.
2340         (dwarf2out_switch_text_section): Use output_cfis.
2341
2342 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
2343
2344         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
2345         TARGET_BI_ARCH is specified without enabling SJLJ.
2346         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
2347         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
2348
2349 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
2350
2351         * arm.md (negdi2): Use DImode if forcing a value into a register.
2352
2353 2009-07-26  Ira Rosen  <irar@il.ibm.com>
2354
2355         PR tree-optimization/40801
2356         * tree-vect-stmts.c (vectorizable_call): Get previous copy
2357         of vector operand from the previous copy of vector statement.
2358         Pass the correct definition type value to
2359         vect_get_vec_def_for_stmt_copy().
2360
2361 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2362
2363         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
2364         const char ** conversion.
2365
2366 2009-07-25 David Daney <ddaney@caviumnetworks.com>
2367
2368         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
2369         fancy_abort() if !ENABLE_ASSERT_CHECKING.
2370         (gcc_unreachable): Invoke __builtin_unreachable() if
2371         !ENABLE_ASSERT_CHECKING.
2372
2373 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
2374
2375         PR rtl-optimization/40445
2376         * emit-rtl.c (next_nonnote_insn_bb): New function.
2377         * rtl.h (next_nonnote_insn_bb): Declare new function.
2378         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
2379         with no successors that is the successor of the ENTRY_BLOCK.
2380         Continue from the top after removing an empty fallthrough block.
2381         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
2382         of next_nonnote_insn.
2383
2384 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
2385
2386         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
2387
2388 2009-07-25  Martin Jambor  <mjambor@suse.cz>
2389
2390         * c-common.c (c_common_attribute_table): New element for noclone.
2391         (handle_noclone_attribute): New function. Forward-declare.
2392         * tree-inline.c (tree_versionable_function_p): Check for noclone
2393         attribute.
2394         * doc/extend.texi (Labels as Values): Document need for noclone.
2395         (Function Attributes): Document noclone attribute.
2396
2397 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
2398
2399         PR rtl-optimization/34999
2400         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
2401         and dw_fde_switched_cold_to_hot fields.
2402         (output_cfi_p): New function.
2403         (output_call_frame_info): If fde->dw_fde_switched_sections,
2404         output 2 FDEs instead of one with corrupted header.
2405         (dwarf2out_do_cfi_startproc): New function.
2406         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
2407         and fde->dw_fde_switched_cold_to_hot.
2408         (dwarf2out_switch_text_section): Compute
2409         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
2410         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
2411         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
2412         Otherwise, compute fde->dw_fde_switch_cfi.
2413
2414 2009-07-24  Cary Coutant  <ccoutant@google.com>
2415
2416         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
2417
2418 2009-07-24  Cary Coutant  <ccoutant@google.com>
2419
2420         * cfghooks.c (split_block): Copy discriminator to new block.
2421         * tree-cfg.c (assign_discriminator): Check location of last
2422         instruction in block as well as first.
2423
2424 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
2425
2426         * config/i386/linux.c: Use fputs or putc instead of fprintf
2427         where appropriate.
2428         * config/i386/gas.h: Ditto.
2429         * config/i386/x86-64.h: Ditto.
2430         * config/i386/att.h: Ditto.
2431
2432 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2433
2434         * expmed.c (emit_store_flag): Use a recursive call to optimize the
2435         xor case.
2436
2437 2009-07-24  Martin Jambor  <mjambor@suse.cz>
2438
2439         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
2440         (ipa_push_func_to_list_1): Declare.
2441         (ipa_push_func_to_list): New function.
2442
2443         * ipa-prop.c (ipa_push_func_to_list_1): New function.
2444         (ipa_init_func_list): Call ipa_push_func_to_list_1.
2445         (ipa_push_func_to_list): Removed.
2446         (ipa_pop_func_from_list): Clear node_enqueued flag.
2447
2448 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
2449
2450         * config/s390/s390.c (override_options): Default
2451         max-unrolled-insns to 100 for z10 tuning.
2452
2453 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
2454
2455         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
2456         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
2457         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
2458         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
2459         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
2460         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
2461         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
2462
2463 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
2464
2465         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
2466         use default set in mingw32.h header.
2467         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
2468         64-bit /mingw/include path.
2469         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
2470         path.
2471
2472 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
2473
2474         PR rtl-optimization/40209
2475         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
2476
2477 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
2478
2479         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
2480         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
2481         with the rest of string where appropriate.  Use fputs or putc
2482         instead of fprintf where appropriate.
2483
2484 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
2485             Pat Haugen  <pthaugen@us.ibm.com>
2486             Revital Eres <ERES@il.ibm.com>
2487
2488         * config/rs6000/vector.md: New file.  Move most of the vector
2489         expander support here from altivec.md to allow for the VSX vector
2490         unit in the future.  Add support for secondary_reload patterns.
2491         Rewrite the patterns for vector comparison, and vector comparison
2492         predicate instructions so that the RTL expresses the desired
2493         behavior, instead of using unspec.
2494
2495         * config/rs6000/constraints.md ("f" constraint): Use
2496         rs6000_constraints to hold the precalculated register class.
2497         ("d" constraint): Ditto.
2498         ("wd" constraint): New constraint for VSX.
2499         ("wf" constraint): Ditto.
2500         ("ws" constraint): Ditto.
2501         ("wa" constraint): Ditto.
2502         ("wZ" constraint): Ditto.
2503         ("j" constraint): Ditto.
2504
2505         * config/rs6000/predicates.md (vsx_register_operand): New
2506         predicate for VSX.
2507         (vfloat_operand): New predicate for vector.md.
2508         (vint_operand): Ditto.
2509         (vlogical_operand): Ditto.
2510         (easy_fp_constant): If VSX, 0.0 is an easy constant.
2511         (easy_vector_constant): Add VSX support.
2512         (altivec_indexed_or_indirect_operand): New predicate for
2513         recognizing Altivec style memory references with AND -16.
2514
2515         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
2516         for vector secondary reload support.
2517         (rs6000_vector_reg_class): Delete, replacing it with
2518         rs6000_constraints.
2519         (rs6000_vsx_reg_class): Ditto.
2520         (rs6000_constraints): New array to hold the register classes of
2521         each of the register constraints that can vary at runtime.
2522         (builtin_mode_to_type): New static array for builtin function type
2523         creation.
2524         (builtin_hash_table): New static hash table for builtin function
2525         type creation.
2526         (TARGET_SECONDARY_RELOAD): Define target hook.
2527         (TARGET_IRA_COVER_CLASSES): Ditto.
2528         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
2529         registers are 128 bits if VSX memory reference instructions are used.
2530         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
2531         unit is being used.
2532         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
2533         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
2534         Print several of the scheduling related parameters.
2535         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
2536         rs6000_constraints instead of rs6000_vector_reg_class.  Move
2537         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
2538         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
2539         Altivec.  Add VSX support.  Setup for secondary reload support on
2540         Altivec/VSX registers.
2541         (rs6000_override_options): Make power7 set the scheduling groups
2542         like the power5.  Add support for new debug switches to override
2543         the scheduling defaults.  Temporarily disable -mcpu=power7 from
2544         setting -mvsx.  Add support for debug switches -malways-hint,
2545         -msched-groups, and -malign-branch-targets.
2546         (rs6000_buitlin_conversion): Add support for returning unsigned
2547         vector conversion functions to fix regressions due to stricter
2548         type checking.
2549         (rs6000_builtin_mul_widen_even): Ditto.
2550         (rs6000_builtin_mul_widen_odd): Ditto.
2551         (rs6000_builtin_vec_perm): Ditto.
2552         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
2553         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
2554         to zero a register.
2555         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
2556         generated upstream.
2557         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
2558         VSX types for bit operations.  Changes to accomidate vector.md.
2559         (bdesc_2arg): Ditto.
2560         (bdesc_1arg): Ditto.
2561         (struct builtin_description_predicates): Rewrite predicate
2562         handling so that RTL describes the operation, instead of passing
2563         the instruction to be used as a string argument.
2564         (bdesc_altivec_preds): Ditto.
2565         (altivec_expand_predicate_builtin): Ditto.
2566         (altivec_expand_builtin): Ditto.
2567         (rs6000_expand_ternop_builtin): Use a switch instead of an if
2568         statement for vsldoi support.
2569         (altivec_expand_ld_builtin): Change to use new names from vector.md.
2570         (altivec_expand_st_builtin): Ditto.
2571         (paired_expand_builtin): Whitespace changes.
2572         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
2573         builtin_mode_to_type table for secondary reload.  Call
2574         builtin_function_type to build random builtin functions.
2575         (altivec_init_builtins): Change to use builtin_function_type to
2576         create builtin function types dynamically as we need them.
2577         (builtin_hash_function): New support for hashing the tree types
2578         for builtin function as we need it, rather than trying to build
2579         all of the trees that we need.  Add initial preliminary VSX support.
2580         (builtin_function_type): Ditto.
2581         (builtin_function_eq): Ditto.
2582         (builtin_hash_struct): Ditto.
2583         (rs6000_init_builtins): Ditto.
2584         (rs6000_common_init_builtins): Ditto.
2585         (altivec_init_builtins): Ditto.
2586         (rs6000_common_init_builtins): Ditto.
2587         (enum reload_reg_type): New enum for simplifing reg classes.
2588         (rs6000_reload_register_type): Simplify register classes into GPR,
2589         Vector, and other registers.  Altivec and VSX addresses in reload.
2590         (rs6000_secondary_reload_inner): Ditto.
2591         (rs6000_ira_cover_classes): New target hook, that returns the
2592         appropriate cover classes, based on -mvsx being used or not.
2593         (rs6000_secondary_reload_class): Add VSX support.
2594         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
2595         (get_vsel_insn): Ditto.
2596         (rs6000_emit_vector_compare): Rewrite vector conditional support
2597         so that where we can, we use RTL operators, instead of blindly use
2598         UNSPEC.
2599         (rs6000_emit_vector_select): Ditto.
2600         (rs6000_emit_vector_cond_expr): Ditto.
2601         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
2602         (create_TOC_reference): Add -mdebug=addr support.
2603         (emit_frame_save): VSX loads/stores need register indexed addressing.
2604
2605         * config/rs6000/rs6000.md: Include vector.md.
2606
2607         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
2608
2609         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2610         support for V2DI, V2DF in logical, permute, select operations.
2611
2612         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
2613         switch for vsx/power7.
2614         (-mvsx-scalar-memory): Ditto.
2615         (-mvsx-align-128): Ditto.
2616         (-mallow-movmisalign): Ditto.
2617         (-mallow-df-permute): Ditto.
2618         (-msched-groups): Ditto.
2619         (-malways-hint): Ditto.
2620         (-malign-branch-targets): Ditto.
2621
2622         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
2623         hook instead.
2624         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
2625         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
2626         (rs6000_vector_reg_class): Delete.
2627         (rs6000_vsx_reg_class): Ditto.
2628         (enum rs6000_reg_class_enum): New enum for the constraints that
2629         vary based on target switches.
2630         (rs6000_constraints): New array to hold the register class for all
2631         of the register constraints that vary based on the switches used.
2632         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
2633         (enum rs6000_builtins): Add unsigned varients for the builtin
2634         declarations returned by target hooks for expanding multiplies,
2635         select, and permute operations.  Add VSX builtins.
2636         (enum rs6000_builtin_type_index): Add entries for VSX.
2637         (V2DI_type_node): Ditto.
2638         (V2DF_type_node): Ditto.
2639         (unsigned_V2DI_type_node): Ditto.
2640         (bool_long_type_node): Ditto.
2641         (intDI_type_internal_node): Ditto.
2642         (uintDI_type_internal_node): Ditto.
2643         (double_type_internal_node): Ditto.
2644
2645         * config/rs6000/altivec.md (whole file): Move all expanders to
2646         vector.md from altivec.md.  Rename insn matching functions to be
2647         altivec_foo.
2648         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
2649         (altivec_vcmp*): Ditto.
2650         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
2651         (VM): New iterator for moves that includes the VSX types.
2652         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
2653         (altivec_vperm_<mode>_uns): New, for unsigned types.
2654         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
2655         (altivec_eq<mode>): Ditto.
2656         (altivec_gt<mode>): Ditto.
2657         (altivec_gtu<mode>): Ditto.
2658         (altivec_eqv4sf): Ditto.
2659         (altivec_gev4sf): Ditto.
2660         (altivec_gtv4sf): Ditto.
2661         (altivec_vcmpbfp_p): Ditto.
2662
2663 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
2664
2665         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
2666         unsigned HWI.
2667
2668 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
2669
2670         PR target/40832
2671         * config/i386/i386.c (output_387_ffreep): Rewrite to use
2672         ASM_SHORT instead of .word.
2673         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
2674         instead of .word in asm template.
2675
2676 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
2677
2678         PR target/37488
2679         * ira-lives.c (bb_has_abnormal_call_pred): New function.
2680         (process_bb_node_lives): Use it.
2681
2682         * ira.c (setup_cover_and_important_classes): Don't setup
2683         ira_important_class_nums.  Add cover classes to the end of
2684         important classes.
2685         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
2686         New.
2687         (find_reg_class_closure): Use reorder_important_classes.
2688
2689         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
2690
2691         * config/i386/i386.c (i386_ira_cover_classes): New function.
2692         (TARGET_IRA_COVER_CLASSES): Redefine.
2693
2694         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
2695         importance of order of cover classes in the array.
2696
2697 2009-07-22  Diego Novillo  <dnovillo@google.com>
2698
2699         * tree-pass.h (TDF_EH): Define.
2700         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
2701         contains TDF_EH, print the EH region number holding GS.
2702         * tree-dump.c (dump_options): Add "eh".
2703         * doc/invoke.texi: Document it.
2704
2705 2009-07-22  Doug Kwan  <dougkwan@google.com>
2706
2707         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
2708
2709 2009-07-22  Michael Matz  <matz@suse.de>
2710
2711         PR tree-optimization/35229
2712         PR tree-optimization/39300
2713
2714         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
2715         (inhibit_phi_insertion): New function.
2716         (insert_into_preds_of_block): Call it for REFERENCEs.
2717         (init_pre): Initialize and finalize scalar evolutions.
2718         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
2719
2720 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
2721
2722         * config/i386/predicates.md (zero_extended_scalar_load_operand):
2723         Use CONST_VECTOR_NUNITS to determine number of elements.
2724
2725 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
2726
2727         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
2728         (U, W): Constraints are now deprecated and will be removed if we
2729         run out of letters.
2730         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
2731         the file.
2732         ("prefetch"): Add the stcmh instruction for prefetching.
2733         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
2734         changes.
2735         (s390_short_displacement): Return always true if compiling for
2736         machines not providing the long displacement facility.
2737         (s390_mem_constraint): Support the new constraint letter Z.
2738         (s390_check_qrst_address): New function.
2739
2740 2009-07-21  DJ Delorie  <dj@redhat.com>
2741
2742         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
2743         alone too.
2744
2745 2009-07-21  Jason Merrill  <jason@redhat.com>
2746
2747         * c-common.c (max_tinst_depth): Increase default to 1024.
2748
2749 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
2750
2751         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
2752         (vec_unpacku_float_lo_v4si): Ditto.
2753
2754 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
2755
2756         PR target/40811
2757         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
2758         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
2759         (builtin_description): Add __builtin_ia32_cvtudq2ps.
2760         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
2761
2762 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
2763
2764         PR tree-optimization/40813
2765         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
2766         it.
2767
2768 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
2769
2770         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
2771         with a NOP_EXPR if needed.
2772
2773 2009-07-21  Paul Brook <paul@codesourcery.com>
2774
2775         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
2776         Terminate debug dump with newline.
2777
2778 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2779
2780         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
2781         Cast "1" to unsigned HOST_WIDE_INT.
2782         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
2783         deposit length to the maximum length - lsb.  Extend length if
2784         HOST_BITS_PER_WIDE_INT is 32.
2785
2786 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
2787
2788         * cgraph.h (constant_pool_htab): New function.
2789         (constant_descriptor_tree): Move from varasm.c.
2790         * varasm.c (constant_pool_htab): New function.
2791         (constant_descriptor_tree): Move to cgraph.h.
2792
2793 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
2794
2795         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
2796
2797 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
2798
2799         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
2800         $(VARRAY_H).
2801
2802 2009-07-20  Xinliang David Li  <davidxl@google.com>
2803
2804         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
2805
2806 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
2807
2808         * config/mips/mips.md (move_type): Add arith.
2809         (type): Handle arith.
2810         (zero_extendsidi2): Rename this into ...
2811         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
2812         (zero_extendsidi2): New expander.
2813         (*zero_extendsidi2_dext): New pattern.
2814
2815 2009-07-20  Nick Clifton  <nickc@redhat.com>
2816
2817         * config.gcc (mips64-*-*): Add definition of tm_defines in order
2818         to set MIPS_ABI_DEFAULT.
2819         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
2820
2821 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
2822
2823         * tree-object-size.c (addr_object_size): Handle unions with
2824         array in it as last field of structs in __bos (, 1) as __bos (, 0).
2825
2826         PR tree-optimization/40792
2827         * tree.c (build_function_type_skip_args): Remove bogus assert.
2828
2829 2009-07-20  Jan Hubicka  <jh@suse.cz>
2830             Martin Jambor  <mjambor@suse.cz>
2831
2832         * cgraph.h (combined_args_to_skip): New field.
2833         * cgraph.c (cgraph_create_virtual_clone): Properly handle
2834         combined_args_to_skip and args_to_skip.
2835         * tree-inline.c (update_clone_info): New function.
2836         (tree_function_versioning): Call update_clone_info.
2837         * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
2838         functions.
2839         (cgraph_materialize_all_clones): More extensive dumping, working
2840         with combined_args_to_skip rather than args_to_skip.
2841
2842 2009-07-20  Ira Rosen  <irar@il.ibm.com>
2843
2844         * tree-vectorizer.h (vectorizable_condition): Add parameters.
2845         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
2846         (get_initial_def_for_reduction): Likewise.
2847         (vectorizable_reduction): Skip the check of first operand in case
2848         of COND_EXPR. Add check that it is outer loop vectorization if
2849         nested cycle was detected. Call vectorizable_condition() for
2850         COND_EXPR. If reduction epilogue cannot be created do not fail for
2851         nested cycles (if it is not double reduction). Assert that there
2852         is only one type in the loop in case of COND_EXPR. Call
2853         vectorizable_condition() to vectorize COND_EXPR.
2854         * tree-vect-stmts.c (vectorizable_condition): Update comment.
2855         Add parameters. Allow nested cycles if called from
2856         vectorizable_reduction(). Use reduction vector variable if provided.
2857         (vect_analyze_stmt): Call vectorizable_reduction() before
2858         vectorizable_condition().
2859         (vect_transform_stmt): Update call to vectorizable_condition().
2860
2861 2009-07-20  Christian Bruel  <christian.bruel@st.com>
2862
2863         * config/sh/sh.opt (-mfmovd): Resurrect and document.
2864         * doc/invoke.texi (-mfmovd): Likewise.
2865         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
2866
2867 2009-07-20  Jan Hubicka  <jh@suse.cz>
2868
2869         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
2870         when handling SSA name.
2871
2872 2009-07-19  Jan Hubicka  <jh@suse.cz>
2873
2874         PR tree-optimization/40676
2875         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
2876         virtual PHIs in empty BBs.
2877
2878 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
2879
2880         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
2881         re-expanded the compound use gen_lowpart instead to convert to the
2882         desired mode.
2883
2884 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
2885
2886         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
2887         OUTER_CONST arguments.
2888         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
2889         the new wider mode will be masked off.
2890         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
2891
2892 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
2893
2894         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
2895         high-order bits are zero.
2896
2897 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
2898
2899         * combine.c (simplify_shift_const_1): Split code to determine
2900         shift_mode into ...
2901         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
2902         new bits shifted in are identical to the old sign bit.
2903
2904 2009-07-18  Richard Guenther  <rguenther@suse.de>
2905
2906         PR c/40787
2907         * gimplify.c (gimplify_call_expr): Reject code using results from
2908         functions returning void.
2909
2910 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
2911
2912         * doc/md.texi: Document the new PowerPC "es" constraint.
2913         Document that "m" can include automodified addresses on this target,
2914         and explain how %U must be used.  Extend the "Q" and "Z" documentation
2915         to suggest "es" as well as "m".
2916         * config/rs6000/constraints.md (es): New memory constraint.
2917         (Q, Z): Update strings to match new documentation.
2918
2919 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
2920
2921         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
2922         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
2923         * config/rs6000/predicates.md (volatile_mem_operand): Use
2924         offsettable_nonstrict_memref_p.
2925         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
2926         (*floatunssidf2_internal): Likewise.
2927         (*fix_truncdfsi2_internal): Likewise.
2928         (*fix_trunctfsi2_internal): Likewise.
2929
2930 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
2931
2932         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
2933         atmega32u2 devices.
2934         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2935
2936 2009-07-17  Richard Guenther  <rguenther@suse.de>
2937
2938         PR c/40401
2939         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
2940         (pass_warn_unused_result): Likewise.
2941         (TODO_set_props): Remove.
2942         * omp-low.c (diagnose_omp_structured_block_errors): Change to
2943         run as a pass.
2944         (pass_diagnose_omp_blocks): Define.
2945         * c-decl.c (pop_file_scope): Do not finalize the CU here.
2946         (c_gimple_diagnostics_recursively): Remove.
2947         (finish_function): Do not call it.
2948         (c_write_global_declarations): Continue after errors.
2949         Finalize the CU here.
2950         * c-gimplify.c (c_genericize): Do not gimplify here.
2951         * c-common.c (c_warn_unused_result): Move ...
2952         * tree-cfg.c (do_warn_unused_result): ... here.
2953         (run_warn_unused_result): New function.
2954         (gate_warn_unused_result): New function.
2955         (pass_warn_unused_result): New pass.
2956         * c-common.h (c_warn_unused_result): Remove.
2957         * flags.h (flag_warn_unused_result): Declare.
2958         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
2959         * opts.c (flag_warn_unused_result): Initialize to false.
2960         * toplev.c (compile_file): Add comment.
2961         * omp-low.c (create_omp_child_function): Do not register
2962         the function with the frontend.
2963         (diagnose_omp_structured_block_errors): Prepare to be
2964         called as optimization pass.
2965         (gate_diagnose_omp_blocks): New function.
2966         (pass_diagnose_omp_blocks): New pass.
2967         * cgraph.h (cgraph_optimize): Remove.
2968         (cgraph_analyze_function): Likewise.
2969         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
2970         * cgraphunit.c (cgraph_lower_function): Lower nested functions
2971         before their parents here.
2972         (cgraph_finalize_function): Not here.
2973         (cgraph_analyze_function): Gimplify functions here.
2974         (cgraph_finalize_compilation_unit): Continue after errors.
2975         Optimize the callgraph from here.
2976         (cgraph_optimize): Make static.
2977         * langhooks.c (write_global_declarations): Finalize the CU.
2978         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
2979         (gimplify_function_tree): Assert we gimplify only once.
2980         Set PROP_gimple_any property.
2981         * tree-nested.c (gimplify_all_functions): New function.
2982         (lower_nested_functions): Gimplify all nested functions.
2983         * gimple.h (diagnose_omp_structured_block_errors): Remove.
2984         * passes.c (init_optimization_passes): Add pass_warn_unused_result
2985         and pass_diagnose_omp_blocks after gimplification.  Do not
2986         set TODO_set_props on all_lowering_passes.
2987         (execute_one_pass): Do not handle TODO_set_props.
2988         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
2989         (gimplify.o): Add tree-pass.h dependency.
2990         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
2991         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
2992         (unsave_r): Likewise.
2993         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
2994         temporary variable.
2995
2996 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
2997
2998         * doc/service.texi (Service): Restore previously removed link,
2999         which isn't broken after all.
3000
3001 2009-07-17  Richard Guenther  <rguenther@suse.de>
3002
3003         PR tree-optimization/40321
3004         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
3005         PHI nodes to the maximal set.
3006         (make_values_for_phi): Add PHI arguments to the maximal set.
3007         (execute_pre): Dump PHI_GEN and the maximal set.
3008
3009 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
3010
3011         PR c++/40780
3012         * gimplify.c (gimplify_conversion): Don't change non-conversions into
3013         VIEW_CONVERT_EXPR.
3014
3015 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
3016
3017         * doc/extend.texi (Nested Functions): Replace broken link with
3018         textual reference.
3019         * doc/service.texi (Service): Remove broken link.
3020
3021 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
3022
3023         PR bootstrap/40781
3024         * builtins.c (expand_builtin_memcmp): Use loc instead of
3025         EXPR_LOCATION (exp).
3026         (expand_builtin_strncmp): Likewise.
3027
3028 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
3029             Manuel López-Ibáñez  <manu@gcc.gnu.org>
3030
3031         PR 40435
3032         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
3033         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
3034         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
3035         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
3036         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
3037         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
3038         tree-inline.c, c-common.c, c-common.h, gimple.c,
3039         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
3040         convert.c: Add location argument to fold_{unary,binary,ternary},
3041         fold_build[123], build_call_expr, build_size_arg,
3042         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
3043         fold_build1_initializer, fold_build2_initializer,
3044         fold_build3_initializer, fold_build_call_array,
3045         fold_build_call_array_initializer, fold_single_bit_test,
3046         omit_one_operand, omit_two_operands, invert_truthvalue,
3047         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
3048         combine_comparisons, fold_builtin_*, fold_call_expr,
3049         build_range_check, maybe_fold_offset_to_address, round_up,
3050         round_down.
3051
3052 2009-07-16  Jason Merrill  <jason@redhat.com>
3053
3054         PR libstdc++/37907
3055         * c-common.c (c_common_reswords): Add __is_standard_layout
3056         and __is_trivial.
3057         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
3058         * doc/implement-cxx.texi: New.
3059         * doc/gcc.texi: Include it.
3060
3061 2009-07-16  DJ Delorie  <dj@redhat.com>
3062
3063         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
3064         compares that may be indirectly affected by previous instructions.
3065
3066 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3067
3068         * builtins.c (do_mpc_arg2): New.
3069         (fold_builtin_2): Fold builtin cpow.
3070         * real.h (HAVE_mpc_pow): New.
3071
3072 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
3073
3074         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
3075         comparison to skip unprofitable schedule
3076
3077 2009-07-16  Simon Baldwin  <simonb@google.com>
3078
3079         * gcc.c (option_map): New flag -no-canonical-prefixes.
3080         * (display_help): Print help text for new flag.
3081         * (process_command): Move options translation and language specifics
3082         and handle new flag early.  Use it to set a function pointer to a
3083         prefix builder.  Replace make_relative_prefix calls with calls to
3084         the function pointed to.  Ignore new flag in regular options handling.
3085         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
3086
3087 2009-07-15  DJ Delorie  <dj@redhat.com>
3088
3089         * config/mep/mep.md (sibcall_internal): Change register to avoid
3090         argument registers.
3091         (sibcall_value_internal): Likewise.
3092
3093 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
3094
3095         PR rtl-optimization/40710
3096         * resource.c (mark_target_live_regs): Reset DF problem to LR.
3097
3098 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
3099
3100         * config/mips/mips.md (*extenddi_truncate<mode>,
3101         *extendsi_truncate<mode>): Change type attribute to move_type
3102         with shift_shift.  Split out code handling exts from here ...
3103         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
3104         pattern.
3105         (*extendhi_truncateqi): Change type attribute to move_type with
3106         shift_shift.  Split out code handling exts from here ...
3107         (*extendhi_truncateqi_exts): ... to this new pattern.
3108
3109 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
3110
3111         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
3112         instead of "and" with inverted sign bit mask value.  Use
3113         "nonimmediate_operand" for operand 1 and operand 2 predicate.
3114         Allocate registers only for operand 4 and operand 5.
3115
3116 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
3117
3118         PR middle-end/40747
3119         * fold-const.c (fold_cond_expr_with_comparison): When folding
3120         < and <= to MIN, make sure the MIN uses the same type as the
3121         comparison's operands.
3122
3123 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
3124
3125         * arm.md (ior_xor): New code iterator.
3126         (split for ior/xor with shift and zero-extend): New split pattern.
3127         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
3128
3129 2009-07-15  Richard Guenther  <rguenther@suse.de>
3130
3131         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
3132         offset member.
3133
3134 2009-07-15  Richard Guenther  <rguenther@suse.de>
3135
3136         PR middle-end/40753
3137         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
3138
3139 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3140
3141         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
3142         handle 2.6.30 kernel.
3143
3144 2009-07-15  DJ Delorie  <dj@redhat.com>
3145
3146         * config/mep/mep.md (sibcall_internal): Change register to allow
3147         for 24-bit addresses.
3148         (sibcall_value_internal): Likewise.
3149
3150 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
3151
3152         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
3153         that are enabled/disabled by the flags introduced by a previous patch.
3154
3155 2009-07-14  DJ Delorie  <dj@redhat.com>
3156
3157         * config/mep/mep.md (sibcall_internal): Include non-toggling
3158         non-jmp case.
3159         (sibcall_value_internal): Likewise.
3160
3161 2009-07-14  Taras Glek  <tglek@mozilla.com>
3162             Rafael Espindola  <espindola@google.com>
3163
3164         * doc/sourcebuild.texi: Document install-plugin target.
3165         * configure.ac: Added install-plugin target to language makefiles.
3166         * configure: Regenerate.
3167         * Makefile.in: (install-plugin): Install more headers,
3168         depend on lang.install-plugin.
3169
3170 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3171
3172         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
3173         translation.
3174
3175 2009-07-14  DJ Delorie  <dj@redhat.com>
3176
3177         * config/mep/mep.c (mep_vliw_jmp_match): New function.
3178         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
3179         * config/mep/mep.md (sibcall_internal): Change test from
3180         mep_vliw_mode_match to mep_vliw_jmp_match.
3181         (sibcall_value_internal): Likewise.
3182
3183 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
3184
3185         * config/i386/sse.md (copysign<mode>3): New expander.
3186         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
3187         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
3188         Use ix86_build_const_vector.
3189         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
3190         IX86_BUILTIN_CPYSGNPD.
3191         (builtin_description): Add __builtin_ia32_copysignps and
3192         __builtin_ia32_copysignpd.
3193         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
3194         and BUILT_IN_COPYSIGNF.
3195
3196 2009-07-13  Jason Merrill  <jason@redhat.com>
3197
3198         * builtins.c (can_trust_pointer_alignment): New fn.
3199         (get_pointer_alignment): Factor it out from here.
3200         * tree.h: Declare it.
3201
3202 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
3203
3204         * config/rs6000/predicates.md (offsettable_mem_operand): Test
3205         RTX_AUTOINC class.
3206
3207 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
3208
3209         PR debug/40705
3210         PR c++/403057
3211         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
3212
3213 2009-07-14  Richard Guenther  <rguenther@suse.de>
3214             Andrey Belevantsev <abel@ispras.ru>
3215
3216         PR middle-end/40745
3217         * cfgexpand.c (partition_stack_vars): Do not bother to update
3218         alias information when not optimizing.
3219
3220 2009-07-14  Richard Guenther  <rguenther@suse.de>
3221             Andrey Belevantsev <abel@ispras.ru>
3222
3223         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
3224         (pt_solution_set): Likewise.
3225         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
3226         * tree-ssa-structalias.c (pt_solution_set): New function.
3227         * final.c (rest_of_clean_state): Free SSA data structures.
3228         * print-rtl.c (print_decl_name): Remove.
3229         (print_mem_expr): Implement in terms of print_generic_expr.
3230         * alias.c (ao_ref_from_mem): New function.
3231         (rtx_refs_may_alias_p): Likewise.
3232         (true_dependence): Query alias-export info.
3233         (canon_true_dependence): Likewise.
3234         (write_dependence_p): Likewise.
3235         * tree-dfa.c (get_ref_base_and_extent): For void types leave
3236         size unknown.
3237         * emit-rtl.c (component_ref_for_mem_expr): Remove.
3238         (mem_expr_equal_p): Use operand_equal_p.
3239         (set_mem_attributes_minus_bitpos): Do not use
3240         component_ref_for_mem_expr.
3241         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
3242         (update_alias_info_with_stack_vars): Likewise.
3243         (partition_stack_vars): Call update_alias_info_with_stack_vars.
3244         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
3245         explicitly nor clear stmt operands.
3246         Free the decl-to-pointer map.
3247         * tree-optimize.c (execute_free_datastructures): Do not free
3248         SSA data structures here.
3249         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
3250         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
3251         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
3252         dependencies.
3253         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
3254
3255 2009-07-13  DJ Delorie  <dj@redhat.com>
3256
3257         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
3258         unrolling at the right iteration count.
3259
3260         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
3261         calculations.
3262
3263 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
3264
3265         * haifa-sched.c (rank_for_schedule): Introduced flags to
3266         enable/disable individual scheduling heuristics.
3267         * common.opt: Introduced flags to enable/disable individual
3268         heuristics in the scheduler.
3269         * doc/invoke.texi: Introduced flags to enable/disable individual
3270         heuristics in the scheduler.
3271
3272 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
3273
3274         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
3275         config/i386/mingw-tls.c.
3276         * config/i386/mingw-tls.c: Removed.
3277
3278 2009-07-13  Ira Rosen  <irar@il.ibm.com>
3279
3280         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
3281         checks access only relevant statements.
3282         (vectorizable_reduction): Likewise.
3283
3284 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
3285
3286         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
3287         just for 32-bit case.
3288
3289 2009-07-12  Jan Hubicka  <jh@suse.cz>
3290
3291         PR tree-optimization/40585
3292         * except.c (expand_resx_expr): When there already is resume
3293         instruction, produce linked list.
3294         (build_post_landing_pads): Assert that resume is empty.
3295         (connect_post_landing_pads): Handle resume lists.
3296         (dump_eh_tree): Dump resume list.
3297
3298 2009-07-12  Ira Rosen  <irar@il.ibm.com>
3299
3300         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
3301         with additional argument.
3302         * tree-vectorizer.h (enum vect_def_type): Add
3303         vect_double_reduction_def.
3304         (vect_is_simple_reduction): Add argument.
3305         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
3306         indentation.
3307         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
3308         vect_is_simple_reduction with additional argument.
3309         (vect_analyze_loop_operations): Handle exit phi nodes in case of
3310         double reduction.
3311         (reduction_code_for_scalar_code): Handle additional codes by
3312         returning ERROR_MARK for them. Fix comment and indentation.
3313         (vect_is_simple_reduction): Fix comment, add argument to specify
3314         double reduction. Detect double reduction.
3315         (get_initial_def_for_induction): Fix indentation.
3316         (get_initial_def_for_reduction): Fix comment and indentation.
3317         Handle double reduction. Create initial definitions that do not
3318         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
3319         (vect_create_epilog_for_reduction): Fix comment, add argument to
3320         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
3321         epilogue result extraction. Create double reduction phi node and
3322         replace relevant uses.
3323         (vectorizable_reduction): Call vect_is_simple_reduction with
3324         additional argument. Fix indentation. Update epilogue code treatment
3325         according to the changes in reduction_code_for_scalar_code. Check
3326         for double reduction. Call vect_create_epilog_for_reduction with
3327         additional argument.
3328         * tree-vect-stmts.c (process_use): Handle double reduction, update
3329         documentation.
3330         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
3331         (vect_get_vec_def_for_operand): Likewise.
3332
3333 2009-07-12  Danny Smith  <dansmister@gmail.com>
3334
3335         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
3336         dllexport if !TREE_PUBLIC.
3337         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
3338
3339 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
3340
3341         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
3342         (avr_extra_arch_macro) Remove declatation.
3343         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
3344         (avr_extra_arch_macro) Declare as static.
3345         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
3346
3347 2009-07-11  Jan Hubicka  <jh@suse.cz>
3348
3349         PR middle-end/48388
3350         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
3351
3352 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
3353
3354         PR debug/40713
3355         * dwarf2out.c (dw_fde_struct): Add in_std_section and
3356         cold_in_std_section bits.
3357         (dwarf2out_begin_prologue): Initialize them.
3358         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
3359         if already covered by text_section or cold_text_section range.
3360
3361         PR rtl-optimization/40667
3362         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
3363         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
3364         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
3365         * config/i386/i386.c (ix86_minimum_alignment): New function.
3366         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
3367         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
3368         * emit-rtl.c (gen_reg_rtx): Likewise.
3369         * function.c (assign_parms): Likewise.  If nominal_type needs
3370         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
3371         rather than passed_type's alignment.
3372
3373         PR target/40668
3374         * function.c (assign_parm_setup_stack): Adjust
3375         MEM_OFFSET (data->stack_parm) if promoted_mode is different
3376         from nominal_mode on big endian.
3377
3378 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
3379
3380         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
3381
3382 2009-07-10  DJ Delorie  <dj@redhat.com>
3383
3384         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
3385
3386 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
3387
3388         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
3389         attribute.
3390         (thumb2_cbnz): Likewise.
3391
3392 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
3393
3394         PR target/39079
3395         * config.gcc (supported_defaults): Add synci.
3396         (with_synci): Add validation.
3397         (all_defaults): Add synci.
3398         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
3399         ISA_HAS_SYNCI.
3400         (synci): Same.
3401         * config/mips/mips.opt (msynci): New option.
3402         * config/mips/mips.c (mips_override_options): Warn on use of
3403         -msynci for targets that do now support it.
3404         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
3405         msynci.
3406         * gcc/doc/invoke.texi (-msynci): Document the new option.
3407         * doc/install.texi (--with-synci): Document the new option.
3408
3409 2009-07-10  Richard Guenther  <rguenther@suse.de>
3410
3411         PR tree-optimization/40496
3412         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
3413         the PHI result with a compatible type.
3414
3415 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3416
3417         PR 25509
3418         PR 40614
3419         * c.opt (Wunused-result): New.
3420         * doc/invoke.texi: Document it.
3421         * c-common.c (c_warn_unused_result): Use it.
3422
3423 2009-07-09  DJ Delorie  <dj@redhat.com>
3424
3425         * targhooks.c (default_target_can_inline_p): Rename from
3426         default_target_option_can_inline_p.
3427         * targhooks.h (default_target_can_inline_p): Likewise.
3428         * target-def.h (TARGET_CAN_INLINE_P): Rename from
3429         TARGET_OPTION_CAN_INLINE_P.
3430         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
3431         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
3432         (mep_target_can_inline_p): Rename from
3433         mep_target_option_can_inline_p.
3434
3435         PR target/40626
3436         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
3437         registers used to pass vectors.
3438
3439         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
3440
3441 2009-07-09  Tom Tromey  <tromey@redhat.com>
3442
3443         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
3444         * config/mmix/mmix.c: Include dwarf2.h.
3445         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
3446         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
3447         * config/sh/sh.c: Include dwarf2.h.
3448         * config/i386/i386.c: Include dwarf2.h.
3449         * Makefile.in (DWARF2_H): Remove 'elf'.
3450         * except.c: Include dwarf2.h.
3451         * unwind-dw2.c: Include dwarf2.h.
3452         * dwarf2out.c: Include dwarf2.h.
3453         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
3454         * unwind-dw2-fde.c: Include dwarf2.h.
3455         * dwarf2asm.c: Include dwarf2.h.
3456
3457 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
3458
3459         * haifa-sched.c (insn_finishes_cycle_p): New static function.
3460         (max_issue): Use it.
3461         * sched-int.h (struct sched_info: insn_finishes_block_p): New
3462         scheduler hook.
3463         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
3464         (region_sched_info): Update.
3465         * sched-ebb.c (ebb_sched_info): Update.
3466         * modulo-sched.c (sms_sched_info): Update.
3467         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
3468
3469 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
3470
3471         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
3472
3473 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
3474
3475         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
3476
3477 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
3478
3479         PR middle-end/40692
3480         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
3481         arg1 with arg01 if arg1 is already INTEGER_CST.
3482
3483 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
3484
3485         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
3486         Transform (and (truncate)) into (truncate (and)).
3487
3488 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
3489
3490         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
3491         creating LHS paradoxical subregs.  Fix surrounding returns to
3492         use NULL_RTX rather than 0.
3493
3494 2009-07-08  DJ Delorie  <dj@redhat.com>
3495
3496         * config/mep/mep.c: (mep_option_can_inline_p): New.
3497         (TARGET_OPTION_CAN_INLINE_P): Define.
3498
3499 2009-07-08  Mark Wielaard  <mjw@redhat.com>
3500
3501         PR debug/40659
3502         * dwarf2out.c (add_data_member_location_attribute): When we have
3503         only a constant offset don't emit a new location description using
3504         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
3505         dwarf_version > 2.
3506
3507 2009-07-08  Richard Henderson  <rth@redhat.com>
3508
3509         PR target/38900
3510         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
3511         (enum reg_class): Add CLOBBERED_REGS.
3512         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
3513         * config/i386/i386.c (ix86_conditional_register_usage): Moved
3514         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
3515         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
3516         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
3517         force 64-bit sibcalls into R11.
3518         * config/i386/constraints.md (U): New constraint.
3519         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
3520         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
3521         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
3522
3523 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
3524
3525         * basic-block.h (dump_regset, debug_regset): Remove duplicate
3526         prototypes.
3527         * c-objc-common.h (c_initialize_diagnostics): Ditto.
3528         * ebitmap.h (dump_ebitmap): Ditto.
3529         * optabs.h (optab_libfunc): Ditto.
3530         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
3531         * tree-flow.h (vect_can_force_dr_alignment_p,
3532         get_vectype_for_scalar_type): Ditto.
3533         (vectorize_loops): Move prototype to ...
3534         * tree-vectorizer.h: ... here. Also, adjust comment.
3535         (vect_set_verbosity_level): Remove duplicate prototype.
3536         * tree-ssa-loop.c: Include tree-vectorizer.h.
3537         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
3538
3539 2009-07-08  Nick Clifton  <nickc@redhat.com>
3540
3541         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
3542         forward slash.
3543
3544 2009-07-08  DJ Delorie  <dj@redhat.com>
3545
3546         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
3547         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
3548         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
3549         written to.
3550         * config/mep/intrinsics.md: Regenerated.
3551         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
3552         registers when asm() or calls are detected.
3553
3554 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3555
3556         PR c++/31246
3557         * gimplify.c (gimplify_expr): Propagate no_warning flag when
3558         gimplifying.
3559         * gimple (gimple_build_call_from_tree): Likewise.
3560         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
3561         no_warning flag before warning.
3562
3563 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3564
3565         * tree.c (set_expr_locus): Remove.
3566         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
3567         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
3568         EXPR_LOCATION.
3569         * gimplify.c (internal_get_tmp_var): Likewise.
3570         (gimplify_call_expr): Likewise.
3571         (gimplify_one_sizepos): Likewise.
3572
3573 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
3574
3575         PR debug/40666
3576         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
3577         to variables for debugging purposes.
3578
3579 2009-06-23  Mark Loeser  <mark@halcy0n.com>
3580
3581         PR build/40010
3582         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
3583
3584 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3585
3586         * pretty-print.c (pp_base_format): Remove %J.
3587         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3588         gcc_cxxdiag_char_table): Likewise.
3589         (init_dynamic_diag_info): Likewise.
3590
3591 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3592
3593         * pretty-print.c (pp_base_format): Remove %H.
3594         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3595         gcc_cxxdiag_char_table): Likewise.
3596         (init_dynamic_diag_info): Likewise.
3597         * config/mep/mep.c (mep_select_section): Likewise.
3598
3599 2009-07-07  Duncan Sands  <baldrick@free.fr>
3600
3601         * final.c (pass_clean_state): Give the pass a name.
3602         * passes.c (pass_rest_of_compilation): Likewise.
3603         * tree-optimize.c (pass_all_optimizations): Likewise.
3604
3605 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
3606
3607         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
3608         an extra 'decl' for error_at.
3609
3610 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
3611
3612         PR middle-end/40669
3613         * tree-tailcall.c (adjust_return_value_with_ops,
3614         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
3615         if it has complex or vector type.
3616
3617 2009-07-07  Olivier Hainque  <hainque@adacore.com>
3618
3619         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
3620         pthread symbols.
3621
3622 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
3623
3624         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
3625
3626 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3627
3628         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
3629         * c-decl.c: Likewise.
3630         * function.c: Likewise.
3631         * varasm.c: Likewise.
3632         * tree-ssa.c: Likewise.
3633         * c-common.c: Likewise.
3634         * tree-cfg.c: Likewise.
3635         * config/spu/spu.c: Likewise.
3636         * config/ia64/ia64.c: Likewise.
3637         * config/v850/v850.c: Likewise.
3638
3639 2009-07-06  DJ Delorie  <dj@redhat.com>
3640
3641         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
3642         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
3643         unspecified accesses to control registers.
3644         * config/mep/intrinsics.md: Regenerate.
3645         * config/mep/intrinsics.h: Regenerate.
3646         * config/mep/mep-intrin.h: Regenerate.
3647
3648 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3649
3650         * c-lex.c: Replace %H by an explicit location. Update all calls.
3651         * c-common.c: Likewise.
3652         * c-decl.c: Likewise.
3653         * c-typeck.c: Likewise.
3654         * fold-const.c: Likewise.
3655         * gimplify.c: Likewise.
3656         * stmt.c: Likewise.
3657         * tree-cfg.c: Likewise.
3658         * tree-ssa-loop-niter.c: Likewise.
3659         * tree-vrp.c: Likewise.
3660         * value-prof.c: Likewise.
3661
3662 2009-07-06  Diego Novillo  <dnovillo@google.com>
3663
3664         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
3665         if it has one.  Handle cases where VAR does not have an
3666         annotation or cfun is NULL.
3667
3668 2009-07-06  Diego Novillo  <dnovillo@google.com>
3669
3670         * tree.c: Include debug.h.
3671         (initialize_tree_contains_struct): New.
3672         (init_ttree): Call it.
3673         (tree_node_structure_for_code): Factor out of ...
3674         (tree_node_structure): ... here.
3675         * treestruct.def (TS_PHI_NODE): Remove.
3676         (TS_GIMPLE_STATEMENT): Remove.
3677
3678 2009-07-06  Diego Novillo  <dnovillo@google.com>
3679
3680         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
3681         (debug_tree_chain): Handle cycles.
3682
3683 2009-07-06  Nick Clifton  <nickc@redhat.com>
3684             DJ Delorie  <dj@redhat.com>
3685
3686         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
3687         __FMOVD_ENABLED__ is defined.
3688         * config/sh/sh.h
3689         (TARGET_FMOVD): Provide a default definition.
3690         (MASK_FMOVD): Likewise.
3691         (TARGET_CPU_CPP_BUILTINS): Define
3692         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
3693         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
3694         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
3695         (split for DF load from memory into register): Also handle
3696         MEMs which consist of REG+DISP addressing.
3697         (split for DF store from register to memory): Likewise.
3698         (movsf_ie): Always use single fp_mode.
3699         * config/sh/sh.c (sh_override_options): Do not automatically
3700         enable TARGET_MOVD for the SH2A when supporting doubles - leave
3701         that to the -mfmovd command line switch.
3702         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
3703         (fldi_ok): Always allow.
3704         * config/sh/sh.opt (mfmovd): Remove this switch.
3705         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
3706
3707 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
3708             Kaz Kojima  <kkojima@gcc.gnu.org>
3709
3710         PR rtl-optimization/30807
3711         * postreload.c (reload_combine): For every new use of REG_SUM,
3712         record the use of BASE.
3713
3714 2009-07-06  Jan Hubicka  <jh@suse.cz>
3715
3716         * params.def: Revert my accidental commit at 2009-06-30.
3717
3718 2009-07-04  Ian Lance Taylor  <iant@google.com>
3719
3720         PR target/40636
3721         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
3722         EXPORTED_CONST.
3723         (mingw_format_attribute_overrides): Likewise.
3724
3725 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
3726
3727         PR debug/40596
3728         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
3729         don't check cfa.reg.  Instead of cfa.indirect use
3730         fde && fde->drap_reg != INVALID_REGNUM test.
3731
3732 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
3733
3734         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
3735
3736 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
3737
3738         PR target/40587
3739         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
3740
3741 2009-07-03  Richard Guenther  <rguenther@suse.de>
3742
3743         PR tree-optimization/40640
3744         * tree-switch-conversion.c (build_arrays): Perform arithmetic
3745         in original type.
3746
3747 2009-07-03  Jan Hubicka  <jh@suse.cz>
3748
3749         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
3750         for size, reduce amount of inlining.
3751
3752 2009-07-03  Richard Guenther  <rguenther@suse.de>
3753
3754         PR middle-end/34163
3755         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
3756         if t +- x is known to not overflow and the conversion widens the
3757         operation.
3758         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
3759
3760 2009-07-03  Jan Hubicka  <jh@suse.cz>
3761
3762         * ipa-pure-const.c (analyze): Update loop optimizer init.
3763         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
3764         try_remove_empty_loop, remove_empty_loops): Remove.
3765         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
3766         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
3767         to mark regular loops as neccesary.
3768         (degenerate_phi_p): New function.
3769         (propagate_necessity, remove_dead_phis): Use it.
3770         (forward_edge_to_pdom): Likewise.
3771         (eliminate_unnecessary_stmts): Take care to remove uses of results of
3772         virtual PHI nodes that became unreachable.
3773         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
3774         * tree-flow.h (remove_empty_loops): Remove.
3775         * passes.c (init_optimization_passes): Remove.
3776
3777 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
3778
3779         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
3780         can_create_pseudo_p.
3781         (*fix_trunc<mode>_i387_1): Ditto.
3782         (*floathi<mode>2_1): Ditto.
3783         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
3784         (*fistdi2_1): Ditto.
3785         (*fist<mode>2_1): Ditto.
3786         (frndintxf2_floor): Ditto.
3787         (*fist<mode>2_floor_1): Ditto.
3788         (frndintxf2_ceil): Ditto.
3789         (*fist<mode>2_ceil_1): Ditto.
3790         (frndintxf2_trunc): Ditto.
3791         (frndintxf2_mask_pm): Ditto.
3792         (fxam<mode>2_i387_with_temp): Ditto.
3793         * config/i386/sse.md (mulv16qi3): Ditto.
3794         (*sse2_mulv4si3): Ditto.
3795         (mulv2di3): Ditto.
3796         (sse4_2_pcmpestr): Ditto.
3797         (sse4_2_pcmpistr): Ditto.
3798
3799 2009-07-03  Jan Hubicka  <jh@suse.cz>
3800
3801         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
3802         (mark_stmt_necessary): Set it.
3803         (mark_operand_necessary): Set it.
3804         (mark_control_dependent_edges_necessary): Set it.
3805         (mark_virtual_phi_result_for_renaming): New function.
3806         (get_live_post_dom): New function.
3807         (forward_edge_to_pdom): New function.
3808         (remove_dead_stmt): Fix handling of control dependences.
3809         (tree_dce_init): Init new bitmap.
3810         (tree_dce_done): Free it.
3811
3812 2009-07-02  Richard Guenther  <rguenther@suse.de>
3813
3814         PR bootstrap/40617
3815         * tree-ssa-structalias.c (new_var_info): Initialize
3816         is_restrict_var.
3817
3818 2009-07-02  Jan Hubicka  <jh@suse.cz>
3819
3820         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
3821         local.
3822
3823 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
3824
3825         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
3826         instead of recomputing it.  Adjust calls.
3827         (emit_store_flag): Adjust recursive calls.
3828
3829 2009-07-02  Richard Guenther  <rguenther@suse.de>
3830
3831         * tree-ssa-live.c (remove_unused_locals): Do not remove
3832         heap variables.
3833         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
3834         of DECL_EXTERNAL for HEAP variables.
3835         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
3836         HEAP variables.  Do not adjust RESTRICT vars.
3837         (find_what_var_points_to): Nobody cares if something
3838         points to READONLY.
3839
3840 2009-07-02  Ben Elliston  <bje@au.ibm.com>
3841
3842         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
3843         pc_low and pc_high declarations to the top of the function.
3844
3845 2009-07-01  DJ Delorie  <dj@redhat.com>
3846
3847         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
3848         registers as fixed.
3849         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
3850         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
3851         unspecified accesses to control registers.
3852         * config/mep/intrinsics.md: Regenerate.
3853         * config/mep/intrinsics.h: Regenerate.
3854         * config/mep/mep-intrin.h: Regenerate.
3855
3856 2009-07-01  Anthony Green  <green@moxielogic.com>
3857
3858         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
3859         instruction when possible.
3860         (moxie_expand_prologue): Ditto.  Also, save an instruction and
3861         some complexity by popping off of $r12 instead of $sp.
3862         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
3863         operands.
3864
3865 2009-07-01  Richard Henderson  <rth@redhat.com>
3866
3867         PR bootstrap/40347
3868         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
3869         contained no insns, reposition note before last insn.
3870
3871 2009-07-01  Richard Henderson  <rth@redhat.com>
3872
3873         PR debug/40431
3874         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
3875         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
3876
3877 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
3878
3879         PR bootstrap/40558
3880         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
3881         darwin9 for printing reg addresses with %y.
3882
3883 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
3884
3885         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
3886         truncation from operands in binary operations.
3887
3888 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
3889
3890         Revert:
3891         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
3892         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
3893         subreg of op0 to the original op0.
3894
3895         * expmed.c (store_bit_field_1): Use a temporary as the destination
3896         instead of a paradoxical subreg when we need to truncate the result.
3897
3898 2009-07-01  DJ Delorie  <dj@redhat.com>
3899
3900         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
3901         names to VLIW variants.
3902         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
3903         * config/mep/intrinsics.md: Regenerate.
3904         * config/mep/intrinsics.h: Regenerate.
3905         * config/mep/mep-intrin.h: Regenerate.
3906
3907 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
3908
3909         PR debug/40462
3910         * jump.c (returnjump_p): Revert last patch.
3911         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
3912
3913 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3914
3915         PR target/40575
3916         * pa.md (casesi32p): Use jump table label to determine the offset
3917         of the jump table.
3918         (casesi64p): Likewise.
3919
3920         * pa.c (forward_branch_p): Return bool type.  Use instruction
3921         addresses when available.  Assert that INSN has a jump label.
3922         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
3923         have a jump label.
3924
3925 2009-07-01  Richard Guenther  <rguenther@suse.de>
3926
3927         PR tree-optimization/19831
3928         * tree-ssa-dce.c (propagate_necessity): Calls to functions
3929         that only act as barriers do not make any previous stores necessary.
3930         * tree-ssa-structalias.c (handle_lhs_call): Delay making
3931         HEAP variables global, do not add a constraint from nonlocal.
3932         (find_func_aliases): Handle escapes through return statements.
3933         (compute_points_to_sets): Make escaped HEAP variables global.
3934
3935 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
3936
3937         PR bootstrap/40597
3938         * expmed.c (emit_store_flag): Perform a conversion if necessary,
3939         after reducing a DImode cstore to SImode.
3940
3941 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
3942
3943         * expr.c (expand_expr_real_1): Reinstate fallthrough to
3944         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
3945
3946 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
3947
3948         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
3949         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
3950         to 0.
3951         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
3952         and umod_optab if TARGET_BSD_DIVMOD.
3953         * config/vax/lib1funcs.asm: New file.
3954         * config/vax/t-linux: New file.
3955         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
3956
3957 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
3958
3959         PR c++/40566
3960         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
3961         to type arguments that have void type.
3962
3963         PR debug/40573
3964         * dwarf2out.c (gen_formal_parameter_die): Call
3965         equate_decl_number_to_die if node is different from origin.
3966
3967 2009-06-30  Anthony Green  <green@moxielogic.com>
3968
3969         Clean up moxie port for --enable-build-with-cxx.
3970         * config/moxie/moxie.c (moxie_function_value): First two
3971         parameters are const_tree, not tree.
3972         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
3973         (REG_CLASS_NAMES): Ditto.
3974         (REGNO_REG_CLASS): Ditto.
3975         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
3976         (moxie_function_value): Fix constyness of arguments.
3977
3978 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3979
3980         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
3981         finalize_size_functions before further processing.
3982         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
3983         (variable_size): Call self_referential_size on size expressions
3984         that contain a PLACEHOLDER_EXPR.
3985         (size_functions): New static variable.
3986         (copy_self_referential_tree_r): New static function.
3987         (self_referential_size): Likewise.
3988         (finalize_size_functions): New global function.
3989         * tree.c: Include tree-inline.h.
3990         (push_without_duplicates): New static function.
3991         (find_placeholder_in_expr): New global function.
3992         (substitute_in_expr) <tcc_declaration>: Return the replacement object
3993         on equality.
3994         <tcc_expression>: Likewise.
3995         <tcc_vl_exp>: If the replacement object is a constant, try to inline
3996         the call in the expression.
3997         * tree.h (finalize_size_functions): Declare.
3998         (find_placeholder_in_expr): Likewise.
3999         (FIND_PLACEHOLDER_IN_EXPR): New macro.
4000         (substitute_placeholder_in_expr): Update comment.
4001         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
4002         is true.
4003         (copy_tree_body_r): Likewise.
4004         (copy_tree_body): New static function.
4005         (maybe_inline_call_in_expr): New global function.
4006         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
4007         (maybe_inline_call_in_expr): Declare.
4008         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
4009         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
4010         GIMPLE_H.
4011
4012 2009-06-30  Richard Guenther  <rguenther@suse.de>
4013
4014         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
4015         continue walking.
4016         (propagate_necessity): Do not mark reaching defs of stores
4017         as necessary.
4018
4019 2009-06-30  Jan Hubicka  <jh@suse.cz>
4020
4021         * cfgloopanal.c (check_irred): Move into ...
4022         (mark_irreducible_loops): ... here; return true if ireducible
4023         loops was found.
4024         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
4025         (analyze_function): Try to prove loop finiteness.
4026         * cfgloop.h (mark_irreducible_loops): Update prototype.
4027         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
4028
4029 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
4030
4031         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
4032
4033 2009-06-30  Ira Rosen  <irar@il.ibm.com>
4034
4035         PR tree-optimization/40542
4036         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
4037         types.
4038
4039 2009-06-30  Martin Jambor  <mjambor@suse.cz>
4040
4041         PR tree-optimization/40582
4042         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
4043         than useless_type_conversion_p.
4044         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
4045         proper place.
4046
4047 2009-06-30  Martin Jambor  <mjambor@suse.cz>
4048
4049         PR middle-end/40554
4050         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
4051
4052 2009-06-30  Richard Guenther  <rguenther@suse.de>
4053
4054         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
4055         use ao_ref references.
4056         (walk_aliased_vdefs): Likewise.
4057         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
4058         * tree-ssa-dce.c (struct ref_data): Remove.
4059         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
4060         (mark_aliased_reaching_defs_necessary): Adjust.
4061         (mark_all_reaching_defs_necessary_1): Likewise.
4062
4063 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
4064
4065         PR boostrap/40597
4066         * expmed.c (emit_cstore): New name of emit_store_flag_1.
4067         (emit_store_flag_1): Extract from emit_store_flag, adjust
4068         calls to (what now is) emit_cstore.
4069         (emit_store_flag): Call emit_store_flag_1 and also use it
4070         for what used to be recursive calls.
4071
4072 2009-06-30  Wei Guozhi  <carrot@google.com>
4073
4074         PR/40416
4075         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
4076         if the target bb post dominates from bb.
4077         * config/i386/i386.c (memory_address_length): Check existence of base
4078         register before using it.
4079
4080 2009-06-30  Nick Clifton  <nickc@redhat.com>
4081             DJ Delorie  <dj@redhat.com>
4082
4083         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
4084         __FMOVD_ENABLED__ is defined.
4085         * config/sh/sh.h
4086         (TARGET_FMOVD): Provide a default definition.
4087         (MASK_FMOVD): Likewise.
4088         (TARGET_CPU_CPP_BUILTINS): Define
4089         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
4090         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
4091         two fmov instructions depending upon whether TARGET_FMOVD is
4092         enabled.
4093         (split for DF load from memory into register): Also handle
4094         MEMs which consist of REG+DISP addressing.
4095         (split for DF store from register to memory): Likewise.
4096         * config/sh/sh.opt (mfmovd): Remove this switch.
4097         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
4098         * config/sh/sh.c (sh_override_options): Do not automatically
4099         enable TARGET_MOVD for the SH2A when supporting doubles - leave
4100         that to the -mfmovd command line switch.
4101
4102         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
4103         the SH4 and SH4A.
4104         (fldi_ok): Always allow.
4105         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
4106
4107 2009-06-29  DJ Delorie  <dj@redhat.com>
4108
4109         * doc/install.texi (mep-x-elf): Correct chip's full name.
4110
4111 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
4112
4113         * doc/extend.texi: Fix typo.
4114
4115 2009-06-29  Tom Tromey  <tromey@redhat.com>
4116
4117         * dwarf2.h: Remove.
4118         * Makefile.in (DWARF2_H): New variable.
4119         (except.o): Use it.
4120         (dwarf2out.o): Likewise.
4121         (dwarf2asm.o): Likewise.
4122         * config/i386/t-i386: Use DWARF2_H.
4123         * except.c: Include elf/dwarf2.h.
4124         * unwind-dw2.c: Include elf/dwarf2.h.
4125         * dwarf2out.c: Include elf/dwarf2.h.
4126         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
4127         <dtprel>: New field.
4128         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
4129         (size_of_loc_descr): Likewise.
4130         (output_loc_operands_raw): Likewise.
4131         (output_loc_operands): Handle new dtprel field.
4132         (loc_checksum): Update.
4133         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
4134         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
4135         * unwind-dw2-fde.c: Include elf/dwarf2.h.
4136         * dwarf2asm.c: Include elf/dwarf2.h.
4137         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
4138         * config/mmix/mmix.c: Include elf/dwarf2.h.
4139         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
4140         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
4141         * config/sh/sh.c: Include elf/dwarf2.h.
4142         * config/i386/i386.c: Include elf/dwarf2.h.
4143
4144 2009-06-29  DJ Delorie  <dj@redhat.com>
4145
4146         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
4147
4148         * doc/extend.texi: Add MeP attributes and pragmas.
4149         * doc/invoke.text: Add MeP Options.
4150         * doc/contrib.texi: Add MeP contribution.
4151         * doc/md.texi: Add MeP constraints.
4152         * doc/install.texi: Add MeP target.
4153
4154 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
4155
4156         * target.h (struct gcc_target): Add frame_pointer_required field.
4157         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
4158         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
4159         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
4160         hook.
4161         * reload1.c (update_eliminables): (Ditto.).
4162         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
4163         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
4164         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
4165
4166         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
4167
4168         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
4169         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
4170         (arm_frame_pointer_required): New function.
4171
4172         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
4173         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
4174         (avr_frame_pointer_required_p): Declare as static.
4175         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
4176
4177         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
4178         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
4179         (bfin_frame_pointer_required): Make as static, change return type
4180         to bool.
4181         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
4182
4183         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
4184         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
4185         (cris_frame_pointer_required): New function.
4186
4187         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
4188
4189         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
4190         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
4191         (fr30_frame_pointer_required): New function.
4192
4193         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
4194         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
4195         (frv_frame_pointer_required): Make as static, change return type
4196         to bool.
4197         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
4198
4199         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
4200         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
4201         (ix86_frame_pointer_required): Make as static, change return type to
4202         bool.
4203         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
4204
4205         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
4206         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
4207
4208         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
4209
4210         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
4211
4212         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
4213
4214         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
4215         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
4216         (mips_frame_pointer_required): Make as static.
4217         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
4218
4219         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
4220         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
4221         (mmix_frame_pointer_required): Mew function.
4222
4223         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
4224         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
4225
4226         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
4227
4228         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
4229
4230         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
4231
4232         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
4233         (CAN_ELIMINATE): Redefine.
4234         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
4235         (sparc_frame_pointer_required): New function.
4236         (sparc_can_eliminate): New function.
4237         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
4238
4239         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
4240         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
4241
4242         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
4243         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
4244         (xtensa_frame_pointer_required): Make as static, change return type
4245         to bool.
4246         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
4247         Remove.
4248
4249 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
4250
4251         * doc/plugins.texi: Document PLUGIN_START_UNIT.
4252         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
4253         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
4254         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
4255         (register_callback): Handle PLUGIN_START_UNIT.
4256         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
4257
4258 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
4259
4260         * tree.c (process_call_operands): Propagate TREE_READONLY from the
4261         operands.
4262         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
4263         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
4264
4265 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
4266
4267         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
4268         move cost.
4269
4270 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
4271
4272         * doc/extend.texi (Additional Floating Types): __float128 is also
4273         supported on i386 targets.
4274
4275 2009-06-29  Richard Guenther  <rguenther@suse.de>
4276
4277         PR middle-end/14187
4278         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
4279         flag.
4280         (pt_solutions_same_restrict_base): Declare.
4281         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
4282         flag.
4283         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
4284         (make_constraint_from, make_copy_constraint): Move earlier.
4285         (make_constraint_from_heapvar): New function.
4286         (make_constraint_from_restrict): Likewise.
4287         (handle_lhs_call): Use it.
4288         (find_func_aliases): Use it to track conversions to restrict
4289         qualified pointers.
4290         (struct fieldoff): Add only_restrict_pointers flag.
4291         (push_fields_onto_fieldstack): Initialize it.
4292         (create_variable_info_for): Track global restrict qualified pointers.
4293         (intra_create_variable_infos): Use make_constraint_from_heapvar.
4294         Track restrict qualified pointer arguments.
4295         (set_uids_in_ptset): Use varinfo is_global_var flag.
4296         (find_what_var_points_to): Set the vars_contains_restrict flag.
4297         Always create the points-to solution for sets including restrict tags.
4298         (pt_solutions_same_restrict_base): New function.
4299         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
4300         qualified pointers use pt_solutions_same_restrict_base as
4301         additional source for disambiguation.
4302
4303 2009-06-29  Richard Guenther  <rguenther@suse.de>
4304
4305         PR middle-end/38212
4306         * alias.c (find_base_decl): Remove.
4307         (get_deref_alias_set_1): Remove restrict handling.
4308         * c-common.c (c_apply_type_quals_to_decl): Do not set
4309         DECL_POINTER_ALIAS_SET.
4310         * gimplify.c (find_single_pointer_decl_1): Remove.
4311         (find_single_pointer_decl): Likewise.
4312         (internal_get_tmp_var): Remove restrict handling.
4313         (gimple_regimplify_operands): Likewise.
4314         * omp-low.c (expand_omp_atomic_pipeline): Do not set
4315         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
4316         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
4317         * tree.c (restrict_base_for_decl): Remove.
4318         (init_ttree): Do not allocate it.
4319         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
4320         LABEL_DECL_UID for label decls.
4321         (copy_node_stat): Do not copy restrict information.
4322         (decl_restrict_base_lookup): Remove.
4323         (decl_restrict_base_insert): Likewise.
4324         (print_restrict_base_statistics): Likewise.
4325         (dump_tree_statistics): Do not call print_restrict_base_statistics.
4326         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
4327         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
4328         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
4329         (LABEL_DECL_UID): Adjust.
4330         (DECL_BASED_ON_RESTRICT_P): Remove.
4331         (DECL_GET_RESTRICT_BASE): Likewise.
4332         (SET_DECL_RESTRICT_BASE): Likewise.
4333         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
4334
4335         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
4336         instead of DECL_POINTER_ALIAS_SET.
4337         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
4338         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
4339         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
4340
4341 2009-06-29  Richard Guenther  <rguenther@suse.de>
4342
4343         PR tree-optimization/40579
4344         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
4345         the IL to simplify has constants that overflowed.
4346
4347 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
4348
4349         PR tree-optimization/40550
4350         * tree-vect-generic.c (expand_vector_operations_1): Compute in
4351         vector_compute_type only when the size of vector_compute_type is
4352         less than the size of type.
4353
4354 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
4355
4356         * fold-const.c (contains_label_1): Fix comments.
4357         (contains_label_p): Do not walk trees multiple time.
4358
4359 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
4360
4361         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
4362         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
4363         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
4364         ix86_fp_comparison_operator.
4365         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
4366         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
4367         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
4368         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
4369         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
4370         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
4371         (related splits): Change predicate to ix86_fp_comparison_operator.
4372         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
4373         instead of ix86_fp_comparison_codes.
4374         (ix86_trivial_fp_comparison_operator,
4375         ix86_fp_comparison_operator): New.
4376         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
4377         (ix86_expand_compare): Eliminate last two parameters.
4378         (ix86_fp_jump_nontrivial_p): Kill.
4379         * config/i386/i386.c (put_condition_code): Eliminate call to
4380         ix86_fp_comparison_codes and subsequent assertion.
4381         (ix86_fp_comparison_codes): Eliminate.
4382         (ix86_fp_swap_condition): New.
4383         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
4384         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
4385         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
4386         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
4387         and ix86_fp_swap_condition.
4388         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
4389         Use ix86_fp_comparison_strategy.
4390         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
4391         (ix86_fp_jump_nontrivial_p): Eliminate.
4392         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
4393         call to ix86_expand_compare.
4394         (ix86_split_fp_branch, ix86_expand_setcc,
4395         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
4396         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
4397
4398 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
4399
4400         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
4401         related to jump_clobbers.
4402         * config/arm/arm.md (conds): Remove jump_clob case.
4403         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
4404         splits): Change comparison_operator to arm_comparison_operator.
4405         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
4406         Eliminate.
4407
4408 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
4409
4410         * dojump.c (do_compare_rtx_and_jump): Try swapping the
4411         condition for floating point modes.
4412         * expmed.c (emit_store_flag_1): Move here a bigger part
4413         of emit_store_flag.
4414         (emit_store_flag): Try swapping the condition for floating point
4415         modes.
4416         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
4417
4418 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
4419
4420         * expr.c (expand_expr_real_1): Just use do_store_flag.
4421         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
4422         emit_store_flag_force.
4423         * expmed.c (emit_store_flag_force): Copy here trick
4424         previously in expand_expr_real_1.  Try reversing the comparison.
4425         (emit_store_flag_1): Work if target is NULL.
4426         (emit_store_flag): Work if target is NULL, using the result mode
4427         from the comparison.  Use split_comparison, restructure final part
4428         to simplify conditionals.
4429
4430 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
4431
4432         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
4433         * dojump.c (do_jump): Change handling of floating-point
4434         ops to use just do_compare_and_jump.
4435         (split_comparison): New.
4436         (do_compare_rtx_and_jump): Add here logic coming previously
4437         in do_jump, using split_comparison.
4438
4439 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
4440
4441         PR target/40489
4442         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
4443
4444 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
4445
4446         * tree-ssa-alias.c: Fix unintentional commit.
4447
4448 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
4449
4450         * passes.c (execute_one_pass): Fix unintentional commit.
4451
4452 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
4453
4454         * df-problems.c (df_set_seen, df_unset_seen): Delete.
4455         (df_rd_local_compute, df_md_local_compute): Inline them.
4456
4457         (df_md_scratch): New.
4458         (df_md_alloc, df_md_free): Allocate/free it.
4459         (df_md_local_compute): Only include live registers in init.
4460         (df_md_transfer_function): Prune the in-set computed by
4461         the confluence function, and the gen-set too.
4462
4463 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
4464
4465         PR rtl-optimization/26854
4466         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
4467         * df-problems.c (df_rd_add_problem): Fix comment.
4468         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
4469         df_md_simulate_artificial_defs_at_top,
4470         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
4471         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
4472         df_md_transfer_function, df_md_init, df_md_confluence_0,
4473         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
4474         problem_MD, df_md_add_problem): New.
4475         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
4476         df_md_get_bb_info): New.
4477         (DF_LAST_PROBLEM_PLUS1): Adjust.
4478
4479         * Makefile.in (fwprop.o): Include domwalk.h.
4480         * fwprop.c: Include domwalk.h.
4481         (reg_defs, reg_defs_stack): New.
4482         (bitmap_only_bit_between): Remove.
4483         (process_defs): New.
4484         (process_uses): Use reg_defs and local_md instead of
4485         bitmap_only_bit_between and local_rd.
4486         (single_def_use_enter_block): New, from build_single_def_use_links.
4487         (single_def_use_leave_block): New.
4488         (build_single_def_use_links): Remove code moved to
4489         single_def_use_enter_block, invoke domwalk.
4490         (use_killed_between): Adjust comment.
4491
4492 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
4493
4494         * bitmap.h (bitmap_ior_and_into): New.
4495         * bitmap.c (bitmap_ior_and_into): New.
4496
4497 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
4498
4499         * domwalk.h (struct dom_walk_data): Remove all callbacks except
4500         before_dom_children_before_stmts and after_dom_children_after_stmts.
4501         Rename the two remaining callbacks to just before_dom_children and
4502         after_dom_children. Remove other GIMPLE statement walking bits.
4503         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
4504         * graphite.c: Do not include domwalk.h.
4505         * tree-into-ssa.c (interesting_blocks): New global.
4506         (struct mark_def_sites_global_data): Remove it and names_to_rename.
4507         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
4508         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
4509         now that they're not domwalk callbacks.
4510         (rewrite_initialize_block): Rename to...
4511         (rewrite_enter_block): ... this, place after called functions.  Test
4512         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
4513         (rewrite_finalize_block): Rename to...
4514         (rewrite_leave_block): ... this, place after called functions.
4515         (rewrite_update_init_block): Rename to...
4516         (rewrite_update_enter_block): ... this, place after called functions.
4517         Test interesting_blocks, call rewrite_update_stmt and
4518         rewrite_update_phi_arguments.
4519         (rewrite_update_fini_block): Rename to...
4520         (rewrite_leave_block): ... this, place after called functions.
4521         (rewrite_blocks): Remove last argument, simplify initialization of
4522         walk_data.
4523         (mark_def_sites_initialize_block): Rename to...
4524         (mark_def_sites_block): ... this, call mark_def_sites.
4525         (mark_def_sites_blocks): Remove argument, simplify initialization of
4526         walk_data.
4527         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
4528         (update_ssa): Likewise.
4529         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
4530         callback.
4531         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
4532         (dom_opt_initialize_block): Rename to...
4533         (dom_opt_enter_block): ... this, place after called functions.  Walk
4534         statements here, inline propagate_to_outgoing_edges.
4535         (dom_opt_finalize_block): Rename to...
4536         (dom_opt_leave_block): ... this, place after called functions.
4537         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
4538         domwalk callback.
4539         (dse_enter_block, dse_record_phi): New.
4540         (dse_record_phis): Delete.
4541         (dse_finalize_block): Rename to...
4542         (dse_leave_block): ... this.
4543         (tree_ssa_dse): Simplify initialization of walk_data.
4544         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
4545         Adjust initialization of walk_data.
4546         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
4547         * tree-ssa-loop-phiopt.c (get_non_trapping):
4548         Adjust initialization of walk_data.
4549         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
4550         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
4551         it's not a domwalk callback.
4552         (uncprop_initialize_block): Rename to...
4553         (dse_enter_block): ... this, call uncprop_into_successor_phis.
4554         (dse_finalize_block): Rename to...
4555         (dse_leave_block): ... this.
4556         (tree_ssa_uncprop): Simplify initialization of walk_data.
4557         * Makefile.in: Adjust dependencies.
4558
4559 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
4560
4561         * arm.md (casesi): Fix test for Thumb1.
4562         (thumb1_casesi_internal_pic): Likewise.
4563         (thumb1_casesi_dispatch): Likewise.
4564
4565 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
4566
4567         * config/arm/arm-cores.def: Added core cortex-m0.
4568         * config/arm/arm-tune.md: Regenerated.
4569         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
4570
4571 2009-06-26  DJ Delorie  <dj@redhat.com>
4572
4573         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
4574
4575         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
4576         the scheduler doesn't tag jump insns.
4577
4578 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
4579
4580         * c-decl.c (merge_decls): Re-indent.
4581
4582 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
4583
4584         PR c/39902
4585         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
4586         Special-case decimal float constants.
4587
4588 2009-06-26  Richard Henderson  <rth@redhat.com>
4589
4590         * function.h (struct function): Add cannot_be_copied_reason,
4591         and cannot_be_copied_set.
4592         * tree-inline.c (has_label_address_in_static_1): Rename from
4593         inline_forbidden_p_2; don't set inline_forbidden_reason here.
4594         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
4595         don't set inline_forbidden_reason.
4596         (copy_forbidden): New function, split out of inline_forbidden_p.
4597         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
4598         (inline_forbidden_p): Use copy_forbidden.
4599         (tree_versionable_function_p): Likewise.
4600         (inlinable_function_p): Merge into tree_inlinable_function_p.
4601         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
4602         * ipa-cp.c (ipcp_versionable_function_p): New function.
4603         (ipcp_cloning_candidate_p): Use it.
4604         (ipcp_node_modifiable_p): Likewise.
4605
4606 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
4607
4608         * builtins.c (expand_builtin_alloca): Handle builtin alloca
4609         that is marked not to be inlined. Remove flag_mudflap use.
4610         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
4611         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
4612
4613 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
4614
4615         PR bootstrap/40338
4616         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
4617         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
4618
4619 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
4620
4621         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
4622         shared libgcc.
4623         (__mingwthr_remove_key_dtor): Likewise.
4624
4625 2009-06-26  Richard Guenther  <rguenther@suse.de>
4626
4627         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
4628
4629 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
4630
4631         PR middle-end/40525
4632         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
4633         try the non-cond_exec path also.
4634
4635 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4636
4637         PR target/40468
4638         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
4639         (output_cbranch): Use new functions.
4640         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
4641         Likewise.
4642
4643 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
4644             Pat Haugen  <pthaugen@us.ibm.com>
4645             Revital Eres <ERES@il.ibm.com>
4646
4647         * config/rs6000/rs6000.c (print_operand): Correct lossage message
4648         for %c error.  Add %x support to print VSX registers as a unified
4649         register set, instead of separate float and altivec registers.
4650         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
4651         %y case, and add support for VSX pre-modify addresses.
4652         (output_toc): Add assert for CONST containing an integer constant
4653         in the PLUS case.
4654         (rs6000_adjust_cost): Add POWER7 support.
4655         (insn_must_be_first_in_group): Ditto.
4656         (insn_must_be_last_in_group): Ditto.
4657         (rs6000_emit_popcount): Ditto.
4658         (rs6000_vector_mode_supported_p): Ditto.
4659
4660         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
4661         Change some of the functions called by macros to being called
4662         through a pointer, so debug functions can be inserted if
4663         -mdebug=addr or -mdebug=cost.
4664         (rs6000_preferred_reload_class_ptr): Ditto.
4665         (rs6000_secondary_reload_class_ptr): Ditto.
4666         (rs6000_secondary_memory_needed_ptr): Ditto.
4667         (rs6000_cannot_change_mode_class_ptr): Ditto.
4668         (rs6000_secondary_reload_inner): Ditto.
4669         (rs6000_legitimize_reload_address): Ditto.
4670         (rs6000_legitimize_reload_address_ptr): Ditto.
4671         (rs6000_mode_dependent_address): Ditto.
4672         (rs6000_mode_dependent_address_ptr): Ditto.
4673
4674         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
4675         function to return true if the mode allows reg + integer
4676         addresses.
4677         (virtual_stack_registers_memory_p): New function to return true if
4678         the address refers to a virtual stack register.
4679         (rs6000_legitimate_offset_address_p): Move code to say whether a
4680         mode supports reg+int addressing to reg_offset_addressing_ok_p and
4681         call it.
4682         (rs6000_legitimate_address_p): Add checks for modes that only can
4683         do reg+reg addressing.  Start adding VSX support.
4684         (rs6000_legitimize_reload_address): Ditto.
4685         (rs6000_legitimize_address): Ditto.
4686         (rs6000_debug_legitimate_address_p): New debug functions for
4687         -mdebug=addr and -mdebug=cost.
4688         (rs6000_debug_rtx_costs): Ditto.
4689         (rs6000_debug_address_costs): Ditto.
4690         (rs6000_debug_adjust_cost): Ditto.
4691         (rs6000_debug_legitimize_address): Ditto.
4692         (rs6000_legitimize_reload_address_ptr): Point to call normal
4693         function or debug function.  Make functions called via pointer
4694         static.
4695         (rs6000_mode_dependent_address_ptr): Ditto.
4696         (rs6000_secondary_reload_class_ptr): Ditto.
4697         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
4698         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
4699         into a friendlier error.
4700         (rs6000_init_builtins): Add initial VSX support.
4701         (rs6000_adjust_cost): Fix some spacing issues.
4702
4703         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
4704         (REG_CLASS_NAMES): Ditto.
4705         (REG_CLASS_CONTENTS): Ditto.
4706         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
4707         pointer, to add -mdebug=addr support.
4708         (CANNOT_CHANGE_MODE_CLASS): Ditto.
4709         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
4710         -mdebug=addr support.
4711         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
4712         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
4713         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
4714
4715         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
4716         16-bit values.
4717         (bswapsi*): Set attribute types for load/store.  Add combiner
4718         patterns to eliminate zero extend on 64-bit.
4719         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
4720         stdbrx if the hardware supports those instructions.
4721
4722 2009-06-25  Ian Lance Taylor  <iant@google.com>
4723
4724         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
4725         (Link Options): Document -static-libstdc++.
4726
4727 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4728
4729         PR target/38731
4730         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
4731         DATA_ALIGNMENT instead.
4732
4733 2009-06-25  Richard Guenther  <rguenther@suse.de>
4734
4735         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
4736         indirect references against the callused/escaped solutions.
4737         (call_may_clobber_ref_p_1): Likewise.
4738
4739 2009-06-25  Martin Jambor  <mjambor@suse.cz>
4740
4741         PR tree-optimization/40493
4742         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
4743         (enum unscalarized_data_handling): New type.
4744         (handle_unscalarized_data_in_subtree): Return what has been done.
4745         (load_assign_lhs_subreplacements): Handle left flushes differently.
4746         (sra_modify_assign): Use unscalarized_data_handling, simplified
4747         condition determining whether to remove the statement.
4748
4749 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
4750
4751         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
4752         excerpt - @ should be doubled for texinfo.
4753
4754 2009-06-24  Ian Lance Taylor  <iant@google.com>
4755
4756         * config/arc/arc.c: Include "df.h".
4757         (arc_attribute_table): Make static.  Move higher in file.
4758         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
4759         (output_shift): Initialize n later to avoid warning.
4760         * config/arm/arm.c (arm_attribute_table): Make static.  Move
4761         higher in file.
4762         * config/avr/avr.c (avr_attribute_table): Make static.  Move
4763         higher in file.
4764         (reg_class_tab): Change array type from int to enum reg_class.
4765         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
4766         LABEL_REF.
4767         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
4768         (lshrhi3_out): Likewise.
4769         (class_likely_spilled_p): Change return type to bool.
4770         (avr_rtx_costs): Use local code variable with enum type.
4771         * config/avr/avr.md (movmemhi): Use add_reg_note.
4772         (andhi3, andsi3): Don't use AS2 with "and".
4773         (iorhi3, iorsi3): Don't use AS2 with "or".
4774         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
4775         * config/crx/crx.c: Include "df.h".
4776         (crx_attribute_table): Make static.
4777         * config/m32r/m32r.c: Include "df.h".
4778         (m32r_attribute_table): Make static.  Move higher in file.
4779         (pop): Use add_reg_note.
4780         (block_move_call): Change 0 to LCT_NORMAL in function call.
4781         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
4782         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
4783         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
4784         declare, not just when TREE_CODE is defined.
4785         * config/m68hc11/m68hc11.c: Include "expr.h".
4786         (m68hc11_attribute_table): Make static.  Move higher in file.
4787         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
4788         function call.
4789         (m68hc11_register_indirect_p): Likewise.
4790         (m68hc11_function_arg_padding): Change return type to enum
4791         direction.
4792         (emit_move_after_reload): Use add_reg_note.
4793         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
4794         (m68hc11_split_logical): Likewise.
4795         (m68hc11_rtx_costs): Add local code_and outer_code variables with
4796         enum type.
4797         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
4798         to VOIDmode in function call.
4799         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
4800         tree is defined.
4801         (m68hc11_split_logical): Update declaration.
4802         (m68hc11_function_arg_padding): Update declaration.
4803         * config/mcore/mcore.c (regno_reg_class): Change form array of int
4804         to array of enum reg_class.
4805         (mcore_attribute_table): Make static.  Move higher in file.
4806         (mcore_rtx_costs): Add cast to enum type.
4807         * config/mcore/mcore.h (regno_reg_class): Update declaration.
4808         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
4809         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
4810         in file.
4811         * config/sh/predicates.md (trapping_target_operand): Rename and to
4812         and_expr.
4813         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
4814         higher in file.
4815         * config/spu/spu.c (spu_attribute_table): Make static.  Move
4816         higher in file.
4817         * config/v850/v850.c (v850_attribute_table): Make static.  Move
4818         higher in file.
4819         (v850_rtx_costs): Use local code with enum type.
4820         (expand_epilogue): Add cast.
4821         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
4822
4823 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
4824
4825         PR target/40515
4826         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
4827         -m2a-single-only and -m2a-nofpu.
4828         * config/sh/sh.opt: Document m2a generates FPU code.
4829
4830 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
4831
4832         * defaults.h (CAN_ELIMINATE): Provide default.
4833         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
4834         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
4835         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
4836         * config/spu/spu.h (CAN_ELIMINATE): Delete.
4837         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
4838         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
4839         * config/cris/cris.h (CAN_ELIMINATE): Delete.
4840         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
4841         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
4842         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
4843
4844 2009-06-24  DJ Delorie  <dj@redhat.com>
4845
4846         * mep-ext-cop.cpu: Fix copyright notice.
4847         * mep-default: Fix copyright notice.
4848         * mep-core: Fix copyright notice.
4849         * mep: Fix copyright notice.
4850         * mep-ivc2: Fix copyright notice.
4851         * mep-c5: Fix copyright notice.
4852
4853 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
4854
4855         * doc/contrib.texi (Contributors):
4856
4857 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
4858
4859         PR middle-end/40501
4860         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
4861         src and dst operands if necessary.
4862
4863 2009-06-23  DJ Delorie  <dj@redhat.com>
4864
4865         Add MeP port.
4866         * config.gcc: Add mep support.
4867         * recog.c: Resurrect validate_replace_rtx_subexp().
4868         * recog.h: Likewise.
4869         * config/mep/: Add new port:
4870         * config/mep/constraints.md: New file.
4871         * config/mep/default.h: New file.
4872         * config/mep/intrinsics.h: New file.
4873         * config/mep/intrinsics.md: New file.
4874         * config/mep/ivc2-template.h: New file.
4875         * config/mep/mep-c5.cpu: New file.
4876         * config/mep/mep-core.cpu: New file.
4877         * config/mep/mep-default.cpu: New file.
4878         * config/mep/mep-ext-cop.cpu: New file.
4879         * config/mep/mep-intrin.h: New file.
4880         * config/mep/mep-ivc2.cpu: New file.
4881         * config/mep/mep-lib1.asm: New file.
4882         * config/mep/mep-lib2.c: New file.
4883         * config/mep/mep-pragma.c: New file.
4884         * config/mep/mep-protos.h: New file.
4885         * config/mep/mep-tramp.c: New file.
4886         * config/mep/mep.c: New file.
4887         * config/mep/mep.cpu: New file.
4888         * config/mep/mep.h: New file.
4889         * config/mep/mep.md: New file.
4890         * config/mep/mep.opt: New file.
4891         * config/mep/predicates.md: New file.
4892         * config/mep/t-mep: New file.
4893
4894 2009-06-23  Ian Lance Taylor  <iant@google.com>
4895
4896         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
4897         from loose_warn into c_loose_warn and from strict_warn into
4898         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
4899         --enable-build-with-cxx.  Set and substitute
4900         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
4901         * Makefile.in (CXXFLAGS): New variable.
4902         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
4903         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
4904         the default is the same as $(STRICT_WARN).
4905         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
4906         (CXX): New variable.
4907         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
4908         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
4909         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
4910         (HOST_LIBS): New variable.
4911         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
4912         (ALL_CXXFLAGS): New variable.
4913         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
4914         * doc/install.texi (Configuration): Document
4915         --enable-build-with-cxx, --with-stage1-ldflags,
4916         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
4917         * configure: Rebuild.
4918
4919 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4920
4921         * config/arm/arm.c (arm_override_options): Fix braces and formatting
4922         from previous commit.
4923
4924 2009-06-23  Ian Lance Taylor  <iant@google.com>
4925
4926         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
4927
4928 2009-06-23  Ian Lance Taylor  <iant@google.com>
4929
4930         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
4931         with ATTRIBUTE_UNUSED.
4932
4933 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4934             Pat Haugen  <pthaugen@us.ibm.com>
4935             Revital Eres  <eres@il.ibm.com>
4936
4937         * config.in (HAVE_AS_POPCNTD): Add default definition.
4938         (HAVE_AS_LWSYNC): Ditto.
4939
4940         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
4941         release number.
4942         (gcc_cv_as_powerpc_cmpb): Ditto.
4943         (gcc_cv_as_powerpc_dfp): Ditto.
4944         (gcc_cv_as_powerpc_vsx): Ditto.
4945         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
4946         supporting the popcntd/lwsync instructions.
4947         (gcc_cv_as_powerpc_lwsync): Ditto.
4948         * configure: Regenerate.
4949
4950         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
4951         -mcpu=native and -mcpu=power7.
4952         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
4953
4954         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
4955         a variable instead of a mask to reduce the number of mask bits.
4956         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
4957         (-mbit-word): Ditto.
4958         (-mregnames): Ditto.
4959         * config/rs6000/rs6000.opt (-mupdate): Ditto.
4960         (-mfused-madd): Ditto.
4961
4962         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
4963         2.06 instructions.
4964         (-mvsx): New switch for VSX instructions.
4965         (-misel): Move from a variable to a mask to allow it to be set by
4966         -mcpu=.
4967
4968         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
4969         function declaration to an array declaration.
4970         (rs6000_hard_regno_nregs): New external array declaration.
4971
4972         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
4973         files included by rs6000.md.
4974
4975         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4976         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
4977
4978         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
4979         a target mask.
4980         (rs6000_debug_reg): New -mdebug= variables.
4981         (rs6000_debug_addr): Ditto.
4982         (rs6000_debug_cost): Ditto.
4983         (rs6000_pmode): New variable to hold Pmode.
4984         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
4985         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
4986         calculated at compiler start.
4987         (rs6000_hard_regno_nregs): Change function to an array which holds
4988         HARD_REGNO_NREGS calculated at compiler start.
4989         (rs6000_explicit_options): Delete isel field.
4990         (rs6000_vector_unit): New array to hold which vector unit
4991         supports arithmetic options for a given type.
4992         (rs6000_vector_mem): New array to hold which vector unit supports
4993         memory reference operations for a given type.
4994         (rs6000_vector_align): New array to given the alignment of each
4995         vector type.
4996         (power7_cost): New basic costs for power7.
4997         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
4998         (rs6000_hard_regno_nregs_internal): New function, moved from
4999         HARD_REGNO_NREGS, to calculate the number of registers each hard
5000         register takes for each type.
5001         (rs6000_debug_reg_print): New function for -mdebug=reg support.
5002         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
5003         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
5004         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
5005         unit information here so it is calculated once at compiler startup
5006         time.
5007         (rs6000_override_options): Make -misel a target mask.  Add more
5008         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
5009         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
5010         -mdebug=cost.
5011         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
5012         (rs6000_handle_option): Move -misel from variable to target mask.
5013         (rs6000_builtin_mask_for_load): Add VSX support.
5014         (rs6000_conditional_register_usage): Ditto.
5015         (USE_ALTIVEC_FOR_ARG_P): Ditto.
5016         (function_arg_boundary): Ditto.
5017         (rs6000_expand_builtin): Ditto.
5018         (def_builtin): Make abort message a little friendlier.
5019         (rs6000_emit_int_cmove): Add support for 64-bit isel.
5020
5021         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
5022         assembler support the popcntd instruction instead of a vsx
5023         instruction to enable power7 support.
5024         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
5025         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
5026         option to the assembler if -mcpu=native.
5027         (ASM_CPU_NATIVE_SPEC): Ditto.
5028         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
5029         ISA 2.06 features.
5030         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
5031         the lwsync instruction.
5032         (enum processor_type): Add PROCESSOR_POWER7.
5033         (rs6000_debug_reg): New -mdebug= options.
5034         (rs6000_debug_addr): Ditto.
5035         (rs6000_debug_cost): Ditto.
5036         (rs6000_isel): Delete.
5037         (enum rs6000_vector): New enum to say what vector unit we have.
5038         (VECTOR_UNIT_*): New macros to say which vector unit has
5039         arithmetic operations for a given type.
5040         (VECTOR_MEM_*): New macros to say which vector unit has memory
5041         operations for a given type.
5042         (TARGET_LDBRX): Whether the machine supports the ldbrx
5043         instruction.
5044         (TARGET_ISEL): Delete, -misel moved to be a mask.
5045         (TARGET_ISEL64): New macro for 64-bit isel support.
5046         (UNITS_PER_VSX_WORD): New macro.
5047         (POINTER_SIZE): Move to be an external variable, rather than
5048         calculating whether we are generating 32 ot 64-bit code.
5049         (Pmode): Ditto.
5050         (STACK_BOUNDARY): Add VSX support.
5051         (LOCAL_ALIGNMENT): Ditto.
5052         (SLOW_UNALIGNED_ACCESS): Ditto.
5053         (VSX_REGNO_P): New macro for VSX support.
5054         (VFLOAT_REGNO_P): Ditto.
5055         (VINT_REGNO_P): Ditto.
5056         (VLOGICAL_REGNO_P): Ditto.
5057         (VSX_VECTOR_MODE): Ditto.
5058         (VSX_SCALAR_MODE): Ditto.
5059         (VSX_MODE): Ditto.
5060         (VSX_MOVE_MODE): Ditto.
5061         (VSX_REG_CLASS_P): Ditto.
5062         (HARD_REGNO_NREGS): Instead of calling a function, use an array
5063         lookup.
5064         (UNITS_PER_SIMD_WORD): Add VSX support.
5065         (MODES_TIEABLE_P): Ditto.
5066         (STARTING_FRAME_OFFSET): Ditto.
5067         (STACK_DYNAMIC_OFFSET): Ditto.
5068         (EPILOGUE_USES): Ditto.
5069         (REGNO_REG_CLASS): Move to array lookup.
5070         (CLASS_MAX_NREGS): Ditto.
5071         (rs6000_vector_reg_class): Add declaration.
5072         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
5073         overlap with the floating point and Altivec registers.
5074
5075         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
5076
5077         * config/rs6000/driver-rs6000.c (asm_names): New static array to
5078         give the appropriate asm switches if -mcpu=native.
5079         (host_detect_local_cpu): Add support for "asm".
5080         (host_detect_local_cpu): Follow GNU code guidelines for name.
5081
5082         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
5083         -mbit-word to a variable instead of being a target mask.
5084
5085         * config/rs6000/sync.md (lwsync): If the assembler supports it,
5086         emit the lwsync instruction instead of emitting the instruction as
5087         an integer constant.
5088
5089         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
5090         fixuns_trundfsi2, move expander into rs6000.md.
5091
5092         * config/rs6000/rs6000.md (cpu): Add power7.
5093         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
5094         (logical predicate patterns): Change the single instruction
5095         primitives that set CR0 to be fast_compare instead of compare.
5096         (norsi*): Ditto.
5097         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
5098         (popcntddi2): Ditto.
5099         (popcount<mode>): Ditto.
5100         (floating multiply/add insns): Name the floating point
5101         multiply/add insns.
5102         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
5103         (isel_unsigned_<mode>): Ditto.
5104         (fixuns_trundfsi2): Move expander here from spe.md.
5105         (smindi3): Define if we have -misel on 64-bit systems.
5106         (smaxdi3): Ditto.
5107         (umindi3): Ditto.
5108         (umaxdi3): Ditto.
5109
5110 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
5111
5112         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
5113         extra_objs.
5114         * config/avr/avr.c (avr_current_device): New variable.
5115         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
5116         (avr_arch, mcu_type_s): Move to avr.h.
5117         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
5118         default_data_section_start fields.
5119         (avr_arch): Moved from avr.c.
5120         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
5121         library_name fields.
5122         (avr_current_device, avr_mcu_types, avr_arch_types,
5123         avr_device_to_arch, avr_device_to_data_start,
5124         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
5125         (EXTRA_SPEC_FUNCTIONS): Define.
5126         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
5127         options mapping. Use device_to_arch and device_to_data_start insted.
5128         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
5129         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
5130         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
5131         * config/avr/driver-avr.c: New file.
5132         * config/avr/avr-devices.c: New file.
5133
5134 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
5135
5136         * var-tracking.c (unshare_variable): Force initialized to
5137         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
5138         (set_variable_part): Likewise.
5139         (struct variable_union_info): Remove pos_src field.
5140         (vui_vec, vui_allocated): New variables.
5141         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
5142         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
5143         == 1 use a simpler sorting algorithm.  Compute pos field right
5144         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
5145         Avoid quadratic comparison if !flag_var_tracking_uninit.
5146         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
5147         unshare_variable unconditionally.
5148         (dataflow_set_different_2): Removed.
5149         (dataflow_set_different): Don't traverse second hash table.
5150         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
5151         unconditionally to var_reg_set or var_mem_set.
5152         (emit_notes_in_bb): Likewise.
5153         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
5154         unshare_variable.
5155         (emit_note_insn_var_location): Don't set initialized to
5156         VAR_INIT_STATUS_INITIALIZED early.
5157         (vt_finalize): Free vui_vec if needed, clear vui_vec and
5158         vui_allocated.
5159         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
5160
5161         * tree-object-size.c (addr_object_size): Instead of checking
5162         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
5163         are no FIELD_DECLs following it.
5164
5165 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
5166
5167         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
5168         order to match bswaps with signed source operands.
5169
5170 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5171
5172         * sdbout.c (sdbout_one_type): Fix braces in switch.
5173
5174 2009-06-23  Richard Guenther  <rguenther@suse.de>
5175
5176         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
5177         member.
5178         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
5179         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
5180         var_callused, callused_tree, var_storedanything, storedanything_tree,
5181         var_integer, integer_tree): Remove global variables.
5182         (new_var_info): Do not pass new id, append the new var to the
5183         global variable vector.
5184         (do_ds_constraint): Use is_global_var member of the variable-info.
5185         (new_scalar_tmp_constraint_exp): Adjust.
5186         (create_function_info_for): Likewise.
5187         (create_variable_info_for): Likewise.
5188         (find_what_var_points_to): Remove dead code.
5189         (init_base_vars): Simplify.
5190         (compute_points_to_sets): Adjust.
5191
5192 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
5193
5194         * combine.c (try_combine): Dump information about the insns we're
5195         combining.
5196
5197 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
5198
5199         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
5200         check when calling force_to_mode on TRUNCATE's operand.
5201
5202 2009-06-22  Ian Lance Taylor  <iant@google.com>
5203
5204         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
5205
5206 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
5207
5208         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
5209
5210 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5211
5212         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
5213         override library linkage flags such as -static-libgcc or
5214         -shared-libgcc.
5215
5216 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
5217
5218         * config/m68k/m68k-devices.def: Add line for MCF5221x.
5219
5220 2009-06-22  Ian Lance Taylor  <iant@google.com>
5221
5222         * config/linux.opt: Put mglibc ahead of muclibc.
5223
5224         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
5225         for duplicate decls.
5226
5227 2009-06-22  Matthias Klose  <doko@ubuntu.com>
5228
5229         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
5230
5231 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
5232
5233         PR objc/28050
5234         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
5235         instead of NULL if a parser error occurs.
5236
5237 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5238
5239         * dwarf2out.c (dwarf2_debug_hooks): Initialize
5240         non-DWARF2_DEBUGGING_INFO version.
5241
5242 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
5243
5244         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
5245         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
5246
5247         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
5248         (LIBGCC2_TF_CEXT): Define.
5249         (TF_SIZE): Define.
5250
5251 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5252
5253         PR target/40463
5254         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
5255
5256 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5257
5258         * config/arm/arm.c (arm_override_options): Disable
5259         -mcaller-super-interworking and -mcallee-super-interworking.
5260         * doc/invoke.texi (ARM Options): Document this.
5261
5262 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
5263
5264         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
5265         * config/arm/constraints.md (j): New constraint for movw operands.
5266         (N): Remove thumb2 meaning.
5267         * config/arm/arm.md (*arm_movw): Delete.
5268         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
5269         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
5270         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
5271
5272 2009-06-22  Martin Jambor  <mjambor@suse.cz>
5273
5274         PR tree-optimization/40492
5275         * tree-sra.c (sra_modify_assign): Pass zero offsets to
5276         build_ref_for_offset.
5277
5278 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
5279
5280         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
5281         JUMP_TABLE_DATA_P predicates where applicable.
5282         * auto-inc-dec.c: Ditto.
5283         * builtins.c: Ditto.
5284         * caller-save.c: Ditto.
5285         * calls.c: Ditto.
5286         * cfgcleanup.c: Ditto.
5287         * cfglayout.c: Ditto.
5288         * cfgrtl.c: Ditto.
5289         * combine.c: Ditto.
5290         * combine-stack-adj.c: Ditto.
5291         * cse.c: Ditto.
5292         * cselib.c: Ditto.
5293         * dbxout.c: Ditto.
5294         * df-scan.c: Ditto.
5295         * dse.c: Ditto.
5296         * dwarf2asm.c: Ditto.
5297         * dwarf2out.c: Ditto.
5298         * emit-rtl.c: Ditto.
5299         * except.c: Ditto.
5300         * explow.c: Ditto.
5301         * expmed.c: Ditto.
5302         * expr.c: Ditto.
5303         * final.c: Ditto.
5304         * function.c: Ditto.
5305         * fwprop.c: Ditto.
5306         * gcse.c: Ditto.
5307         * genpreds.c: Ditto.
5308         * genrecog.c: Ditto.
5309         * ifcvt.c: Ditto.
5310         * ira-costs.c: Ditto.
5311         * ira-lives.c: Ditto.
5312         * jump.c: Ditto.
5313         * loop-iv.c: Ditto.
5314         * lower-subreg.c: Ditto.
5315         * modulo-sched.c: Ditto.
5316         * optabs.c: Ditto.
5317         * postreload.c: Ditto.
5318         * print-rtl.c: Ditto.
5319         * recog.c: Ditto.
5320         * reginfo.c: Ditto.
5321         * regmove.c: Ditto.
5322         * reload1.c: Ditto.
5323         * reload.c: Ditto.
5324         * reorg.c: Ditto.
5325         * rtlanal.c: Ditto.
5326         * rtl.c: Ditto.
5327         * sched-vis.c: Ditto.
5328         * sdbout.c: Ditto.
5329         * sel-sched-ir.c: Ditto.
5330         * simplify-rtx.c: Ditto.
5331         * targhooks.c: Ditto.
5332         * var-tracking.c: Ditto.
5333         * vmsdbgout.c: Ditto.
5334
5335 2009-06-22  Matthias Klose  <doko@ubuntu.com>
5336
5337         * Makefile.in (install-plugin): Always use DESTDIR.
5338
5339 2009-06-22  Olivier Hainque  <hainque@adacore.com>
5340
5341         * config/pa/pa.c (output_call): Don't optimize post call jumps
5342         into return address adjustments if the call may throw.
5343
5344 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
5345
5346         * arm.c (thumb1_output_casesi): New function.
5347         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
5348         optimizing for size or PIC.
5349         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
5350         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
5351         (casesi): Handle Thumb-1 when optimizing for size or PIC.
5352         (thumb1_casesi_internal_pic): New expand rule.
5353         (thumb1_casesi_dispatch): New pattern.
5354         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
5355         thumb-1 mode.
5356         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
5357         in the text seciton when PIC or optimizing for size.
5358         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
5359         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
5360         preservation properties of code.
5361         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
5362         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
5363         (__gnu_thumb1_case_si): New function.
5364         * t-arm (LIB1ASMSRC): Define here.
5365         (LIB1ASMFUNCS): Add some common functions.
5366         * t-arm-elf (LIB1ASMSRC): Delete.
5367         (LIB1ASMFUNCS): Append to existing set.
5368         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
5369         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
5370         * t-symbian (LIB1ASMFUNCS): Likewise.
5371         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
5372         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
5373
5374 2009-06-21  Richard Guenther  <rguenther@suse.de>
5375
5376         PR tree-optimization/38729
5377         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
5378         to loops with a single exit if -fno-expensive-optimizations.
5379
5380 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
5381
5382         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
5383         (dataflow_set): Change vars type from htab_t to shared_hash.
5384         (shared_hash_pool, empty_shared_hash): New variables.
5385         (vars_clear): Removed.
5386         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
5387         shared_hash_find_slot_unshare, shared_hash_find_slot,
5388         shared_hash_find_slot_noinsert, shared_hash_find): New
5389         static inlines.
5390         (shared_hash_unshare, shared_hash_destroy): New functions.
5391         (unshare_variable): Unshare set->vars if shared, use
5392         shared_hash_htab.
5393         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
5394         (get_init_value, find_src_set_src, dump_dataflow_set,
5395         clobber_variable_part, emit_notes_for_differences): Use
5396         shared_hash_htab.
5397         (dataflow_set_init): Remove second argument, set vars to
5398         empty_shared_hash instead of creating a new htab.
5399         (dataflow_set_clear): Call shared_hash_destroy and set vars
5400         to empty_shared_hash instead of calling vars_clear.
5401         (dataflow_set_copy): Don't call vars_copy, instead just share
5402         the src htab with dst.
5403         (variable_union): Use shared_hash_*, use initially NO_INSERT
5404         lookup if set->vars is shared.  Don't keep slot cleared before
5405         calling unshare_variable.  Unshare set->vars if needed.
5406         Even ->refcount == 1 vars must be unshared if set->vars is shared
5407         and var needs to be modified.
5408         (variable_canonicalize): New function.
5409         (dataflow_set_union): If dst->vars is empty, just share src->vars
5410         with dst->vars and traverse with variable_canonicalize to canonicalize
5411         and unshare what is needed.
5412         (dataflow_set_different): If old_set and new_set use the same shared
5413         htab, they aren't different.  If number of htab elements is different,
5414         htabs are different.  Use shared_hash_*.
5415         (dataflow_set_destroy): Call shared_hash_destroy instead of
5416         htab_delete.
5417         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
5418         second argument to dataflow_set_init.
5419         (vt_initialize): Likewise.  Initialize shared_hash_pool and
5420         empty_shared_hash, move bb in/out initialization afterwards.
5421         Use variable_htab_free instead of NULL as changed_variables del hook.
5422         (variable_was_changed): Change type of second argument to pointer to
5423         dataflow_set.  When inserting var into changed_variables, bump
5424         refcount.  Unshare set->vars if set is shared htab and slot needs to
5425         be cleared.
5426         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
5427         lookup if set->vars is shared.  Unshare set->vars if needed.
5428         Even ->refcount == 1 vars must be unshared if set->vars is shared
5429         and var needs to be modified.  Adjust variable_was_changed caller.
5430         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
5431         vars must be unshared if set->vars is shared and var needs to be
5432         modified.  Adjust variable_was_changed caller.
5433         (emit_note_insn_var_location): Don't pool_free var.
5434         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
5435         instead of 1.
5436         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
5437         free_alloc_pool on shared_hash_pool.
5438
5439 2009-06-20  Anthony Green  <green@moxielogic.com>
5440
5441         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
5442         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
5443
5444 2009-06-20  Richard Guenther  <rguenther@suse.de>
5445
5446         * tree-ssa-structalias.c (find_func_aliases): For memset use
5447         a constraint from NULL if we memset to zero.
5448         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
5449         we explicitly handle that do not read from memory.
5450         (call_may_clobber_ref_p_1): Properly handle builtins that may
5451         set errno.
5452
5453 2009-06-20  Richard Guenther  <rguenther@suse.de>
5454
5455         PR tree-optimization/40495
5456         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
5457         (new_scalar_tmp_constraint_exp): New function.
5458         (process_constraint): Do not create temporary decls.
5459         (process_all_all_constraints): Likewise.
5460         (handle_const_call): Likewise.
5461         (create_function_info_for): Do not set decl.
5462
5463 2009-06-19  Ian Lance Taylor  <iant@google.com>
5464
5465         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
5466         (rs6000_attribute_table): Make static; move before use.
5467
5468 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
5469
5470         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
5471         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
5472         Propagate the TREE_READONLY flag without overwriting it.
5473         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
5474         Propagate the TREE_READONLY flag onto the result.
5475         (process_call_operands): Move around.  Use correct constant value.
5476
5477 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5478
5479         PR target/40482
5480         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
5481         * config/arm/arm.md: Likewise.
5482
5483 2009-06-19  Ian Lance Taylor  <iant@google.com>
5484
5485         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
5486         to GIMPLE_ERROR_MARK.
5487
5488         * c-typeck.c (build_conditional_expr): Add op1_original_type and
5489         op2_original_type parameters.  Warn about using different enum types.
5490         * c-parser.c (c_parser_conditional_expression): Pass original
5491         types to build_conditional_expr.
5492         * c-tree.h (build_conditional_expr): Update declaration.
5493
5494 2009-06-19  Ian Lance Taylor  <iant@google.com>
5495
5496         * config/i386/i386.c (ix86_function_specific_save): Test that
5497         fields match values, rather than testing the values are in a
5498         certain range.
5499
5500 2009-06-19  Richard Guenther  <rguenther@suse.de>
5501
5502         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5503         ADDR_EXPR pointers.
5504         (ptr_derefs_may_alias_p): Likewise.
5505         (ptr_deref_may_alias_ref_p_1): New function.
5506         (ptr_deref_may_alias_ref_p): Likewise.
5507         (ref_maybe_used_by_call_p_1): Handle builtins that are not
5508         covered by looking at the ESCAPED solution.
5509         (call_may_clobber_ref_p_1): Likewise.
5510         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
5511         Handle NULL_TREE offset.  Do not produce redundant constraints.
5512         (process_all_all_constraints): New helper function.
5513         (do_structure_copy): Use it.
5514         (handle_lhs_call): Likewise.
5515         (find_func_aliases): Handle some builtins with pointer arguments
5516         and/or return values explicitly.
5517
5518 2009-06-19  Ian Lance Taylor  <iant@google.com>
5519
5520         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
5521
5522 2009-06-19  Ian Lance Taylor  <iant@google.com>
5523
5524         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
5525
5526 2009-06-19  Ian Lance Taylor  <iant@google.com>
5527
5528         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
5529         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
5530         version.
5531
5532         * c-decl.c (finish_decl): If -Wc++-compat, warn about
5533         uninitialized const.
5534
5535 2009-06-19  Ian Lance Taylor  <iant@google.com>
5536
5537         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
5538         all uses.
5539
5540         * c-decl.c (in_struct, struct_types): Remove.
5541         (struct c_binding): Add in_struct field.
5542         (c_binding_ptr): Define type, along with VEC.
5543         (struct c_struct_parse_info): Define.
5544         (struct_parse_info): New static variable.
5545         (bind): Initialize in_struct field.
5546         (start_struct): Remove enclosing_in_struct and
5547         enclosing_struct_types parameters.  Add
5548         enclosing_struct_parse_info parameter.  Change all callers.  Set
5549         struct_parse_info rather than in_struct and struct_types.
5550         (grokfield): If -Wc++-compat and there is a symbol binding for the
5551         field name, set the in_struct flag and push it on the
5552         struct_parse_info->fields vector.
5553         (warn_cxx_compat_finish_struct): New static function.
5554         (finish_struct): Remove enclosing_in_struct and
5555         enclosing_struct_types parameters.  Add
5556         enclosing_struct_parse_info parameter.  Change all callers.  Don't
5557         set C_TYPE_DEFINED_IN_STRUCT here.  Call
5558         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
5559         parameter.  Only push on struct_types if warn_cxx_compat.
5560         (finish_enum): Only push on struct_types if warn_cxx_compat.
5561         (declspecs_add_type): Add loc parameter.  Change all callers.
5562         Change all error calls to error_at.  Pass loc, not input_location,
5563         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
5564         defined in a struct.  If -Wc++-compat and parsing a struct, record
5565         that a typedef name was used.
5566         * c-parser.c (c_parser_declspecs): Get location to pass to
5567         declspecs_add_type.
5568         (c_parser_struct_or_union_specifier): Update calls to start_struct
5569         and finish_struct.
5570         * c-tree.h (struct c_struct_parse_info): Declare.
5571         (finish_struct, start_struct): Update declarations.
5572         (declspecs_add_type): Update declaration.
5573
5574 2009-06-19  Ian Lance Taylor  <iant@google.com>
5575
5576         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
5577         variable with an anonymous type.
5578
5579 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
5580
5581         * see.c: Remove for real.
5582
5583 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
5584
5585         * optabs.h (enum optab_index): Add new OTI_significand.
5586         (significand_optab): Define corresponding macro.
5587         * optabs.c (init_optabs): Initialize significand_optab.
5588         * genopinit.c (optabs): Implement significand_optab using
5589         significand?f2 patterns.
5590         * builtins.c (expand_builtin_mathfn): Handle
5591         BUILT_IN_SIGNIFICAND{,F,L}.
5592         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
5593         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
5594
5595         * config/i386/i386.md (significandxf2, significand<mode>2): New
5596         expanders to implement significandf, significand and significandl
5597         built-ins as inline x87 intrinsics.
5598
5599 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
5600
5601         * config/avr/avr.c (avr_override_options): Remove setting value of
5602         PARAM_INLINE_CALL_COST.
5603
5604 2009-06-18  Richard Henderson  <rth@redhat.com>
5605
5606         PR 40488
5607         * tree-pass.h (TDF_ASMNAME): New.
5608         * tree-dump.c (dump_options): Add asmname.
5609         * doc/invoke.texi: Document it.
5610
5611         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
5612         (dump_decl_name): ...here.
5613         (dump_function_name): New flags arg; mind TDF_ASMNAME.
5614         (dump_generic_node): Update dump_function_name calls.
5615         (print_call_name): New flags arg; update all dump calls.
5616         * diagnostic.h (print_call_name): Update.
5617         * gimple-pretty-print.c (dump_gimple_call): Update.
5618
5619 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5620
5621         PR target/40470
5622         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
5623
5624 2009-06-18  Diego Novillo  <dnovillo@google.com>
5625
5626         * doc/plugins.texi: Document plugin_is_GPL_compatible.
5627         * plugin.c (str_license): Declare.
5628         (try_init_one_plugin): Assert that the symbol
5629         'plugin_is_GPL_compatible' exists.
5630
5631 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
5632
5633         * see.c: Remove.
5634         * Makefile.in (OBJS-common): Remove see.o.
5635         (see.o): Remove.
5636         * common.opt (fsee): Mark as preserved for backward compatibility.
5637         * opts.c (common_handle_option): Add OPT_fsee to the backward
5638         compatibility section.
5639         * passes.c (init_optimization_passes, pass_see): Remove pass.
5640         * timevar.def (TV_SEE): Remove.
5641         * tree-pass.h (pass_see): Remove declaration.
5642         * doc/invoke.texi (-fsee): Remove documentation.
5643
5644 2009-06-18  Martin Jambor  <mjambor@suse.cz>
5645
5646         * tree-sra.c: Include statistics.h
5647         (sra_stats): New variable.
5648         (sra_initialize): Clear sra_stats.
5649         (create_access_replacement): Increment sra_stats.replacements.
5650         (get_access_replacement): Do not return twice.
5651         (analyze_all_variable_accesses): Increment statistics counter by the
5652         number of scalarized aggregates.
5653         (generate_subtree_copies): Increment sra_stats.subtree_copies.
5654         (sra_modify_expr): Increment sra_stats.exprs.
5655         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
5656         (sra_modify_assign): Increment sra_stats.exprs,
5657         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
5658         (perform_intra_sra): Update statistics counters.
5659         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
5660
5661 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
5662
5663         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
5664         (arm_scalar_mode_supported_p): New function.
5665
5666 2009-06-18  Paul Brook  <paul@codesourcery.com>
5667             Sandra Loosemore  <sandra@codesourcery.com>
5668
5669         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
5670         (__extendhfsf2, __truncsfhf2): Define.
5671         * config/arm/fp16.c: New file.
5672         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
5673         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
5674
5675 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
5676
5677         * doc/extend.texi (Half-Precision): New section.
5678         * doc/invoke.texi (Option Summary): List -mfp16-format.
5679         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
5680         * config/arm/arm.opt (mfp16-format=): New.
5681         * config/arm/arm.c: Include intl.h.
5682         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
5683         (TARGET_INVALID_RETURN_TYPE): Redefine.
5684         (TARGET_PROMOTED_TYPE): Redefine.
5685         (TARGET_CONVERT_TO_TYPE): Redefine.
5686         (arm_fp16_format): Define.
5687         (all_fpus): Add entry for neon-fp16.
5688         (fp_model_for_fpu): Likewise.
5689         (struct fp16_format): Declare.
5690         (all_fp16_formats): Define.
5691         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
5692         functions.
5693         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
5694         and no ldrh.
5695         (arm_legitimate_index_p): Treat HFmode like HImode.
5696         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
5697         (coproc_secondary_reload_class): Special-case HFmode.
5698         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
5699         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
5700         (arm_init_fp16_builtins): New.
5701         (arm_init_builtins): Call it.
5702         (arm_invalid_parameter_type): New.
5703         (arm_invalid_return_type): New.
5704         (arm_promoted_type): New.
5705         (arm_convert_to_type).
5706         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
5707         format.
5708         (arm_emit_fp16_const): New function.
5709         (arm_mangle_type): Mangle __fp16 as "Dh".
5710         * config/arm/arm.h (TARGET_VFPD32): Make it know about
5711         FPUTYPE_NEON_FP16.
5712         (TARGET_NEON_FP16): New.
5713         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
5714         (enum fputype): Add FPUTYPE_NEON_FP16.
5715         (enum arm_fp16_format_type): Declare.
5716         (arm_fp16_format): Declare.
5717         (LARGEST_EXPONENT_IS_NORMAL): Define.
5718         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
5719         * config/arm/arm-modes.def (HFmode): Define.
5720         * config/arm/vfp.md: (*movhf_vfp): New.
5721         (extendhfsf2): New.
5722         (truncsfhf2): New.
5723         * config/arm/arm.md: (fpu): Add neon_fp16.
5724         (floatsihf2, floatdihf2): New.
5725         (fix_trunchfsi2, fix_trunchfdi2): New.
5726         (truncdfhf2): New.
5727         (extendhfdf2): New.
5728         (movhf): New.
5729         (*arm32_movhf): New.
5730         (*thumb1_movhf): New.
5731         (consttable_2): Add check for HFmode constants.
5732         (consttable_4): Handle HFmode constants.
5733
5734 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
5735
5736         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
5737
5738 2009-06-17  Olivier Hainque  <hainque@adacore.com>
5739
5740         * collect2.c (main): Use CONST_CAST2 to perform char ** to
5741         const char ** conversion in AIX specific section.
5742
5743 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
5744
5745         * config/i386/i386.c (ix86_special_builtin_type): Remove
5746         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
5747         (bdesc_special_args): Updated.
5748         (ix86_init_mmx_sse_builtins): Likewise.
5749         (ix86_expand_special_args_builtin): Likewise.
5750
5751 2009-06-17  Richard Henderson  <rth@redhat.com>
5752
5753         * tree-pretty-print.c (maybe_dump_asm_name): New.
5754         (dump_decl_name): Use it.
5755         (PRINT_FUNCTION_NAME): Merge into...
5756         (dump_function_name): ... here.  Use maybe_dump_asm_name.
5757
5758 2009-06-17  Cary Coutant  <ccoutant@google.com>
5759
5760         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
5761         Change caller.
5762         * debug.c (struct gcc_debug_hooks): Change placeholder for
5763         source_line hook.
5764         (debug_nothing_int_charstar_int): Replaced by...
5765         (debug_nothing_int_charstar_int_bool): ...this.
5766         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
5767         source_line prototype.
5768         (debug_nothing_int_charstar_int): Replaced by...
5769         (debug_nothing_int_charstar_int_bool): ...this.
5770         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
5771         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
5772         Output is_stmt operand when necessary.
5773         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
5774         (notice_source_line): Add is_stmt parameter.
5775         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
5776         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
5777         Change callers.
5778         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
5779         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
5780
5781 2009-06-17  Ian Lance Taylor  <iant@google.com>
5782
5783         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
5784         Change all uses.
5785         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
5786         call uses.
5787
5788 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
5789
5790         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
5791         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
5792         tree_strip_sign_nop_conversions and
5793         tree_ssa_strip_useless_type_conversions rather than stripping
5794         the operations here.
5795         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
5796         Declare them.
5797         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
5798         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
5799         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
5800         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
5801         functions.
5802
5803 2009-06-17  Michael Eager  <eager@eagercon.com>
5804
5805         * config/rs6000/constraints.md (register_constraint "d"): New.
5806         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
5807         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
5808         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
5809         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
5810         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
5811         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
5812         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
5813         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
5814         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
5815         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
5816         __fctiwz): Same.
5817         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
5818         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
5819         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
5820         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
5821         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
5822         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
5823         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
5824         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
5825         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
5826         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
5827         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
5828         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
5829         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
5830         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
5831
5832 2009-06-16  Ian Lance Taylor  <iant@google.com>
5833
5834         * profile.c (total_num_never_executed): Don't define.
5835         (compute_branch_probabilities): Don't count or print
5836         num_never_executed.
5837         (init_branch_prob): Don't set total_num_never_executed.
5838         (end_branch_prob): Don't print total_num_never_executed.
5839
5840 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
5841
5842         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
5843
5844 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
5845
5846         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
5847         (nabstd2_fpr): Same.
5848
5849 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
5850
5851         * expr.c (expand_assignment): Change complex type check.
5852
5853 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
5854
5855         * doc/plugins.texi (Building GCC plugins): Added new section.
5856
5857 2009-06-17  Ian Lance Taylor  <iant@google.com>
5858
5859         * c-pch.c (get_ident): Don't set size of templ array.
5860         (pch_init): Don't set size of partial_pch array.
5861
5862         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
5863         string constant to intialize an array whose size is the length of
5864         the string.
5865
5866 2009-06-17  Richard Guenther  <rguenther@suse.de>
5867
5868         PR tree-optimization/40389
5869         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
5870         to addressable types.
5871         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
5872
5873 2009-06-17  Richard Guenther  <rguenther@suse.de>
5874
5875         PR middle-end/40460
5876         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
5877         if there is no evolution of left in the loop bail out.
5878         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
5879         chrec_fold_multiply.
5880
5881 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
5882             Janis Johnson  <janis187@us.ibm.com>
5883
5884         PR target/39254
5885         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
5886         for the symbol ref of a constant that is the source of a move
5887         - nor for any other not-obvious-label-ref constants.
5888
5889 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
5890
5891         * plugin.c (position_pass): Skip newly inserted pass during list
5892         traversal to avoid repeated insertion.
5893
5894 2009-06-16  Ian Lance Taylor  <iant@google.com>
5895
5896         * vec.h (VEC_stack_alloc): Define different version if
5897         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
5898         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
5899         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
5900         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
5901
5902 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
5903
5904         * config.gcc (extra_headers): Add ia32intrin.h for x86.
5905
5906         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
5907         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
5908         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
5909         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
5910         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
5911         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
5912         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
5913         (bdesc_special_args): Add __builtin_ia32_rdtsc and
5914         __builtin_ia32_rdtscp.
5915         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
5916         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
5917         and __builtin_ia32_rorhi.
5918         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
5919         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
5920         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
5921         (ix86_expand_args_builtin): Likewise.
5922         (ix86_expand_special_args_builtin): Likewise.
5923
5924         * config/i386/i386.md (UNSPECV_RDTSCP): New.
5925         (UNSPECV_RDTSC): Likewise.
5926         (UNSPECV_RDPMC): Likewise.
5927         (*bsr): Renamed to ...
5928         (bsr): This
5929         (*bsr_rex64): Renamed to ...
5930         (bsr_rex64): This.
5931         (rdpmc): New.
5932         (*rdpmc): Likewise.
5933         (*rdpmc_rex64): Likewise.
5934         (rdtsc): Likewise.
5935         (*rdtsc): Likewise.
5936         (*rdtsc_rex64): Likewise.
5937         (rdtscp): Likewise.
5938         (*rdtscp): Likewise.
5939         (*rdtscp_rex64): Likewise.
5940
5941         * config/i386/ia32intrin.h: New.
5942
5943         * config/i386/x86intrin.h: Include <ia32intrin.h>.
5944
5945 2009-06-16  Ian Lance Taylor  <iant@google.com>
5946
5947         * ira-build.c (copy_info_to_removed_store_destinations):
5948         Initialize parent_a.
5949
5950 2009-06-16  Ian Lance Taylor  <iant@google.com>
5951
5952         * c-decl.c (grokdeclarator): Change size_varies to bool.
5953
5954 2009-06-16  Ian Lance Taylor  <iant@google.com>
5955
5956         * sel-sched.c: Make forward declarations of move_op_hooks and
5957         fur_hooks explicitly extern.
5958
5959 2009-06-16  Ian Lance Taylor  <iant@google.com>
5960
5961         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
5962         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
5963
5964 2009-06-16  Ian Lance Taylor  <iant@google.com>
5965
5966         * resource.c (mark_referenced_resources): Change
5967         include_delayed_effects parameter to bool.  Change all callers.
5968         (mark_end_of_function_resources): Likewise.
5969         * reorg.c (insn_references_resource_p): Likewise.
5970         (insn_sets_resource_p): Likewise.
5971         * resource.h (mark_referenced_resources): Update declaration.
5972         (mark_end_of_function_resources): Update declaration.
5973
5974 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
5975
5976         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
5977
5978 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
5979
5980         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
5981         GCC can bootstrap on AIX with GNU Binutils 2.20.
5982
5983 2009-06-16  Ian Lance Taylor  <iant@google.com>
5984
5985         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
5986
5987 2009-06-16  Ian Lance Taylor  <iant@google.com>
5988
5989         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
5990         inline, not extern inline.
5991         (exact_log2): Likewise.
5992         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
5993         test CLZ_HWI.
5994         (exact_log2): Likewise, but don't test CTZ_HWI.
5995
5996 2009-06-16  Ian Lance Taylor  <iant@google.com>
5997
5998         * bitmap.c (bitmap_clear): Don't declare as inline.
5999         * gimple.c (gimplify_assign): Likewise.
6000         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
6001         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
6002         (sched_scan_info): Remove duplicate definition.
6003
6004 2009-06-16  Ian Lance Taylor  <iant@google.com>
6005
6006         * c-common.c (skip_evaluation): Don't define.
6007         (c_inhibit_evaluation_warnings): Define global variable.
6008         (overflow_warning): Check c_inhibit_evaluation_warnings rather
6009         than skip_evaluation.
6010         (convert_and_check, warn_for_div_by_zero): Likewise.
6011         * c-common.h (skip_evaluation): Don't declare.
6012         (c_inhibit_evaluation_warnings): Declare.
6013         * c-parser.c (c_parser_typeof_specifier): Set
6014         c_inhibit_evaluation_warnings rather than skip_evaluation.
6015         (c_parser_conditional_expression): Likewise.
6016         (c_parser_binary_expression): Likewise.
6017         (c_parser_sizeof_expression): Likewise.
6018         (c_parser_alignof_expression): Likewise.
6019         * c-typeck.c (build_indirect_ref): Check
6020         c_inhibit_evaluation_warnings rather than skip_evaluation.
6021         (build_conditional_expr, build_binary_op): Likewise.
6022
6023 2009-06-16  Richard Guenther  <rguenther@suse.de>
6024
6025         * tree-ssa-alias.c (is_escape_site): Remove.
6026         * tree-ssa-alias.h (enum escape_type): Remove.
6027         (is_escape_site): Likewise.
6028         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
6029         via casts and asms without deferring to is_escape_site.
6030
6031 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
6032
6033         PR middle-end/40446
6034         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
6035         use gen_lowpart if op0 has complex mode.
6036
6037 2009-06-16  Richard Guenther  <rguenther@suse.de>
6038
6039         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
6040         variables add them to ESCAPED.
6041         (find_func_aliases): Do not make all indirectly stored values escaped.
6042
6043 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
6044
6045         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
6046         make_decl_one_only.
6047
6048 2009-06-16  Martin Jambor  <mjambor@suse.cz>
6049
6050         PR tree-optimization/40432
6051         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
6052         check whether we need to force gimple register operand.
6053
6054 2009-06-16  Martin Jambor  <mjambor@suse.cz>
6055
6056         PR tree-optimization/40413
6057         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
6058         build_ref_for_offset.
6059         (propagate_subacesses_accross_link): Fix a typo in a comment.
6060
6061 2009-06-16  Ira Rosen  <irar@il.ibm.com>
6062
6063         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
6064         with additional parameter.
6065         * tree-vectorizer.h (enum vect_def_type): Add new value
6066         vect_nested_cycle.
6067         (enum vect_relevant): Add comments.
6068         (vect_is_simple_reduction): Add new argument.
6069         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
6070         Detect nested cycles.
6071         (vect_is_simple_reduction): Update documentation, add an argument to
6072         distinguish inner-loop reduction from nested cycle, detect nested
6073         cycles, fix printings and indentation, don't swap operands in case
6074         of nested cycle.
6075         (get_initial_def_for_reduction): Handle subtraction.
6076         (vect_create_epilog_for_reduction): Add new argument to specify
6077         reduction variable.
6078         (vect_finalize_reduction): Handle subtraction, fix comments.
6079         (vectorizable_reduction): Handle nested cycles. In case of nested
6080         cycle keep track of the reduction variable position. Call
6081         vect_is_simple_reduction with additional parameter. Use original
6082         statement code in reduction epilogue for nested cycle. Call
6083         vect_create_epilog_for_reduction with additional parameter.
6084         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
6085         inner-loop vectorization.
6086         (vect_recog_widen_sum_pattern): Likewise.
6087         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
6088         and reductions.
6089         (vect_mark_stmts_to_be_vectorized): Likewise.
6090         (vect_get_vec_def_for_operand): Handle nested cycles.
6091
6092 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6093
6094         * doc/invoke.texi (Debugging Options): Fix option index entries
6095         for -fdump-statistics, -frandom-seed add entries for
6096         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
6097         (FRV Options): Fix entries for -mTLS, -mtls.
6098         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
6099         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
6100         (M68hc1x Options): Fix @itemx for -mnominmax.
6101         (MCore Options): Fix entry for -mno-lsim.
6102         (MMIX Options): Fix entry for -mabi=mmixware.
6103         (PDP-11 Options): Fix entry for -mbcopy-builtin.
6104
6105 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
6106
6107         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
6108         Mention the plugin mode of gengtype.
6109         * doc/gty.texi (Source Files Containing Type Information): Likewise.
6110         * gengtype.c: Updated copyright.
6111         (plugin_files, nb_plugin_files) Added new static variables.
6112         (measure_input_list) Care about plugin_files.
6113         (write_rtx_next): Added early return in plugin mode.
6114         (create_file): Updated copyright year in generated file. Added
6115         asserts.
6116         (oprintf): Added early return if NULL outf.
6117         (get_output_file_with_visibility): Care of plugin_files.
6118         (get_output_file_name): May return null.
6119         (write_local): Added early return.
6120         (put_mangled_filename): Ditto.
6121         (finish_root_table): Added check for base_files.
6122         (write_roots): Care about null when plugins.
6123         (main): Added plugin mode.
6124
6125 2009-06-15  Ian Lance Taylor  <iant@google.com>
6126
6127         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
6128         * gcov.c (read_count_file): Add braces around variables declared
6129         before label.
6130
6131         * c.opt (Wjump-misses-init): New warning.
6132         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
6133         -Wall and -Wc++-compat if not already set.
6134         (c_common_post_options): Clear warn_jump_misses_init if it was not
6135         set.
6136         * c-decl.c (struct c_binding): Change type field to a union with
6137         new label field.  Make it the first field in the struct.  Update
6138         references to type to use u.type instead.
6139         (struct c_spot_bindings): Define.
6140         (struct c_goto_bindings): Define.
6141         (c_goto_bindings_p): Define, along with VECs.
6142         (struct c_label_vars): Define.
6143         (struct c_scope): Add has_label_bindings field.
6144         (bind_label, set_spot_bindings): New static functions.
6145         (decl_jump_unsafe, update_spot_bindings): New static functions.
6146         (update_label_decls): New static function.
6147         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
6148         Update binding u.label field to shadowed field.
6149         (c_binding_start_stmt_expr): New function.
6150         (c_binding_end_stmt_expr): New function.
6151         (pushdecl): Don't call c_begin_vm_scope.
6152         (make_label): Add defining and p_label_vars parameters.  Change
6153         all callers.
6154         (lookup_label): Correct test for whether a label has not yet been
6155         defined.  Call bind_label rather than bind.
6156         (warn_about_goto): New static function.
6157         (lookup_label_for_goto): New function.
6158         (declare_label): Call bind_label rather than bind.
6159         (check_earlier_gotos): New static function.
6160         (define_label): Don't give errors about jumping into statement
6161         expressions or scopes of variably modified types.  Call
6162         set_spot_bindings and check_earlier_gotos.  Call bind_label
6163         instead of bind.  Don't set label_context_stack_se or
6164         label_context_stack_vm.
6165         (c_get_switch_bindings): New function.
6166         (c_release_switch_bindings): New function.
6167         (c_check_switch_jump_warnings): New function.
6168         (start_function): Don't set label_context_stack_se or
6169         label_context_stack_vm.
6170         (finish_function): Likewise.
6171         * c-typeck.c (label_context_stack_se): Don't define.
6172         (label_context_stack_vm): Don't define.
6173         (c_finish_goto_label): Call lookup_label_for_goto rather than
6174         lookup_label.  Don't give errors about jumping into a statement
6175         expression or the scope of a variably modified type.  Don't set
6176         label_context_stack_se or label_context_stack_vm.
6177         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
6178         fields.  Add bindings field.
6179         (c_start_case): Don't set deleted fields.  Set bindings field.
6180         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
6181         or blocked_vm.  Call c_check_switch_jump_warnings.
6182         (c_finish_case): Don't test blocked_stmt_expr field.  Call
6183         c_release_switch_bindings.
6184         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
6185         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
6186         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
6187         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
6188         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
6189         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
6190         (c_begin_vm_scope, c_end_vm_scope): Don't define.
6191         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
6192         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
6193         (C_DECL_UNJUMPABLE_VM): Don't define.
6194         (C_DECL_UNDEFINABLE_VM): Don't define.
6195         (struct c_label_list): Don't define.
6196         (struct c_label_context_se): Don't define.
6197         (struct c_label_context_vm): Don't define.
6198         (struct c_spot_bindings): Declare.
6199         (c_bindings_start_stmt_expr): Declare.
6200         (c_bindings_end_stmt_expr): Declare.
6201         (lookup_label_for_goto): Declare.
6202         (c_get_switch_bindings, c_release_switch_bindings): Declare.
6203         (c_check_switch_jump_warnings): Declare.
6204         (label_context_stack_se, label_context_stack_vm): Don't declare.
6205         (c_finish_goto_label): Update declaration.
6206         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
6207         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
6208         (Warning Options): Document -Wjump-misses-init.
6209
6210 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
6211
6212         * tree-object-size.c (addr_object_size): Fix a pasto in the last
6213         change.
6214
6215 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
6216
6217         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
6218
6219 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
6220
6221         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
6222
6223 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
6224
6225         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
6226
6227 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
6228
6229         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
6230         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
6231         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
6232         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
6233         * dwarf2asm.c (dw2_force_const_mem): Update call to
6234         make_decl_one_only.
6235         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
6236         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
6237         * langhooks.c (lhd_comdat_group): Remove.
6238         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
6239         * tree.h (DECL_COMDAT_GROUP): New.
6240         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
6241         (tree_decl_with_vis): Add comdat_group. Remove one_only.
6242         (make_decl_one_only): Change signature.
6243         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
6244         make_decl_one_only.
6245         (make_decl_one_only): Change signature.
6246         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
6247
6248 2009-06-15  Richard Guenther  <rguenther@suse.de>
6249
6250         PR middle-end/40439
6251         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
6252
6253 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6254
6255         * tree-ssa-math-opts.c: Remove extra divide.
6256
6257 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6258
6259         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
6260
6261 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6262
6263         * passes.c: Add bswap pass.
6264         * tree-pass.h: Add pass_optimize_bswap declaration.
6265         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
6266         Include rtl.h, expr.h and optabs.h for optab_handler check.
6267         (struct symbolic_number, pass_optimize_bswap): New definition.
6268         (do_shift_rotate, verify_symbolic_number_p): New functions.
6269         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
6270         (gate_optimize_bswap): New function.
6271         * tree.c (widest_int_cst_value): New function.
6272         * tree.h (widest_int_cst_value): Prototype added.
6273
6274 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
6275
6276         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
6277         REG_EQUAL/REG_EQUIV notes.
6278
6279 2009-06-14  Richard Guenther  <rguenther@suse.de>
6280
6281         PR middle-end/40389
6282         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
6283         has its address taken if NRV was applied and it is addressable.
6284         * tree-ssa-structalias.c (get_constraint_for_address_of): New
6285         function split out from ...
6286         (get_constraint_for_1): ... here.
6287         (handle_rhs_call): Use it to mark the return slot escaped if
6288         it is addressable and NRV was applied.
6289
6290 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
6291
6292         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
6293         Change first argument type to location_t.
6294         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
6295         Do not set input_location.
6296         Use loc instead of input_location throughout.
6297
6298 2009-06-13  Richard Guenther  <rguenther@suse.de>
6299
6300         PR tree-optimization/40421
6301         * tree-predcom.c (should_unroll_loop_p): Remove.
6302         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
6303
6304 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
6305
6306         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6307         Add location argument.
6308
6309 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
6310
6311         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
6312         build_decl.
6313         * config/s390/s390.c (s390_build_builtin_va_list): Same.
6314         (s390_gimplify_va_arg): Pass location to create_artificial_label.
6315         * config/spu/spu-protos.h: Add location to
6316         spu_resolve_overloaded_builtin.
6317         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
6318         spu_build_builtin_va_list.
6319         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
6320         argument.  Pass location to build_function_call_vec.
6321         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
6322         build_decl.
6323         (emit_fpu_switch): Same.
6324         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
6325         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
6326         to build_decl and create_artificial_label.
6327         (xtensa_gimplify_va_arg_expr): Same.
6328         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
6329         (xstormy16_gimplify_va_arg_expr): Same.
6330         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
6331         * config/arm/arm.c (arm_build_builtin_va_list): Same.
6332         * config/mips/mips.c (mips_build_builtin_va_list): Same.
6333         (mips16_build_function_stub): Same.
6334         (mips16_build_call_stub): Same.
6335
6336 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
6337
6338         PR target/40327
6339         * arm/constraints.md (Pa, Pb): New constraints.
6340         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a
6341         split pattern to deal with them.
6342
6343 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
6344
6345         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
6346         fix index entry for -Xpreprocessor.
6347
6348 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
6349
6350         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6351         Add location argument to build_decl call.
6352         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
6353         (rs6000_init_builtins): Same.
6354         (spe_init_builtins): Same.
6355         (rs6000_gimplify_va_arg): Add location argument to
6356         create_artificial_label call.
6357
6358 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
6359
6360         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
6361         * combine-stack-adj.c (pass_stack_adjustments): Use it.
6362         * Makefile.in: Fix GGC dependency for gcse.o.
6363
6364 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
6365
6366         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
6367         * gimple-pretty-print.c (dump_gimple_stmt): Same.
6368         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
6369         created.
6370         * c-parser.c (c_parser_binary_expression): Use current column while
6371         building binary operations.
6372         * common.opt (fshow-column): Enable by default.
6373         * tree-vrp.c (check_array_ref): Use warning_at.
6374         (check_array_bounds): Use location from call back if expr has no
6375         location.
6376         * tree.h: Add location argument to maybe_fold_*.
6377         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
6378         (maybe_fold_offset_to_array_ref): Add location argument and use it.
6379         (maybe_fold_offset_to_component_ref): Same.
6380         (maybe_fold_offset_to_reference): Same.
6381         (maybe_fold_offset_to_address): Same.
6382         (maybe_fold_stmt_indirect): Same.
6383         (maybe_fold_stmt_addition): Same.
6384         (fold_stmt_r): Pass location to maybe_fold_*.
6385         (fold_gimple_assign): Same.
6386         * c-tree.h: Add location argument to finish_decl,
6387         default_function_array_conversion, store_init_value.
6388         * c-decl.c (define_label): Use error_at.
6389         (c_make_fname_decl): Pass location to finish_decl.
6390         (finish_decl): New location argument.
6391         (build_compound_literal): Pass location to store_init_value.
6392         (grokdeclarator): Pass location to finish_decl.
6393         (grokfield): Same.
6394         * c-typeck.c (array_to_pointer_conversion): New location argument.
6395         (function_to_pointer_conversion): Same.
6396         (default_function_array_conversion): Same.
6397         (parser_build_unary_op): Pass location to overflow_warning.
6398         (parser_build_binary_op): Same.  Use warning_at.
6399         (build_unary_op): Pass location to array_to_pointer_conversion.
6400         (build_c_cast): Pass location to digest_init.
6401         (build_modify_expr): New location argument.
6402         (convert_for_assignment): Same.
6403         (store_init_value): Same.
6404         (digest_init): Same.
6405         (output_init_element): Pass location to digest_init and
6406         array_to_pointer_conversion.
6407         (c_finish_return): Pass location to convert_for_assignment.
6408         * gimplify.c (gimplify_conversion): Pass location to
6409         maybe_fold_offset_to_address.
6410         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
6411         to maybe_fold_stmt_addition.
6412         * c-omp.c (c_finish_omp_atomic): Pass new location to
6413         build_modify_expr.
6414         (c_finish_omp_for): Same.
6415         * c-common.c (overflow_warning): New argument.
6416         * c-common.h: New argument to build_modify_expr, overflow_warning.
6417         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
6418         finish_decl.
6419         (c_parser_initializer): Pass location to
6420         default_function_array_conversion.
6421         (c_parser_initelt): Same.
6422         (c_parser_initval): Same.
6423         (c_parser_asm_operands): Same.
6424         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
6425         (c_parser_conditional_expression): Same.
6426         (c_parser_binary_expression): Add location info to stack.  Use it.
6427         (c_parser_unary_expression): Pass location to
6428         default_function_array_conversion, parser_build_unary_op,
6429         build_indirect_ref, c_parser_postfix_expression_after_primary.
6430         (c_parser_postfix_expression_after_primary): New location argument.
6431         Use it.
6432         (c_parser_expression_conv): Pass location to
6433         default_function_array_conversion.
6434         (c_parser_expr_list): Same.
6435         (c_parser_omp_atomic): Same.
6436         (c_parser_omp_for_loop): Same.
6437         * c-tree.h: (struct c_declarator): Add comment to id_loc.
6438         (build_array_declarator): New argument.
6439         * c-decl.c (build_array_declarator): Add location argument.
6440         (grokdeclarator): Set id_loc for cdk_array.
6441         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
6442         build_array_declarator.
6443         * tree.c (build_omp_clause): Add location argument.
6444         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
6445         (OMP_CLAUSE_LOCATION): New macro.
6446         (struct tree_omp_clause): Add location field.
6447         (build_omp_clause): Add argument.
6448         * testsuite/gcc.dg/gomp/for-1.c: Fix column.
6449         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
6450         build_omp_clause.
6451         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
6452         (cp_parser_omp_clause_collapse): Same.
6453         (cp_parser_omp_clause_default): Same.
6454         (cp_parser_omp_clause_if): Same.
6455         (cp_parser_omp_clause_nowait): Same.
6456         (cp_parser_omp_clause_num_threads): Same.
6457         (cp_parser_omp_clause_ordered): Same.
6458         (cp_parser_omp_clause_schedule): Same.
6459         (cp_parser_omp_clause_untied): Same.
6460         (cp_parser_omp_for_loop): Same.
6461         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
6462         * c-tree.h (c_start_case): Add location argument.
6463         (c_process_expr_stmt): Same.
6464         (c_finish_goto_*): Same.
6465         * tree-parloops.c (initialize_reductions): Pass location to
6466         build_omp_clause.
6467         (create_parallel_loop): Same.
6468         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
6469         (gfc_trans_omp_reduction_list): Same.
6470         (gfc_trans_omp_clauses): Same.
6471         (gfc_trans_omp_do): Same.
6472         * c-typeck.c (c_finish_goto_label): Same.
6473         (c_finish_goto_ptr): New location argument.
6474         (c_start_case): Same.
6475         (emit_side_effect_warnings): Same.
6476         (c_process_expr_stmt): Same.
6477         (c_finish_stmt_expr): Same.
6478         (c_finish_omp_clauses): Use error_at instead of error.
6479         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
6480         build_omp_clause.
6481         * c-omp.c (c_split_parallel_clauses): New location argument.
6482         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
6483         to build_omp_clause.
6484         (convert_local_reference_stmt): Same.
6485         (convert_gimple_call): Same.
6486         * c-common.h (c_split_parallel_clauses): New argument.
6487         * c-parser.c (c_parser_statement_after_labels): Pass location to
6488         c_finish_goto_label.
6489         (c_parser_switch_statement): Pass location to c_start_case.
6490         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
6491         and c_process_expr_stmt.
6492         (c_parser_omp_variable_list): Add location argument.
6493         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
6494         (c_parser_omp_clause_default): Same.
6495         (c_parser_omp_clause_if): Same.
6496         (c_parser_omp_clause_num_threads): Same.
6497         (-c_parser_omp_clause_ordered): Same.
6498         (c_parser_omp_clause_reduction): Pass location to
6499         c_parser_omp_variable_list.
6500         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
6501         (c_parser_omp_clause_untied): Same.
6502         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
6503         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
6504
6505         * c-tree.h (check_for_loop_decls, undeclared_variable,
6506         build_component_ref, build_array_ref, build_external_ref,
6507         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
6508         build_conditional_expr, build_compound_expr, c_cast_expr,
6509         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
6510         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
6511         argument.
6512         * c-semantics.c (build_stmt): Same.
6513         (build_case_label): Same.
6514         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
6515         (undeclared_variable): New argument.
6516         (make_label): Same.
6517         (lookup_label): Pass location on down.
6518         (define_label): Same.
6519         (finish_decl): Same.
6520         (build_compound_literal): Same.
6521         (finish_struct): Same.
6522         (finish_function): Do not set location here.
6523         (check_for_loop_decls): New argument.
6524         * tree.c (save_expr): Set location.
6525         (build_empty_stmt): New argument.
6526         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
6527         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
6528         * builtins.c (gimplify_va_arg_expr): Use locations.
6529         (expand_builtin_sync_operation): Same.
6530         * c-typeck.c (build_component_ref): New argument.
6531         (build_array_ref): Same.
6532         (build_external_ref): Same.
6533         (c_expr_sizeof_expr): Same.
6534         (c_expr_sizeof_type): Same.
6535         (parser_build_unary_op): Same.
6536         (build_conditional_expr): Same.
6537         (build_compound_expr): Pass location on down.
6538         (build_compound_expr): New argument.
6539         (build_c_cast): Same.
6540         (c_cast_expr): Same.
6541         (build_asm_expr): Same.
6542         (c_finish_return): Same.
6543         (c_process_expr_stmt): Pass location on down.
6544         (c_finish_stmt_expr): New argument.
6545         (push_clenaup): Same.
6546         (c_finish_omp_parallel): Same.
6547         (c_finish_omp_task): Same.
6548         * gimplify.c (gimplify_call_expr): Pass location on down.
6549         * c-omp.c (c_finish_omp_master): New argument.
6550         (c_finish_omp_critical): Same.
6551         (c_finish_omp_ordered): Same.
6552         (c_finish_omp_barrier): Same.
6553         (-c_finish_omp_taskwait): Same.
6554         (c_finish_omp_atomic): Same.
6555         (c_finish_omp_flush): Same.
6556         * tree-inline.c (copy_tree_body_r): Pass location on down.
6557         (inline_forbidden_p): Remove use of input_location.
6558         * c-gimplify.c (c_build_bind_expr): New argument.
6559         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
6560         (c_sizeof_or_alignof_type): New argument.
6561         (c_alignof_expr): Same.
6562         (build_va_arg): Same.
6563         (c_add_case_label): Same.
6564         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
6565         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
6566         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
6567         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
6568         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
6569         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
6570         New argument.
6571         * stub-objc.c (objc_build_selector_expr): Same.
6572         (objc_build_throw_stmt): Same.
6573         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
6574         (c_parser_initelt): Same.
6575         (c_parser_compound_statement): Same.
6576         (c_parser_compound_statement_nostart): Same.
6577         (c_parser_label): Same.
6578         (c_parser_statement_after_labels): Same.
6579         (c_parser_if_body): Same.
6580         (c_parser_else_body): Same.
6581         (c_parser_if_statement): Same.
6582         (c_parser_switch_statement): Same.
6583         (c_parser_while_statement): Same.
6584         (c_parser_do_statement): Same.
6585         (c_parser_for_statement): Same.
6586         (c_parser_asm_statement): Same.
6587         (c_parser_conditional_expression): Same.
6588         (c_parser_binary_expression): Same.
6589         (c_parser_cast_expression): Same.
6590         (c_parser_unary_expression): Same.
6591         (c_parser_sizeof_expression): Same.
6592         (c_parser_alignof_expression): Same.
6593         (c_parser_postfix_expression): Same.
6594         (c_parser_expression): Same.
6595         (c_parser_objc_receiver): Same.
6596         (c_parser_omp_variable_list): Same.
6597         (c_parser_omp_structured_block): Same.
6598         (c_parser_omp_atomic): New argument.
6599         (c_parser_omp_barrier): Same.
6600         (c_parser_omp_critical): Same.
6601         (c_parser_omp_flush): Pass location on down.
6602         (c_parser_omp_for_loop): New argument.
6603         (c_parser_omp_for): Same.
6604         (c_parser_omp_master): Same.
6605         (c_parser_omp_ordered): Same.
6606         (c_parser_omp_sections_scope): Same.
6607         (c_parser_omp_sections): Same.
6608         (c_parser_omp_parallel): Same.
6609         (c_parser_omp_single): Same.
6610         (c_parser_omp_task): Same.
6611         (c_parser_omp_taskwait): Pass location on down.
6612         (c_parser_omp_construct): Same.
6613         (c_parser_omp_threadprivate): Same.
6614         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
6615         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
6616         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
6617         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
6618         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
6619         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
6620         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
6621         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
6622         config/i386/i386.c, stmt.c:
6623         Add location argument to the following function definitions and/or
6624         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
6625         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
6626         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
6627         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
6628         do_case, c_finish_bc_stmt, build_compound_literal,
6629         build_function_call.
6630         * c-decl.c (build_compound_literal): Add location argument.
6631         Make all diagnostic calls use location.
6632         (start_struct): Same.
6633         (finish_struct): Same.
6634         (start_enum): Same.
6635         (build_enumerator): Same.
6636         (start_function): Same.
6637         (grokdeclarator): Make all diagnostic calls use location.
6638         (store_parm_decls_oldstyle): Same.
6639         * c-typeck.c (build_function_call): Add location argument.
6640         Make all diagnostic calls use location.
6641         (do_case): Same.
6642         (c_finish_bc_stmt): Same.
6643         * tree-nested.c (get_trampoline_type): Add argument.
6644         Pass location to build_decl.
6645         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
6646         * rtl.h (RTL_LOCATION): New.
6647         * c-common.c (c_add_case_label): Add location argument.
6648         Make all diagnostic calls use location.
6649         * c-common.h: Add location argument to make_fname_decl, do_case,
6650         c_add_case_label, build_function_call, resolve_overloaded_builtin.
6651         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
6652         Set it appropriately for every case.  Pass enum_loc to start_enum
6653         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
6654         parser_xref_tag.
6655         (c_parser_struct_or_union_specifier): Save location.  Use it for
6656         start_struct, finish_struct, and parser_xref_tag.
6657
6658 2009-06-12  Ian Lance Taylor  <iant@google.com>
6659
6660         * fold-const.c (fold_unary): Rename local variable and to and_expr.
6661
6662         * c-opts.c (c_common_handle_option): For -Wc++-compat set
6663         cpp_opts->warn_cxx_operator_names.
6664
6665 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6666
6667         PR tree-opt/38865
6668         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
6669         is returns NULL and OP is a VCE, look through the VCE.
6670
6671 2009-06-12  Ian Lance Taylor  <iant@google.com>
6672
6673         PR bootstrap/40430
6674         * collect2.c (main): Use CONST_CAST2 in code inside #if
6675         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
6676
6677 2009-06-12  Joey Ye  <joey.ye@intel.com>
6678
6679         PR middle-end/39146
6680         * cfgexpand.c (get_decl_align_unit): Update
6681         max_used_stack_slot_alignment with align instead of
6682         stack_alignment_needed.
6683
6684         * function.c (assign_stack_local_1): Update
6685         max_used_stack_slot_alignment with alignment_in_bits instead
6686         of stack_alignment_needed.
6687         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
6688         here.
6689
6690 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
6691
6692         * dwarf2out.c (last_var_location_insn): New variable.
6693         (dwarf2out_end_epilogue): Clear last_var_location_insn.
6694         (dwarf2out_var_location): Don't record anything after last real
6695         insn.  Only change labels if there were any real instructions
6696         in between last note and this one, or if changed sections.
6697
6698 2009-06-11  Richard Henderson  <rth@redhat.com>
6699
6700         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
6701         note when storing the frame pointer in a register.
6702         (FRP): Don't redefine to nothing for epilogue.
6703         (alpha_expand_epilogue): Mark register and sp restores.
6704         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
6705
6706         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
6707         when gen_lowpart is needed.
6708
6709 2009-06-11  Richard Henderson  <rth@redhat.com>
6710
6711         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
6712
6713         * dwarf2out.c (need_data_align_sf_opcode): New.
6714         (div_data_align): Move earlier.
6715         (def_cfa_1, reg_save): Use it.
6716
6717 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
6718
6719         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
6720         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
6721         (ix86_handle_option): Handle OPT_mcrc32.
6722         (ix86_target_string): Add -mcrc32.
6723         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
6724
6725         * config/i386/i386.h (TARGET_CRC32): New.
6726
6727         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
6728         (sse4_2_crc32di): Likewise.
6729
6730         * config/i386/i386.opt (mcrc32): New.
6731
6732         * doc/invoke.texi: Document -mcrc32.
6733
6734 2009-06-11  Richard Henderson  <rth@redhat.com>
6735
6736         * common.opt (gdwarf-): Accept a version number.
6737         * doc/invoke.texi (gdwarf-): Update docs.
6738         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
6739         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
6740         version level, and record it.
6741
6742         * dwarf2.h (DW_CIE_VERSION): Remove.
6743         * dwarf2out.c (DWARF_VERSION): Remove.
6744         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
6745         (output_call_frame_info): Use CIE version 3 for dwarf3,
6746         or if the return register column is out of range for version 1.
6747         (dwarf_stack_op_name): Add all dwarf3 values.
6748         (DEBUG_PUBTYPES_SECTION): New.
6749         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
6750         encoding change for dwarf3.
6751         (output_die) [dw_val_class_die_ref]: Likewise.
6752         (output_compilation_unit_header): Emit correct version for dwarf3.
6753         (output_line_info): Likewise.
6754         (output_pubnames): Update for DWARF_VERSION removal.
6755         (output_aranges): Likewise.
6756         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
6757         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
6758         (dwarf2out_finish): Likewise.
6759
6760 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
6761
6762         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
6763         in r148403.
6764
6765 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
6766
6767         PR c/39252
6768         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
6769         * builtins.c (expand_builtin_unreachable): New function.
6770         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
6771         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
6772         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
6773         successors.
6774         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
6775         searching for missing barriers.
6776
6777 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6778
6779         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
6780         when -fprofile-generate* was passed.
6781         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
6782
6783 2009-06-11  Anthony Green  <green@moxielogic.com>
6784
6785         * config/moxie/moxie.md: Define length attribute for all instructions.
6786         (rCC): Define.
6787         (*b<cond:code>): Support limited branch ranges for new PC-relative
6788         branch instructions.
6789         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
6790
6791 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
6792
6793         * config/i386/i386.c (min_insn_size): Use get_attr_length
6794         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
6795         For __asm return 0.
6796
6797         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
6798         instead of emit_insn_before.
6799
6800 2009-06-10  Ian Lance Taylor  <iant@google.com>
6801
6802         PR bootstrap/40408
6803         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
6804         GIMPLE_SWITCH.
6805
6806 2009-06-10  Revital Eres  <eres@il.ibm.com>
6807
6808         * passes.c (init_optimization_passes): Reschedule
6809         predictive-commoning pass before complete unroll pass.
6810
6811 2009-06-10  Martin Jambor  <mjambor@suse.cz>
6812
6813         * cgraph.c (cgraph_node_can_be_local_p): New function.
6814         (cgraph_make_node_local): New function.
6815         * cgraph.h (cgraph_node_can_be_local_p): Declare.
6816         (cgraph_make_node_local): Declare.
6817
6818 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
6819
6820         * tree.h (tree_base): Add packed_flag and user_align fields.
6821         Decrease size of spare field.
6822         (TYPE_USER_ALIGN): Use user_align from tree_base.
6823         (DECL_USER_ALIGN): Likewise.
6824         (TYPE_PACKED): Use packed_flag from tree_base.
6825         (DECL_PACKED): Likewise.
6826         (tree_type): Delete packed_flag and user_align fields.  Widen
6827         precision field.  Widen mode field and shuffle fields to align
6828         mode on an 8-bit boundary.
6829         (tree_decl_common): Delete decl_flag_1 and user_align fields.
6830         Renumber decl_flag_* fields.  Fix comments.  Widen
6831         decl_common_unused field.
6832         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
6833         (DECL_EXTERNAL): Likewise.
6834         (DECL_BIT_FIELD): Likewise.
6835         (DECL_NONADDRESSABLE_P): Likewise.
6836         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
6837         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
6838
6839 2009-06-10  Ian Lance Taylor  <iant@google.com>
6840
6841         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
6842         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
6843         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
6844         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
6845         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
6846         DEF_VEC_ALLOC_FUNC_P.
6847         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
6848         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
6849         DEF_VEC_ALLOC_FUNC_O.
6850         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
6851         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
6852         DEF_VEC_ALLOC_FUNC_I.
6853         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
6854         (vec_stack_p_reserve_exact_1): Declare.
6855         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
6856         (vec_stack_free): Declare.
6857         (VEC_stack_alloc): Define.
6858         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
6859         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
6860         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
6861         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
6862         for void_p.
6863         (stack_vecs): New static variable.
6864         (vec_stack_p_reserve_exact_1): New function.
6865         (vec_stack_o_reserve_1): New static function.
6866         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
6867         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
6868         (vec_stack_free): New function.
6869         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
6870         (VEC_df_ref_stack_alloc): Define.
6871         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
6872         DEF_VEC_ALLOC_P_STACK.
6873         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
6874         (struct df_collection_rec): Change _vec fields to VEC.  Remove
6875         _use fields.
6876         (df_free_collection_rec): Adjust for new fields.
6877         (df_insn_rescan): Use new df_collection_rec fields.
6878         (df_notes_rescan, df_canonize_collection_rec): Likewise.
6879         (df_ref_create_structure, df_ref_record): Likewise.
6880         (df_get_conditional_uses, df_get_call_refs): Likewise.
6881         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
6882         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
6883         (df_record_exit_block_uses, df_bb_verify): Likewise.
6884         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
6885         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
6886         Remove count parameter.  Change return type to void.  Change all
6887         callers.
6888         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
6889         Remove count parameter.  Change return type to void.  Change all
6890         callers.
6891         (df_install_refs): Change old_vec parameter to VEC.  Remove count
6892         parameter.  Change all callers.
6893         (df_install_mws): Change old_vec parameter to VEC.  Remove count
6894         parameter.  Change all callers.
6895         (df_refs_verify): Change new_rec parameter to VEC.  Change call
6896         callers.
6897         (df_mws_verify): Likewise.
6898
6899 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
6900
6901         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
6902
6903 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
6904
6905         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
6906
6907 2009-06-10  Anthony Green  <green@moxielogic.com>
6908
6909         * config/moxie/crti.asm: New file.
6910         * config/moxie/crtn.asm: New file.
6911         * config/moxie/moxie.c: New file.
6912         * config/moxie/moxie.h: New file.
6913         * config/moxie/sfp-machine.h: New file.
6914         * config/moxie/moxie-protos.h: New file.
6915         * config/moxie/t-moxie: Created.
6916         * config/moxie/t-moxie-softfp: Created.
6917         * config/moxie/moxie.md: Created.
6918         * config/moxie/constraints.md: Created.
6919         * config.gcc: Add moxie support.
6920         * doc/md.texi (Machine Constraints): Add moxie constraints.
6921         * doc/contrib.texi (Contributors): Mention moxie port.
6922         * doc/install.texi (Specific): Mention the moxie port.
6923
6924 2009-06-09  Ian Lance Taylor  <iant@google.com>
6925
6926         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
6927         compiling with C++.
6928         * optabs.c (optab_table): Only use designated initializers if
6929         HAVE_DESIGNATED_INITIALIZERS is defined.
6930         (convert_optab_table): Likewise.
6931         (init_optabs): Always call init_insn_codes if
6932         HAVE_DESIGNATED_INITIALIZERS is not defined.
6933
6934 2009-06-09  Ian Lance Taylor  <iant@google.com>
6935
6936         * targhooks.c (default_builtin_vectorized_function): Change fn
6937         parameter to unsigned int.
6938         (default_builtin_vectorized_conversion): Change code parameter to
6939         unsigned int.
6940         (default_builtin_reciprocal): Change fn parameter to unsigned int.
6941         * targhooks.h: Update declarations.
6942         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
6943         parameter to unsigned int.
6944
6945         * c-typeck.c (comptypes_check_enum_int): New static function.
6946         (comptypes_internal): Add enum_and_int_p parameter.  Change all
6947         callers.
6948         (comp_target_types): Add location parameter.  Change all callers.
6949         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
6950         Change all callers.
6951         (function_types_compatible_p, type_lists_compatible_p): Likewise.
6952         (build_conditional_expr): Add colon_loc parameter.  Change all
6953         callers.
6954         (convert_for_assignment): Add location parameter.  Change all callers.
6955         * c-parser.c (c_parser_conditional_expression): Pass location of
6956         colon to build_conditional_expr.
6957         * c-tree.h (build_conditional_expr): Update declaration.
6958
6959 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
6960
6961         * graphite.c: Revert previous patch.
6962
6963 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
6964
6965         PR bootstrap/40103
6966         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
6967
6968 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
6969
6970         * tree-ssa-loop-prefetch.c
6971         (loop_prefetch_arrays): Fixed a portability problem in printf format
6972         string.
6973
6974 2009-06-09  Martin Jambor  <mjambor@suse.cz>
6975
6976         PR tree-optimization/40351
6977         * tree-sra.c (propagate_subacesses_accross_link): Check that a
6978         refrence to a potential artifical subaccess can be constructed.
6979
6980 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
6981
6982         * config/sh/sh-protos.h (sh_optimization_options): Declare.
6983         (sh_override_options): Likewise.
6984         * config/sh/sh.c: Include params.h.
6985         (sh_optimization_options): New.
6986         (sh_override_options): Likewise.
6987         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
6988         (OVERRIDE_OPTIONS): Use sh_override_options.
6989
6990 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
6991
6992         * dwarf2out.c (emit_cfa_remember): New variable.
6993         (add_fde_cfi): If emit_cfa_remember, recurse to add
6994         DW_CFA_remember_state first.
6995         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
6996         instead just set emit_cfa_remember.
6997
6998 2009-06-08  Jan Hubicka  <jh@suse.cz>
6999
7000         PR debug/40126
7001         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
7002
7003 2009-06-08  Jan Hubicka  <jh@suse.cz>
7004
7005         PR middle-end/39834
7006         * cgraphunit.c (save_inline_function_body): Do not copy transform
7007         hooks for saved inline bodies.
7008         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
7009         for given function.
7010
7011 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
7012
7013         * jump.c (returnjump_p): Handle delayed branches.  Add missing
7014         function comment.
7015
7016 2009-06-08  Jan Hubicka  <jh@suse.cz>
7017
7018         PR middle-end/40102
7019         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
7020         original node might've been modified.
7021         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
7022
7023 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
7024
7025         * tree-object-size.c (addr_object_size): Add OSI argument.
7026         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
7027         (compute_builtin_object_size, expr_object_size): Adjust callers.
7028         (plus_stmt_object_size): Call addr_object_size instead of
7029         compute_builtin_object_size.
7030
7031 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
7032             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
7033
7034         * tree-ssa-loop-prefetch.c
7035         (gather_memory_references): Introduced a counter for the number of
7036         memory references.
7037         (anything_to_prefetch_p): Introduced a counter for the number of
7038         prefetches.
7039         (is_loop_prefetching_profitable): New function with a cost model
7040         for prefetching.
7041         (loop_prefetch_arrays): Use the new cost model to determine if
7042         prefetching is profitable.
7043         * params.def (MIN_INSN_TO_PREFETCH_RATIO,
7044         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
7045         * params.h (MIN_INSN_TO_PREFETCH_RATIO,
7046         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
7047         * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
7048         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
7049
7050 2009-06-08  Michael Matz  <matz@suse.de>
7051
7052         PR debug/40012
7053         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
7054         partitions use the same.
7055         (expand_one_var): Deal with DECL_RTL sometimes begin set also
7056         for basevars of SSA_NAMEs.
7057         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
7058         to not expand them twice.
7059         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
7060         multiple places.
7061
7062 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
7063
7064         * common.opt (fcompare-debug=, fcompare-debug-second): New.
7065         (fdump-final-insns=, gtoggle): New.
7066         * doc/invoke.texi: Document them.
7067         * final.c (rest_of_clean_state): Dump final insn stream.
7068         * gcc.c (invoke_as): Hook in -fcompare-debug.
7069         (static_spec_functions): Add compare-debug-dump-opt,
7070         compare-debug-self-opt and compare-debug-auxbase-opt.
7071         (compare_debug, compare_debug_second, compare_debug_opt): New.
7072         (switches_debug_check, n_switches_debug_check): New.
7073         (debug_auxbase_opt, debug_check_temp_file): New.
7074         (process_command): Handle -fno-compare-debug, -fcompare-debug and
7075         -fcompare-debug=*.
7076         (do_self_spec): Handle arguments after switches.
7077         (do_spec_1): Add .gk extension to temp file basenames for compare.
7078         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
7079         (cc1_options): Use it instead of normal auxbase computation for
7080         the second compare-debug compilation.
7081         (compare_files): New.
7082         (main): Set up and implement compare debug mode.
7083         (compare_debug_dump_opt_spec_function): New.
7084         (compare_debug_self_opt_spec_function): New.
7085         (compare_debug_auxbase_opt_spec_function): New.
7086         * toplev.c (process_options): Handle flag_gtoggle,
7087         flag_dump_final_insns.
7088         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
7089         during -fcompare-debug-second compilation.
7090
7091 2009-06-07  Ian Lance Taylor  <iant@google.com>
7092
7093         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
7094         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
7095
7096         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
7097         with no default node.  Change warning with %H to warning_at.
7098         Don't clear warn_switch around case checking.
7099         * doc/invoke.texi (Warning Options): Clarify distinction between
7100         -Wswitch and -Wswitch-enum.
7101
7102 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7103
7104         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
7105
7106 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7107
7108         * gbl-ctors.h: Add header guard.
7109
7110 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7111
7112         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
7113         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
7114         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
7115         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
7116         prototypes for removed functions.
7117         (expressions_equal_p): Move to ...
7118         * tree-ssa-sccvn.h: ... here and ...
7119         * matrix-reorg.c: ... adjust includes.
7120
7121 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7122
7123         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
7124
7125 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7126
7127         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
7128         (finish_function): Remove erroneous whitespace.
7129
7130 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7131
7132         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
7133         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
7134
7135 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7136
7137         * errors.c (internal_error): Commentary typo fix.
7138         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
7139         * tree-ssa-pre.c: Ditto.
7140
7141 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7142
7143         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
7144         them is supposed to hold actual statements.
7145
7146 2009-06-06  Ian Lance Taylor  <iant@google.com>
7147
7148         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
7149         empty statements can now have attributes.
7150
7151 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
7152
7153         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
7154         * config/mips/mips.md: Ditto.
7155
7156 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
7157
7158         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
7159         _RELOCATABLE.
7160         (__eabi_uconvert): Likewise.
7161
7162 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
7163
7164         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
7165         CFI_* definitions with IN_GCC.
7166
7167 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
7168
7169         * xcoffout.h (xcoffout_source_line): Update prototype.
7170
7171 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7172
7173         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
7174         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
7175
7176 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
7177
7178         PR middle-end/40340
7179         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
7180         inlined_function_outer_scope_p blocks for artificial inlines
7181         even at -g0/-g1.
7182         * tree.c (tree_nonartificial_location): Rewrite using
7183         block_nonartificial_location.
7184
7185 2009-06-05  Revital Eres  <eres@il.ibm.com>
7186             Leehod Baruch  <leehod@il.ibm.com>
7187
7188         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
7189         (expand_expr_real_1): Remove comment.
7190         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7191         Vectorize misaligned access when the target supports it.
7192         (vect_supportable_dr_alignment): Check for unaligned access support.
7193         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
7194         and remove asset.
7195
7196 2009-06-05  Julian Brown  <julian@codesourcery.com>
7197
7198         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
7199         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
7200
7201 2009-06-05  Richard Guenther  <rguenther@suse.de>
7202
7203         PR bootstrap/40350
7204         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
7205         as possibly unused.
7206
7207 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
7208
7209         * config/s390/s390.c (global_not_special_regno_p): New static inline.
7210         (save_gprs): Don't tell unwinder when a global register is saved.
7211         (s390_emit_epilogue): Emit needed epilogue unwind info.
7212
7213 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
7214
7215         * dwarf2out.c (deferred_asm_name): New.
7216         (add_name_and_src_coords_attributes): Defer creation of
7217         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
7218         computed yet.
7219         (move_linkage_attr): New.
7220         (dwarf2out_finish): Revisit deferrals and emit attributes at the
7221         right place.
7222
7223 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
7224
7225         * tree-nested.c (finalize_nesting_tree_1): Declare the
7226         frame_decl in the binding tree.
7227
7228 2009-06-04  Cary Coutant  <ccoutant@google.com>
7229
7230         * basic-block.h (struct basic_block_def): Add discriminator field.
7231         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
7232         callers.
7233         * debug.c (do_nothing_debug_hooks): Add additional entry.
7234         (debug_nothing_int_charstar_int): New function.
7235         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
7236         (debug_nothing_int_charstar_int): New declaration.
7237         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
7238         discriminator value in .loc directive.
7239         * final.c (last_discriminator): New variable.
7240         (discriminator): New variable.
7241         (final_start_function): Initialize above variables, pass current
7242         discriminator to debug hook.
7243         (notice_source_line): Check for discriminator change.
7244         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
7245         * sdbout.c (sdbout_source_line): New parameter.
7246         * tree-cfg.c (struct locus_discrim_map): New structure type.
7247         (discriminator_per_locus): New hash table.
7248         (build_gimple_cfg): Allocate and free discriminator hash table.
7249         (make_edges): Call assign_discriminator.
7250         (locus_map_hash): New function.
7251         (locus_map_eq): New function.
7252         (next_discriminator_for_locus): New function.
7253         (same_line_p): New function.
7254         (assign_discriminator): New function.
7255         (make_cond_expr_edges): Call assign_discriminator.
7256         (make_gimple_switch_edges): Likewise.
7257         (first_non_label_stmt): New function.
7258         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
7259         all callers.
7260         * xcoffout.c (xcoffout_source_line): Add new parameter.
7261
7262         * configure.ac (gcc_cv_as_discriminator): New configury check for
7263         gas support for discriminator.
7264         * configure: Regenerate.
7265         * config.in: Regenerate.
7266
7267 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7268
7269         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
7270         val after checking for integers.
7271
7272 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
7273
7274         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
7275         X64_REGPARM_MAX.
7276         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
7277         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
7278         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
7279         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
7280         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
7281         X64_SSE_REGPARM_MAX.
7282         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
7283         X64_SSE_REGPARM_MAX.
7284
7285 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
7286
7287         * gcc.c (report_times_to_file): New.
7288         (execute): Implement it.
7289         (process_command): Support -time=.
7290         * doc/invoke.texi: Document it.
7291
7292 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
7293
7294         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
7295         that have value exprs.
7296
7297 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
7298
7299         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
7300         declarations for constants until...
7301         (dw2_output_indirect_constant_1): ... this point.
7302
7303 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
7304
7305         PR target/10242
7306         * arm.md (arm_addsi3): Don't try to split an add with an
7307         eliminable register until after reload has completed.
7308
7309 2009-06-03  Ian Lance Taylor  <iant@google.com>
7310
7311         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
7312         * genattrtab.c (write_length_unit_log): Likewise.
7313         * genchecksum.c (dosum): Likewise.
7314         * gengtype.c (write_rtx_next): Likewise.
7315         (finish_root_table, write_roots): Likewise.
7316         * gimple.c (gimple_ops_offset_): Likewise.
7317         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
7318         * config/arc/arc.c (arc_attribute_table): Likewise.
7319         * config/arm/arm.c (arm_attribute_table): Likewise.
7320         * config/avr/avr.c (avr_attribute_table): Likewise.
7321         * config/crx/crx.c (crx_attribute_table): Likewise.
7322         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
7323         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
7324         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
7325         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
7326         * config/sh/sh.c (sh_attribute_table): Likewise.
7327         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
7328         * config/spu/spu.c (spu_attribute_table): Likewise.
7329         * config/v850/v850.c (v850_attribute_table): Likewise.
7330
7331         * config/alpha/alpha.c (vms_attribute_table): Make static.
7332         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
7333         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
7334         * config/mips/mips.c (mips_attribute_table): Likewise.
7335
7336         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
7337         $(SYSTEM_H).
7338         (cc1-checksum.o): Likewise.
7339
7340 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
7341
7342         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
7343
7344 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
7345
7346         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
7347         insn if it is changing sp.  Use gen_add3_insn instead of
7348         conditionally gen_addsi3 and gen_adddi3.
7349         (offset_below_red_zone_p): New static inline function.
7350         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
7351         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
7352         * config/rs6000/ppc-asm.h: Include auto-host.h.
7353         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
7354         CFI_RESTORE): Define.
7355         * config/rs6000/crtresxgpr.asm: Add unwind info.
7356         * config/rs6000/crtresxfpr.asm: Likewise.
7357         * config/rs6000/crtresgpr.asm: Likewise.
7358         * config/rs6000/crtresfpr.asm: Likewise.
7359         * config/rs6000/crtsavgpr.asm: Likewise.
7360         * config/rs6000/crtsavfpr.asm: Likewise.
7361
7362         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
7363         argument of DWARF2_FRAME_REG_OUT macros.
7364
7365 2009-06-03  Julian Brown  <julian@codesourcery.com>
7366
7367         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
7368         words or less (including TImode) in core registers.
7369
7370 2009-06-03  Richard Guenther  <rguenther@suse.de>
7371
7372         PR middle-end/40328
7373         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
7374
7375 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
7376
7377         * statistics.c (statistics_counter_event): Do not record event
7378         in pass dump if its number == -1.
7379         (curr_statistics_hash): Add assert that we never get passes
7380         with static number == -1.
7381
7382 2009-06-03  Richard Guenther  <rguenther@suse.de>
7383             Andrey Belevantsev  <abel@ispras.ru>
7384
7385         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
7386         non-BLKmode arrays addressable.
7387
7388 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
7389
7390         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
7391         * config/m68k/m68k.h: ... here.
7392         * testsuite/gcc.dg/falign-labels.c (dg-options): Don't restrict for
7393         m68k and fido.
7394
7395 2009-06-03  Martin Jambor  <mjambor@suse.cz>
7396
7397         PR tree-optimization/40323
7398         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
7399         assignment.
7400
7401 2009-06-03  Richard Guenther  <rguenther@suse.de>
7402
7403         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
7404         consistently.
7405
7406 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
7407
7408         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
7409         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
7410         JUMP_TABLE_DATA_P where applicable.
7411         * config/sh/sh.c: Ditto.
7412         * config/sh/sh.h: Ditto.
7413         * config/sh/sh.md: Ditto.
7414         * config/sh/symbian.c: Ditto.
7415
7416 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
7417
7418         * config/i386/driver-i386.c (describe_cache): Optimize
7419         concatenation of strings.  Use snprintf instead of sprintf.
7420         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
7421         target when not compiling with GCC.
7422
7423 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
7424
7425         * config/sh/sh.c: Revert last change.
7426         (sh_expand_epilogue): Emit a blockage insn before the frame
7427         pointer adjustment unconditionally.
7428
7429 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
7430
7431         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
7432         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
7433         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
7434         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
7435         to COLLECT_GCC_OPTIONS.
7436
7437 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
7438
7439         * collect2.c (target_system_root): New variable.
7440         (main): Handle --sysroot=.
7441         (ignore_library): Strip the sysroot from the library path.
7442
7443 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
7444
7445         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
7446         (collect2.o): Depend on collect2-aix.h.
7447         (collect2-aix.o): New rule.
7448         * collect2-aix.h: New file.
7449         * collect2-aix.c: Likewise.
7450         * collect2.c: Include collect2-aix.h.  Don't undefine
7451         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
7452         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
7453         Use TARGET_AIX_VERSION instead of _AIX51.
7454         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
7455         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
7456         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
7457         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
7458         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
7459
7460 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
7461
7462         * collect2.c (ignore_library): Avoid premature post-increment
7463         and null deference.
7464
7465 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
7466
7467         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
7468         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
7469         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
7470         CROSS_DIRECTORY_STRUCTURE too.
7471         (LINK_LIBG_SPEC): Likewise.
7472         (LIB_SPEC): Add %R to sysroot paths.
7473         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
7474         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
7475         * config/rs6000/aix51.h: As for aix43.h.
7476         * config/rs6000/aix52.h: Likewise.
7477         * config/rs6000/aix53.h: Likewise.
7478         * config/rs6000/aix61.h: Likewise.
7479         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
7480         to the beginning of sysroot paths.
7481
7482 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
7483
7484         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
7485         INSN_LISTs that are out of the REG_NOTE range.
7486
7487 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
7488
7489         * loop-unroll.c (struct iv_to_split): Add pointer to next.
7490         (struct var_to_expand): Likewise.
7491         (struct opt_info): Add head and tail for linked lists of the above.
7492         (analyze_insn_to_expand_var): Initialize next.
7493         (analyze_iv_to_split_insn): Likewise.
7494         (analyze_insns_in_loop): Create linked lists.
7495         (allocate_basic_variable): Simplify for use without hash table.
7496         (insert_var_expansion_initialization): Likewise, make it type-safer.
7497         (combine_var_copies_in_loop_exit): Likewise.
7498         (apply_opt_in_copies): Walk lists rather than hash tables.
7499         (release_var_copies): Simplified and inlined by hand into...
7500         (free_opt_info): ... this function.
7501
7502 2009-06-02  Richard Guenther  <rguenther@suse.de>
7503
7504         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
7505         for field decls.
7506
7507 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
7508
7509         * cfgexpand.c (gimple_expand_cfg): Discard the source location
7510         only for builtins that are not overridden.
7511
7512 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
7513
7514         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
7515         label string.
7516
7517 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
7518
7519         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
7520
7521 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
7522
7523         * combine.c (move_deaths): Compare LUIDs within the same BB only.
7524
7525 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
7526
7527         * common.opt (fdump-unnumbered-links): New.
7528         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
7529         * print-rtl.c (flag_dump_unnumbered_links): New.
7530         (print_rtx): Test it.
7531
7532 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
7533
7534         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
7535         push/pop multiple to 8-byte alignment.
7536
7537 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
7538
7539         * config/i386/i386.c (queued_cfa_restores): New static variable.
7540         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
7541         functions.
7542         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
7543         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
7544         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
7545         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
7546         note unconditionally.
7547         (ix86_emit_restore_regs_using_mov): Likewise.
7548         (ix86_emit_restore_sse_regs_using_mov): Likewise.
7549         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
7550         it through to ix86_emit_restore_reg_using_pop.
7551         (ix86_emit_leave): Add RED_OFFSET argument.  Call
7552         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
7553         instead of adding REG_CFA_OFFSET note unconditionally.
7554         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
7555         the above functions.  Call ix86_add_queued_cfa_restore_notes when
7556         needed.
7557
7558         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
7559         force output of the label even for dwarf2out_do_cfi_asm.
7560         (add_fde_cfi): If -g2 and above and cfi might change CFA,
7561         force creation of CFI label and chain DW_CFA_set_loc jumping to it
7562         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
7563         caller.
7564         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
7565         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
7566         dwarf2out_cfi_label callers.
7567         * tree.h (dwarf2out_cfi_label): Adjust prototype.
7568         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
7569         Adjust dwarf2out_cfi_label callers.
7570         * config/vax/vax.c (vax_output_function_prologue): Likewise.
7571
7572         * config/i386/i386.h (struct machine_cfa_state,
7573         struct machine_function): Guard with ifndef USED_FOR_TARGET
7574         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
7575
7576         PR other/40024
7577         * emutls.c (__emutls_get_address): Change arr->size to mean number
7578         of allocated arr->data entries instead of # of slots + 1.
7579
7580         PR middle-end/40316
7581         * recog.c (peep2_reinit_state): New function.
7582         (peephole2_init_state): Use it at the end of a basic block and also
7583         when seeing a RTX_FRAME_RELATED_P insn.
7584
7585 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
7586
7587         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
7588         fixuns_truncrfdi2): New.
7589         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
7590         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
7591         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
7592         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
7593         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
7594         *recip_approx): Remove.
7595         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
7596         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
7597         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
7598         move to div.md.
7599         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
7600         setf_exp_rf): New.
7601
7602 2009-06-01  Ian Lance Taylor  <iant@google.com>
7603
7604         * attribs.c (register_attribute): Use CONST_CAST.
7605         * collect2.c (main): Use CONST_CAST2.
7606         (scan_prog_file): Likewise.
7607         * gcc.c (process_command, main): Likewise.
7608         * toplev.c (toplev_main): Likewise.
7609
7610         * c-typeck.c (handle_warn_cast_qual): New static function,
7611         partially broken out of build_c_cast.
7612         (build_c_cast): Call handle_warn_cast_qual.
7613         * doc/invoke.texi (Warning Options): Document new effect of
7614         -Wcast-qual.
7615
7616 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
7617
7618         * diagnostic.c (diagnostic_build_prefix): Always print columns.
7619         (diagnostic_report_current_module): Print columns.
7620         * common.opt (flag_show_column): Enable by default.
7621
7622 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
7623
7624         * alias.c (find_base_term): Check for NULL term before returning.
7625
7626 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
7627
7628         Revert due to PR40320:
7629         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
7630         * calls.c (emit_library_call_value_1): Don't force_operand for move
7631         and push insns.
7632
7633 2009-06-01  Olivier Hainque  <hainque@adacore.com>
7634             Eric Botcazou  <ebotcazou@adacore.com>
7635
7636         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
7637         to be processed as a bitfield for constructor output purposes.
7638         * output.h (initializer_constant_valid_for_bitfield_p): Declare
7639         new function.
7640         * varasm.c (oc_local_state): New type, output_constructor
7641         local state to support communication with helpers.
7642         (oc_outer_state): New type, output_constructor outer state of
7643         relevance in recursive calls.
7644         (output_constructor_array_range): New output_constructor helper,
7645         extracted code for an array range element.
7646         (output_constructor_regular_field): New output_constructor helper,
7647         extracted code for an element that is not a bitfield.
7648         (output_constructor_bitfield): New output_constructor helper,
7649         extracted code for a bitfield element.  Accept an OUTER state
7650         argument for recursive processing.  Recurse on record or array
7651         CONSTRUCTOR values, possibly past noop conversions.
7652         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
7653         VALUE is a valid constant-valued expression for use in a static
7654         bit-field initializer.
7655         (output_constructor): Rework to use helpers.  Accept and honor an
7656         OUTER state argument for recursive calls.  Return total size.  Be
7657         prepared for nested constructors initializing bitfields.
7658         (output_constant): Feed OUTER in calls to output_constructor.
7659
7660 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
7661
7662         * calls.c (emit_library_call_value_1): Don't force_operand for move
7663         and push insns.
7664
7665 2009-06-01  Nick Clifton  <nickc@redhat.com>
7666
7667         * doc/invoke.texi (IA-64 Options): Fix typo.
7668
7669 2009-06-01  Ira Rosen  <irar@il.ibm.com>
7670
7671         PR tree-optimization/39129
7672         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
7673         printed message.
7674         (vect_do_peeling_for_loop_bound): Use
7675         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
7676         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
7677         (vect_loop_versioning): Likewise.
7678         (vect_create_cond_for_alias_checks): Fix indentation.
7679         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
7680         macros.
7681         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
7682         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
7683         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
7684         "control flow in loop".
7685         (vect_estimate_min_profitable_iters): Use
7686         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
7687         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
7688         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
7689         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
7690         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
7691         statement belongs to a group of strided accesses with the exact code
7692         check.
7693         (vectorizable_load): Likewise.
7694         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
7695         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
7696
7697 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
7698
7699         * config/freebsd-stdint.h: New file.
7700         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
7701         Add freebsd-stdint.h to tm_file.
7702
7703 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
7704
7705         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
7706         (thumb2_extendhidi2): Likewise.
7707
7708 2009-05-31  Ian Lance Taylor  <iant@google.com>
7709
7710         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
7711
7712 2009-05-31  Ian Lance Taylor  <iant@google.com>
7713
7714         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
7715         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
7716         (ipa-reference.o): Depend upon gt-ipa-reference.h.
7717
7718 2009-05-31  Jason Merrill  <jason@redhat.com>
7719
7720         * tree-pretty-print.c (print_call_name): Take the callee, not the
7721         call itself.  Make non-static.  Use dump_function_name for functions.
7722         (dump_generic_node): Adjust.
7723         * diagnostic.h: Declare print_call_name.
7724         * gimple-pretty-print.c (dump_gimple_call): Use it.
7725
7726 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
7727
7728         * config/sh/sh.md (ashldi3_std): New define_expand.
7729         (ashldi3): Use it.
7730
7731 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
7732
7733         PR target/40313
7734         * config/sh/sh.c: Include debug.h.
7735         (sh_expand_epilogue): Emit a blockage insn before the frame
7736         pointer adjustment also when dwarf2out_do_frame returns true.
7737
7738 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
7739
7740         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
7741         (thumb2_extendqidi2): New pattern.
7742
7743 2009-05-31  Ira Rosen  <irar@il.ibm.com>
7744
7745         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
7746         mark phis for renaming.
7747         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
7748         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
7749         Call mark_sym_for_renaming.
7750         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
7751         * tree-vect-loop.c (vect_transform_loop): Remove
7752         vect_memsyms_to_rename initialization and a call to
7753         mark_set_for_renaming.
7754
7755 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
7756
7757         PR middle-end/40304
7758         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
7759         frame related even if !set_cfa && style < 0.
7760
7761 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
7762
7763         * config/i386/mingw-tls.c: New file.
7764         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
7765         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
7766         defining _WIN32 but not __CYGWIN__.
7767
7768 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7769
7770         * configure.ac: Add MPC support.
7771
7772         * config.in, configure: Regenerate.
7773
7774 2009-05-29  Richard Henderson  <rth@redhat.com>
7775
7776         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
7777         NOTE_INSN_BASIC_BLOCK.
7778         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
7779         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
7780         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
7781         to be deleted.
7782         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
7783         add in_use field.
7784         (add_cfi): Disable check redefining cfa away from drap.
7785         (lookup_cfa_1): Add remember argument; handle remember/restore.
7786         (lookup_cfa): Pass remember argument.
7787         (cfa_remember): New.
7788         (compute_barrier_args_size_1): Remove sibcall check.
7789         (dwarf2out_frame_debug_def_cfa): New.
7790         (dwarf2out_frame_debug_adjust_cfa): New.
7791         (dwarf2out_frame_debug_cfa_offset): New.
7792         (dwarf2out_frame_debug_cfa_register): New.
7793         (dwarf2out_frame_debug_cfa_restore): New.
7794         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
7795         (dwarf2out_begin_epilogue): New.
7796         (dwarf2out_frame_debug_restore_state): New.
7797         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
7798         DW_CFA_restore_state.
7799         (output_cfi_directive): Likewise.
7800         (convert_cfa_to_fb_loc_list): Likewise.
7801         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
7802         * dwarf2out.h: Update.
7803         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
7804         (copy_insn_1): Early out for null.
7805         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
7806         and dwarf2out_frame_debug_restore_state.
7807         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
7808         (prologue_insn_hash, epilogue_insn_hash): New.
7809         (free_after_compilation): Adjust freeing accordingly.
7810         (record_insns): Create hash table if needed; push insns into
7811         hash instead of array.
7812         (maybe_copy_epilogue_insn): New.
7813         (contains): Search hash table instead of array.
7814         (sibcall_epilogue_contains): Remove.
7815         (thread_prologue_and_epilogue_insns): Split eh_return insns
7816         and mark them as epilogues.
7817         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
7818         scanning in terms of basic blocks.
7819         * insn-notes.def (CFA_RESTORE_STATE): New.
7820         * jump.c (returnjump_p_1): Accept EH_RETURN.
7821         (eh_returnjump_p_1, eh_returnjump_p): New.
7822         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
7823         CFA_REGISTER, CFA_RESTORE): New.
7824         * rtl.def (EH_RETURN): New.
7825         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
7826
7827         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
7828         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
7829
7830         * config/i386/i386.c (gen_push): Update cfa state.
7831         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
7832         add a CFA_ADJUST_CFA note.
7833         (ix86_dwarf_handle_frame_unspec): Remove.
7834         (ix86_expand_prologue): Update cfa state.
7835         (ix86_emit_restore_reg_using_pop): New.
7836         (ix86_emit_restore_regs_using_pop): New.
7837         (ix86_emit_leave): New.
7838         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
7839         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
7840         * config/i386/i386.h (struct machine_cfa_state): New.
7841         (ix86_cfa_state): New.
7842         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
7843         (eh_return_internal): Merge from eh_return_<mode>,
7844         use eh_return rtx, split w/ epilogue.
7845
7846 2009-05-29  Ian Lance Taylor  <iant@google.com>
7847
7848         * builtins.c (validate_gimple_arglist): Don't use va_arg with
7849         enum type.
7850         * calls.c (emit_library_call_value_1): Likewise.
7851
7852         * c-typeck.c (c_build_va_arg): New function.
7853         * c-tree.h (c_build_va_arg): Declare.
7854         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
7855         instead of build_va_arg.
7856
7857 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
7858
7859         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
7860         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
7861         (ptr_difference_cost): Use affine combinations to compute it.
7862         (difference_cost): Likewise.
7863         (get_computation_cost_at): Compute more accurate cost for addresses
7864         if the ratio is a multiplier allowed in addresses.
7865         For non-addresses, consider that an additional offset or symbol is
7866         added only once.
7867
7868 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
7869
7870         * config/i386/i386.c (ix86_decompose_address): Avoid useless
7871         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
7872
7873         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
7874         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
7875         (prefix_rex): For UNIT_MMX don't imply the prefix by default
7876         if MODE_DI.
7877         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
7878         to 1 for TYPE_SSE{IADD1,CVT1}.
7879         (prefix_vex_imm8): Removed.
7880         (length_vex): Only pass 1 as second argument to
7881         ix86_attr_length_vex_default if prefix_extra is 0.
7882         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
7883         (length): For prefix vex computation use length_immediate
7884         attribute instead of prefix_vex_imm8.
7885         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
7886         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
7887         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
7888         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
7889         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
7890         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
7891         a space in between the operands.
7892         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
7893         if one operand is 0xff and the other one si, di, bp or sp.
7894         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
7895         other one si, di, bp or sp.
7896         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
7897         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
7898         type and mode attributes.
7899         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
7900         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
7901         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
7902         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
7903         prefix_data16 attribute iff MODE_DF.
7904         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
7905         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
7906         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
7907         constm128_operand in length_immediate computation.
7908         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
7909         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
7910         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
7911         length_immediate attribute to 1.
7912         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
7913         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
7914         for certain alternatives.
7915         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
7916         prefix_data16 attribute if MODE_V1DF.
7917         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
7918         length_immediate to 1.
7919         (set_got_rex64, set_rip_rex64): Remove length attribute, set
7920         length_address to 4, set mode attribute to MODE_DI.
7921         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
7922         (fxam<mode>2_i387): Set length attribute to 4.
7923         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
7924         *prefetch_3dnow_rex): Override length_address attribute.
7925         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
7926         attributes.
7927         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
7928         (constm128_operand): Removed.
7929         * config/i386/i386.c (memory_address_length): For
7930         disp && !index && !base in 64-bit mode account for SIB byte if
7931         print_operand_address can't optimize disp32 into disp32(%rip)
7932         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
7933         for fs: or gs: segment.
7934         (ix86_attr_length_immediate_default): When checking if shortform
7935         is possible, truncate immediate to the length of the non-shortened
7936         immediate.
7937         (ix86_attr_length_address_default): Ignore MEM_P operands
7938         with X constraint.
7939         (ix86_attr_length_vex_default): Only check for DImode on
7940         GENERAL_REG_P operands.
7941         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
7942         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
7943         (sse_cvttps2pi): Clear prefix_rep attribute.
7944         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
7945         attribute.
7946         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
7947         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
7948         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
7949         iff operand 2 is const_int_operand.
7950         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
7951         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
7952         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
7953         instead of vex.
7954         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
7955         prefix_data16.
7956         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
7957         prefix_data16 attribute for movlpd and movhpd instructions.
7958         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
7959         length_immediate for shufpd instruction.
7960         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
7961         (avx_cmpp<avxmodesuffixf2c><mode>3,
7962         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
7963         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
7964         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
7965         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
7966         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
7967         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
7968         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
7969         prefix_data16 attribute for the first alternative to 1.
7970         (*avx_loadlps): Override length_immediate for the first alternative.
7971         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
7972         attributes for second alternative.
7973         (*vec_concatv2sf_sse4_1): Override length_immediate and
7974         prefix_data16 attributes for second alternative.
7975         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
7976         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
7977         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
7978         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
7979         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
7980         prefix_data16 and length_immediate to 1.
7981         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
7982         to 1.
7983         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
7984         prefix_extra attribute for variants that don't have 0f prefix alone.
7985         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
7986         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
7987         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
7988         *sse4_1_pextrd): Set length_immediate to 1.
7989         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
7990         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
7991         to 1.
7992         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
7993         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
7994         length_immediate to 1 for second alternative.
7995         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
7996         prefix_extra and length_immediate attributes for the first
7997         alternative.
7998         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
7999         first alternative.
8000         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
8001         to 1 for the first and third alternative.
8002         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
8003         alternative.
8004         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
8005         attribute.
8006         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
8007         attribute to 0.
8008         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
8009         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
8010         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
8011         *avx_psign<mode>3): Set prefix_extra attribute to 1.
8012         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
8013         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
8014         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
8015         ssse3_psign<mode>3): Override prefix_rex attribute.
8016         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
8017         (ssse3_palignrti): Override length_immediate to 1.
8018         (ssse3_palignrdi): Override length_immediate to 1, override
8019         prefix_rex attribute.
8020         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
8021         (sse4a_extrqi): Override length_immediate to 2.
8022         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
8023         (sse4a_insertq): Override prefix_data16 to 0.
8024         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
8025         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
8026         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
8027         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
8028         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
8029         and length_immediate to 1.
8030         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
8031         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
8032         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
8033         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
8034         and length_immediate to 1.
8035         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
8036         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
8037         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
8038         avx_ptest256): Override prefix_extra to 1.
8039         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
8040         Override prefix_data16 and length_immediate to 1.
8041         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
8042         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
8043         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
8044         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
8045         prefix_data16 to 0 and prefix_extra to 2.
8046         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
8047         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
8048         attribute.
8049         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
8050         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
8051         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
8052         and prefix_extra to 2.
8053         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
8054         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
8055         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
8056         avx_vpermilvar<mode>3,
8057         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
8058         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
8059         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
8060         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
8061         Override prefix_extra to 1.
8062         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
8063         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
8064         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
8065         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
8066         prefix_extra and length_immediate to 1.
8067         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
8068         modrm to 0.
8069         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
8070         to 1 for the first alternative.
8071         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
8072         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
8073         cases.
8074         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
8075         *movv2sf_internal_avx, *movv2sf_internal): Override
8076         prefix_rep attribute for certain alternatives.
8077         (*mov<mode>_internal): Override prefix_rep or prefix_data16
8078         attributes for certain alternatives.
8079         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
8080         attributes for certain alternatives.
8081         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
8082         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
8083         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
8084         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
8085         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
8086         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
8087         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
8088         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
8089         length_immediate to 1 if operand 2 is const_int_operand.
8090         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
8091         *vec_extractv2si_1): Set length_immediate attribute to 1.
8092         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
8093         using old 3DNOW insn rather than SSE/3DNOW_A.
8094         (mmx_emms, mmx_femms): Clear modrm attribute.
8095
8096 2009-05-29  Martin Jambor  <mjambor@suse.cz>
8097
8098         * tree-sra.c:  New implementation of SRA.
8099
8100         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
8101         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
8102         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
8103         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
8104         (SRA_MAX_STRUCTURE_COUNT): Removed.
8105         (SRA_FIELD_STRUCTURE_RATIO): Removed.
8106         * doc/invoke.texi (sra-max-structure-size): Removed.
8107         (sra-field-structure-ratio): Removed.
8108
8109 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
8110
8111         PR middle-end/40291
8112         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
8113         before expansion.
8114
8115 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
8116
8117         PR rtl-optimization/40101
8118         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
8119         seqno.  Adjust comment.
8120         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
8121         inserting bookkeeping before a jump, the jump is not scheduled.
8122         When no positive seqno found, provide a value.  Add comment.
8123
8124 2009-05-29  Richard Guenther  <rguenther@suse.de>
8125
8126         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
8127         short-cutting on the first component.
8128
8129 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
8130
8131         PR middle-end/39958
8132         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
8133         for trees other than decls/types.
8134
8135 2009-05-29  Richard Guenther  <rguenther@suse.de>
8136
8137         * tree-ssa-operands.c (get_expr_operands): Do not handle
8138         INDIRECT_REFs in the handled-component case.  Remove
8139         unused get_ref_base_and_extent case.
8140         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
8141         tree_low_cst and host_integerp where possible.
8142         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
8143         codes for equivalence.
8144         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
8145
8146 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
8147
8148         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
8149         to tmake_file for i[34567]86-*-cygwin*.
8150
8151 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
8152
8153         PR target/40017
8154         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
8155         (altivec_categorize_keyword, init_vector_keywords,
8156         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
8157         similar to bool.
8158
8159 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
8160
8161         * tree.c (handle_dll_attribute): Check if node is
8162         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
8163
8164 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
8165
8166         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
8167         component.
8168         (thumb2_zero_extendqidi2): Likewise.
8169
8170 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
8171
8172         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
8173         instead of gen_movrt.
8174         * config/sh/sh.md (movrt): Remove.
8175
8176 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
8177
8178         * doc/invoke.texi (IA-64 Options):
8179         Add -msdata, -mfused-madd, -mno-inline-float-divide,
8180         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
8181         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
8182         -msched-prefer-non-control-spec-insns,
8183         -msched-stop-bits-after-every-cycle,
8184         -msched-count-spec-in-critical-path,
8185         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
8186         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
8187         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
8188         and -msched-spec-verbose.
8189
8190 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
8191
8192         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
8193         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
8194         error if used.
8195         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
8196
8197 2009-05-28  Richard Guenther  <rguenther@suse.de>
8198
8199         * tree-ssa-alias.c (ao_ref_init): New function.
8200         (ao_ref_base): Likewise.
8201         (ao_ref_base_alias_set): Likewise.
8202         (ao_ref_alias_set): Likewise.
8203         (refs_may_alias_p_1): Change signature.
8204         (refs_may_alias_p): Adjust.
8205         (refs_anti_dependent_p): Likewise.
8206         (refs_output_dependent_p): Likewise.
8207         (call_may_clobber_ref_p_1): Change signature.
8208         (call_may_clobber_ref_p): Adjust.
8209         (stmt_may_clobber_ref_p_1): New function split out from ...
8210         (stmt_may_clobber_ref_p): ... here.
8211         (maybe_skip_until): Adjust signature.
8212         (get_continuation_for_phi): Likewise.
8213         (walk_non_aliased_vuses): Likewise.
8214         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
8215         (ao_ref_init): Declare.
8216         (ao_ref_base): Likewise.
8217         (ao_ref_alias_set): Likewise.
8218         (stmt_may_clobber_ref_p_1): Likewise.
8219         (walk_non_aliased_vuses): Adjust.
8220         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
8221         (get_ref_from_reference_ops): remove.
8222         (vn_reference_lookup_2): Adjust signature.
8223         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
8224         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
8225         (vn_reference_lookup): Adjust.
8226         (vn_reference_insert): Likewise.
8227         (vn_reference_insert_pieces): Adjust signature.
8228         (visit_reference_op_call): Adjust.
8229         * tree-ssa-pre.c (get_expr_type): Simplify.
8230         (phi_translate_1): Adjust.
8231         (compute_avail): Likewise.
8232         (translate_vuse_through_block): Do not re-build trees.
8233         (value_dies_in_block_x): Likewise.
8234         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
8235         fields.
8236         (vn_reference_lookup_pieces): Adjust declaration.
8237         (vn_reference_insert_pieces): Likewise.
8238
8239 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
8240
8241         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
8242         with checking disabled.
8243
8244 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
8245
8246         PR target/37216
8247
8248         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
8249         macro definition for support of three-operand format aligned
8250         .comm directive in assembler on cygwin/pe/mingw target OS.
8251         * configure:  Regenerate.
8252         * config.h:  Regenerate.
8253
8254         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
8255         aligned form of .comm directive if -mpe-aligned-commons is in effect.
8256         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
8257
8258         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
8259         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
8260
8261 2009-05-28  Ira Rosen  <irar@il.ibm.com>
8262
8263         PR tree-optimization/40254
8264         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
8265         in analysis of basic blocks.
8266
8267 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
8268
8269         PR middle-end/33699
8270         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
8271         * target-def.h (TARGET_CONST_ANCHOR): New macro.
8272         (TARGET_INITIALIZER): Use it.
8273         * cse.c (CHEAPER): Move it up to the other macros.
8274         (insert): Rename this ...
8275         (insert_with_costs): ... to this.  Add cost parameters.  Update
8276         function comment.
8277         (insert): New function.  Call insert_with_costs.
8278         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
8279         find_reg_offset_for_const, try_const_anchors): New functions.
8280         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
8281         when using a const-anchor.  Call insert_const_anchors.
8282         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
8283         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
8284
8285 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
8286
8287         * tree-inline.c (remap_decls): Enable nonlocalized variables
8288         when not optimizing.
8289
8290 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
8291
8292         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
8293         Simplify other tests involving optimize.
8294
8295 2009-05-27  Tom Tromey  <tromey@redhat.com>
8296
8297         * unwind-dw2.c (_Unwind_DebugHook): New function.
8298         (uw_install_context): Call _Unwind_DebugHook.
8299
8300 2009-05-27  Tom Tromey  <tromey@redhat.com>
8301
8302         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
8303
8304 2009-05-27  Ian Lance Taylor  <iant@google.com>
8305
8306         * Makefile.in (LINKER, LINKER_FLAGS): Define.
8307         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
8308         (ALL_LINKERFLAGS): Define.
8309         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
8310         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
8311         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
8312         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
8313         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
8314         $(LINKER_FOR_BUILD).
8315         (build/gcov-iov$(build_exeext)): Likewise.
8316
8317 2009-05-27  Julian Brown  <julian@codesourcery.com>
8318
8319         * gcse.c (target.h): Include.
8320         (can_assign_to_reg_without_clobbers_p): Check that the target allows
8321         copy of argument to a pseudo register.
8322
8323 2009-05-27  Diego Novillo  <dnovillo@google.com>
8324
8325         * tree-ssa-live.c (dump_scope_block): Document arguments.
8326         (dump_scope_blocks): Document.
8327         (debug_scope_blocks): New.
8328         * tree-flow.h (debug_scope_blocks): Declare.
8329
8330 2009-05-21  Denis Chertykov  <denisc@overta.ru>
8331
8332         * doc/contrib.texi (Contributors): Add myself to the list.
8333
8334 2009-05-27  Olivier Hainque  <hainque@adacore.com>
8335
8336         * expr.c (target_align): New function.  Alignment the TARGET of an
8337         assignment may be assume to have.
8338         (highest_pow2_factor_for_target): Use it instead of relying on
8339         immediate tree attributes of TARGET, not necessarily honored when
8340         intermediate bitfields are involved.
8341
8342 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
8343
8344         PR target/40266
8345         * config/i386/driver-i386.c (host_detect_local_cpu): Support
8346         AVX, SSE4, AES, PCLMUL and POPCNT.
8347
8348 2009-05-27  Diego Novillo  <dnovillo@google.com>
8349
8350         * tree-pretty-print.c (dump_location): New.
8351         (dump_generic_node): Call it.
8352         Factor code to handle BLOCK nodes ...
8353         (dump_block_node): ... here.
8354
8355 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
8356
8357         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
8358         with it.
8359         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
8360         included.
8361         * gcc-plugin.h: Include config.h and system.h.
8362         (IN_GCC): Define if not defined.
8363
8364 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
8365
8366         PR middle-end/40249
8367         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
8368         with -fno-inline.
8369
8370 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
8371
8372         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
8373         applicable.
8374         * config/m32r/m32r.h: Ditto.
8375         * config/m32r/m32r.md: Ditto.
8376         * config/m32r/predicates.md: Ditto.
8377
8378 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
8379
8380         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
8381
8382 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
8383
8384         * doc/plugins.texi
8385         (Loading plugins): typo.
8386         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
8387         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
8388         (Interacting with the GCC Garbage Collector): Added new section.
8389         (Giving information about a plugin): Added new section for
8390         PLUGIN_INFO.
8391         * ggc.h (ggc_register_root_tab): Added declaration.
8392         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
8393         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
8394         (register_callback): Improved comment in declaration.
8395         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
8396         (extra_root_vec) Added static variable for dynamic roots registration.
8397         (ggc_register_root_tab) Added new routine.
8398         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
8399         PLUGIN_GGC_MARKING event.
8400         * ggc-zone.c: Include plugin.h.
8401         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
8402         * ggc-page.c: Include plugin.h.
8403         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
8404         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
8405         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
8406         (register_callback): check lack of callbacks for
8407         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
8408         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
8409         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
8410         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
8411         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
8412         dependency on plugin.h.
8413         (plugin.o): Added dependency on ggc.h...
8414
8415 2009-05-26  Richard Guenther  <rguenther@suse.de>
8416
8417         PR middle-end/40248
8418         Revert
8419         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
8420         with mismatched comparison modes.
8421
8422         * expr.c (expand_expr_real_1): Expand the operand of a
8423         VIEW_CONVERT_EXPR in its natural mode.
8424
8425 2009-05-26  Ian Lance Taylor  <iant@google.com>
8426
8427         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
8428         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
8429         (ALL_COMPILERFLAGS): Define.
8430         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
8431         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
8432         (collect2$(exeext), collect2.o): Likewise.
8433         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
8434         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
8435         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
8436         (libbackend.o, intl.o, cppdefault.o): Likewise.
8437         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
8438         (build/%.o): Use $(COMPILER_FOR_BUILD).
8439         (build/gen%$(build_exeext)): Likewise.
8440         (build/gcov-iov$(build_exeext)): LIkewise.
8441         * config/t-darwin (darwin.o): Use $(COMPILER).
8442         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
8443         * config/t-sol2 (sol2-c.o): Likewise.
8444         (sol2.o): Likewise.
8445         * config/t-vxworks (vxworks.o): Likewise.
8446         * config/x-darwin (host-darwin.o): Likewise.
8447         * config/x-hpux (host-hpux.o): Likewise.
8448         * config/x-linux (host-linux.o): Likewise.
8449         * config/x-solaris (host-solaris.o): Likewise.
8450         * config/alpha/x-alpha (driver-alpha.o): Likewise.
8451         * config/arm/t-arm (arm-c.o): Likewise.
8452         * config/arm/t-pe (pe.o): Likewise.
8453         * config/arm/t-wince-pe (pe.o): Likewise.
8454         * config/i386/t-cygming (winnt.o): Likewise.
8455         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
8456         * config/i386/t-cygwin (cygwin1.o): Likewise.
8457         (cygwin2.o): Likewise.
8458         * config/i386/t-i386 (i386-c.o): Likewise.
8459         * config/i386/t-interix (winnt.o): Likewise.
8460         * config/i386/t-netware (netware.o): Likewise.
8461         * config/i386/t-nwld (nwld.o): Likewise.
8462         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
8463         * config/i386/x-i386 (driver-i386.o): Likewise.
8464         * config/i386/x-cygwin (host-cygwin.o): Likewise.
8465         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
8466         * config/ia64/t-ia64 (ia64-c.o): Likewise.
8467         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
8468         * config/mips/x-native (driver-native.o): Likewise.
8469         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
8470         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
8471         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
8472         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
8473         * config/score/t-score-elf (score7.o): Likewise.
8474         (score3.o): Likewise.
8475         * config/sh/t-sh (sh-c.o): Likewise.
8476         * config/sh/t-symbian (sh-c.o): Likewise.
8477         (symbian.o): Likewise.
8478         * config/spu/t-spu-elf (spu-c.o): Likewise.
8479         * config/v850/t-v850 (v850-c.o): Likewise.
8480         * config/v850/t-v850e (v850-c.o): Likewise.
8481
8482 2009-05-26  Richard Guenther  <rguenther@suse.de>
8483
8484         PR tree-optimization/40122
8485         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
8486         VECTOR_CSTs if possible.
8487         (fold_gimple_assign): Likewise.
8488
8489 2009-05-26  Richard Guenther  <rguenther@suse.de>
8490
8491         PR middle-end/40252
8492         * fold-const.c (fold_binary): Use the correct types for building
8493         rotates.
8494
8495 2009-05-26  Richard Guenther  <rguenther@suse.de>
8496
8497         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
8498         redundant calls to merge_alias_info.
8499         (bump_vector_ptr): Likewise.
8500         * tree-ssa-copy.c (merge_alias_info): Remove.
8501         (replace_exp_1): Remove call to merge_alias_info.
8502         (propagate_tree_value): Likewise.
8503         (fini_copy_prop): Propagate points-to info.
8504         * tree-flow.h (merge_alias_info): Remove.
8505
8506 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
8507
8508         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
8509
8510 2009-05-25  Jan Hubicka  <jh@suse.cz>
8511
8512         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
8513         * cgraph.h (struct inline_summary): New filed self_wize,
8514         size_inlining_benefit, self_time and time_inlining_benefit.
8515         (struct cgraph_global_info): Replace insns by time ans size fields.
8516         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
8517         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
8518         (ipcp_update_callgraph): Do not touch function bodies.
8519         * ipa-inline.c: Include except.h
8520         (MAX_TIME): New constant.
8521         (overall_insns): Remove.
8522         (leaf_node_p): New.
8523         (overall_size, max_benefit): New static variables.
8524         (cgraph_estimate_time_after_inlining): New function.
8525         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
8526         (cgraph_clone_inlined_nodes): Update size.
8527         (cgraph_mark_inline_edge): Update size.
8528         (cgraph_estimate_growth): Use size info.
8529         (cgraph_check_inline_limits): Check size.
8530         (cgraph_default_inline_p): Likewise.
8531         (cgraph_edge_badness): Compute badness based on benefit and size cost.
8532         (cgraph_decide_recursive_inlining): Check size.
8533         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
8534         and times.
8535         (cgraph_decide_inlining): Likewise.
8536         (cgraph_decide_inlining_incrementally): Likewise; honor
8537         PARAM_EARLY_INLINING_INSNS.
8538         (likely_eliminated_by_inlining_p): New predicate.
8539         (estimate_function_body_sizes): New function.
8540         (compute_inline_parameters): Use it.
8541         * except.c (must_not_throw_labels): New function.
8542         * except.h (must_not_throw_labels): Declare.
8543         * tree-inline.c (init_inline_once): Kill inlining_weigths
8544         * tree-ssa-structalias.c: Avoid uninitialized warning.
8545         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
8546         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
8547         (PARAM_INLINE_CALL_COST): Remove.
8548         (PARAM_EARLY_INLINING_INSNS): New.
8549
8550 2009-05-25  Richard Guenther  <rguenther@suse.de>
8551
8552         PR tree-optimization/36327
8553         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
8554         callback for reference translation or lookup at the point of may-defs.
8555         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
8556         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
8557         for union COMPONENT_REFs.
8558         (vn_reference_lookup_3): New callback.  Lookup from memset
8559         and CONSTRUCTOR assignment, translate through struct copies.
8560         (vn_reference_lookup_pieces): Make sure to not free the
8561         passed operands array.  Adjust walk_non_aliased_vuses call.
8562         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
8563         make sure we do not leak memory.
8564
8565 2009-05-25  Richard Guenther  <rguenther@suse.de>
8566
8567         * tree-ssa-alias.h (dump_points_to_solution): Declare.
8568         * tree-inline.c (expand_call_inline): Reset the escaped and
8569         callused solutions.
8570         * tree-ssa-structalias.c (pass_build_ealias): New.
8571         * tree-pass.h (pass_build_ealias): Declare.
8572         * passes.c (init_optimization_passes): Add PTA during
8573         early optimizations.
8574         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
8575         and CALLUSED solutions.
8576         (dump_points_to_solution): New function, split out from ...
8577         (dump_points_to_info_for): ... here.
8578         * tree-parloops.c (parallelize_loops): Reset the escaped and
8579         callused solutions.
8580
8581 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8582
8583         PR bootstrap/40027
8584         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
8585         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
8586
8587 2009-05-25  Ira Rosen  <irar@il.ibm.com>
8588
8589         PR tree-optimization/40238
8590         * tree-vect-stmts.c (vect_init_vector): Insert initialization
8591         statements after basic block's labels.
8592         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
8593         to free the allocated memory.
8594
8595 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
8596
8597         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
8598         return address with a USE.
8599
8600 2009-05-24  Richard Guenther  <rguenther@suse.de>
8601
8602         PR middle-end/40233
8603         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
8604         array type from the main variant of the inner type.
8605
8606 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8607
8608         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
8609         definition to bool (from int) to un-break build.
8610         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
8611
8612 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
8613
8614         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
8615         discard_stmt_changes): Delete.
8616         * tree-ssa-operands.c (scb_stack): Delete.
8617         (init_ssa_operands): Do not initialize it.
8618         (fini_ssa_operands): Do not free it.
8619         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
8620
8621         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
8622         update_stmt, remove the others.  Fix comments.
8623         * tree-dfa.c (optimize_stack_restore): Likewise.
8624         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
8625         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
8626         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
8627         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
8628         Likewise.
8629         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
8630         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
8631         (dom_opt_finalize_block): Likewise, adjusting access to
8632         stmts_to_rescan.
8633         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
8634         (stmts_to_rescan): Change item type to gimple.
8635         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
8636
8637 2009-05-24  Ira Rosen  <irar@il.ibm.com>
8638
8639         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
8640         * tree-pass.h (pass_slp_vectorize): New pass.
8641         * params.h (SLP_MAX_INSNS_IN_BB): Define.
8642         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
8643         * tree-vectorizer.c (timevar.h): Include.
8644         (user_vect_verbosity_level): Declare.
8645         (vect_location): Fix comment.
8646         (vect_set_verbosity_level): Update user_vect_verbosity_level
8647         instead of vect_verbosity_level.
8648         (vect_set_dump_settings): Add an argument. Ignore user defined
8649         verbosity if dump flags require higher level of verbosity. Print to
8650         stderr only for loop vectorization.
8651         (vectorize_loops): Update call to vect_set_dump_settings.
8652         (execute_vect_slp): New function.
8653         (gate_vect_slp): Likewise.
8654         (struct gimple_opt_pass pass_slp_vectorize): New.
8655         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
8656         access its members.
8657         (vec_info_for_bb): New function.
8658         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
8659         (VECTORIZATION_ENABLED): New macro.
8660         (SLP_ENABLED, SLP_DISABLED): Likewise.
8661         (vect_is_simple_use): Add bb_vec_info argument.
8662         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
8663         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
8664         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
8665         vect_schedule_slp, vect_analyze_slp): Likewise.
8666         (vect_analyze_stmt): Add slp_tree argument.
8667         (find_bb_location): Declare.
8668         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
8669         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
8670         (vect_analyze_loop_operations, vect_analyze_loop,
8671         get_initial_def_for_induction, vect_create_epilog_for_reduction,
8672         vect_finalize_reduction, vectorizable_reduction,
8673         vectorizable_live_operation, vect_transform_loop): Likewise.
8674         * tree-data-ref.c (dr_analyze_innermost): Update comment,
8675         skip evolution analysis if analyzing a basic block.
8676         (dr_analyze_indices): Likewise.
8677         (initialize_data_dependence_relation): Skip the test whether the
8678         object is invariant for basic blocks.
8679         (compute_all_dependences): Skip dependence analysis for data
8680         references in basic blocks.
8681         (find_data_references_in_stmt): Don't fail in case of invariant
8682         access in basic block.
8683         (find_data_references_in_bb): New function.
8684         (find_data_references_in_loop): Move code to
8685         find_data_references_in_bb and add a call to it.
8686         (compute_data_dependences_for_bb): New function.
8687         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
8688         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
8689         that STEP is 0.
8690         (vect_analyze_data_ref_dependence): Check for interleaving in case of
8691         unknown dependence in basic block and fail in case of dependence in
8692         basic block.
8693         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
8694         dependence instances from either loop or basic block vectorization
8695         info.
8696         (vect_compute_data_ref_alignment): Check if it is loop vectorization
8697         before calling nested_in_vect_loop_p.
8698         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
8699         dependence instances from either loop or basic block vectorization
8700         info.
8701         (vect_verify_datarefs_alignment): Likewise.
8702         (vect_enhance_data_refs_alignment): Adjust function calls.
8703         (vect_analyze_data_refs_alignment): Likewise.
8704         (vect_analyze_group_access): Fix printing. Skip different checks if
8705         DR_STEP is 0. Keep strided stores either in loop or basic block
8706         vectorization data structure. Fix indentation.
8707         (vect_analyze_data_ref_access): Fix comments, allow zero step in
8708         basic blocks.
8709         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
8710         dependence instances from either loop or basic block vectorization
8711         info.
8712         (vect_analyze_data_refs): Update comment. Call
8713         compute_data_dependences_for_bb to analyze basic blocks.
8714         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
8715         case of loop vectorization. In case of basic block vectorization use
8716         data-ref itself as a base.
8717         (vect_create_data_ref_ptr): In case of basic block vectorization:
8718         don't advance the pointer, add new statements before the current
8719         statement.  Adjust function calls.
8720         (vect_supportable_dr_alignment): Support only aligned accesses in
8721         basic block vectorization.
8722         * common.opt (ftree-slp-vectorize): New flag.
8723         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
8724         (vect_pattern_recog_1): Likewise.
8725         * tree-vect-stmts.c (process_use): Likewise.
8726         (vect_init_vector): Add new statements in the beginning of the basic
8727         block in case of basic block SLP.
8728         (vect_get_vec_def_for_operand): Adjust function calls.
8729         (vect_finish_stmt_generation): Likewise.
8730         (vectorizable_call): Add assert that it is loop vectorization, adjust
8731         function calls.
8732         (vectorizable_conversion, vectorizable_assignment): Likewise.
8733         (vectorizable_operation): In case of basic block SLP, take
8734         vectorization factor from statement's type and skip the relevance
8735         check. Adjust function calls.
8736         (vectorizable_type_demotion): Add assert that it is loop
8737         vectorization, adjust function calls.
8738         (vectorizable_type_promotion): Likewise.
8739         (vectorizable_store): Check for outer loop only in case of loop
8740         vectorization. Adjust function calls. For basic blocks, skip the
8741         relevance check and don't advance pointers.
8742         (vectorizable_load): Likewise.
8743         (vectorizable_condition): Add assert that it is loop vectorization,
8744         adjust function calls.
8745         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
8746         that it is not reduction, get vector type, call only supported
8747         functions, skip loop specific parts.
8748         (vect_transform_stmt): Check for outer loop only in case of loop
8749         vectorization.
8750         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
8751         (vect_is_simple_use): Fix comment, add new argument, fix conditions
8752         for external definition.
8753         * passes.c (pass_slp_vectorize): New pass.
8754         * tree-vect-slp.c (find_bb_location): New function.
8755         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
8756         check for patterns only in loops.
8757         (vect_build_slp_tree): Add argument, adjust function calls, fail in
8758         case of multiple types in basic block SLP.
8759         (vect_mark_slp_stmts_relevant): New function.
8760         (vect_supported_load_permutation_p): Fix comment.
8761         (vect_analyze_slp_instance): Add argument. In case of basic block
8762         SLP, take vectorization factor from statement's type, check that
8763         unrolling factor is 1. Adjust function call. Save SLP instance in
8764         either loop or basic block vectorization structure. Return FALSE,
8765         if SLP failed.
8766         (vect_analyze_slp): Add argument. Get strided stores groups from
8767         either loop or basic block vectorization structure. Return FALSE
8768         if basic block SLP failed.
8769         (new_bb_vec_info): New function.
8770         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
8771         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
8772         (vect_schedule_slp): Add argument. Get SLP instances from either
8773         loop or basic block vectorization structure. Set vectorization factor
8774         to be 1 for basic block SLP.
8775         (vect_slp_transform_bb): New function.
8776         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
8777
8778 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
8779
8780         * final.c (shorten_branches): Do not align labels for jump tables.
8781         (final_scan_insn): Use JUMP_TABLE_DATA_P.
8782
8783 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
8784
8785         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
8786         Remove outdated reference to flow.c and fix nits.
8787         * doc/gccint.texi: Tweak RTL description.
8788         * doc/rtl.texi: Likewise.
8789
8790 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
8791
8792         * config/avr/avr.c: Change my email address.
8793         * config/avr/avr.h: Likewise.
8794         * config/avr/avr.md: Likewise.
8795         * config/avr/avr-protos.h: Likewise.
8796         * config/avr/libgcc.S: Likewise.
8797
8798 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
8799
8800         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
8801         (spu_split_load, spu_split_store): Change return type to int.
8802         (spu_split_convert): Declare.
8803         * config/spu/predicates.md (spu_mem_operand): Remove.
8804         (spu_mov_operand): Update.
8805         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
8806         * config/spu/spu.c (regno_aligned_for_load): Remove.
8807         (reg_aligned_for_addr, spu_expand_load): Define.
8808         (spu_expand_extv): Reimplement and handle MEM.
8809         (spu_expand_insv): Handle MEM.
8810         (spu_sched_reorder): Handle insn's with length 0.
8811         (spu_legitimate_address_p): Reimplement.
8812         (store_with_one_insn_p): Return TRUE for any mode with size
8813         larger than 16 bytes.
8814         (address_needs_split): Define.
8815         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
8816         operands.
8817         (spu_convert_move): Define.
8818         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
8819         (spu_split_store): Change all MEM's to TImode.
8820         (spu_init_expanders): Preallocate registers that correspond to
8821         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
8822         mark_reg_pointer.
8823         (spu_split_convert): Define.
8824         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
8825         (_move<mode>, _movdi, _movti): Update predicate and condition.
8826         (load, store): Change to define_split.
8827         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
8828         extend<mode>ti2.
8829         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
8830         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
8831         define_insn_and_split of lshr<mode>3.
8832         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
8833         (<v>ashr<mode>3_imm): Define.
8834         (extv, extzv, insv): Allow MEM operands.
8835         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
8836         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
8837         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
8838         (_spu_convert2): Change to define_insn_and_split and remove the
8839         corresponding define_peephole2.
8840         (stack_protect_set, stack_protect_test, stack_protect_test_si):
8841         Change predicates to memory_operand.
8842
8843 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
8844
8845         * config/arm/thumb2.md: Add 16-bit multiply instructions.
8846
8847 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8848
8849         PR tree-optimization/40219
8850         * tree.c (iterative_hash_expr): Make sure the builtin function is
8851         a normal builtin function and not a front end or back end builtin
8852         before indexing into the built_in_decls array.
8853
8854 2009-05-22  Richard Guenther  <rguenther@suse.de>
8855
8856         PR middle-end/38964
8857         * alias.c (write_dependence_p): Do not use TBAA for answering
8858         anti-dependence or output-dependence.
8859         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
8860         (emit_pointer_definition): Remove.
8861         (emit_alias_warning): Likewise.
8862         (find_what_var_points_to): Remove TBAA pruning code.
8863         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
8864         violations.
8865         (compute_points_to_sets): Remove code computing the set of
8866         dereferenced pointers.
8867         * tree-data-ref.c (dr_may_alias_p): Properly use the split
8868         oracle for querying anti and output dependencies.
8869         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
8870         if TBAA may be applied.
8871         (refs_anti_dependent_p): New function.
8872         (refs_output_dependent_p): Likewise.
8873         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
8874         (refs_output_dependent_p): Likewise.
8875         * doc/tree-ssa.texi (Memory model): New section.
8876         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
8877         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
8878         * cfgexpand.c (expand_gimple_basic_block): Do not handle
8879         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
8880         * expr.c (expand_expr_real_1): Likewise.
8881         * gimple-low.c (lower_stmt): Likewise.
8882         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
8883         (dump_gimple_cdt): Remove.
8884         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
8885         (gimple_size): Likewise.
8886         (walk_gimple_op): Likewise.
8887         (is_gimple_stmt): Likewise.
8888         (walk_stmt_load_store_addr_ops): Likewise.
8889         (gimple_build_cdt): Remove.
8890         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
8891         * gimple.h (gimple_cdt_new_type): Remove.
8892         (gimple_cdt_new_type_ptr): Likewise.
8893         (gimple_cdt_set_new_type): Likewise.
8894         (gimple_cdt_location): Likewise.
8895         (gimple_cdt_location_ptr): Likewise.
8896         (gimple_cdt_set_location): Likewise.
8897         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
8898         * tree-cfg.c (remove_useless_stmts_1): Do not handle
8899         GIMPLE_CHANGE_DYNAMIC_TYPE.
8900         (verify_types_in_gimple_stmt): Likewise.
8901         * tree-inline.c (estimate_num_insns): Likewise.
8902         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
8903         (copy_decl_to_var): Likewise.
8904         (copy_result_decl_to_var): Likewise.
8905         * tree-pretty-print.c (dump_generic_node): Do not handle
8906         CHANGE_DYNAMIC_TYPE_EXPR.
8907         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8908         * tree-ssa-operands.c (get_expr_operands): Likewise.
8909         * tree-ssa-structalias.c (struct variable_info): Remove
8910         no_tbaa_pruning member.
8911         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
8912         (unify_nodes): Do not copy it.
8913         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
8914         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
8915         (set_uids_in_ptset): Do not check it.
8916         (find_what_var_points_to): Likewise.
8917         (compute_tbaa_pruning): Remove.
8918         (compute_points_to_sets): Do not call it.
8919         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
8920         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
8921         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
8922         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
8923         (DECL_NO_TBAA_P): Likewise.
8924         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
8925         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
8926         (expand_omp_atomic_pipeline): Do not set it.
8927         * print-tree.c (print_node): Do not dump it.
8928         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
8929         redundant check.
8930
8931 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
8932
8933         PR target/39856
8934         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
8935         for clobber.
8936
8937 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
8938
8939         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
8940         non-external.
8941
8942 2009-05-22  Ben Elliston  <bje@au.ibm.com>
8943
8944         * Makefile.in (bversion.h, s-bversion): New targets.
8945         (TOPLEV_H): Add bversion.h.
8946         * toplev.h: Include "bversion.h".
8947         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
8948         the __format__ attribute only if compiling with the same version
8949         of GCC as the sources (the "build version").
8950
8951 2009-05-22  Ben Elliston  <bje@au.ibm.com>
8952
8953         * c-format.c (handle_format_attribute): Fix comment typo.
8954
8955 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
8956
8957         PR target/37846
8958         * config/ia64/ia64.opt (mfused-madd): New.
8959         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
8960         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
8961         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
8962         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
8963         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
8964         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
8965         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
8966         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
8967         instruction if !TARGET_FUSED_MADD.
8968         (fpma, fpms): Remove colon from name.
8969
8970 2009-05-22  Richard Guenther  <rguenther@suse.de>
8971
8972         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
8973         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
8974         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
8975         TARGET_MEM_REF.
8976         (create_expression_by_pieces): Only convert if necessary.
8977         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
8978         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
8979
8980 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
8981
8982         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
8983         regular pattern from a template and rename it ...
8984         (*extzv_truncsi_exts): ... to this.
8985
8986 2009-05-21  Richard Guenther  <rguenther@suse.de>
8987
8988         * cgraph.h (struct cgraph_node): Remove inline_decl member.
8989         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
8990         (cgraph_default_inline_p): Likewise.
8991         (cgraph_decide_inlining_incrementally): Likewise.
8992
8993 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
8994             Uros Bizjak  <ubizjak@gmail.com>
8995
8996         * config/i386/cpuid.h (bit_MOVBE): New.
8997
8998         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
8999
9000         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
9001         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
9002         (ix86_handle_option): Handle OPT_mmovbe.
9003         (ix86_target_string): Add -mmovbe.
9004         (pta_flags): Add PTA_MOVBE.
9005         (processor_alias_table): Add PTA_MOVBE to "atom".
9006         (override_options): Handle PTA_MOVBE.
9007
9008         * config/i386/i386.h (TARGET_MOVBE): New.
9009
9010         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
9011         (*bswapsi_movbe): New.
9012         (*bswapdi_movbe): Likewise.
9013         (bswapdi2): Renamed to ...
9014         (*bswapdi_1): This.
9015         (bswapdi2): New expander.
9016
9017         * config/i386/i386.opt (mmovbe): New.
9018
9019         * doc/invoke.texi: Document -mmovbe.
9020
9021 2009-05-21  Taras Glek  <tglek@mozilla.com>
9022
9023         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
9024         * gcc-plugin.h (plugin_init): Updated signature.
9025         * gcc-plugin.h (plugin_name_args): Moved to this header.
9026         * doc/plugins.texi (plugin_init): Updated documention to reflect
9027         API change.
9028         * doc/plugins.texi (plugin_name_args): Added to documention.
9029
9030 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
9031
9032         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
9033         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
9034
9035 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
9036
9037         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
9038         JUMP_TABLE_DATA_P predicates where applicable.
9039         * config/i386/predicates.md: Ditto.
9040         * config/i386/sse.md: Ditto.
9041
9042 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
9043
9044         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
9045         operand2 -128 override length_immediate attribute to 1.
9046         * config/i386/predicates.md (constm128_operand): New predicate.
9047
9048         * config/i386/i386.c (memory_address_length): Handle %r12
9049         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
9050         also check REGNO.
9051         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
9052         mode look through optional ZERO_EXTEND and SUBREG.
9053         * config/i386/i386.md (R12_REG): New define_constant.
9054         (prefix_data16): For sse unit set also for MODE_TI insns.
9055         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
9056         insns set if operand 1 is ext_QIreg_operand.
9057         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
9058         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
9059         immediate.
9060         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
9061         mode from MODE_DI to MODE_SI.
9062         (movdi_1_rex64): Override modrm and length_immediate attributes
9063         only for movabs (TYPE_IMOV, alternative 2).
9064         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
9065         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
9066         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
9067         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
9068         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
9069         prefix_rex attribute if DImode.
9070         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
9071         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
9072         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
9073         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
9074         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
9075         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
9076         Likewise.  For TYPE_IMOV clear length_immediate attribute.
9077         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
9078         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
9079         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
9080         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
9081         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
9082         or one operand TYPE_ISHIFT.
9083         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
9084         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
9085         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
9086         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
9087         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
9088         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
9089         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
9090         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
9091         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
9092         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
9093         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
9094         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
9095         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
9096         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
9097         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
9098         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
9099         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
9100         set mode attribute, don't override length attribute.
9101         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
9102         to 1.
9103         (return_internal_long): Set length attribute to 2 instead of 1.
9104         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
9105         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
9106         prefix_rex attribute.
9107         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
9108         New predicates.
9109         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
9110
9111 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9112
9113         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
9114
9115 2009-05-20  Ian Lance Taylor  <iant@google.com>
9116
9117         * tree.c (build_tree_list_vec_stat): New function.
9118         (ctor_to_vec): New function.
9119         (build_nt_call_vec): New function.
9120         (build_call_array): Change args to be a const pointer.
9121         (build_call_vec): New function.
9122         * tree.h (build_nt_call_vec): Declare.
9123         (build_tree_list_vec_stat): Declare.
9124         (build_tree_list_vec): Define.
9125         (build_call_array): Update declaration.
9126         (build_call_vec): Declare.
9127         (ctor_to_vec): Declare.
9128         * c-common.c (tree_vector_cache): New static variable.
9129         (make_tree_vector): New function.
9130         (release_tree_vector): New function.
9131         (make_tree_vector_single): New function.
9132         (make_tree_vector_copy): New function.
9133         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
9134         (make_tree_vector_single, make_tree_vector_copy): Declare.
9135         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
9136         (c_parser_expr_list): Don't manage cache here, instead call
9137         make_tree_vector.
9138         (c_parser_release_expr_list): Remove static function.
9139         (c_parser_vec_to_tree_list): Remove static function.
9140         (c_parser_attributes): Call build_tree_list_vec instead of
9141         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
9142         c_parser_release_expr_list.
9143         (c_parser_postfix_expression_after_primary): Likewise.
9144         (c_parser_objc_keywordexpr): Likewise.
9145
9146 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
9147
9148         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
9149         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
9150         TARGET_CONVERT_TO_TYPE.
9151         * hooks.c (hook_tree_const_tree_null): Define.
9152         * hooks.h (hook_tree_const_tree_null): Declare.
9153         * target.h (struct gcc_target):  Add invalid_parameter_type,
9154         invalid_return_type, promoted_type, and convert_to_type fields.
9155         * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
9156         (TARGET_INVALID_RETURN_TYPE): Define.
9157         (TARGET_PROMOTED_TYPE): Define.
9158         (TARGET_CONVERT_TO_TYPE): Define.
9159         (TARGET_INITIALIZER): Update for new fields.
9160         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
9161         (grokparms): Check targetm.invalid_parameter_type.
9162         * c-typeck.c (default_conversion): Check targetm.promoted_type.
9163         * c-convert.c (convert): Check targetm.convert_to_type.
9164
9165 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
9166
9167         * config/mips/mips.md (*extenddi_truncate<mode>,
9168         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
9169         defintions.
9170         (*extendhi_truncateqi): New define_insn_and_sptit.
9171
9172 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
9173
9174         PR middle-end/40204
9175         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
9176         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
9177
9178 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
9179
9180         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
9181         the operand of VIEW_CONVERT_EXPR.
9182
9183 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
9184
9185         * config/i386/driver-i386.c (host_detect_local_cpu): Check
9186         extended family and model for Intel processors.  Support Intel Atom.
9187
9188 2009-05-20  Olivier Hainque  <hainque@adacore.com>
9189
9190         * gstab.h (stab_code_type): Define, to be used instead of the
9191         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
9192         notice.
9193         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
9194         occurrences by stab_code_type.
9195         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
9196
9197 2009-05-20  Martin Jambor  <mjambor@suse.cz>
9198
9199         * tree-flow.h (insert_edge_copies_seq): Undeclare.
9200         (sra_insert_before): Likewise.
9201         (sra_insert_after): Likewise.
9202         (sra_init_cache): Likewise.
9203         (sra_type_can_be_decomposed_p): Likewise.
9204         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
9205         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
9206         (sra_insert_before): Likewise.
9207         (sra_insert_after): Likewise.
9208         (sra_init_cache): Likewise.
9209         (insert_edge_copies_seq): Made static and moved upwards.
9210
9211         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
9212         case.
9213
9214         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
9215
9216         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
9217         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
9218         simple copies.
9219
9220 2009-05-20  Richard Guenther  <rguenther@suse.de>
9221
9222         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
9223         with mismatched comparison modes.
9224
9225 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9226
9227         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
9228         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
9229         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
9230         with shifts for Thumb2.
9231         (orsi_notsi): New for orn.
9232         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
9233         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
9234         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
9235         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
9236         Don't invert remainder for IOR.
9237
9238 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
9239
9240         PR tree-optimization/40087
9241         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
9242         number_of_iterations_ne): Rename never_infinite argument.
9243         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
9244         number_of_iterations_le): Handle pointer-type ivs when
9245         exit_must_be_taken is false.
9246         (number_of_iterations_cond):  Do not always assume that
9247         exit_must_be_taken if the control variable is a pointer.
9248
9249 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9250
9251         * c-typeck.c (build_binary_op): Allow % on integal vectors.
9252         * doc/extend.texi (Vector Extension): Document that % is allowed too.
9253
9254 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
9255
9256         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
9257         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
9258
9259 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9260
9261         PR c/40172
9262         * c.opt (Wlogical-op): Disabled by default.
9263         * c-opt (c_common_post_options): Do not enable Wlogical-op with
9264         Wextra.
9265         * doc/invoke.texi (Wlogical-op): Likewise.
9266
9267 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
9268
9269         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
9270         into CASE_CONVERT.
9271         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
9272         Propagate the type of the first operand.
9273         <ASSERT_EXPR>: Simplify.
9274         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
9275         Rewrite using the RHS code as discriminant.
9276         <NOP_EXPR>: Turn into CASE_CONVERT.
9277         <PLUS_EXPR>: Propagate the type of the first operand.
9278
9279 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
9280
9281         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
9282         (ia64_dconst_0_375): New.
9283         * config/ia64/ia64.c (ia64_override_options): Remove
9284         -minline-sqrt-min-latency warning.
9285         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
9286         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
9287         * config/ia64/ia64.md (*sqrt_approx): Remove.
9288         (sqrtsf2): Remove #if 0.
9289         (sqrtsf2_internal_thr): Rewrite and move to div.md.
9290         (sqrtdf): Remove assert.
9291         (sqrtdf2_internal_thr): Rewrite and move to div.md.
9292         (sqrtxf2): Remove #if 0.
9293         (sqrtxf2_internal_thr): Rewrite and move to div.md.
9294         * div.md (sqrt_approx_rf): New.
9295         (sqrtsf2_internal_thr): New implementation.
9296         (sqrtsf2_internal_lat): New.
9297         (sqrtdf2_internal_thr: New implementation.
9298         (sqrtxf2_internal): New implementation.
9299
9300 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
9301             Hans-Peter Nilsson  <hp@axis.com>
9302
9303         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
9304         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
9305         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
9306         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
9307         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
9308         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
9309         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
9310         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
9311         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
9312         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
9313         * c-common.c: ...from here.
9314
9315 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9316
9317         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
9318
9319 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9320
9321         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
9322
9323 2009-05-19  Ben Elliston  <bje@au.ibm.com>
9324
9325         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
9326         assignments with memcpy calls.
9327         (add_fdes): Likewise.
9328         (binary_search_unencoded_fdes): Likewise.
9329         (linear_search_fdes): Eliminate type puns.
9330
9331 2009-05-19  Richard Guenther  <rguenther@suse.de>
9332
9333         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
9334         not falsely claim to have propagated into all uses.
9335
9336 2009-05-19  Ben Elliston  <bje@au.ibm.com>
9337
9338         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
9339         version to v3.0.
9340
9341 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
9342
9343         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
9344         * config/sh/sh.c (sh_legitimate_address_p): Make static.
9345         (TARGET_LEGITIMATE_ADDRESS_P): New.
9346         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9347         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
9348
9349 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
9350
9351         PR debug/40109
9352         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
9353         child of the containing namespace's DIE.
9354
9355 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
9356
9357         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
9358         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
9359         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
9360         extend patterns.
9361
9362 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
9363
9364         PR target/39942
9365         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
9366         gen_align with gen_pad.
9367         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
9368         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
9369
9370         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
9371         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
9372
9373         * config/i386/i386.md (align): Renamed to ...
9374         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
9375         ASM_OUTPUT_MAX_SKIP_PAD.
9376
9377 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
9378
9379         * config.gcc: Fix variable syntax.
9380
9381         PR target/39531
9382         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
9383         before calling exact_log2.
9384         (output_iorsi3): Likewise.
9385         (output_xorsi3): Likewise.
9386
9387 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
9388
9389         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
9390         for the none zero constant operand except for EQ and NE
9391         comprisons even when the first operand is R0.
9392
9393 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
9394
9395         * config/s390/2064.md: Remove trailing whitespaces.
9396         * config/s390/2084.md: Likewise.
9397         * config/s390/constraints.md: Likewise.
9398         * config/s390/fixdfdi.h: Likewise.
9399         * config/s390/libgcc-glibc.ver: Likewise.
9400         * config/s390/s390-modes.def: Likewise.
9401         * config/s390/s390-protos.h: Likewise.
9402         * config/s390/s390.c: Likewise.
9403         * config/s390/s390.h: Likewise.
9404         * config/s390/s390.md: Likewise.
9405         * config/s390/tpf-unwind.h: Likewise.
9406
9407 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
9408
9409         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
9410
9411 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
9412
9413         M68K TLS support.
9414         * configure.ac (m68k-*-*): Check if binutils support TLS.
9415         * configure: Regenerate.
9416         * config/m68k/predicates.md (symbolic_operand): Extend comment.
9417         * config/m68k/constraints.md (Cu): New constraint.
9418         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
9419         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
9420         (movsi): Handle TLS symbols.
9421         (addsi3_5200): Handle XTLS symbols, indent.
9422         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
9423         (m68k_tls_reference_p): Declare.
9424         (m68k_legitimize_address): Declare.
9425         (m68k_unwrap_symbol): Declare.
9426         * config/m68k/m68k.opt (mxtls): New option.
9427         * config/m68k/m68k.c (ggc.h): Include.
9428         (m68k_output_dwarf_dtprel): Implement hook.
9429         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
9430         (m68k_expand_prologue): Load GOT pointer when function needs it.
9431         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
9432         (m68k_legitimate_constant_address_p): Same.
9433         (m68k_decompose_address): Handle TLS references.
9434         (m68k_get_gp): New static function.
9435         (enum m68k_reloc): New contants.
9436         (TLS_RELOC_P): New macro.
9437         (m68k_wrap_symbol): New static function.
9438         (m68k_unwrap_symbol): New function.
9439         (m68k_final_prescan_insn_1): New static function.
9440         (m68k_final_prescan_insn): New function.
9441         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
9442         functions.
9443         (legitimize_pic_address): Handle TLS references..
9444         (m68k_tls_get_addr, m68k_get_tls_get_addr)
9445         (m68k_libcall_value_in_a0_p)
9446         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
9447         (m68k_call_m68k_read_tp): Helper variables and functions for ...
9448         (m68k_legitimize_tls_address): Handle TLS references.
9449         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
9450         New functions.
9451         (m68k_legitimize_address): Handle TLS symbols.
9452         (m68k_get_reloc_decoration): New static function.
9453         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
9454         UNSPEC_RELOC32.
9455         (m68k_output_dwarf_dtprel): Implement hook.
9456         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
9457         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
9458         m68k_call_* routines.
9459         (sched_attr_op_type): Handle TLS symbols.
9460         (gt-m68k.h): Include.
9461         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
9462         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
9463
9464 2009-05-18  Martin Jambor  <mjambor@suse.cz>
9465
9466         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
9467         (visit_store_addr_for_mod_analysis): New function.
9468         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
9469         (determine_cst_member_ptr): Use gimple_assign_single_p.
9470         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
9471         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
9472         operands.  Don't check number of operands of a NOP_EXPR.
9473
9474 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
9475
9476         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
9477
9478 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9479
9480         PR c/40172
9481         * c-common.c (warn_logical_operator): Don't warn if one of
9482         expression isn't always true or false.
9483
9484 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
9485
9486         * config/i386/biarch32.h: New file.
9487         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
9488
9489 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
9490
9491         * config/mips/mips.md (*zero_extend<mode>_trunchi,
9492         *zero_extend<mode>_truncqi): Merge these into ...
9493         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
9494         Name the pattern following this as *zero_extendhi_truncqi.
9495
9496 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
9497
9498         PR middle-end/39301
9499         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
9500         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
9501         (output_info): Make field HOST_WIDEST_INT.
9502         (print_statistics): Use HOST_WIDEST_INT_PRINT.
9503         (dump_bitmat_statistics): Same.
9504
9505 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
9506
9507         * config.gcc (use_gcc_stdint):  Set to wrap.
9508         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
9509         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
9510         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
9511         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
9512         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
9513         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
9514         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
9515         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
9516
9517 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
9518
9519         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
9520         tune_64.
9521         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
9522         Move definitions earlier.
9523         (OPT_ARCH64, OPT_ARCH32): Define.
9524         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
9525         and tune_64.
9526
9527 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
9528
9529         PR target/40153
9530         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
9531         implies.
9532
9533 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
9534
9535         * arm.md (movdi2): Copy non-reg values to DImode registers.
9536
9537 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
9538
9539         PR target/39942
9540         * final.c (label_to_max_skip): New function.
9541         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
9542         CODE_LABEL_NUMBER <= max_labelno.
9543         * output.h (label_to_max_skip): New prototype.
9544         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
9545         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
9546         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
9547         Handle CODE_LABELs with >= 16 byte alignment or with
9548         max_skip == (1 << align) - 1.
9549         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
9550         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
9551
9552         PR target/39942
9553         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
9554         .p2align 3 if MAX_SKIP is smaller than 7.
9555         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
9556
9557 2009-05-15  Ian Lance Taylor  <iant@google.com>
9558
9559         * alias.c (struct alias_set_entry_d): Rename from struct
9560         alias_set_entry.  Change all uses.
9561         * except.c (struct call_site_record_d): Rename from struct
9562         call_site_record.  Change all uses.
9563         * except.h (struct eh_region_d): Rename from struct eh_region.
9564         Change all uses.
9565         * gcse.c (struct hash_table_d): Rename from struct hash_table.
9566         Change all uses.
9567         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
9568         ivtype_map_elt.  Change all uses.
9569         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
9570         Change all uses.
9571         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
9572         * graphite.h (struct name_tree_d): Rename from struct name_tree.
9573         Change all uses.
9574         (struct sese_d): Rename from struct sese.  Change all uses.
9575         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
9576         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
9577         * optabs.h (struct optab_d): Rename from struct optab.  Change all
9578         uses.
9579         (struct convert_optab_d): Rename from struct convert_optab.
9580         Change all uses.
9581         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
9582         ipa_opt_pass.  Change all uses.
9583         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
9584         all uses.
9585
9586         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
9587         defined as a typedef.
9588         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
9589         defined as a tag.
9590
9591 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9592
9593         PR 16302
9594         * fold-const.c (make_range,build_range_check,merge_ranges): Move
9595         declaration to...
9596         (merge_ranges): Returns bool.
9597         * tree.h (make_range): .. to here.
9598         (build_range_check): Likewise.
9599         (merge_ranges): Likewise. Renamed from merge_ranges.
9600         * c-typeck.c (parser_build_binary_op): Update calls to
9601         warn_logical_operator.
9602         * c-common.c (warn_logical_operator): Add new warning.
9603         * c-common.h (warn_logical_operator): Update declaration.
9604
9605 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9606
9607         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
9608
9609 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9610
9611         * doc/install.texi: Document MPC requirements, flags etc.
9612
9613         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
9614         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
9615         Evaluate constant arguments.
9616         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
9617         (fold_builtin_1): Likewise, also evaluate constant arguments.
9618         Remove superfluous break.
9619         (do_mpc_ckconv): New.
9620         * real.h: Include mpc.h.
9621         * toplev.c (print_version): Output MPC version info if available.
9622
9623 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
9624
9625         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
9626
9627 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9628
9629         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
9630         only once.
9631
9632 2009-05-15  Jan Hubicka  <jh@suse.cz>
9633
9634         * doc/invoke.texi (max-early-inliner-iterations): New flag.
9635         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
9636         (try_inline): Fix return value.
9637         (cgraph_decide_inlining_incrementally): Honor new value.
9638         (cgraph_early_inlining): Handle indirect inlining.
9639         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
9640
9641 2009-05-15  Jan Hubicka  <jh@suse.cz>
9642
9643         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
9644         * cgraphunit.c (cgraph_finalize_function): Set it.
9645         (cgraph_expand_function): Use it.
9646
9647 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
9648
9649         * real.c (encode_ieee_half): Define.
9650         (decode_ieee_half): Define.
9651         (ieee_half_format): Define.
9652         (arm_half_format): Define.
9653         * real.h (ieee_half_format): Declare.
9654         (arm_half_format): Declare.
9655
9656 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
9657
9658         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
9659         swapped, and reversed optabs exist before trying to use them.
9660
9661 2009-05-15  Paul Brook  <paul@codesourcery.com>
9662             Sandra Loosemore  <sandra@codesourcery.com>
9663
9664         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
9665         loads.  Allow PRE_DEC.
9666         (output_move_neon): Handle PRE_DEC.
9667         (arm_print_operand): Add 'A' for neon structure loads.
9668         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
9669         * config/arm/neon.md (neon_mov): Update comment.
9670         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
9671         calls.
9672         (Um): New constraint.
9673
9674 2009-05-15  Jan Hubicka  <jh@suse.cz>
9675
9676         Revert the following patch until testsuite fallout is fixed:
9677         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
9678         * cgraph.h (struct inline_summary): New filed self_wize,
9679         size_inlining_benefit, self_time and time_inlining_benefit.
9680         (struct cgraph_global_info): Replace insns by time ans size fields.
9681         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
9682         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
9683         (ipcp_update_callgraph): Do not touch function bodies.
9684         * ipa-inline.c: Include except.h
9685         (MAX_TIME): New constant.
9686         (overall_insns): Remove
9687         (overall_size, max_benefit): New static variables.
9688         (cgraph_estimate_time_after_inlining): New function.
9689         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
9690         (cgraph_clone_inlined_nodes): Update size.
9691         (cgraph_mark_inline_edge): Update size.
9692         (cgraph_estimate_growth): Use size info.
9693         (cgraph_check_inline_limits): Check size.
9694         (cgraph_default_inline_p): Likewise.
9695         (cgraph_edge_badness): Compute badness based on benefit and size cost.
9696         (cgraph_decide_recursive_inlining): Check size.
9697         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
9698         and times.
9699         (cgraph_decide_inlining): Likewise.
9700         (cgraph_decide_inlining_incrementally): Likewise; honor
9701         PARAM_EARLY_INLINING_INSNS.
9702         (likely_eliminated_by_inlining_p): New predicate.
9703         (estimate_function_body_sizes): New function.
9704         (compute_inline_parameters): Use it.
9705         * except.c (must_not_throw_labels): New function.
9706         * except.h (must_not_throw_labels): Declare.
9707         * tree-inline.c (init_inline_once): Kill inlining_weigths
9708         * tree-ssa-structalias.c: Avoid uninitialized warning.
9709         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
9710         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
9711         (PARAM_INLINE_CALL_COST): Remove.
9712         (PARAM_EARLY_INLINING_INSNS): New.
9713
9714 2009-05-15  Richard Guenther  <rguenther@suse.de>
9715
9716         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
9717         not TODO_update_ssa.
9718
9719 2009-05-15  Richard Guenther  <rguenther@suse.de>
9720
9721         PR tree-optimization/39999
9722         * gimple.h (gimple_expr_type): Use the expression type looking
9723         through useless conversions.
9724         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
9725         (vn_nary_op_insert_stmt): Likewise.
9726         (simplify_binary_expression): Likewise.
9727
9728 2009-05-15  Richard Guenther  <rguenther@suse.de>
9729
9730         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
9731         New options, enabled by default.
9732         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
9733         Document.
9734         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
9735         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
9736         * tree-ssa-structalias.c (gate_tree_pta): New function.
9737         (pass_build_alias): Use it.
9738
9739 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
9740
9741         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
9742         recurse on an invariant address if a conversion from a pointer
9743         type to a wider integer type is involved.
9744
9745 2009-05-15  Jan Hubicka  <jh@suse.cz>
9746
9747         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
9748         * cgraph.h (struct inline_summary): New filed self_wize,
9749         size_inlining_benefit, self_time and time_inlining_benefit.
9750         (struct cgraph_global_info): Replace insns by time ans size fields.
9751         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
9752         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
9753         (ipcp_update_callgraph): Do not touch function bodies.
9754         * ipa-inline.c: Include except.h
9755         (MAX_TIME): New constant.
9756         (overall_insns): Remove
9757         (overall_size, max_benefit): New static variables.
9758         (cgraph_estimate_time_after_inlining): New function.
9759         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
9760         (cgraph_clone_inlined_nodes): Update size.
9761         (cgraph_mark_inline_edge): Update size.
9762         (cgraph_estimate_growth): Use size info.
9763         (cgraph_check_inline_limits): Check size.
9764         (cgraph_default_inline_p): Likewise.
9765         (cgraph_edge_badness): Compute badness based on benefit and size cost.
9766         (cgraph_decide_recursive_inlining): Check size.
9767         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
9768         and times.
9769         (cgraph_decide_inlining): Likewise.
9770         (cgraph_decide_inlining_incrementally): Likewise; honor
9771         PARAM_EARLY_INLINING_INSNS.
9772         (likely_eliminated_by_inlining_p): New predicate.
9773         (estimate_function_body_sizes): New function.
9774         (compute_inline_parameters): Use it.
9775         * except.c (must_not_throw_labels): New function.
9776         * except.h (must_not_throw_labels): Declare.
9777         * tree-inline.c (init_inline_once): Kill inlining_weigths
9778         * tree-ssa-structalias.c: Avoid uninitialized warning.
9779         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
9780         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
9781         (PARAM_INLINE_CALL_COST): Remove.
9782         (PARAM_EARLY_INLINING_INSNS): New.
9783         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
9784         (inline-call-cost): Remove.
9785         (early-inlining-insns): New.
9786
9787 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
9788
9789         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
9790         for bounds.
9791         (print_int_cst_bounds_in_octal_p): Likewise.
9792         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
9793         with subtypes.
9794         * dwarf2out.c (base_type_die): Likewise.
9795         (is_subrange_type): Delete.
9796         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
9797         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
9798         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
9799         if the destination type is boolean.
9800         (build_range_check): Do not special-case subtypes.
9801         (fold_sign_changed_comparison): Likewise.
9802         (fold_unary): Likewise.
9803         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
9804         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
9805         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
9806         * tree.c (subrange_type_for_debug_p): New predicate based on the
9807         former is_subrange_type.
9808         * tree.h (subrange_type_for_debug_p): Declare.
9809         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
9810         (convert_affine_scev): Remove call to above function.
9811         (chrec_convert_aggressive): Likewise.
9812         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
9813         false for conversions involving subtypes.
9814         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
9815         (vrp_val_min): Likewise.
9816         (needs_overflow_infinity): Likewise.
9817         (extract_range_from_unary_expr): Likewise.
9818
9819 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
9820
9821         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
9822         * config/frv/frv.c: Likewise.
9823         * config/s390/s390.c: Likewise.
9824         * config/sparc/sparc.h: Likewise.
9825         * config/i386/i386.h: Likewise.
9826         * config/i386/i386.c: Likewise.
9827         * config/crx/crx.c: Likewise.
9828         * config/m68hc11/m68hc11.h: Likewise.
9829         * config/iq2000/iq2000.c: Likewise.
9830         * config/mn10300/mn10300.h: Likewise.
9831         * config/mn10300/mn10300.c: Likewise.
9832         * config/m68k/m68k.c: Likewise.
9833         * config/rs6000/rs6000.c: Likewise.
9834         * config/rs6000/xcoff.h: Likewise.
9835         * config/rs6000/linux64.h: Likewise.
9836         * config/rs6000/sysv4.h: Likewise.
9837         * config/score/score3.c: Likewise.
9838         * config/score/score7.c: Likewise.
9839         * config/score/score.c: Likewise.
9840         * config/arm/arm.md: Likewise.
9841         * config/mips/mips.c: Likewise.
9842         * config/mips/mips.md: Likewise.
9843         * config/bfin/bfin.h: Likewise.
9844         * config/pa/pa.c: Likewise.
9845         * config/pa/constraints.md: Likewise.
9846
9847         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
9848         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
9849         * config/pdp11/pdp11.h: Use memory_address_p instead.
9850
9851 2009-05-14  Ian Lance Taylor  <iant@google.com>
9852
9853         * passes.c (finish_optimization_passes): Change i to int.
9854         * plugin.c (plugins_active_p): Change event to int.
9855         (dump_active_plugins): Likewise.
9856         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
9857         Add cast.
9858         * tree.c (tree_range_check_failed): Change c to unsigned int.
9859         (omp_clause_range_check_failed): Likewise.
9860         (build_common_builtin_nodes): Change mode to int.  Add cast.
9861         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
9862         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
9863
9864         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
9865         ++ or -- with a variable of enum type.
9866
9867 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
9868
9869         PR driver/40144
9870         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
9871
9872 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
9873
9874         * store-motion.c: Do not include params.h
9875         * Makefile.in: Fix dependencies for various files.
9876
9877 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
9878
9879         * auto-inc-dec.c: Fix pass description, remove apparent
9880         accidental duplication.
9881
9882 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
9883
9884         PR middle-end/40147
9885         * ipa-utils.h (memory_identifier_string): Moved to ...
9886         * tree.h (memory_identifier_string): Here.  Add GTY(()).
9887
9888 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
9889
9890         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
9891         in the former documentation of...
9892         (GO_IF_LEGITIMATE_ADDRESS): ... this.
9893         * ira-conflicts.c (get_dup_num): Use address_operand.
9894         * targhooks.c (default_legitimate_address_p): New.
9895         * targhooks.h (default_legitimate_address_p): New.
9896         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
9897         Call hook.
9898         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
9899         * target.h (struct target): Add legitimate_address_p.
9900         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
9901         (TARGET_INITIALIZER): Include it.
9902
9903         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9904         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
9905         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
9906         (TARGET_LEGITIMATE_ADDRESS_P): New.
9907
9908         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9909         (REG_OK_STRICT_P): Delete.
9910         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
9911         (frv_legitimate_address_p_1): ... this.
9912         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
9913         (frv_legitimate_address_p_1): ... the renamed old
9914         frv_legitimate_address_p.
9915         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
9916         (TARGET_LEGITIMATE_ADDRESS_P): New.
9917
9918         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9919         * config/s390/s390-protos.h (legitimate_address_p): Remove.
9920         * config/s390/s390.c (legitimate_address_p): Rename to...
9921         (s390_legitimate_address_p): ... this, make static.
9922         (legitimize_address): Adjust call.
9923         (TARGET_LEGITIMATE_ADDRESS_P): New.
9924         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
9925
9926         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9927         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
9928         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
9929         (TARGET_LEGITIMATE_ADDRESS_P): New.
9930
9931         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9932         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
9933         * config/spu/spu.c (spu_legitimate_address): Rename to...
9934         (spu_legitimate_address_p): ... this, make static.
9935         (TARGET_LEGITIMATE_ADDRESS_P): New.
9936
9937         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9938         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
9939         * config/sparc/sparc.c (legitimate_address_p): Rename to...
9940         (sparc_legitimate_address_p): ... this, make static and return bool.
9941         (legitimize_address): Adjust call.
9942         (TARGET_LEGITIMATE_ADDRESS_P): New.
9943
9944         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9945         * config/i386/i386-protos.h (legitimate_address_p): Remove.
9946         * config/i386/i386.c (legitimate_address_p): Rename to...
9947         (ix86_legitimate_address_p): ... this, make static.
9948         (constant_address_p): Move after it, adjust call.
9949         (TARGET_LEGITIMATE_ADDRESS_P): New.
9950
9951         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9952         * config/avr/avr-protos.h (legitimate_address_p): Remove.
9953         * config/avr/avr.c (legitimate_address_p): Rename to...
9954         (avr_legitimate_address_p): ... this, make static.
9955         (legitimize_address): Adjust call.
9956         (TARGET_LEGITIMATE_ADDRESS_P): New.
9957
9958         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9959         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
9960         * config/crx/crx.c (crx_legitimate_address_p): Make static.
9961         (TARGET_LEGITIMATE_ADDRESS_P): New.
9962
9963         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9964         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
9965         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
9966         (TARGET_LEGITIMATE_ADDRESS_P): New.
9967
9968         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9969         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
9970         Remove.
9971         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
9972         Make static.
9973         (TARGET_LEGITIMATE_ADDRESS_P): New.
9974
9975         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9976         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
9977         Remove.
9978         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
9979         Rename to...
9980         (m68hc11_legitimate_address_p): ... this, make static.
9981         (go_if_legitimate_address_internal): Rename to...
9982         (m68hc11_legitimate_address_p_1): ... this.
9983         (legitimize_address): Adjust call.
9984         (TARGET_LEGITIMATE_ADDRESS_P): New.
9985
9986         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9987         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
9988         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
9989         (TARGET_LEGITIMATE_ADDRESS_P): New.
9990
9991         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9992         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
9993         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
9994         (mn10300_legitimate_address_p): ... this, make static.
9995         (TARGET_LEGITIMATE_ADDRESS_P): New.
9996
9997         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9998         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
9999         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
10000         (TARGET_LEGITIMATE_ADDRESS_P): New.
10001
10002         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10003         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
10004         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
10005         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10006         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
10007         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
10008         (rs6000_legitimate_address_p): ... this, make static.
10009         (TARGET_LEGITIMATE_ADDRESS_P): New.
10010         (REG_MODE_OK_FOR_BASE_P): Delete.
10011         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
10012
10013         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10014         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
10015         Delete.
10016         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
10017         static, adjust types.
10018         (TARGET_LEGITIMATE_ADDRESS_P): New.
10019
10020         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10021         * config/score/score.c (score_address_p): Rename to...
10022         (score_legitimate_address_p): ... this.
10023         (TARGET_LEGITIMATE_ADDRESS_P): New.
10024         * config/score/score3.c (score3_address_p): Rename to...
10025         (score3_legitimate_address_p): ... this.
10026         * config/score/score7.c (score7_address_p): Rename to...
10027         (score7_legitimate_address_p): ... this.
10028
10029         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
10030         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
10031         GO_IF_LEGITIMATE_ADDRESS): Delete.
10032         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
10033         thumb2_legitimate_address_p): Delete.
10034         (arm_legitimate_address_p): Rename to...
10035         (arm_legitimate_address_outer_p): ... this.
10036         * config/arm/constraints.md ("Uq"): Adjust call.
10037         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
10038         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
10039         to...
10040         (arm_legitimate_address_outer_p): ... this.
10041         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
10042         static.
10043         (TARGET_LEGITIMATE_ADDRESS_P): New.
10044
10045         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10046         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
10047         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
10048         (TARGET_LEGITIMATE_ADDRESS_P): New.
10049
10050         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10051         * config/vax/vax-protos.h (legitimate_address_p): Remove.
10052         * config/vax/vax.c (legitimate_address_p): Rename to...
10053         (vax_legitimate_address_p): ... this, make static.
10054         (TARGET_LEGITIMATE_ADDRESS_P): New.
10055
10056         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10057         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
10058         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
10059         (TARGET_LEGITIMATE_ADDRESS_P): New.
10060
10061         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10062         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
10063         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
10064         (mmix_legitimate_address_p): ... this, make static.
10065         (TARGET_LEGITIMATE_ADDRESS_P): New.
10066
10067         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10068         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
10069         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
10070         (TARGET_LEGITIMATE_ADDRESS_P): New.
10071
10072 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
10073
10074         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
10075         of MODE_COMPLEX_INT.
10076
10077 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10078
10079         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
10080         LCT_NORMAL in function call.
10081         * mips-tdump.c (print_file_desc): Add cast to enum type.
10082         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
10083         (mark_stabs): Add casts to enum types.
10084         (parse_stabs_common): Add casts to enum types.
10085
10086 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
10087
10088         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
10089         Check for invalid values of LETTER.
10090
10091 2009-05-13  Taras Glek  <tglek@mozilla.com>
10092
10093         * attribs.c (register_attribute): moved out attribute registration
10094         into register_attribute.
10095         * doc/plugins.texi: Documented register_attribute and
10096         PLUGIN_ATTRIBUTES.
10097         * gcc-plugin.h: Added forward decl for register_attribute.
10098         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
10099         * plugin.c (register_callback, invoke_plugin_callbacks): Added
10100         PLUGIN_ATTRIBUTES boilerplate.
10101
10102 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
10103
10104         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
10105         values even in sentinel and empty entries.
10106         (ms_printf_flag_specs):  Likewise.
10107         (ms_scanf_flag_specs):  Likewise.
10108         (ms_strftime_flag_specs):  Likewise.
10109         (ms_print_char_table):  Likewise.
10110         (ms_scan_char_table):  Likewise.
10111         (ms_time_char_table):  Likewise.
10112
10113 2009-05-13  Doug Kwan  <dougkwan@google.com>
10114
10115         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
10116
10117 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
10118
10119         * config/mips/mips.md (store): Add attributes for QI and HI.
10120         Update comment.
10121         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
10122         (truncdi<mode>2): ... this new pattern.
10123
10124 2009-05-13  Brad Hards  <bradh@kde.org>
10125
10126         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
10127
10128 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
10129             Ben Elliston <bje@au.ibm.com>
10130
10131         PR middle-end/40035
10132         * dse.c (check_mem_read_rtx): Guard against width == -1.
10133
10134 2009-05-13  Michael Matz  <matz@suse.de>
10135
10136         PR middle-end/39976
10137         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
10138         (trivially_conflicts_p): New function.
10139         (insert_backedge_copies): Use it.
10140
10141 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
10142
10143         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
10144         (handle_stdc_pragma): Use new enum constant names.
10145         (handle_pragma_float_const_decimal64): Ditto.
10146
10147 2009-05-13  Ian Lance Taylor  <iant@google.com>
10148
10149         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
10150         tree.def.
10151
10152 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
10153
10154         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
10155         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
10156         multilibs.
10157         * config/m68k/m68k.h (FL_UCLINUX): Define.
10158
10159 2009-05-13  Jan Hubicka  <jh@suse.cz>
10160
10161         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
10162
10163 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
10164
10165         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
10166         unless -fschedule-insns is specified.
10167
10168 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
10169
10170         PR target/39561
10171         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
10172         TARGET_EXPAND_CBRANCHDI4.
10173         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
10174         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
10175         (cmpeqdi): Fix comment.
10176
10177 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
10178
10179         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
10180         (sh_legitimate_address_p): Likewise.
10181         * config/sh/sh.c (sh_legitimate_index_p): New.
10182         (sh_legitimate_address_p): Likewise.
10183         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
10184         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
10185         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
10186         (MAYBE_BASE_REGISTER_RTX_P): New macro.
10187         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
10188         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
10189         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
10190         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
10191         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
10192
10193 2009-05-12  Jan Hubicka  <jh@suse.cz>
10194
10195         * tree-inline.c (estimate_operator_cost): Add operands;
10196         when division happens by constant, it is cheap.
10197         (estimate_num_insns): Loads and stores are not having cost of 0;
10198         EH magic stuff is cheap; when computing runtime cost of switch,
10199         use log2 base of amount of its cases; builtin_expect has cost of 0;
10200         compute cost for moving return value of call.
10201         (init_inline_once): Initialize time_based flags.
10202         * tree-inline.h (eni_weights_d): Add time_based flag.
10203
10204 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
10205
10206         * df-core.c: Update head documentation.
10207
10208 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
10209
10210         PR bootstrap/40118
10211         * rs6000.c (rs6000_generate_compare): Use op1b instead of
10212         shadowing exisiting variable op1.
10213
10214 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
10215
10216         PR target/37179
10217         * config/i386/driver-i386.c (processor_signatures): New enum.
10218         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
10219         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
10220         processor signature to detect geode processor.
10221
10222 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
10223
10224         Revert:
10225
10226         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
10227
10228         * optabs.c (prepare_cmp_insn): Temporarily disable test that
10229         causes spurious differences between trunk and cond-optab branch.
10230
10231 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
10232
10233         * dojump.c (compare_from_rtx): Delete.
10234         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
10235         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
10236         if the comparison does not satisfy the predicate; test predicates for
10237         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
10238         further if one existing pattern fails.
10239         * expr.h (compare_from_rtx): Delete.
10240         (prepare_operand): Declare it.
10241         * optabs.c: Change "lib call" to "libcall" throughout.
10242         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
10243         HAVE_conditional_trap, emit_cmp_insn): Delete.
10244         (can_compare_p): Delete cmp_optab case.
10245         (prepare_float_lib_cmp): Return an rtx and a machine mode.
10246         Accept other parameters by value.
10247         (prepare_operand): Make non-static.
10248         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
10249         other parameters by value.  Try to widen operands here based on
10250         an optab_methods argument and looking at cbranch_optab.
10251         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
10252         loop.  Use cbranch_optab directly.
10253         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
10254         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
10255         assertion.
10256         (emit_conditional_move, emit_conditional_add): Inline what's needed
10257         of compare_from_rtx, using new prepare_cmp_insn for the rest.
10258         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
10259         with COMPARE.  Move cmov_optab and cstore_optab above
10260         with cbranch_optab, move cmp_optab down with ucmp_optab,
10261         remove tst_otpab.  Do not initialize trap_rtx.
10262         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
10263         for trap code.  Do not check HAVE_conditional_trap.  Use
10264         prepare_cmp_insn.  Accept no predicate for operand 3.
10265         * optabs.h (OTI_cmp): Mark as used only for libcalls.
10266         (OTI_ctrap, ctrap_optab): New.
10267         (tst_optab): Delete.
10268         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
10269         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
10270         with lookup of ctrap_optab.
10271         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
10272         Delete.
10273         (ctrap_optab): New.
10274
10275         * combine.c (combine_simplify_rtx, simplify_set): Do not
10276         special case comparing against zero for cc0 machines.
10277         * simplify-rtx.c (simplify_binary_operation_1): Never remove
10278         COMPARE on cc0 machines.
10279         (simplify_relational_operation): Return a new expression when
10280         a COMPARE could be removed.
10281         * final.c (final_scan_insn): Compare cc_status values
10282         against LHS of a (compare FOO (const_int 0)) cc0 source.
10283         Also check if cc_status.value is the full compare.
10284
10285         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
10286         (cstoreMM4): Document.
10287         (conditional_trap): Document ctrapMM4 instead.
10288         (sync_compare_and_swapMM): Refer to cbranchcc4.
10289         (Dependent Patterns): Eliminate obsolete information referring to
10290         the old jump optimization phase.
10291         (Canonicalization): Include cbranchcc4 case, omit canonicalization
10292         of compares with 0 on cc0 machines.
10293         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
10294         avoiding references to cc0.  Remove text about storing operands
10295         in cmpMM.
10296         * doc/tm.texi (Condition Codes): Include blurb on different
10297         condition code representations, separate into subsections for
10298         CC0, MODE_CC and conditional execution.
10299
10300         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
10301         alpha_emit_setcc): Accept operands and a machine mode.
10302         * config/alpha/alpha.c (alpha_emit_conditional_branch):
10303         Get code/op0/op1 from operands, use machine mode argument
10304         instead of alpha_compare.fp_p.  Emit the branch here.
10305         (alpha_emit_setcc): Likewise, and return boolean.
10306         (alpha_emit_conditional_move): Likewise.  Assert that
10307         cmp_op_mode == cmp_mode, and simplify accordingly.
10308         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
10309         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
10310         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
10311         Delete.
10312         (stack probe test): Use cbranchdi4.
10313         * config/alpha/predicates.md (alpha_cbranch_operator): New.
10314
10315         * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
10316         * config/arc/arc.h (movsicc, movsfcc): Use it.
10317         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
10318         (cbranchsi4, cstoresi4): New.
10319         (cmpsi, bCC and sCC expanders): Remove.
10320
10321         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
10322         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
10323         * config/arm/predicates.md (arm_comparison_operator): Only include
10324         floating-point operators if there is a hardware floating-point unit.
10325         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
10326         deferring to cbranch_cc and cstore_cc respectively.
10327         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
10328         cbranch_cc, cstore_cc): New.
10329         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
10330         arm_compare_op1.
10331         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
10332
10333         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
10334         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
10335         as an argument.
10336         (adjust_insn_length): Adjust calls.
10337         (avr_reorg): Handle (compare (foo) (const_int 0)).
10338         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
10339         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
10340         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
10341         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
10342         (bCC): Remove.
10343         (cbranchqi4, cbranchhi4, cbranchsi4): New.
10344         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
10345
10346         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
10347         (cbranchsi4, cstorebi4, cstoresi4): New.
10348         (movbisi): This insn is duplicate, split it to zero_extend.
10349         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
10350         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
10351         (bfin_optimize_loop): Use cbranch expander.
10352         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
10353         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
10354         (bfin_bimode_comparison_operator): ... this.
10355         (bfin_direct_comparison_operator): New.
10356
10357         * config/cris/cris.c (cris_normal_notice_update_cc): Look
10358         inside (compare FOO (const_int 0)).
10359         (cris_rtx_costs): Handle ZERO_EXTRACT.
10360         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
10361         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
10362         (*tstdi_v32): Delete.
10363         (*cmpdi_non_v32): Add M alternative for operand 1.
10364         (cmpsi, cmp<mode>): Make private.
10365         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
10366         with COMPARE.
10367         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
10368
10369         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
10370         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
10371         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
10372         (cc_reg_operand): New.
10373         (any_cond): Delete.
10374         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
10375         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
10376         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
10377         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
10378         crx_expand_scond): Delete.
10379
10380         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
10381         (cbranchsi4): New.
10382         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
10383         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
10384
10385         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
10386         cstoresi4, cstoresf4, cstoredf4): New.
10387         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
10388         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
10389         Receive the entire operands array.
10390         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
10391         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
10392         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
10393         Get test/op0/op1 from the operands array.
10394         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
10395
10396         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
10397         (h8300_expand_store): New.
10398         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
10399         (const_int 0)).
10400         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
10401         (h8300_expand_store): New.
10402         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
10403         or do not try to produce (set (cc0) REG).
10404         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
10405         change a compare into a move to a scratch register.  Disable some
10406         peepholes when comparing with zero.
10407         (tstsi, tsthi, tstsi, cmpqi): Make private.
10408         (cmphi): Delete.
10409         (bCC, sCC): Delete.
10410         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
10411         cstoresi4): New.
10412
10413         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
10414         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
10415         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
10416         (ix86_emit_i387_log1p): Use cbranchxf2.
10417         (ix86_expand_setcc): Return void.
10418         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
10419         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
10420         cmp<MODEF>, cmpcc): Remove.
10421         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
10422         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
10423         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
10424         (sCC and bCC expanders): Remove.
10425         (stack_protect_test): Use cbranchcc4.
10426
10427         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
10428         Delete.
10429         (ia64_expand_compare): Accept three rtx by reference and return void.
10430         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
10431         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
10432         from *expr.  Update *expr with the BImode comparison to do.
10433         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
10434         cmptf, bCC, sCC, conditional_trap): Delete.
10435         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
10436         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
10437         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
10438         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
10439         * config/ia64/predicates.md (ia64_cbranch_operator): New.
10440
10441         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
10442         type of last argument.
10443         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
10444         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
10445         use machine mode argument instead of branch_type.  Remove dead
10446         code for floating-point comparisons.
10447         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
10448         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
10449         Remove.
10450         (cbranchsi4, cstoresi4): New.
10451         * config/iq2000/predicates.md (reg_or_const_operand): New.
10452
10453         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
10454         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
10455         (b<code>_op): Rewrite to...
10456         (bcc_op): ... this, using match_operator.
10457         (s<code>_op): Rewrite to...
10458         (scc_op): ... this, using match_operator.
10459         (s<code>_24_op): Rewrite to...
10460         (scc_op_24): ... this, using match_operator.
10461         (s<code>_<mode>): Rewrite to...
10462         (cstore<mode>4): ... this, using match_operator.
10463         (s<code>_<mode>_24): Rewrite to...
10464         (cstore<mode>4_24): ... this, using match_operator.
10465         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
10466         m32c_unpend_compare, m32c_expand_scc): Delete.
10467         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
10468         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
10469         (m32c_expand_movcc): Change NE to EQ if necessary.
10470         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
10471
10472         * config/m32r/m32r-protos.h (gen_cond_store): New.
10473         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
10474         (gen_cond_store): New, from sCC patterns.
10475         (m32r_expand_block_move): Use cbranchsi4.
10476         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
10477         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
10478         (cbranchsi4, cstoresi4): New.
10479
10480         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
10481         Delete.
10482         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
10483         (m68hc11_notice_update_cc): Look into a compare with 0.
10484         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
10485         Delete.
10486         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
10487         cmphi, cmpqi, bCC): Delete.
10488         (cbranchsi4, cbranchhi4, cbranchqi4): New.
10489         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
10490         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
10491         sets with COMPARE.
10492
10493         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
10494         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
10495         * config/m68k/constraints.md (H): New.
10496         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
10497         the define_insn below.
10498         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
10499         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
10500         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
10501         patterns): Wrap RHS with COMPARE.
10502         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
10503         (*cmpdi_internal): Name this pattern.
10504         (cmpdi): Change to define_insn.
10505         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
10506         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
10507         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
10508         predicate.
10509         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
10510         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
10511         (conditional_trap): Change to...
10512         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
10513         (*conditional_trap): Use the ordered_comparison_operator and
10514         const1_operand predicates.
10515         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
10516         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
10517         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
10518         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
10519
10520         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
10521         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
10522         (mcore_gen_compare): New.
10523         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
10524         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
10525         (mcore_gen_compare): ... this.
10526         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
10527         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
10528         (stack probe pattern): Use cbranchsi4.
10529
10530         * config/mips/predicates.md (mips_cstore_operator): New.
10531         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
10532         * config/mips/mips.md (any_cond): Delete.
10533         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
10534         always succeed.
10535         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
10536         fixuns_truncsfdi2): Use cbranch patterns.
10537         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
10538         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
10539         Adjust call to mips_expand_conditional_branch.
10540         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
10541         cstore<GPR:mode>4.
10542         * config/mips/mips-protos.h (mips_expand_conditional_branch,
10543         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
10544         * config/mips/mips.c (cmp_operands): Delete.
10545         (mips_emit_compare): Get comparison operands from *op0/*op1.
10546         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
10547         that it succeeds.  Use op0/op1 instead of cmp_operands.
10548         (mips_expand_conditional_branch, mips_expand_conditional_move,
10549         mips_expand_conditional_trap): Likewise.
10550         (mips_block_move_loop): Use cbranch patterns.
10551         * config/mips/mips.h (cmp_operands): Delete.
10552
10553         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
10554         (mmix_gen_compare_reg): Just return a register in the right CC mode.
10555         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
10556         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
10557         (*cmpcc_folded): Rename to...
10558         (*cmpdi_folded): this.
10559         (*cmpcc): Rename to...
10560         (*cmps): ... this.
10561         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
10562         (bCC): Remove.
10563         (cbranchdi4): New.
10564         (cbranchdf4): New.  Handle invalid comparisons here.
10565         * config/mmix/predicates.md (float_comparison_operator): New.
10566
10567         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
10568         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
10569         * config/mn10300/mn10300.md (tst): Delete.
10570         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
10571         Name these patterns and wrap RHS in a compare.
10572         (*cmpsi): Make this pattern private.  Include tst.
10573         (*cmpsf): Make this pattern private.
10574         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
10575         (compare with zero peepholes): Likewise.
10576         (bCC): Remove.
10577         (cbranchsi4, cbranchsf4): New.
10578         (casesi): Use cbranchsi4.
10579
10580         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
10581         hppa_branch_type): Delete.
10582         (return_addr_rtx): Use cbranchsi4.
10583         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
10584         Emit CCFPmode comparison here.
10585         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
10586         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
10587         hppa_branch_type): Delete.
10588         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
10589         (movsicc, movdicc): Remove references to hppa_compare_op0,
10590         hppa_compare_op1 and compare_from_rtx.
10591         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
10592         (casesi): Use cbranchsi4.
10593
10594         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
10595         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
10596         * config/pdp11/pdp11.md (register_or_const0_operand): New.
10597         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
10598         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
10599         (bCC): Delete.
10600         (cbranchdf4, cbranchhi4, cbranchqi4): New.
10601         (*branch, *branch_inverted): New.
10602
10603         * config/picochip/picochip.md (cbranchhi4): Use
10604         ordered_comparison_operator.
10605         (cmphi, bCC): Remove.
10606
10607         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
10608         (trap_comparison_operator): Delete.
10609         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
10610         rs6000_emit_cbranch): Accept mode and operands.
10611         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
10612         rs6000_compare_fp_p): Delete.
10613         (rs6000_generate_compare): Accept mode and comparison.  Extract code
10614         and op0/op1 from there.  Replace references to rs6000_compare_op0
10615         and rs6000_compare_op1.
10616         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
10617         extract result from passed operands.
10618         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
10619         extract loc from passed operands.
10620         (rs6000_emit_cmove): Likewise.
10621         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
10622         rs6000_compare_fp_p): Delete.
10623         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
10624         (cbranch<GPR>4, cbranch<FP>4): New.
10625         (cstore<mode>4): New.  Consolidate here all choices about when to use
10626         portable or specialized sCC sequences.
10627         (stack_protect_test): Use cbranchsi4.
10628         (conditional_trap): Replace with ctrap<GPR>4.
10629         (conditional trap insn): Replace trap_comparison_operator with
10630         ordered_comparison_operator.
10631
10632         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
10633         (s390_emit_prologue): Use ctrap.
10634         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
10635         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
10636         New predicates replacing...
10637         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
10638         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
10639         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
10640         (add<mode>cc): Do not use s390_compare_op0/op1.
10641         (s<code>): Change to...
10642         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
10643         (seq): Change to...
10644         (cstorecc4): ... this.  Handle EQ or NE equally.
10645         (*sne): Un-privatize for use in cstorecc4.
10646         (b<code>): Change to...
10647         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
10648         (conditional_trap): Replace with...
10649         (ctrap<GPR>4, ctrap<FP>4): ... these.
10650         (stack_protect): Use cbranchcc4.
10651
10652         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
10653         * config/score/score-protos.h (score_gen_cmp): Delete.
10654         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
10655         (score_block_move-loop): Use cbranchsi4.
10656         * config/score/score.md (cbranchsi4): New.
10657         (cmpsi, bCC): Delete.
10658         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
10659         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
10660         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
10661         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
10662         * config/score/score3.h (score3_gen_cmp): Delete.
10663         * config/score/score7.h (score7_gen_cmp): Delete.
10664
10665         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
10666         (sh_emit_scc_to_t): ... this.  Return void.
10667         (from_compare): Rename to...
10668         (sh_emit_compare_and_branch): ... this.
10669         (sh_emit_compare_and_set): New.
10670         (sh_expand_t_scc): Accept operands.
10671         * config/sh/predicates.md (sh_float_comparison_operator): New.
10672         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
10673         (prepare_scc_operands): Rename to...
10674         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
10675         arguments.
10676         (sh_emit_cheap_store_flag): New.
10677         (sh_emit_set_t_insn): New.
10678         (from_compare): Rename to...
10679         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
10680         handling of TARGET_SH2E floating point to avoid recursive call.
10681         Generate branch here.
10682         (sh_emit_compare_and_set): New.
10683         (sh_expand_t_scc): Get op0/op1 from arguments.
10684         (sh_emit_cheap_store_flag): New.
10685         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
10686         cases.
10687         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
10688         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
10689         (movsicc, movdicc): Do nothing when it recreated operands from
10690         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
10691         prepare_scc_operands (now sh_emit_scc_to_t).
10692         (udivdi3): Use cstoresi4.
10693         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
10694         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
10695         (cbranchint4_media, cbranchfp4_media): New.
10696         (casesi): Use cbranchdi4.
10697         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
10698         Delete.
10699         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
10700         (movnegt): Remove second operand.
10701         (cbranchsf4, cbranchdf4): New.
10702         (stack_protect): Use cbranchdi4/cbranchsi4.
10703
10704         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
10705         (gen_compare_reg): Accept comparison, extract part of it to...
10706         (gen_compare_reg_1): ... this.
10707         (gen_compare_operator): Delete.
10708         (gen_v9_scc): Accept separate destination, comparison code and arms.
10709         Do not use sparc_compare_op0/sparc_compare_op1.
10710         (emit_scc_insn, emit_conditional_branch_insn): New.
10711         (emit_v9_brxx): Make static.  Remove useless assertion.
10712         (sparc_emit_float_lib_cmp): Return RTL instead of calling
10713         emit_cmp_insn.
10714         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
10715         * config/sparc/sparc-protos.h (gen_compare_reg,
10716         sparc_emit_float_lib_cmp): Adjust prototype.
10717         (emit_scc_insn, emit_conditional_branch_insn): New.
10718         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
10719         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
10720         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
10721         iterators to the top.
10722         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
10723         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
10724         snedi_special_trunc): Delete.
10725         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
10726         and snedi_special_trunc.
10727         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
10728         cbranchdi4, cbranch<F:mode>4): New.
10729         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
10730         here.  Use gen_compare_reg instead of gen_compare_operator.
10731         (conditional_trap): Replace with...
10732         (ctrapsi4, ctrapdi4): ... this.
10733         (stack_protect_test): Use cbranchcc4.
10734
10735         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
10736         argument to rtx.
10737         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
10738         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
10739         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
10740         from operands[0] or operands[3] depending on is_set.
10741         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
10742         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
10743         cmpdf, bCC), sCC: Remove.
10744         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
10745         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
10746         cstoredf4): New.
10747         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
10748         spu_emit_branch_or_set.
10749
10750         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
10751         Add two arguments.
10752         * config/stormy16/stormy16.h (xstormy16_compare_op0,
10753         xstormy16_compare_op1): Delete.
10754         * config/stormy16/stormy16.c (xstormy16_compare_op0,
10755         xstormy16_compare_op1): Delete.
10756         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
10757         Adjust calls.
10758         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
10759         (cmphi, cmpsi, bCC): Remove.
10760
10761         * config/v850/v850.md (tstsi, cmpsi): Fold into...
10762         (*cmpsi): ... this one.
10763         (cbranchsi4, cstoresi4): New.
10764         (bCC expanders): Delete.
10765         (sCC insns): Fold into...
10766         (*setcc): ... this one.
10767         (casesi): Do not use gen_cmpsi and gen_bgtu.
10768         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
10769         (movsicc): Simplify.
10770         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
10771
10772         * config/vax/vax-protos.h (cond_name): New.
10773         (vax_output_conditional_branch): Remove.
10774         * config/vax/vax.c (cond_name): New.
10775         (vax_output_conditional_branch): Remove.
10776         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
10777         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
10778         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
10779         (bit<VAXint>): Wrap source with (compare).
10780         (b<code> and following unnamed pattern): Rename to *branch and
10781         *branch_reversed.  Change macroization to match_operator.
10782         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
10783
10784         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
10785         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
10786         Change last argument to machine_mode.
10787         (xtensa_expand_scc): Add machine_mode argument.
10788         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
10789         (gen_conditional_move, xtensa_expand_conditional_branch,
10790         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
10791         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
10792         Adjust operand numbers.
10793         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
10794         Delete.
10795         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
10796         (cmpsi, cmpsf, b<code>, s<code>): Delete.
10797         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
10798
10799 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
10800
10801         * optabs.c (prepare_cmp_insn): Temporarily disable test that
10802         causes spurious differences between trunk and cond-optab branch.
10803
10804 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
10805
10806         PR target/37137
10807         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
10808
10809 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
10810
10811         * tree.c (iterative_hash_pointer): Delete.
10812         (iterative_hash_expr): Short-circuit handling of NULL pointer.
10813         Hash UIDs and versions of SSA names.  Don't special-case built-in
10814         function declarations.
10815
10816 2009-05-11  Ian Lance Taylor  <iant@google.com>
10817
10818         PR bootstrap/40103
10819         * graphite.c: Force -Wc++-compat to only be a warning before
10820         #including "cloog/cloog.h".
10821
10822 2009-05-11  Martin Jambor  <mjambor@suse.cz>
10823
10824         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
10825
10826 2009-05-11  Jan Hubicka  <jh@suse.cz>
10827
10828         * tree-ssa-loop-ivcanon.c: Include target.h
10829         (struct loop_size): new structure.
10830         (constant_after_peeling): New predicate.
10831         (tree_estimate_loop_size): New function.
10832         (estimated_unrolled_size): Rewrite for new estimates.
10833         (try_unroll_loop_completely): Use new estimates.
10834         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
10835
10836 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10837
10838         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
10839         libcpp interface change.
10840         (spu_macro_to_expand): Likewise.
10841
10842 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
10843
10844         PR tree-optimization/40026
10845         * gimplify.c (gimplify_init_constructor): Change initial conditional
10846         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
10847         optimize_compound_literals_in_ctor.
10848
10849 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
10850
10851         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
10852         New devices.
10853         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
10854
10855 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
10856
10857         * tree-vect-data-refs.c (vect_analyze_group_access): Use
10858         HOST_WIDE_INT for gap.
10859
10860 2009-05-11  Ira Rosen  <irar@il.ibm.com>
10861
10862         PR tree-optimization/40074
10863         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
10864         account in group size and step comparison.
10865
10866 2009-05-11  Richard Guenther  <rguenther@suse.de>
10867
10868         * passes.c (init_optimization_passes): Strip now incorrect comment.
10869         (execute_function_todo): Do not set PROP_alias.
10870         * tree-pass.h (PROP_alias): Remove.
10871         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
10872         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
10873         * tree-nrv.c (pass_return_slot): Likewise.
10874         * tree-object-size.c (pass_object_sizes): Likewise.
10875         * tree-ssa-dom.c (pass_dominator): Likewise.
10876         (pass_phi_only_cprop): Likewise.
10877         * tree-ssa-dse.c (pass_dse): Likewise.
10878         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
10879         (pass_cselim): Likewise.
10880         * tree-ssa-pre.c (pass_pre): Likewise.
10881         (pass_fre): Likewise.
10882         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10883         * tree-ssa-sink.c (pass_sink_code): Likewise.
10884         * tree-stdarg.c (pass_stdarg): Likewise.
10885         * tree-tailcall.c (pass_tail_calls): Likewise.
10886         * tree-vrp.c (pass_vrp): Likewise.
10887
10888 2009-05-10  Ian Lance Taylor  <iant@google.com>
10889
10890         * basic-block.h (enum profile_status): Break out of struct
10891         control_flow_graph.
10892         * cgraph.h (struct inline_summary): Break out of struct
10893         cgraph_local_info.
10894         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
10895         of struct cgraph_order_sort.
10896         * combine.c (enum undo_kind): New enum, broken out of struct undo.
10897         * cse.c (struct branch_path): Break out of struct
10898         cse_basic_block_data.
10899         * except.h (enum eh_region_type): Break out of struct eh_region.
10900         * gcc.c (enum add_del): Break out of struct modify_target.
10901         * genrecog.c (enum decision_type): Break out of struct decision_test.
10902         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
10903         ggc_pch_data.
10904         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
10905         * regmove.c (enum match_use): New enum, broken out of struct match.
10906         * sched-int.h (enum post_call_group): New enum, broken out of
10907         struct deps.
10908         (struct deps_reg): Break out of struct deps.
10909         * target.h (struct asm_int_op): Break out of struct gcc_target.
10910         * tree-eh.c (struct goto_queue_node): Break out of struct
10911         leh_tf_state.
10912         * tree-inline.h (enum copy_body_cge_which): Break out of
10913         copy_body_data.
10914         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
10915
10916         * c-decl.c (in_struct, struct_types): New static variables.
10917         (pushtag): Add loc parameter.  Change all callers.
10918         (lookup_tag): Add ploc parameter.  Change all callers.
10919         (check_compound_literal_type): New function.
10920         (parser_xref_tag): Add loc parameter.  Change all callers.  If
10921         -Wc++-compat, warn about struct/union/enum types defined within a
10922         struct or union.
10923         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
10924         and loc parameters.  Change all callers.  Change error calls to
10925         error_at, using loc.  For a redefinition, if the location of the
10926         original definition is known, report it.  Set in_struct and
10927         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
10928         (finish_struct): Add new parameters enclosing_in_struct and
10929         enclosing_struct_types.  Change all callers.  Set
10930         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
10931         in the struct.  If in a struct, add this struct to struct_types.
10932         (start_enum): Add loc parameter.  Change all callers.  Use
10933         error_at for errors, using loc.  For a redefinition, if the
10934         location of the original definition is known, report it.  If in a
10935         struct, add this enum type to struct_types.  If -Wc++-compat warn
10936         if in sizeof, typeof, or alignof.
10937         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
10938         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
10939         (c_parser_enum_specifier): Get enum location for start_enum.
10940         (c_parser_struct_or_union_specifier): Get struct location for
10941         start_struct.  Save in_struct and struct_types status between
10942         start_struct and finish_struct.
10943         (c_parser_cast_expression): Get location of cast.
10944         (c_parser_alignof_expression): Get location of type.
10945         (c_parser_postfix_expression): Likewise.
10946         (c_parser_postfix_expression_after_paren_type): Add type_loc
10947         parameter.  Change all callers.  Call check_compound_literal_type.
10948         Use type_loc for error about variable size type.
10949         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
10950         of an enum constant from an enum type defined in a struct or union.
10951         (c_cast_expr): Add loc parameter.  Change all callers.  If
10952         -Wc++-compat, warn about defining a type in a cast.
10953         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
10954         (start_enum, start_struct, finish_struct): Update declarations.
10955         (parser_xref_tag, c_cast_expr): Update declarations.
10956         (check_compound_literal_type): Declare.
10957
10958 2009-05-11  Ben Elliston  <bje@au.ibm.com>
10959
10960         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
10961         for recent libcpp interface change.
10962         (rs6000_macro_to_expand): Likewise.
10963
10964 2009-05-10  Michael Matz  <matz@suse.de>
10965
10966         PR target/40031
10967         * config/arm/arm.c (require_pic_register): Emit on entry edge,
10968         not at entry of function.
10969
10970 2009-05-10  Richard Guenther  <rguenther@suse.de>
10971
10972         PR tree-optimization/40081
10973         Revert
10974         * tree-sra.c (instantiate_element): Instantiate scalar replacements
10975         using the main variant of the element type.  Do not fiddle with
10976         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
10977
10978         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
10979         structs with volatile fields.
10980
10981 2009-05-10  Jan Hubicka  <jh@suse.cz>
10982
10983         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
10984         (estimate_move_cost): Assert that it does not get called for
10985         VOID_TYPE_P.
10986         (estimate_num_insns): Skip VOID types in argument handling.
10987         (optimize_inline_calls): Delete unreachable blocks and verify that
10988         callgraph is valid.
10989
10990 2009-05-10  Jan Hubicka  <jh@suse.cz>
10991
10992         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
10993         * cgraph.c (cgraph_mark_address_taken_node): New function.
10994         (dump_cgraph_node): Dump new flag.
10995         * cgraph.h (struct cgraph_node): Add address_taken.
10996         (cgraph_mark_address_taken_node): New function.
10997         * ipa.c (cgraph_postorder): Prioritize functions with address taken
10998         since new direct calls can be born.
10999
11000 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
11001
11002         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
11003         tok->val.node.node.
11004
11005 2009-05-10  Jan Hubicka  <jh@suse.cz>
11006
11007         PR middle-end/40084
11008         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
11009         argument; rewrite.
11010         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
11011         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
11012         * tree-inline.c (copy_bb): Set frequency correctly.
11013         (fold_marked_statements): Update call to
11014         cgraph_update_edges_for_call_stmt.
11015
11016 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
11017
11018         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
11019         identifiers in diagnostics.
11020         * config/arm/arm.c (arm_handle_fndecl_attribute,
11021         arm_handle_isr_attribute): Likewise.
11022         * config/avr/avr.c (avr_handle_progmem_attribute,
11023         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
11024         * config/bfin/bfin.c (handle_int_attribute,
11025         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
11026         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
11027         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
11028         Likewise.
11029         * config/darwin.c (darwin_handle_kext_attribute,
11030         darwin_handle_weak_import_attribute): Likewise.
11031         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
11032         h8300_handle_eightbit_data_attribute,
11033         h8300_handle_tiny_data_attribute): Likewise.
11034         * config/i386/i386.c (ix86_handle_cconv_attribute,
11035         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
11036         * config/i386/winnt.c (ix86_handle_shared_attribute,
11037         ix86_handle_selectany_attribute): Likewise.
11038         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
11039         * config/m32c/m32c.c (function_vector_handler): Likewise.
11040         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
11041         m68hc11_handle_fntype_attribute): Likewise.
11042         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
11043         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
11044         * config/mips/mips.c (mips_insert_attributes,
11045         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
11046         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
11047         rs6000_handle_struct_attribute): Likewise.
11048         * config/sh/sh.c (sh_insert_attributes,
11049         sh_handle_resbank_handler_attribute,
11050         sh_handle_interrupt_handler_attribute,
11051         sh2a_handle_function_vector_handler_attribute,
11052         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
11053         Likewise.
11054         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
11055         * config/spu/spu.c (spu_handle_fndecl_attribute,
11056         spu_handle_vector_attribute): Likewise.
11057         * config/stormy16/stormy16.c
11058         (xstormy16_handle_interrupt_attribute): Likewise.
11059         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
11060         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
11061
11062 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
11063
11064         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
11065         (pp_translate_identifiers): New.
11066         (pp_identifier): Only conditionally translate identifier to locale
11067         character set.
11068         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
11069         (pp_base_tree_identifier): Only conditionally translate identifier
11070         to locale character set.
11071         * c-pretty-print.c (M_): Define.
11072         (pp_c_type_specifier, pp_c_primary_expression): Mark English
11073         fragments for conditional translation with M_.
11074         * tree-pretty-print.c (maybe_init_pretty_print): Disable
11075         identifier translation.
11076
11077 2009-05-10  Richard Guenther  <rguenther@suse.de>
11078
11079         PR tree-optimization/40081
11080         * tree-sra.c (instantiate_element): Instantiate scalar replacements
11081         using the main variant of the element type.  Do not fiddle with
11082         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
11083
11084 2009-05-09  Jan Hubicka  <jh@suse.cz>
11085
11086         PR middle-end/40080
11087         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
11088         indirect calls; verify cgraph afterwards.
11089
11090 2009-05-09  Jan Hubicka  <jh@suse.cz>
11091
11092         PR bootstrap/40082
11093         * ipa.c (update_inlined_to_pointer): New function.
11094         (cgraph_remove_unreachable_nodes): Use it.
11095
11096 2009-05-09  Jan Hubicka  <jh@suse.cz>
11097
11098         * tree-eh.c (struct leh_state): Remove prev_try.
11099         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
11100         not track prev_try.
11101         * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
11102         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
11103         remove_eh_handler_and_replace, foreach_reachable_handler,
11104         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
11105         * except.h (struct eh_region): Remove eh_region_u_cleanup.
11106         (gen_eh_region_cleanup): Update prototype.
11107
11108 2009-05-09  Jan Hubicka  <jh@suse.cz>
11109
11110         PR middle-end/40043
11111         * except.c (copy_eh_region): Always set prev_try.
11112         (redirect_eh_edge_to_label): Find outer try.
11113         (foreach_reachable_handler): When looking for prev try
11114         handle case where previous try is not going to be taken.
11115
11116 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
11117
11118         PR tree-optimization/40049
11119         * tree-vect-stmts.c (vectorizable_operation): If the machine has
11120         only vector/vector shifts, convert the type of the constant to the
11121         appropriate type to avoid building incorrect trees, which
11122         eventually have problems with garbage collection.
11123
11124 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
11125
11126         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
11127         -1 for complex floating-point types if honoring signed zeros.
11128
11129 2009-05-08  Jan Hubicka  <jh@suse.cz>
11130
11131         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
11132         argument; handle correctly when profile is absent.
11133         (build_cgraph_edges): Update.
11134         (rebuild_cgraph_edges): Update.
11135         * cgraph.c: Do not include varray.h.
11136         (cgraph_set_call_stmt_including_clones): New function.
11137         (cgraph_create_edge_including_clones): Likewise
11138         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
11139         (cgraph_update_edges_for_call_stmt): Handle clones.
11140         (cgraph_remove_node): Handle clone tree.
11141         (cgraph_remove_node_and_inline_clones): New function.
11142         (dump_cgraph_node): Dump clone tree.
11143         (cgraph_clone_node): Handle clone tree.
11144         (clone_function_name): Bring here from tree-inline.c.
11145         (cgraph_create_virtual_clone): New function.
11146         * cgraph.h (ipa_replace_map): Move here from ipa.h.
11147         (cgraph_clone_info): New function.
11148         (strut cgraph_node): Add clone_info and new clone tree pointers.
11149         (cgraph_remove_node_and_inline_clones,
11150         cgraph_set_call_stmt_including_clones,
11151         cgraph_create_edge_including_clones,
11152         cgraph_create_virtual_clone): Declare.
11153         (cgraph_function_versioning): Use VEC argument.
11154         (compute_call_stmt_bb_frequency): Update prototype.
11155         (cgraph_materialize_all_clones): New function.
11156         * ipa-cp.c (ipcp_update_cloned_node): Remove.
11157         (ipcp_create_replace_map): Update to VECtors.
11158         (ipcp_update_callgraph): Use virtual clones.
11159         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
11160         (ipcp_update_profiling): Do not update local profiling.
11161         (ipcp_insert_stage): Use VECtors and virtual clones.
11162         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
11163         (clone_of_p): New function.
11164         (cgraph_preserve_function_body_p): Use clone tree.
11165         (cgraph_optimize): Materialize clones.
11166         (cgraph_function_versioning): Update for VECtors.
11167         (save_inline_function_body): Use clone tree.
11168         (cgraph_materialize_clone): New function.
11169         (cgraph_materialize_all_clones): Likewise.
11170         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
11171         * ipa.c: Include gimple.h.
11172         (cgraph_remove_unreachable_nodes): Use clone tree.
11173         * ipa-prop.c (ipa_note_param_call): Update call to
11174         compute_call_stmt_bb_frequencycall.
11175         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
11176         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
11177         (copy_bb): Handle updating of clone tree; add new edge when new call
11178         appears.
11179         (expand_call_inline): Be strict about every call having edge.
11180         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
11181         (delete_unreachable_blocks_update_callgraph): New function.
11182         (tree_function_versioning): Use VECtors; always remove unreachable
11183         blocks and fold conditionals.
11184         * tree-inline.h: Do not include varray.h.
11185         (tree_function_versioning): Remove.
11186         * Makefile.in (GTFILES): Remove tree-inline.c
11187         * passes.c (do_per_function): Do only functions having body.
11188         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
11189         tree.
11190
11191 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
11192             Andrew Morrow  <acm@google.com>
11193
11194         PR c/36892
11195         * c-common.c (c_common_attribute_table): Permit deprecated
11196         attribute to take an optional argument.
11197         (handle_deprecated_attribute): If the optional argument to
11198         __attribute__((deprecated)) is not a string ignore the attribute
11199         and emit a warning.
11200
11201         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
11202         * c-typeck.c (build_component_ref): Likewise.
11203         (build_external_ref): Likewise.
11204
11205         * toplev.c (warn_deprecated_use): Add an attribute argument.
11206         Emit the message associated with __attribute__((deprecated)).
11207
11208         * toplev.h (warn_deprecated_use): Updated.
11209
11210         * doc/extend.texi: Document new optional parameter to
11211         __attribute__((deprecated))
11212
11213 2009-05-08  Michael Eager <eager@eagercon.com>
11214
11215         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
11216         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
11217
11218 2009-05-08  Richard Guenther  <rguenther@suse.de>
11219
11220         PR tree-optimization/40062
11221         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
11222         Avoid exponential behavior.
11223
11224 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
11225
11226         PR rtl-optimization/33928
11227         PR 26854
11228         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
11229         process_uses, build_single_def_use_links): New.
11230         (update_df): Update use_def_ref.
11231         (forward_propagate_into): Use get_def_for_use instead of use-def
11232         chains.
11233         (fwprop_init): Call build_single_def_use_links and let it initialize
11234         dataflow.
11235         (fwprop_done): Free use_def_ref.
11236         (fwprop_addr): Eliminate duplicate call to df_set_flags.
11237         * df-problems.c (df_rd_simulate_artificial_defs_at_top,
11238         df_rd_simulate_one_insn): New.
11239         (df_rd_bb_local_compute_process_def): Update head comment.
11240         (df_chain_create_bb): Use the new RD simulation functions.
11241         * df.h (df_rd_simulate_artificial_defs_at_top,
11242         df_rd_simulate_one_insn): New.
11243         * opts.c (decode_options): Enable fwprop at -O1.
11244         * doc/invoke.texi (-fforward-propagate): Document this.
11245
11246 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
11247
11248         PR c/24581
11249         * c-typeck.c (build_binary_op): Handle arithmetic between one real
11250         and one complex operand specially.
11251         * tree-complex.c (some_nonzerop): Do not identify a real value as
11252         zero if flag_signed_zeros.
11253
11254 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
11255
11256         PR rtl-optimization/33928
11257         * loop-invariant.c (record_use): Fix && vs. || mishap.
11258
11259 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
11260
11261         PR rtl-optimization/33928
11262         * loop-invariant.c (struct use): Add addr_use_p.
11263         (struct def): Add n_addr_uses.
11264         (struct invariant): Add cheap_address.
11265         (create_new_invariant): Set cheap_address.
11266         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
11267         (record_uses): Pass df_ref to record_use.
11268         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
11269         used only as such.
11270
11271 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
11272
11273         * config/sh/sh.c: Do not include c-pragma.h.
11274
11275 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11276
11277         * config/spu/spu.c: Remove include of c-common.h.
11278
11279 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
11280
11281         PR c/39037
11282         * c-common.h (mark_valid_location_for_stdc_pragma,
11283         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
11284         clear_float_const_decimal64, float_const_decimal64_p): New.
11285         * c.opt (Wunsuffixed-float-constants): New.
11286         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
11287         unsuffixed float constant, handle new warning.
11288         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
11289         * c-decl.c (c_scope): New flag float_const_decimal64.
11290         (set_float_const_decimal64, clear_float_const_decimal64,
11291         float_const_decimal64_p): New.
11292         (push_scope): Set new flag.
11293         * c-parser.c (c_parser_translation_unit): Mark when it's valid
11294         to use STDC pragmas.
11295         (c_parser_external_declaration): Ditto.
11296         (c_parser_compound_statement_nostart): Ditto.
11297         * c-pragma.c (valid_location_for_stdc_pragma,
11298         mark_valid_location_for_stdc_pragma,
11299         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
11300         handle_pragma_float_const_decimal64): New.
11301         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
11302         * cp/semantics.c (valid_location_for_stdc_pragma_p,
11303         set_float_const_decimal64, clear_float_const_decimal64,
11304         float_const_decimal64_p): New dummy functions.
11305         * doc/extend.texi (Decimal Float): Remove statement that the
11306         pragma, and suffix for double constants, are not supported.
11307         * doc/invoke.texi (Warning Options): List new option.
11308         (-Wunsuffixed-float-constants): New.
11309
11310 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
11311
11312         * config/i386/i386.c: Do not include c-common.h.
11313
11314 2009-05-07  Mark Heffernan  <meheff@google.com>
11315
11316         * doc/invoke.texi (Debugging Options): Document change of debugging
11317         dump location.
11318         * opts.c (decode_options): Make dump_base_name relative to
11319         aux_base_name directory.
11320
11321 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
11322
11323         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
11324         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
11325
11326 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
11327
11328         * Makefile.in (install-plugin): Simplify a bit.
11329
11330 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
11331
11332         * Makefile.in (OBJS-common): Add regcprop.o.
11333         (regcprop.o): New.
11334         * timevar.def (TV_CPROP_REGISTERS): New.
11335         * regrename.c (regrename_optimize): Return 0.
11336         (rest_of_handle_regrename): Delete.
11337         (pass_rename_registers): Point to regrename_optimize.
11338         (struct value_data_entry, struct value_data,
11339         kill_value_one_regno, kill_value_regno, kill_value,
11340         set_value_regno, init_value_data, kill_clobbered_value,
11341         kill_set_value, kill_autoinc_value, copy_value,
11342         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
11343         replace_oldest_value_reg, replace_oldest_value_addr,
11344         replace_oldest_value_mem, copyprop_hardreg_forward_1,
11345         debug_value_data, validate_value_data): Move...
11346         * regcprop.c: ... here.
11347         (rest_of_handle_cprop): Delete.
11348         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
11349
11350 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
11351
11352         PR middle-end/40057
11353         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
11354         GEN_INT for 1 << bitnum.
11355         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
11356         build_int_cst_type.
11357
11358 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
11359
11360         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
11361         Remove wrong description of "nand" operation.
11362
11363 2009-05-06  Richard Guenther  <rguenther@suse.de>
11364             Adam Nemet  <anemet@caviumnetworks.com>
11365
11366         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
11367         comment.  Add that if LHS is not a gimple register, then RHS1 has
11368         to be a single object (GIMPLE_SINGLE_RHS).
11369
11370 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
11371
11372         * expr.c (get_def_for_expr): Move it up in the file.
11373         (store_field): When expanding a bit-field store, look at the
11374         defining gimple stmt for the masking conversion.
11375
11376 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
11377
11378         PR middle-end/39986
11379         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
11380         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
11381         32-bit memcpy into long.
11382
11383 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
11384
11385         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
11386         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
11387         new_reg_loc_descr.
11388         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
11389         instead of appending DW_OP_deref*.
11390
11391 2009-05-06  Michael Matz  <matz@suse.de>
11392
11393         PR middle-end/40021
11394         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
11395         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
11396
11397 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
11398
11399         * Makefile.in (install-plugin): Fix srcdir handling.
11400
11401 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
11402
11403         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
11404         when processing for not_regs_needed bitmap.
11405         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
11406         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while
11407         handling it for rhs.
11408
11409 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
11410
11411         * config/i386/i386.md (unnamed inc/dec peephole): Use
11412         optimize_insn_for_size_p instead of optimize_size.
11413         * config/i386/predicates.md (incdec_operand): Likewise.
11414         (aligned_operand): Likewise.
11415         * config/i386/sse.md (divv8sf3): Likewise.
11416         (sqrtv8sf2): Likewise.
11417
11418 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
11419
11420         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
11421
11422         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
11423
11424 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
11425
11426         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
11427         ssemodesuffixf2c with avxmodesuffixf2c.
11428
11429 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
11430
11431         PR c/40032
11432         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
11433
11434 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
11435
11436         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
11437         (struct tree_base): Adjust spacing for 8 bit boundaries.
11438         (struct tree_decl_common): Add decl_by_reference_flag bit.
11439         (DECL_BY_REFERENCE): Adjust.
11440         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
11441         print DECL_BY_REFERENCE bit.
11442         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
11443         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
11444         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
11445         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
11446         unconditionally.
11447
11448         PR middle-end/39666
11449         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
11450         range of the type, but default label is missing, add it with one
11451         of the existing labels instead of adding a new label for it.
11452
11453 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
11454
11455         * dwarf.h: Remove.
11456
11457 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
11458
11459         * Makefile.in (enable_plugin, plugin_includedir): New.
11460         (install): Depend on install-plugin.
11461         (PLUGIN_HEADERS): New.
11462         (install-plugin): New.
11463         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
11464
11465 2009-05-05  Richard Guenther  <rguenther@suse.de>
11466
11467         PR tree-optimization/40022
11468         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
11469         the only vuse.
11470         (phivn_valid_p): Fix tuplification error, simplify.
11471         (phiprop_insert_phi): Add dumps.
11472         (propagate_with_phi): Simplify.
11473
11474 2009-05-05  Richard Guenther  <rguenther@suse.de>
11475
11476         PR middle-end/40023
11477         * builtins.c (gimplify_va_arg_expr): Properly build the address.
11478
11479 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
11480
11481         * tree.h (strip_float_extensions): Remove duplicate declaration.
11482         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
11483         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
11484         block_ultimate_origin): Rearrange the declarations line to match the
11485         comment that indicates the .c file which the functions are defined.
11486         (dwarf2out_*, set_decl_rtl): Add comment.
11487         (get_base_address): Adjust comment.
11488         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
11489         declarations line and add comment.
11490         (is_builtin_name): Add blank after function name, for clarity.
11491
11492 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
11493
11494         * attribs.c (decl_attributes): Use %qE for identifiers in
11495         diagnostics.
11496         * cgraphunit.c (verify_cgraph_node): Translate function names to
11497         locale character set in diagnostics.
11498         * coverage.c (get_coverage_counts): Use %qE for identifiers in
11499         diagnostics.
11500         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
11501         Document that functions are named in UTF-8.
11502         * expr.c (expand_expr_real_1): Translate function names to locale
11503         character set in diagnostics.
11504         * gimplify.c (omp_notice_variable, omp_is_private,
11505         gimplify_scan_omp_clauses): Use %qE for identifiers in
11506         diagnostics.
11507         * langhooks.c (lhd_print_error_function): Translate function names
11508         to locale character set.
11509         * langhooks.h (decl_printable_name): Document that return value is
11510         in internal character set.
11511         * stmt.c: Include pretty-print.h
11512         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
11513         diagnostics.
11514         (resolve_operand_name_1): Translate named operand name to locale
11515         character set.
11516         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
11517         diagnostics.
11518         * toplev.c (announce_function): Translate function names to locale
11519         character set.
11520         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
11521         (default_tree_printer): Use pp_identifier or translate identifiers
11522         to locale character set.  Mark "<anonymous>" for translation.
11523         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
11524         for identifiers in diagnostics.
11525         * tree.c (handle_dll_attribute): Use %qE for identifiers in
11526         diagnostics.
11527         * varasm.c (output_constructor): Use %qE for identifiers in
11528         diagnostics.
11529
11530 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
11531
11532         * configure.ac: use ` ` instead of $()
11533         * configure: Regenerate.
11534
11535 2009-05-05  Ben Elliston  <bje@au.ibm.com>
11536
11537         * config/pa/linux-atomic.c: Eliminate conditional include of
11538         errno.h on non-LP64 systems to simplify build requirements.
11539
11540 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
11541
11542         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
11543         diagnostics.
11544         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
11545         and pass value to identifier_to_locale.
11546         (warn_variable_length_array): Make name a tree.
11547         (grokdeclarator): Separate diagnostic texts for named and unnamed
11548         declarators.  Use %qE for named declarators.
11549         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
11550         diagnostics.
11551         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
11552         identifiers in diagnostics.
11553         * c-typeck.c (push_member_name, start_init): Pass identifiers to
11554         identifier_to_locale.  Mark "anonymous" strings for translation.
11555
11556 2009-05-04  Michael Eager <eager@eagercon.com>
11557
11558         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
11559         address for DImode/DFmode only if double-precision FP regs.
11560
11561 2009-05-04  Michael Eager <eager@eagercon.com>
11562
11563         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
11564         TARGET_SINGLE_FLOAT check.
11565
11566 2009-05-04  Michael Eager <eager@eagercon.com>
11567
11568         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
11569
11570 2009-05-04  Michael Eager <eager@eagercon.com>
11571
11572         * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
11573         * config/rs6000/t-xilinx: New
11574
11575 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
11576
11577         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
11578         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
11579         * gcc/explow.c (memory_address): Use target hook.
11580         * gcc/targhooks.c (default_legitimize_address): New.
11581         * gcc/targhooks.h (default_legitimize_address): New.
11582         * gcc/target.h (legitimize_address): New.
11583         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
11584         (TARGET_INITIALIZER): Include it.
11585         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
11586
11587         * config/bfin/bfin-protos.h (legitimize_address): Remove.
11588         * config/bfin/bfin.c (legitimize_address): Remove.
11589         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
11590         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
11591         Remove.
11592         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
11593         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
11594
11595         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
11596         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
11597         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
11598         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
11599         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
11600         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
11601         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
11602         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
11603         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
11604         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
11605         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
11606         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
11607         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
11608         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
11609         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
11610         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
11611         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
11612         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
11613         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
11614         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
11615         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
11616         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
11617         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
11618
11619         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
11620         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
11621         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
11622         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
11623         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
11624         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
11625         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
11626         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
11627         (thumb_legitimize_address): Delete.
11628         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
11629         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
11630         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
11631         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
11632         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
11633         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
11634         Delete.
11635         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
11636         Delete.
11637
11638         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
11639         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
11640         * config/m32r/m32r.c (m32r_legitimize_address): New.
11641         * config/m68k/m68k.c (m68k_legitimize_address): New.
11642         * config/score/score.c (score_legitimize_address): Standardize.
11643         * config/score/score3.c (score3_legitimize_address): Standardize.
11644         * config/score/score3.h (score3_legitimize_address): Adjust.
11645         * config/score/score7.c (score7_legitimize_address): Standardize.
11646         * config/score/score7.h (score7_legitimize_address): Adjust.
11647         * config/sh/sh.c (sh_legitimize_address): New.
11648         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
11649
11650         * gcc/config/s390/s390.c (legitimize_address): Rename to...
11651         (s390_legitimize_address): ... this.
11652         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
11653         (sparc_legitimize_address): ... this.
11654         * gcc/config/i386/i386.c (legitimize_address): Rename to...
11655         (ix86_legitimize_address): ... this.
11656         * gcc/config/avr/avr.c (legitimize_address): Rename to...
11657         (avr_legitimize_address): ... this.
11658         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
11659         (mn10300_legitimize_address): ... this.
11660         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
11661         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
11662         (alpha_expand_mov): Adjust call.
11663
11664         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
11665         * config/spu/spu.c (spu_legitimize_address): Likewise.
11666         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
11667         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
11668
11669 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
11670
11671         * intl.c (locale_encoding, locale_utf8): New.
11672         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
11673         * intl.h (locale_encoding, locale_utf8): Declare.
11674         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
11675         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
11676         New.
11677         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
11678         argument.
11679         (pp_tree_identifier): Define to call pp_base_tree_identifier.
11680         (pp_base_tree_identifier): Declare as function.
11681         (identifier_to_locale): Declare.
11682         * Makefile.in (pretty-print.o): Update dependencies.
11683         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
11684
11685 2009-05-04  Richard Guenther  <rguenther@suse.de>
11686
11687         PR middle-end/40015
11688         * builtins.c (fold_builtin_memory_op): Do not decay to element
11689         type if the size matches the whole array.
11690
11691 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
11692
11693         * expmed.c (synth_mult): When trying out a shift, pass the result
11694         of a signed shift.
11695
11696 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
11697
11698         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
11699         (shiftsub1_cost): New.
11700         (init_expmed): Compute shiftsub1_cost.
11701         (synth_mult): Optimize multiplications by constants of the form
11702         -(2^^m-1) for some constant positive integer m.
11703
11704 2009-05-03  Richard Guenther  <rguenther@suse.de>
11705
11706         PR c/39983
11707         * c-typeck.c (array_to_pointer_conversion): Do not built
11708         ADDR_EXPRs of arrays of pointer-to-element type.
11709         * c-gimplify.c (c_gimplify_expr): Revert change fixing
11710         up wrong ADDR_EXPRs after-the-fact.
11711         * c-common.c (strict_aliasing_warning): Strip pointer
11712         conversions for obtaining the original type.
11713         * builtins.c (fold_builtin_memset): Handle array types.
11714         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
11715         and array types
11716
11717 2009-05-03  Richard Guenther  <rguenther@suse.de>
11718
11719         PR middle-end/23329
11720         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
11721         Do not lose casts from array types with unknown extent to array
11722         types with known extent.
11723         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
11724         alias set compatibility.
11725
11726 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11727
11728         * flags.h (extra_warnings): Delete.
11729         * toplev.c (process_options): Handle Wuninitialized here.
11730         * opts.c (extra_warnings): Delete.
11731         (set_Wextra): Delete.
11732         (common_handle_option): -Wextra can be handled automatically.
11733         * c-opts.c (c_common_handle_option): Delete obsolete code.
11734         (c_common_post_options): Simplify comment.
11735         * common.opt (W): Add Var.
11736         (Wextra): Add Var.
11737         (Wuninitialized): Initialize to -1.
11738
11739 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
11740             Richard Guenther  <rguenther@suse.de>
11741
11742         * expr.c (get_def_for_expr): New function.
11743         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
11744         SSA rather than trees.
11745         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
11746         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
11747
11748 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
11749
11750         * c-common.c (reswords): Add _Imaginary.
11751         * c-common.c (enum rid): Add RID_IMAGINARY.
11752
11753 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
11754
11755         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
11756         Patch by Richard Guenther.
11757
11758 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
11759
11760         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
11761         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
11762         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
11763         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
11764         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
11765         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
11766         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
11767         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
11768         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
11769         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
11770         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
11771         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
11772         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
11773         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
11774         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
11775         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
11776         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
11777         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
11778
11779 2009-05-02  Richard Guenther  <rguenther@suse.de>
11780
11781         PR tree-optimization/39940
11782         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
11783         doing so.
11784
11785 2009-05-02  Richard Guenther  <rguenther@suse.de>
11786
11787         PR middle-end/40001
11788         * tree-ssa.c (execute_update_addresses_taken): Properly check
11789         if we can mark a variable DECL_GIMPLE_REG_P.
11790         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
11791         back to the end of the function.
11792         (is_gimple_reg_type): Remove complex type special casing.
11793         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
11794         if not optimizing.
11795
11796 2009-05-02  Ben Elliston  <bje@au.ibm.com>
11797
11798         * doc/collect2.texi (Collect2): Document search path behaviour
11799         when configured with --with-ld.
11800
11801 2009-05-02  Jan Hubicka  <jh@suse.cz>
11802
11803         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
11804         parameter; update callers.
11805         (coalesce_cost_edge): EH edges are costier because they needs
11806         splitting even if not critical and even more costier when there are
11807         multiple EH predecestors.
11808
11809 2009-05-02  Jan Hubicka  <jh@suse.cz>
11810
11811         * except.c (remove_eh_handler_and_replace): Handle updating after
11812         removing TRY blocks.
11813
11814 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
11815
11816         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
11817
11818 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
11819
11820         * varasm.c: Do not include c-pragma.h.
11821         * attribs.c: Do not incude c-common.h.
11822
11823 2009-05-01  Michael Matz  <matz@suse.de>
11824
11825         * calls.c (initialize_argument_information): Handle SSA names like
11826         decls with a non MEM_P DECL_RTL.
11827
11828 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
11829
11830         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
11831         * ipa-utils.c: Likewise.
11832         * ipa-type-escape.c: Likewise.
11833         * cgraphunit.c Do not include c-common.h.
11834         * ipa-pure-const.c: Likewise.
11835         * tree-if-conv.c: Likewise.
11836         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
11837         * ipa-struct-reorg.c: Likewise.
11838         * tree-nomudflap.c: Likewise.
11839         * tree-ssa-structalias.c: Likewise.
11840
11841 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
11842
11843         * store-motion.c: Many cleanups to make this pass a first-class
11844         citizen instead of an appendix to gcse load motion.  Add TODO list
11845         to make this pass faster/cleaner/better.
11846
11847         (struct ls_expr): Post gcse.c-split cleanups.
11848         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
11849         "stores" field to "avail_stores".
11850         (pre_ldst_mems): Rename to store_motion_mems.
11851         (pre_ldst_table): Rename to store_motion_mems_table.
11852         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
11853         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
11854         (ldst_entry): Rename to st_expr_entry, update users.
11855         (free_ldst_entry): Rename to free_st_expr_entry, update users.
11856         (free_ldst_mems): Rename to free_store_motion_mems, update users.
11857         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
11858         update caller.
11859         (first_ls_expr): Rename to first_st_expr, update users.
11860         (next_ls_expr): Rename to next_st_expr, update users.
11861         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
11862         fields properly for store motion instead of names inherited from load
11863         motion in gcse.c.
11864         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
11865         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
11866         are done with it.
11867
11868         (ae_kill): Rename to st_kill, update users.
11869         (ae_gen): Rename to st_avloc, update users.
11870         (transp): Rename to st_transp, update users.
11871         (pre_insert_map): Rename to st_insert_map, update users.
11872         (pre_delete_map): Rename to st_delete_map, update users.
11873         (insert_store, build_store_vectors, free_store_memory,
11874         one_store_motion_pass): Update for abovementioned changes.
11875
11876         (gcse_subst_count, gcse_create_count): Remove.
11877         (one_store_motion_pass): New statistics counters "n_stores_deleted"
11878         and "n_stores_created", local variables.
11879
11880         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
11881         use for_each_rtx.
11882
11883         (regvec, compute_store_table_current_insn): Remove.
11884         (reg_set_info, reg_clear_last_set): Remove.
11885         (compute_store_table): Use DF caches instead of local dataflow
11886         solvers.
11887
11888 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
11889
11890         * c-objc-common.c (c_tree_printer): Print identifiers with
11891         pp_identifier, not pp_string.  Mark "({anonymous})" for
11892         translation.
11893         * c-pretty-print.c (pp_c_ws_string): New.
11894         (pp_c_cv_qualifier, pp_c_type_specifier,
11895         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
11896         pp_c_storage_class_specifier, pp_c_function_specifier,
11897         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
11898         pp_c_primary_expression, pp_c_postfix_expression,
11899         pp_c_unary_expression, pp_c_shift_expression,
11900         pp_c_relational_expression, pp_c_equality_expression,
11901         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
11902         use pp_string and pp_c_ws_string in place of pp_identifier and
11903         pp_c_identifier for non-identifiers.  Mark English strings for
11904         translation.
11905         * c-pretty-print.h (pp_c_ws_string): Declare.
11906
11907 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
11908             Roland McGrath <roland@redhat.com>
11909
11910         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
11911         (ENABLE_LD_BUILDID): New configuration option.
11912         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
11913         (LINK_BUILDID_SPEC): New macro.
11914         (init_spec): If defined, prepend it between LINK_EH_SPEC and
11915         link_spec.
11916         * doc/install.texi: Document --enable-linker-build-id option.
11917         * configure: Rebuild.
11918         * config.in: Rebuild.
11919
11920 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
11921
11922         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
11923         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
11924         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
11925         MIPS_GP_SAVE_AREA_SIZE.
11926         * config/mips/mips.c (struct mips_frame_info): Update comment
11927         before arg_pointer_offset and hard_frame_pointer_offset.
11928         (mips_compute_frame_info): Update diagram before function: to
11929         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
11930         indicate the position of frame_pointer_rtx with -fstack-protector and
11931         to show args_size.  Don't allocate cprestore area for leaf functions
11932         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
11933         cprestore_size.
11934         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
11935
11936 2009-04-30  Michael Matz  <matz@suse.de>
11937
11938         PR tree-optimization/39955
11939         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
11940
11941 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
11942
11943         * ira.c (setup_cover_and_important_classes):  Use safe macro
11944         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
11945         directly.
11946         * genpreds.c (write_tm_preds_h):  Output suitable definition of
11947         REG_CLASS_FOR_CONSTRAINT.
11948
11949 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
11950
11951         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
11952         instead of an int.
11953         * bitmap.c (bitmap_descriptor): Likewise.
11954         * ggc-common.c (loc_descriptor): Likewise.
11955         * varray.c (varray_descriptor): Likewise.
11956         * vec.c (vec_descriptor): Likewise.
11957
11958 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
11959
11960         * Makefile.in (dce.o): Add $(EXCEPT_H).
11961         * dce.c: Include except.h and delete redundant vector definitions.
11962         (deletable_insn_p): Return false for non-call insns that can throw
11963         if DF is running.
11964
11965 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
11966
11967         * gcse.c (ae_gen): Remove.
11968         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
11969         and make non-static function to make it available in store-motion.c.
11970         Update call sites with search-and-replace.
11971         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
11972         extract_mentioned_regs, extract_mentioned_regs_helper,
11973         find_moveable_store, compute_store_table, load_kills_store, find_loads,
11974         store_killed_in_insn, store_killed_after, store_killed_before,
11975         build_store_vectors, insert_insn_start_basic_block, insert-store,
11976         remove_reachable_equiv_notes, replace_store_insn, delete_store,
11977         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
11978         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
11979         * store-motion.c: ...new file.  Also copy data structures from gcse.c
11980         and clean up to remove parts not used by store motion.
11981         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
11982         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
11983
11984 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11985
11986         PR target/38571
11987         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
11988         when optimizing for size.
11989
11990 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
11991
11992         * gcse.c (gcse_constant_p): Fix typo in last change.
11993
11994 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
11995
11996         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
11997
11998 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
11999
12000         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
12001
12002 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
12003
12004         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
12005         CONST_HIGH_PART result.
12006
12007 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
12008
12009         * config/avr/avr.c (initial_elimination_offset): Rename to
12010         avr_initial_elimination_offset.
12011         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
12012         change return type to bool.
12013         (avr_can_eliminate): New function.
12014         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
12015         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
12016         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
12017         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
12018         avr_initial_elimination_offset.
12019         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
12020         (avr_initial_elimination_offset): Define.
12021
12022 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
12023             Steven Bosscher  <steven@gcc.gnu.org>
12024
12025         PR rtl-optimization/39938
12026         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
12027         * cfgrtl.c: Include insn-attr.h.
12028         (rest_of_pass_free_cfg): New function.
12029         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
12030         * resource.c (init_resource_info): Remove call to df_analyze.
12031
12032 2009-04-29  Richard Guenther  <rguenther@suse.de>
12033
12034         PR target/39943
12035         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
12036         allow conversion to signed integers.
12037
12038 2009-04-29  Richard Guenther  <rguenther@suse.de>
12039
12040         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
12041         shifts of floating point vectors if the shift amount is
12042         a constant multiple of the element size.
12043
12044 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
12045             Michael Matz  <matz@suse.de>
12046
12047         PR middle-end/39927
12048         PR bootstrap/39929
12049         * tree-outof-ssa.c (emit_partition_copy): New function.
12050         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
12051         insert_part_to_rtx_on_edge): Perform the partition base var
12052         copy using emit_partition_copy.
12053         (insert_value_copy_on_edge): Convert constants to the right mode.
12054         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
12055         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
12056
12057 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
12058
12059         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
12060         scan backwards to try to find a constant to initialize it.
12061
12062         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
12063         insn before the loop_end instruction, don't look past labels.
12064
12065 2009-04-29  Richard Guenther  <rguenther@suse.de>
12066
12067         PR middle-end/39937
12068         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
12069         loose type conversions.
12070         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
12071         stmts only if there are no uses of its definition.
12072
12073 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
12074
12075         * config/bfin/bfin.h (splitting_loops): Declare.
12076         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
12077         Reorder bit definitions to be ascending.
12078         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
12079         * config/bfin/bfin.c (splitting_loops): New variable.
12080         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
12081         (struct loop_info): Remove members INIT and LOOP_INIT.
12082         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
12083         the LSETUP sequence.  Allow LC to be loaded from any register, but
12084         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
12085         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
12086         set to 1.
12087         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
12088         of reload_completed.
12089
12090         From Jie Zhang:
12091         * config/bfin/bfin.md (movsi_insn): Refine constraints.
12092
12093 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
12094
12095         * Makefile.in (PLUGIN_VERSION_H): New.
12096         (OBJS-common): Remove plugin-version.o.
12097         (plugin.o): Depend on (PLUGIN_VERSION_H).
12098         (plugin-version.o): Remove.
12099         * configure: Regenerate
12100         * configure.ac: Create plugin-version.h.
12101         * gcc-plugin.h (plugin_gcc_version): Remove.
12102         (plugin_default_version_check): Change signature.
12103         * plugin-version.c: Remove.
12104         * plugin.c: Include plugin-version.h.
12105         (str_plugin_gcc_version_name): Remove.
12106         (try_init_one_plugin): Pass gcc version to plugin_init.
12107         (plugin_default_version_check): Both gcc and plugin versions are now
12108         arguments.
12109
12110 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
12111
12112         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
12113         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
12114         Remove special case testing for last insn of inner loops. Don't fail
12115         if the loop ends with a jump, emit an extra nop instead.
12116
12117         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
12118         DREGS rather than comparing directly.  Remove code that tries to
12119         account for latencies.
12120
12121 2009-04-29  Richard Guenther  <rguenther@suse.de>
12122
12123         PR tree-optimization/39941
12124         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
12125         eliminating an indirect call.
12126
12127 2009-04-29  Richard Guenther  <rguenther@suse.de>
12128
12129         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
12130         parameter.  Allow invariants as base if !require_lvalue.
12131         (verify_gimple_assign_single): Adjust.
12132
12133 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
12134
12135         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
12136         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
12137         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
12138         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
12139         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
12140         a VEC_SELECT.
12141         * config/bfin/bfin.c (bfin_expand_builtin,
12142         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
12143
12144 2009-04-28  Richard Guenther  <rguenther@suse.de>
12145
12146         * tree-vect-loop.c (get_initial_def_for_induction): Use
12147         correct types for pointer increment.
12148
12149 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12150
12151         * toplev.c (print_version): Update GMP version string calculation.
12152
12153 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
12154
12155         PR rtl-optimization/39938
12156         * resource.c (init_resource_info): Add call to df_analyze.
12157
12158 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
12159
12160         * config/alpha/alpha.md (usegp): Cast the result of
12161         alpha_find_lo_sum_using_gp to enum attr_usegp.
12162         * config/alpha/alpha.c (override_options): Remove end-of-structure
12163         marker element from cpu_table.  Use array size of cpu_table to handle
12164         -mcpu and -mtune options.
12165         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
12166
12167 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
12168
12169         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
12170         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
12171         tune_32 and tune_64.
12172         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
12173         support on PowerPC.
12174         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
12175         * config/rs6000/option-defaults.h: ... here.  New file.
12176         (OPT_64, OPT_32): Define.
12177         (MASK_64BIT): Define to 0 if not already defined.
12178         (OPT_ARCH64, OPT_ARCH32): Define.
12179         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
12180         and tune_64.
12181
12182 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12183
12184         * config/arm/arm.c (arm_override_options): Emit error on using
12185         fpa with AAPCS.
12186
12187 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
12188
12189         PR rtl-optimization/39914
12190         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
12191         registers for allocnos created from user-defined variables only
12192         when not optimizing.
12193
12194 2009-04-28  Richard Guenther  <rguenther@suse.de>
12195
12196         PR middle-end/39937
12197         * fold-const.c (fold_binary): Use distribute_real_division only
12198         on float types.
12199
12200 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
12201
12202         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
12203         add hpux-stdint.h to tm_file.
12204         (hppa[12]*-*-hpux11*): Ditto.
12205         (ia64*-*-hpux*): Ditto.
12206         * config/hpux-stdint.h: New.
12207         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
12208         __STDC_EXT__ for all compiles.
12209         * config/pa/pa-hpux.h: Ditto.
12210         * config/pa/pa-hpux10.h: Ditto.
12211         * config/pa/pa-hpux11.h: Ditto.
12212
12213 2009-04-28  Catherine Moore  <clm@codesourcery.com>
12214
12215         * debug.h (set_name): Add comment.
12216
12217 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
12218
12219         PR target/39929
12220         * config/darwin.c (machopic_gen_offset): Check
12221         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
12222         * config/arm/arm.c (require_pic_register): Likewise.
12223
12224 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
12225
12226         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
12227         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
12228         m32c_promote_prototypes): Delete.
12229
12230 2009-04-28  Michael Matz  <matz@suse.de>
12231
12232         PR middle-end/39922
12233         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
12234         constants.
12235
12236 2009-04-28  Richard Guenther  <rguenther@suse.de>
12237
12238         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
12239
12240 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12241
12242         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
12243         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
12244         * config/arm/arm-tune.md: Regenerate.
12245
12246 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
12247
12248         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
12249         block if there are complex incoming edges.
12250         (sel_merge_blocks): Remove useless assert.
12251         (sel_redirect_edge_and_branch): Check that edge was redirected.
12252         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
12253         (sel_find_rgns): Delete declaration.
12254         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
12255         the region when it is not a preheader.
12256
12257 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
12258
12259         PR c/39323
12260         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
12261
12262 2009-04-28  Richard Guenther  <rguenther@suse.de>
12263
12264         * tree.h (SSA_NAME_VALUE): Remove.
12265         (struct tree_ssa_name): Remove value_handle member.
12266         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
12267         array for jump threading.
12268         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
12269         SSA_NAME_VALUEs.
12270         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
12271         * tree-flow.h (threadedge_initialize_values): Declare.
12272         (threadedge_finalize_values): Likewise.
12273         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
12274         (SSA_NAME_VALUE): Define.
12275         (threadedge_initialize_values): New function.
12276         (threadedge_finalize_values): Likewise.
12277         * tree-ssa-dom.c (ssa_name_values): New global variable.
12278         (SSA_NAME_VALUE): Define.
12279         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
12280
12281 2009-04-28  Ira Rosen  <irar@il.ibm.com>
12282
12283         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
12284         Use REPORT_VECTORIZED_LOCATIONS instead
12285         REPORT_VECTORIZED_LOOPS.
12286         * tree-vectorizer.c (vect_verbosity_level): Make static.
12287         (vect_loop_location): Rename to vect_location.
12288         (vect_set_verbosity_level): Update comment.
12289         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
12290         and vect_location.
12291         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
12292         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
12293         instead REPORT_UNVECTORIZED_LOOPS.
12294         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
12295         and vect_loop_def to vect_external_def and vect_internal_def.
12296         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
12297         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
12298         REPORT_UNVECTORIZED_LOCATIONS.
12299         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
12300         and vect_used_in_loop and to vect_unused_in_scope and
12301         vect_used_in_scope.
12302         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
12303         (vect_verbosity_level): Remove declaration.
12304         (vect_analyze_operations): Likewise.
12305         (vect_analyze_stmt): Declare.
12306         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
12307         REPORT_UNVECTORIZED_LOCATIONS.
12308         (vect_get_loop_niters): Fix indentation.
12309         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
12310         (vect_analyze_loop_operations): New function.
12311         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
12312         vect_analyze_operations.
12313         (vect_is_simple_reduction): Use new names.
12314         (vectorizable_live_operation, vect_transform_loop): Likewise.
12315         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
12316         to specify whether the data references can be a part of interleaving
12317         chain.
12318         (vect_analyze_data_ref_dependence): Use new names.
12319         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
12320         (vect_create_addr_base_for_vector_ref): Remove redundant code.
12321         * tree-vect-patterns.c (widened_name_p): Use new names.
12322         (vect_recog_dot_prod_pattern): Likewise.
12323         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
12324         (process_use, vect_mark_stmts_to_be_vectorized,
12325         vect_model_simple_cost, vect_model_store_cost,
12326         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
12327         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
12328         vectorizable_operation, vectorizable_type_demotion,
12329         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
12330         vectorizable_condition): Likewise.
12331         (vect_analyze_operations): Split into vect_analyze_loop_operations
12332         and ...
12333         (vect_analyze_stmt): ... new function.
12334         (new_stmt_vec_info): Use new names.
12335         (vect_is_simple_use): Use new names and fix comment.
12336         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
12337         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
12338
12339 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
12340
12341         PR target/39911
12342         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
12343         and integer modes for x87 operands.  Do not ICE for unsupported size,
12344         generate error instead.  Generate error for unsupported operand types.
12345         ['z']: Do not handle HImode memory operands specially.  Warning
12346         for floating-point operands.  Fallthru to 'Z' for unsupported operand
12347         types.  Do not ICE for unsupported size, generate error instead.
12348         (output_387_binary_op): Use %Z to output operands.
12349         (output_fp_compare): Ditto.
12350         (output_387_reg_move): Ditto.
12351
12352 2009-04-28  Ben Elliston  <bje@au.ibm.com>
12353
12354         PR c++/35652
12355         Revert:
12356
12357         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12358
12359         * builtins.c (c_strlen): Do not warn here.
12360         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
12361         * c-common.c (pointer_int_sum): Take an explicit location.
12362         Warn about offsets out of bounds.
12363         * c-common.h (pointer_int_sum): Adjust declaration.
12364
12365 2009-04-27  Ian Lance Taylor  <iant@google.com>
12366
12367         * collect2.c (is_ctor_dtor): Change type of ret field in struct
12368         names to symkind.
12369         * dce.c (run_fast_df_dce): Change type of old_flags to int.
12370         * df-core.c (df_set_flags): Change return type to int.  Change
12371         type of old_flags to int.
12372         (df_clear_flags): Likewise.
12373         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
12374         (df_get_conditional_uses): Likewise.
12375         * df.h (df_set_flags, df_clear_flags): Update declarations.
12376         * dwarf2out.c (struct indirect_string_node): Change type of form
12377         field to enum dwarf_form.
12378         (AT_string_form): Change return type to enum dwarf_form.
12379         * fixed-value.c (fixed_compare): Add cast to enum type.
12380         * fwprop.c (update_df): Change 0 to VOIDmode.
12381         * gensupport.c: Change 0 to UNKNOWN.
12382         * gimple.h (gimple_cond_code): Add cast to enum type.
12383         * haifa-sched.c (reemit_notes): Add cast to enum type.
12384         * hooks.c (hook_int_void_no_regs): Remove function.
12385         * hooks.h (hook_int_void_no_regs): Remove declaration.
12386         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
12387         * predict.c (combine_predictions_for_insn): Add casts to enum type.
12388         * real.c (real_arithmetic): Add cast to enum type.
12389         (real_compare): Likewise.
12390         * target.h (struct gcc_target): Change return type of
12391         branch_target_register_class to enum reg_class.
12392         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
12393         default_branch_target_register_class.
12394         * targhooks.c (default_branch_target_register_class): New function.
12395         * targhooks.h (default_branch_target_register_class): Declare.
12396         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
12397         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
12398         cast to int.
12399         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
12400         ERROR_MARK.
12401         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
12402         vect_uninitialized_def.  Change 0 to ERROR_MARK.
12403         * tree-vect-stmts.c (supportable_widening_operation): Don't
12404         initialize icode1 and icode2.
12405         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
12406         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
12407         and to STD_C89.
12408         (cmn_err_flag_specs): Change 0 to STD_C89.
12409         (cmn_err_char_table): Likewise.
12410         * config/arm/arm.c (get_arm_condition_code): Change type of code
12411         to enum arm_cond_code.
12412         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
12413         (IWMMXT_BUILTIN2): Likewise.
12414         (neon_builtin_type_bits): Don't define typedef.
12415         (neon_builtin_datum): Change type of bits field to int.
12416         (arm_expand_neon_args): Add cast to enum type.
12417         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
12418         TLS_MODEL_NONE.
12419         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
12420         casts to enum type.
12421         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
12422         MIPS_FP_COND_f.
12423         * config/mips/mips.md (jal_macro): Return enum constant.
12424         (single_insn): Likewise.
12425         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
12426         CODE_FOR_nothing.
12427         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12428         casts to enum type.
12429         * config/s390/s390.c (s390_tune_flags): Change type to int.
12430         (s390_arch_flags): Likewise.
12431         (s390_handle_arch_option): Change flags field of struct pta to int.
12432         * config/s390/s390.h (s390_tune_flags): Update declaration.
12433         (s390_arch_flags): Likewise.
12434         * config/sh/sh.c (prepare_move_operands): Compare
12435         tls_symbolic_operand result with enum constant.
12436         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
12437         (sh_expand_prologue): Add cast to enum type.
12438         (sh_expand_epilogue): Likewise.
12439         (tls_symbolic_operand): Change return type to enum tls_model.
12440         (fpscr_set_from_mem): Add cast to enum type.
12441         (legitimize_pic_address): Compare tls_symbolic_operand result with
12442         enum constant.
12443         (sh_target_reg_class): Change return type to enum reg_class.
12444         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
12445         PROCESSOR_xxx.
12446         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
12447         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
12448         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
12449         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
12450         (delayed_branch, tls_call_delay): Likewise.
12451         (eligible_for_sibcall_delay): Likewise.
12452         (eligible_for_return_delay): Likewise.
12453         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
12454         (spu_expand_builtin_1): Likewise.
12455
12456         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
12457         for all types of conversions.
12458         (output_init_element): Issue -Wc++-compat warning if needed when
12459         initializing a bitfield with enum type.
12460         * c-parser.c (c_parser_expression): Set original_type to
12461         original_type of right hand operand of comma operator.
12462
12463 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12464
12465         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
12466         grammar nits.
12467         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
12468         * doc/cpp.texi (Standard Predefined Macros)
12469         (Implementation-defined behavior): Likewise.
12470         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
12471         * doc/gimple.texi (GIMPLE Exception Handling)
12472         (@code{GIMPLE_ASSIGN}): Likewise.
12473         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
12474         * doc/invoke.texi (Warning Options, Optimize Options)
12475         (AVR Options, Darwin Options): Likewise.
12476         (Optimize Options): Reformulate -fwhole-program description.
12477         * doc/loop.texi (Lambda): Likewise.
12478         * doc/md.texi (Output Template, Define Constraints)
12479         (Standard Names, Insn Splitting): Likewise.
12480         * doc/options.texi (Option properties): Likewise.
12481         * doc/passes.texi (Tree-SSA passes): Likewise.
12482         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
12483         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
12484         (File Names and DBX): Likewise.
12485         * doc/trouble.texi (Incompatibilities): Likewise.
12486
12487 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
12488
12489         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
12490         instruction is correct.
12491
12492 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
12493
12494         Allow non-constant arguments to conversion intrinsics.
12495         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
12496         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
12497         * spu.c (print_operand): Handle 'v' and 'w'.
12498         (exp2_immediate_p, spu_gen_exp2): Define.
12499         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
12500         spu_convtf_1): Update parameter descriptions.
12501         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
12502         * constraints.md ('v', 'w'): New.
12503         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
12504         Remove.
12505         (i2f, I2F): New define_mode_attr.
12506         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
12507         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
12508         fixuns_truncv4sfv4si2):  Update to use mode attribute.
12509         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
12510         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
12511         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
12512         patterns for combine.
12513
12514 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
12515
12516         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
12517         (cprop, hoist, pre, store_motion): New debug counters.
12518         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
12519         is not an RTL pass anymore.
12520         (pass_profiling): Remove extern decl for pass removed in 2005.
12521         (pass_gcse, pass_jump_bypass): Remove.
12522         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
12523         to 0 for clean state.
12524         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
12525         * cse.c (gate_handle_cse_after_global_opts,
12526         rest_of_handle_cse_after_global_opts): New functions.
12527         (pass_cse_after_global_opts): New pass, does local CSE.
12528         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
12529         (TV_CPROP): New timevar.
12530         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
12531         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
12532         (gcse_main, recompute_all_luids): Remove.
12533         (compute_hash_table_work): Call max_reg_num instead of reading
12534         max_gcse_regno.
12535         (cprop_jump): Don't set run_jump_opt_after_gcse.
12536         (constprop_register): Always allow to alter jumps.
12537         (cprop_insn): Likewise.
12538         (do_local_cprop): Likewise.
12539         (local_cprop_pass): Likewise.  Return non-zero if something changed.
12540         (cprop): Remove function, fold interesting bits into one_cprop_pass.
12541         (find_implicit_sets): Add note about missed optimization opportunity.
12542         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
12543         pass_rtl_cprop execute function.
12544         Don't bother tracking the pass number, each pass gets its own dumpfile
12545         now anyway.
12546         Always allow to alter jumpsand bypass jumps.
12547         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
12548         will just find no suitable set.
12549         (pre_edge_insert): Fix dumping, this function is for PRE only.
12550         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
12551         pass_rtl_pre execute function.
12552         (hoist_code): Return non-zero if something changed.  Keep track of
12553         substitutions and insertions for statistics gathering similar to PRE.
12554         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
12555         called from the pass_rtl_hoist execute function.  Show pass statistics.
12556         (compute_store_table): Use max_reg_num directly instead of using the
12557         formerly global max_gcse_regno.
12558         (build_store_vectors): Likewise.
12559         (replace_store_insn): Fix dumping.
12560         (store_motion): Rename to ...
12561         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
12562         pass, called from the pass_rtl_store_motion execute function.  Keep
12563         track of substitutions and insertions for statistics gathering similar
12564         to PRE.
12565         (bypass_jumps): Remove, fold interesting bits into ...
12566         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
12567         from the pass_rtl_cprop execute function.
12568         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
12569         pass_jump_bypass): Remove.
12570         (gate_handle_gcse, rest_of_handle_gcse): Remove.
12571         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
12572         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
12573         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
12574         (gate_rtl_store_motion, execute_rtl_store_motion,
12575         pass_rtl_store_motion): New.
12576         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
12577         make it clear that -fcse-skip-blocks is a no-op for backward compat.
12578         * passes.c (init_optimization_passes): Remove pass_gcse and
12579         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
12580         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
12581         instead of pass_jump_bypass.
12582
12583 2009-04-27  Richard Guenther  <rguenther@suse.de>
12584
12585         PR middle-end/39928
12586         * gimplify.c (gimplify_expr): If we are required to create
12587         a temporary make sure it ends up as register.
12588
12589 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
12590
12591         PR target/39903
12592         * config/i386/i386.c (construct_container): Don't call
12593         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
12594         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
12595
12596 2009-04-27  Michael Matz  <matz@suse.de>
12597
12598         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
12599         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
12600         * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
12601         (dump_replaceable_exprs): Take a bitmap.
12602         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
12603         array.
12604         (expand_gimple_basic_block): Likewise.
12605         * tree-ssa-ter.c (struct temp_expr_table_d): Make
12606         replaceable_expressions member a bitmap.
12607         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
12608         (mark_replaceable): Likewise.
12609         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
12610         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
12611
12612 2009-04-27  Richard Guenther  <rguenther@suse.de>
12613
12614         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
12615         (verify_stmts): Dispatch to gimple/type verification code.
12616         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
12617         issue with call argument types.
12618
12619 2009-04-27  Michael Matz  <matz@suse.de>
12620
12621         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
12622         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
12623         to above.
12624
12625 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
12626             Eric Botcazou  <ebotcazou@adacore.com>
12627
12628         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
12629         a label's basic block.
12630         (mark_target_live_regs): Tidy and rework obsolete comments.
12631         Change back DF problem to LIVE.  If a label starts a basic block,
12632         assume that all registers that used to be live then still are.
12633         (init_resource_info): If a label starts a basic block, set its
12634         BLOCK_FOR_INSN accordingly.
12635         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
12636
12637 2009-04-27  Richard Guenther  <rguenther@suse.de>
12638
12639         * tree-flow-inline.h (function_ann): Remove.
12640         (get_function_ann): Likewise.
12641         * tree-dfa.c (create_function_ann): Remove.
12642         * tree-flow.h (struct static_var_ann_d): Remove.
12643         (struct function_ann_d): Likewise.
12644         (union tree_ann_d): Remove fdecl member.
12645         (function_ann_t): Remove.
12646         (function_ann, get_function_ann, create_function_ann): Remove
12647         declarations.
12648
12649 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
12650
12651         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
12652
12653 2009-04-27  Jan Hubicka  <jh@suse.cz>
12654
12655         * ipa-pure-const.c (struct funct_state_d): New fields
12656         state_previously_known, looping_previously_known; remove
12657         state_set_in_source.
12658         (analyze_function): Use new fields.
12659         (propagate): Avoid assumption that state_set_in_source imply
12660         nonlooping.
12661
12662         * tree-ssa-loop-niter.c (finite_loop_p): New function.
12663         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
12664         * cfgloop.h (finite_loop_p): Declare.
12665
12666 2009-04-26  Michael Matz  <matz@suse.de>
12667
12668         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
12669
12670 2009-04-26  Michael Matz  <matz@suse.de>
12671
12672         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
12673         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
12674         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
12675         pass_mark_used_blocks): Remove.
12676         * tree-optimize.c (pass_free_datastructures,
12677         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
12678         * passes.c (init_optimization_passes): Don't call
12679         pass_mark_used_blocks, remove dead code.
12680
12681 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
12682
12683         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
12684         * tree-ssa-live.h (register_ssa_partition): Likewise.
12685
12686 2009-04-26  Michael Matz  <matz@suse.de>
12687
12688         Expand from SSA.
12689         * builtins.c (fold_builtin_next_arg): Handle SSA names.
12690         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
12691         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
12692         SSA names.
12693         (compare_pairs): Swap cost comparison.
12694         (coalesce_ssa_name): Don't use change_partition_var.
12695         * tree-nrv.c (struct nrv_data): Add modified member.
12696         (finalize_nrv_r): Set it.
12697         (tree_nrv): Use it to update statements.
12698         (pass_nrv): Require PROP_ssa.
12699         * tree-mudflap.c (mf_decl_cache_locals,
12700         mf_build_check_statement_for): Use make_rename_temp.
12701         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
12702         * alias.c (find_base_decl): Handle SSA names.
12703         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
12704         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
12705         * rtl.h (set_reg_attrs_for_parm): Declare.
12706         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
12707         to "optimized", remove unused locals at finish.
12708         (execute_free_datastructures): Make global, call
12709         delete_tree_cfg_annotations.
12710         (execute_free_cfg_annotations): Don't call
12711         delete_tree_cfg_annotations.
12712
12713         * ssaexpand.h: New file.
12714         * expr.c (toplevel): Include ssaexpand.h.
12715         (expand_assignment): Handle SSA names the same as register variables.
12716         (expand_expr_real_1): Expand SSA names.
12717         * cfgexpand.c (toplevel): Include ssaexpand.h.
12718         (SA): New global variable.
12719         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
12720         (SSAVAR): New macro.
12721         (set_rtl): New helper function.
12722         (add_stack_var): Deal with SSA names, use set_rtl.
12723         (expand_one_stack_var_at): Likewise.
12724         (expand_one_stack_var): Deal with SSA names.
12725         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
12726         before unique numbers.
12727         (expand_stack_vars): Use set_rtl.
12728         (expand_one_var): Accept SSA names, add asserts for them, feed them
12729         to above subroutines.
12730         (expand_used_vars): Expand all partitions (without default defs),
12731         then only the local decls (ignoring those expanded already).
12732         (expand_gimple_cond): Remove edges when jumpif() expands an
12733         unconditional jump.
12734         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
12735         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
12736         SSA name.
12737         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
12738         members of SA; deal with PARM_DECL partitions here; expand
12739         all PHI nodes, free tree datastructures and SA.  Commit instructions
12740         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
12741         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
12742         info and statements at start, collect garbage at finish.
12743         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
12744         (VAR_ANN_PARTITION) Remove.
12745         (change_partition_var): Don't declare.
12746         (partition_to_var): Always return SSA names.
12747         (var_to_partition): Only accept SSA names.
12748         (register_ssa_partition): Only check argument.
12749         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
12750         member.
12751         (delete_var_map): Don't free it.
12752         (var_union): Only accept SSA names, simplify.
12753         (partition_view_init): Mark only useful SSA names as used.
12754         (partition_view_fini): Only deal with SSA names.
12755         (change_partition_var): Remove.
12756         (dump_var_map): Use ssa_name instead of partition_to_var member.
12757         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
12758         basic blocks.
12759         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
12760         (struct _elim_graph): New member const_dests; nodes member vector of
12761         ints.
12762         (set_location_for_edge): New static helper.
12763         (create_temp): Remove.
12764         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
12765         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
12766         (new_elim_graph): Allocate const_dests member.
12767         (clean_elim_graph): Truncate const_dests member.
12768         (delete_elim_graph): Free const_dests member.
12769         (elim_graph_size): Adapt to new type of nodes member.
12770         (elim_graph_add_node): Likewise.
12771         (eliminate_name): Likewise.
12772         (eliminate_build): Don't take basic block argument, deal only with
12773         partition numbers, not variables.
12774         (get_temp_reg): New static helper.
12775         (elim_create): Use it, deal with RTL temporaries instead of trees.
12776         (eliminate_phi): Adjust all calls to new signature.
12777         (assign_vars, replace_use_variable, replace_def_variable): Remove.
12778         (rewrite_trees): Only do checking.
12779         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
12780         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
12781         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
12782         contains_tree_r, MAX_STMTS_IN_LATCH,
12783         process_single_block_loop_latch, analyze_edges_for_bb,
12784         perform_edge_inserts): Remove.
12785         (expand_phi_nodes): New global function.
12786         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
12787         functions, initialize new parameter, remember partitions having a
12788         default def.
12789         (finish_out_of_ssa): New global function.
12790         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
12791         don't reset in_ssa_p here, don't disable TER when mudflap.
12792         (pass_del_ssa): Remove.
12793         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
12794         partition members.
12795         (execute_free_datastructures): Declare.
12796         * Makefile.in (SSAEXPAND_H): New variable.
12797         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
12798         * basic-block.h (commit_one_edge_insertion): Declare.
12799         * passes.c (init_optimization_passes): Move pass_nrv and
12800         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
12801         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
12802         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
12803         (redirect_branch_edge): Deal with super block when expanding, split
12804         out jump patching itself into ...
12805         (patch_jump_insn): ... here, new static helper.
12806
12807 2009-04-26  Michael Matz  <matz@suse.de>
12808
12809         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
12810         beyond num_ssa_names.
12811         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
12812         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
12813
12814 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
12815
12816         PR inline-asm/39543
12817         * fwprop.c (forward_propagate_asm): New function.
12818         (forward_propagate_and_simplify): Propagate also into __asm, if it
12819         doesn't increase the number of referenced registers.
12820
12821         PR c/39889
12822         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
12823
12824 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
12825
12826         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
12827         note_nonlocal_vla_type for nonlocal VLAs.
12828         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
12829         contains_remapped_vars, remap_vla_decls): New functions.
12830         (convert_nonlocal_reference_stmt): If not optimizing, call
12831         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
12832         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
12833         if it wasn't found in var_map.
12834         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
12835         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
12836         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
12837         declare_vars.
12838         * gimplify.c (nonlocal_vlas): New variable.
12839         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
12840         referenced VLAs.
12841         (gimplify_body): Create and destroy nonlocal_vlas.
12842
12843         * dwarf2out.c (loc_descr_plus_const): New function.
12844         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
12845         mem_loc_descriptor, loc_descriptor_from_tree_1,
12846         descr_info_loc, gen_variable_die): Use it.
12847
12848         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
12849         !TREE_STATIC VAR_DECLs.
12850         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
12851         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
12852         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
12853         DECL_BY_REFERENCE is valid.
12854         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
12855         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
12856         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
12857         Copy DECL_BY_REFERENCE.
12858         (struct nesting_copy_body_data): New type.
12859         (nesting_copy_decl): New function.
12860         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
12861         if they have variable length.
12862
12863 2009-04-26  Michael Matz  <matz@suse.de>
12864
12865         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
12866         mark new temporaries for renaming.
12867
12868 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
12869
12870         PR c/39581
12871         * c-decl.c (global_bindings_p): Return negative value.
12872         (c_variable_size): New.  Based on variable_size from
12873         stor-layout.c.
12874         (grokdeclarator): Call c_variable_size not variable_size.
12875
12876 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
12877
12878         * config/i386/i386.c (print_operand) ['z']: Fix typo.
12879
12880 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
12881
12882         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
12883         Redefine it to just use mingw/include.
12884         (ASM_SPEC): Rules for -m32 and -m64.
12885         (LINK_SPEC): Use Likewise.
12886         (SPEC_32): New define.
12887         (SPEC_64): Likewise.
12888         (SUB_LINK_SPEC): Likewise.
12889         (MULTILIB_DEFAULTS): New define.
12890         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
12891         Add multilib options.
12892         (MULTILIB_DIRNAMES): Likewise.
12893         (MULTILIB_OSDIRNAMES): Likewise.
12894         (LIBGCC): Likewise.
12895         (INSTALL_LIBGCC): Likewise.
12896
12897 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
12898
12899         PR c/39556
12900         * c-tree.h (enum c_inline_static_type): New.
12901         (record_inline_static): Declare.
12902         * c-decl.c (struct c_inline_static, c_inline_statics,
12903         record_inline_static, check_inline_statics): New.
12904         (pop_file_scope): Call check_inline_statics.
12905         (start_decl): Call record_inline_static instead of pedwarning
12906         directly for static in inline function.
12907         * c-typeck.c (build_external_ref): Call record_inline_static
12908         instead of pedwarning directly for static referenced in inline
12909         function.
12910
12911 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
12912
12913         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
12914         not new but only being rescanned.
12915         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
12916         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
12917         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
12918         record_set_info, compute_set, grealloc): Remove.
12919         (recompute_all_luids): New function.
12920         (gcse_main): Don't compute sets, and don't do related memory
12921         allocations/free-ing.  If something changed before the end of the
12922         pass, update LUIDs using recompute_all_luids.
12923         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
12924         (free_gcse_mem): Don't free it either.
12925         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
12926         Use the df insn LUIDs.
12927         (load_killed_in_block): Likewise.
12928         (compute_hash_table_work): Don't compute reg_set_in_block.
12929         (compute_transp): Use DF_REG_DEF_CHAINs.
12930         (local_cprop_pass): Don't use compute_sets and related functions.
12931         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
12932         Use get_max_uid() instead of max_cuid.
12933         (insert_insn_end_basic_block, pre_insert_copy_insn,
12934         update_ld_motion_stores): Don't try to
12935         keep reg_set tables up to date.
12936         (pre_insert_copies): Use df insn LUIDs.
12937         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
12938         (reg_set_info): Don't use extra bitmap argument.
12939         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
12940         information to compute regs_set_in_block.
12941         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
12942         (bypass_jumps): Don't use compute_sets and friends.
12943
12944 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12945
12946         PR testsuite/39710
12947         * opts.c (undocumented_msg): Do not leave blank even with
12948         ENABLE_CHECKING.
12949
12950 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
12951
12952         * c-decl.c (build_enumerator): Allow values folding to integer
12953         constants but not integer constant expressions with a pedwarn if
12954         pedantic.
12955
12956 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
12957
12958         PR c/39582
12959         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
12960         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
12961         type is an integer constant.
12962
12963 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
12964
12965         PR target/39897
12966         * config/i386/i386.c (print_operand) ['z']: Revert handling of
12967         HImode operands.
12968
12969 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
12970
12971         PR c/39564
12972         * c-decl.c (grokdeclarator): Diagnose declarations of functions
12973         with variably modified return type and no storage class
12974         specifiers, except for the case of nested functions.  Distinguish
12975         extern declarations of functions with variably modified return
12976         types from those of objects with variably modified types.
12977
12978 2009-04-25  Jan Hubicka  <jh@suse.cz>
12979
12980         * tree.c (list_equal_p): New function.
12981         * tree.h (list_equal_p): Declare.
12982         * coretypes.h (edge_def, edge, const_edge, basic_block_def
12983         basic_block_def, basic_block, const_basic_block): New.
12984         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
12985         (redirect_eh_edge): New function.
12986         (make_eh_edge_update_phi): EH edges are not abnormal.
12987         * except.c: Include tree-flow.h.
12988         (list_match): New function.
12989         (eh_region_replaceable_by_p): New function.
12990         (replace_region): New function.
12991         (hash_type_list): New function.
12992         (hash_eh_region): New function.
12993         (eh_regions_equal_p): New function.
12994         (merge_peers): New function.
12995         (remove_unreachable_regions): Verify EH tree when checking;
12996         merge peers.
12997         (copy_eh_region_1): New function.
12998         (copy_eh_region): New function.
12999         (push_reachable_handler): New function.
13000         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
13001         regions without label but with live RESX.
13002         * except.h (redirect_eh_edge_to_label): New.
13003         * tree-flow.h (redirect_eh_edge): New.
13004         * coretypes.h (edge_def, edge, const_edge, basic_block_def
13005         basic_block_def, basic_block, const_basic_block): Remove.
13006         * Makefile.in (except.o): Add dependency on tree-flow.h
13007         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
13008         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
13009         Remove.
13010
13011 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
13012
13013         PR bootstrap/39645
13014         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
13015         on the destination of memcpy.
13016
13017 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
13018
13019         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
13020         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
13021         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
13022
13023 2009-04-25  Jan Hubicka  <jh@suse.cz>
13024
13025         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
13026         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
13027         to be reached by different label than left.
13028         (update_eh_edges): Update comment; remove edge_to_remove if possible
13029         and return true if suceeded.
13030         (cleanup_empty_eh): Accept sharing map; handle shared regions.
13031         (cleanup_eh): Compute sharing map.
13032         * except.c (remove_eh_handler_and_replace): Add argument if we should
13033         update regions.
13034         (remove_unreachable_regions): Update for label sharing.
13035         (label_to_region_map): Likewise.
13036         (get_next_region_sharing_label): New function.
13037         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
13038         prev_try pointers.
13039         (remove_eh_handler): Update.
13040         (remove_eh_region_and_replace_by_outer_of): New function.
13041         * except.h (struct eh_region): Add next_region_sharing_label.
13042         (remove_eh_region_and_replace_by_outer_of,
13043         get_next_region_sharing_label): Declare.
13044         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
13045
13046 2009-04-25  Jan Hubicka  <jh@suse.cz>
13047
13048         * tree-cfg.c (split_critical_edges): Split also edges where we can't
13049         insert code even if they are not critical.
13050
13051 2009-04-25  Jan Hubicka  <jh@suse.cz>
13052
13053         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
13054         (gimple_can_remove_branch_p): EH edges won't remove branch by
13055         redirection.
13056         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
13057         updating of non-abnormal EH edges.
13058         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
13059         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
13060         (split_critical_edges): Split also edges where emitting code on them
13061         will lead to splitting later.
13062
13063 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
13064             H.J. Lu  <hongjiu.lu@intel.com>
13065
13066         PR target/39590
13067         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
13068         the configured assembler supports fildq and fistpq mnemonics.
13069         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
13070         * configure: Regenerated.
13071         * config.in: Ditto.
13072
13073         * config/i386/i386.c (print_operand): Handle 'Z'.
13074         ['z']: Remove handling of special fild/fist suffixes.
13075         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
13076         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
13077         suffix of fild insn.
13078         (*floatsi<mode>2_vector_mixed): Ditto.
13079         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
13080         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
13081         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
13082         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
13083         * config/i386/gas.h (GAS_MNEMONICS): Remove.
13084
13085 2009-04-25  Ben Elliston  <bje@au.ibm.com>
13086
13087         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
13088         the source of a set operation.
13089
13090 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
13091
13092         * target.h (struct gcc_target): Add case_values_threshold field.
13093         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
13094         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
13095         * targhooks.c (default_case_values_threshold): New function.
13096         * targhooks.h (default_case_values_threshold): Declare function.
13097         * stmt.c (expand_case): Use case_values_threshold target hook.
13098         * expr.h (case_values_threshold): Remove declartation.
13099         * expr.c (case_values_threshold): Remove function.
13100         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
13101
13102         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
13103         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
13104         (avr_case_values_threshold): Declare as static.
13105         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
13106
13107         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
13108         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
13109         (mn10300_case_values_threshold): New function.
13110
13111 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
13112
13113         * ira.c (setup_cover_and_important_classes): Add enum cast.
13114
13115 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
13116
13117         * genpreds.c (write_enum_constraint_num): Output definition of
13118         CONSTRAINT_NUM_DEFINED_P macro.
13119         * ira.c (setup_cover_and_important_classes): Use
13120         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
13121
13122 2009-04-24  DJ Delorie  <dj@redhat.com>
13123
13124         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
13125         __SH2A_SINGLE_ONLY__ also.
13126
13127 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
13128
13129         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
13130         (movdf_internal): Ditto.
13131         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
13132         SFmode and DFmode constants.
13133         (ia64_print_operand): Add 'G' format for printing
13134         floating point constants.
13135
13136 2009-04-24  Richard Guenther  <rguenther@suse.de>
13137
13138         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
13139         from unsigned additions.
13140
13141 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
13142
13143         * c-typeck.c (set_init_index): Allow array designators that are
13144         not integer constant expressions with a pedwarn if pedantic.
13145
13146 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
13147
13148         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
13149         zero if no overlap in nonzero bits between the operands.
13150
13151 2009-04-24  Ian Lance Taylor  <iant@google.com>
13152
13153         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
13154         (record_dead_and_set_regs): Likewise.
13155         * df.h (struct df_mw_hardreg): Change flags field to int.
13156         (struct df_base_ref): Likewise.
13157         (struct df): Change changeable_flags field to int.
13158         * df-scan.c (df_defs_record): Change clobber_flags to int.
13159         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
13160         constants rather than #define macros.
13161         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
13162         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
13163         (enum dwarf_calling_convention): Likewise.
13164         (enum dwarf_line_number_x_ops): Likewise.
13165         (enum dwarf_call_frame_info): Likewise.
13166         (enum dwarf_source_language): Likewise.
13167         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
13168         (add_calling_convention_attribute): Likewise.
13169         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
13170         (combine_comparisons): Change compcode to int.  Add cast to enum type.
13171         * genrecog.c (maybe_both_true_2): Change c to int.
13172         (write_switch): Likewise.  Add cast to enum type.
13173         * gimplify.c (gimplify_omp_for): Handle return values from
13174         gimplify_expr using MIN rather than bitwise or.
13175         (gimplify_expr): Add cast to enum type.
13176         * ipa-prop.c (update_jump_functions_after_inlining): Change
13177         IPA_BOTTOM to IPA_JF_UNKNOWN.
13178         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
13179         Add casts to enum type.
13180         (setup_cover_and_important_classes): Change cl to int.  Add casts
13181         to enum type.
13182         (setup_class_translate): Change cl and mode to int.
13183         (ira_init_once): Change mode to int.
13184         (free_register_move_costs): Likewise.
13185         (setup_prohibited_mode_move_regs): Add casts to enum type.
13186         * langhooks.c (add_builtin_function_common): Rework assertion that
13187         value fits bitfield.
13188         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
13189         * omega.c (omega_do_elimination): Avoid math on enum types.
13190         * optabs.c (expand_vec_shift_expr): Remove casts to int.
13191         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
13192         int local to handle integral_argment value.
13193         * regmove.c (try_auto_increment): Change PUT_MODE to
13194         PUT_REG_NOTE_KIND.
13195         * reload.c (push_secondary_reload): Add casts to enum type.
13196         (secondary_reload_class, find_valid_class): Likewise.
13197         * reload1.c (emit_input_reload_insns): Likewise.
13198         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
13199         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
13200         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
13201         constant.
13202         * tree.c (build_common_builtin_nodes): Add casts to enum type.
13203         * tree-complex.c (complex_lattice_t): Typedef to int rather than
13204         enum type.
13205         (expand_complex_libcall): Add casts to enum type.
13206         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
13207         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
13208         with ERROR_MARK, not NUM_TREE_CODES.
13209         (vect_create_epilog_for_reduction): Likewise.
13210         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
13211         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
13212         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
13213         enum machine_mode.
13214         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
13215         vect_unused_in_loop.  Change 0 to loop_vect.
13216         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
13217         * var-tracking.c (get_init_value): Change return type to enum
13218         var_init_status.
13219         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
13220         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
13221         arm_fp_model.
13222         (arm_override_options): Add casts to enum type.
13223         (arm_emit_tls_decoration): Likewise.
13224         * config/i386/i386.c (ix86_function_specific_restore): Add casts
13225         to enum type.
13226         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
13227         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
13228         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
13229         enum type.
13230         * config/s390/s390.c (code_for_builtin_64): Change to array of
13231         enum insn_code.
13232         (code_for_builtin_31): Likewise.
13233         (s390_expand_builtin): Change code_for_builtin to enum insn_code
13234         const *.
13235         * config/sparc/sparc.c (sparc_override_options): Change value
13236         field in struct code_model to enum cmodel.  In initializer change
13237         0 to NULL and add cast to enum type.
13238
13239         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
13240         Change all callers.  Issue a -Wc++-compat warning using
13241         lhs_origtype if necessary.
13242         (convert_for_assignment): Issue -Wc++-compat warnings about
13243         invalid conversions to enum type on assignment.
13244         * c-common.h (build_modify_expr): Update declaration.
13245
13246 2009-04-24  Nick Clifton  <nickc@redhat.com>
13247
13248         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
13249         (function_arg_advance): Likewise.
13250         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
13251         5th alternative.
13252
13253 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
13254
13255         * config/s390/constraints.md ('I', 'J'): Fix condition.
13256
13257 2009-04-24  Diego Novillo  <dnovillo@google.com>
13258
13259         * gengtype-parse.c (parse_error): Add newline after message.
13260
13261 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
13262
13263         * config/i386/sse.md (avxmodesuffixs): Removed.
13264         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
13265         (*avx_pinsr<ssevecsize>): This.
13266
13267 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
13268
13269         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
13270         follow chains of regs with a single definition, and allow expressions
13271         that are function_invariant_p.
13272         (simple_rhs_p): Allow expressions that are function_invariant_p.
13273
13274 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
13275
13276         PR middle-end/39867
13277         * fold-const.c (fold_cond_expr_with_comparison): When folding
13278         > and >= to MAX, make sure the MAX uses the same type as the
13279         comparison's operands.
13280
13281 2009-04-24  Nick Clifton  <nickc@redhat.com>
13282
13283         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
13284         addressing for DImode accesses.
13285         (frv_print_operand_address): Handle PLUS case.
13286         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
13287
13288 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
13289
13290         PR rtl-optimization/39794
13291         * alias.c (canon_true_dependence): Add x_addr argument.
13292         * rtl.h (canon_true_dependence): Adjust prototype.
13293         * cse.c (check_dependence): Adjust canon_true_dependence callers.
13294         * cselib.c (cselib_invalidate_mem): Likewise.
13295         * gcse.c (compute_transp): Likewise.
13296         * dse.c (scan_reads_nospill): Likewise.
13297         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
13298         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
13299         canon_base_addr of the group, plus optional offset.
13300         (struct group_info): Rename canon_base_mem to
13301         canon_base_addr.
13302         (get_group_info): Set canon_base_addr to canon_rtx of base, not
13303         canon_rtx of base_mem.
13304
13305 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
13306
13307         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
13308         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
13309
13310 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13311
13312         * config/spu/spu-builtins.h: Delete file.
13313
13314         * config/spu/spu.h (enum spu_builtin_type): Move here from
13315         spu-builtins.h.
13316         (struct spu_builtin_description): Likewise.  Add GTY marker.
13317         Do not use enum spu_function_code or enum insn_code.
13318         (spu_builtins): Add extern declaration.
13319
13320         * config/spu/spu.c: Do not include "spu-builtins.h".
13321         (enum spu_function_code, enum spu_builtin_type_index,
13322         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
13323         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
13324         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
13325         unsigned_V2DI_type_node): Move here from spu-builtins.h.
13326         (spu_builtin_types): Make static.  Add GTY marker.
13327         (spu_builtins): Add extern declaration with GTY marker.
13328         Include "gt-spu.h".
13329
13330         * config/spu/spu-c.c: Do not include "spu-builtins.h".
13331         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
13332         Check programmatically whether all parameters are scalar.
13333
13334         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
13335
13336 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
13337
13338         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
13339         assignment from the constructor either if the target is volatile.
13340
13341 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
13342
13343         * config/arm/arm.md (insv): Do not share operands[0].
13344
13345 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
13346
13347         * config/vxlib-tls.c (active_tls_threads): Delete.
13348         (delete_hook_installed): New.
13349         (tls_delete_hook): Don't delete the delete hook.
13350         (tls_destructor): Delete it here.
13351         (__gthread_set_specific): Adjust installing the delete hook.
13352         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
13353         __gthread_leave_tsd_dtor_context.
13354
13355 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
13356
13357         * c-format.c (gcc_tdiag_char_table): Add support for %E.
13358
13359 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
13360
13361         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
13362         enum type.
13363         (alpha_rtx_costs): Ditto.
13364         (emit_unlikely_jump): Use add_reg_note.
13365         (emit_frame_store_1): Ditto.
13366         (alpha_expand_prologue): Ditto.
13367         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
13368         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
13369
13370 2009-04-23  Nick Clifton  <nickc@redhat.com>
13371
13372         * config/v850/v850.md (epilogue): Remove suppressed code.
13373         (return): Rename to return_simple and remove test of frame size.
13374         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
13375         to gen_return_simple.
13376
13377 2009-04-22  Jing Yu  <jingyu@google.com>
13378
13379         PR testsuite/39781
13380         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
13381
13382 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13383
13384         PR C/31499
13385         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
13386         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
13387         value is a VECTOR_CST, the element type is the element type of the
13388         vector.
13389
13390 2009-04-22  DJ Delorie  <dj@redhat.com>
13391
13392         * config/m32c/m32c.h: Update GTY annotations to new syntax.
13393
13394 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
13395
13396         * alias.c (find_base_term): Move around LO_SUM case, so that
13397         CONST falls through into PLUS/MINUS handling.
13398
13399         PR c/39855
13400         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
13401         into 0, use omit_one_operand.
13402
13403 2009-04-23  Ben Elliston  <bje@au.ibm.com>
13404
13405         * config/rs6000/linux-unwind.h (get_regs): Remove type
13406         puns. Change the type of `pc' to an array of unsigned ints and
13407         update all users.  Constify frame24.
13408
13409 2009-04-22  DJ Delorie  <dj@redhat.com>
13410
13411         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
13412         declarations before code.
13413         (current_function_special_page_vector): Likewise.
13414         (m32c_expand_insv): Silence a warning.
13415
13416 2009-04-21  Taras Glek  <tglek@mozilla.com>
13417
13418         * alias.c: Update GTY annotations to new syntax.
13419         * basic-block.h: Likewise.
13420         * bitmap.h: Likewise.
13421         * c-common.h: Likewise.
13422         * c-decl.c: Likewise.
13423         * c-parser.c: Likewise.
13424         * c-pragma.c: Likewise.
13425         * c-tree.h: Likewise.
13426         * cfgloop.h: Likewise.
13427         * cgraph.h: Likewise.
13428         * config/alpha/alpha.c: Likewise.
13429         * config/arm/arm.h: Likewise.
13430         * config/avr/avr.h: Likewise.
13431         * config/bfin/bfin.c: Likewise.
13432         * config/cris/cris.c: Likewise.
13433         * config/darwin.c: Likewise.
13434         * config/frv/frv.c: Likewise.
13435         * config/i386/i386.c: Likewise.
13436         * config/i386/i386.h: Likewise.
13437         * config/i386/winnt.c: Likewise.
13438         * config/ia64/ia64.h: Likewise.
13439         * config/iq2000/iq2000.c: Likewise.
13440         * config/mips/mips.c: Likewise.
13441         * config/mmix/mmix.h: Likewise.
13442         * config/pa/pa.c: Likewise.
13443         * config/pa/pa.h: Likewise.
13444         * config/rs6000/rs6000.c: Likewise.
13445         * config/s390/s390.c: Likewise.
13446         * config/sparc/sparc.c: Likewise.
13447         * config/xtensa/xtensa.c: Likewise.
13448         * cselib.h: Likewise.
13449         * dbxout.c: Likewise.
13450         * dwarf2out.c: Likewise.
13451         * except.c: Likewise.
13452         * except.h: Likewise.
13453         * fixed-value.h: Likewise.
13454         * function.c: Likewise.
13455         * function.h: Likewise.
13456         * gimple.h: Likewise.
13457         * integrate.c: Likewise.
13458         * optabs.c: Likewise.
13459         * output.h: Likewise.
13460         * real.h: Likewise.
13461         * rtl.h: Likewise.
13462         * stringpool.c: Likewise.
13463         * tree-data-ref.c: Likewise.
13464         * tree-flow.h: Likewise.
13465         * tree-scalar-evolution.c: Likewise.
13466         * tree-ssa-address.c: Likewise.
13467         * tree-ssa-alias.h: Likewise.
13468         * tree-ssa-operands.h: Likewise.
13469         * tree.c: Likewise.
13470         * tree.h: Likewise.
13471         * varasm.c: Likewise.
13472         * varray.h: Likewise.
13473         * vec.h: Likewise.
13474         * coretypes.h: Do not define GTY macro if it is already defined.
13475         * doc/gty.texi: Update GTY documentation to new syntax.
13476         * gengtype-lex.l: Enforce attribute-like syntax for GTY
13477         annotations on structs.
13478         * gengtype-parse.c: Likewise.
13479
13480 2009-04-22  Mark Heffernan  <meheff@google.com>
13481
13482         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
13483
13484 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
13485
13486         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
13487         where appropriate.
13488
13489 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
13490
13491         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
13492         the same as a PLUS without a shift.  Increase the cost of a
13493         CONST_INT in MULT.
13494
13495 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13496
13497         * Makefile.in: Update dependencies.
13498         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
13499         * errors.h: Remove bogus comment about compatibility.
13500         (warning): Update declaration.
13501         * genautomata.c: Update all calls to warning.
13502         * gimple.c: Do not include errors.h. Include toplev.h.
13503         * tree-ssa-structalias.c: Do not include errors.h.
13504         * omega.c: Likewise.
13505         * tree-ssa-reassoc.c: Likewise.
13506         * config/spu/spu-c.c: Likewise.
13507         * config/spu/t-spu-elf: Update dependencies.
13508
13509 2009-04-22  Richard Guenther  <rguenther@suse.de>
13510
13511         PR tree-optimization/39824
13512         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
13513         make sure the types are compatible.
13514
13515 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13516
13517         PR c++/14875
13518         * c-common.c (c_parse_error): Take a token_flags parameter.
13519         Use token_type for the token type instead.
13520         Pass token_flags to cpp_type2name.
13521         * c-common.h (c_parse_error): Update declaration.
13522         * c-parser.c (c_parser_error): Pass 0 as token flags.
13523
13524 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
13525
13526         PR rtl-optimization/39580
13527         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
13528
13529 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13530
13531         * function.c (expand_function_end): Do not emit a jump to the "naked"
13532         return label for fall-through returns.
13533         * except.c (sjlj_emit_function_exit): Always place the call to the
13534         unregister function at the location installed by expand_function_end.
13535
13536 2009-04-22  Richard Guenther  <rguenther@suse.de>
13537
13538         PR tree-optimization/39845
13539         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
13540         (gen_inbound_check): Likewise.
13541
13542 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
13543
13544         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
13545         padding for PPC.
13546         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
13547         * config/vxlib.c (__gthread_once): Add race guard for PPC.
13548
13549 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
13550
13551         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
13552         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
13553         shift counts to avoid out-of-bounds array accesses.
13554
13555 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
13556
13557         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
13558         (Pmode): Move above.
13559
13560 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
13561
13562         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
13563         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
13564         GET_CODE macro.  Use IN_RANGE macro where appropriate.
13565         * config/alpha/alpha.h: Ditto.
13566         * config/alpha/alpha.md: Ditto.
13567         * config/alpha/constraints.md: Ditto.
13568         * config/alpha/predicates.md: Ditto.
13569
13570 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
13571
13572         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
13573         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13574         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13575         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13576         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13577         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13578         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13579         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13580         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13581         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13582         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13583         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13584         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13585         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13586         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13587         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13588         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13589         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13590         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13591         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13592         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13593         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13594         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13595         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13596         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13597         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13598         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13599
13600 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13601
13602         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
13603         references from comments.
13604         * cfgbuild.c: (count_basic_blocks): Delete.
13605         (find_basic_blocks_1): Delete.
13606         (find_basic_blocks): Delete.
13607         * except.c (finish_eh_generation): Make static.  Move comment from
13608         except.h here.  Remove find_basic_blocks references from comments.
13609         * except.h (finish_eh_generation): Delete.
13610         * basic-block.h (find_basic_blocks): Delete.
13611         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
13612
13613 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
13614
13615         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
13616         (sdbout_parms):  Likewise.
13617
13618 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
13619
13620         * config/sh/sh.c (prepare_cbranch_operands): Use
13621         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
13622         (expand_cbranchdi4): Likewise.
13623         (from_compare): Add cast to enum type.
13624         (expand_cbranchsi4): Use add_reg_note.
13625         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
13626         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
13627         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
13628         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
13629         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
13630         instead of CODE_FOR_nothing.
13631         (cbranchdi4): Likewise.  Fix the order of arguments for
13632         gen_rtx_fmt_ee.
13633         (push_fpscr): Use add_reg_note.
13634         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
13635         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
13636
13637 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
13638
13639         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
13640         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
13641         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
13642         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
13643         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
13644         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
13645         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
13646         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
13647         config/alpha/x-vms, config/arc/t-arc,
13648         config/arm/README-interworking, config/arm/arm-c.c,
13649         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
13650         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
13651         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
13652         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
13653         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
13654         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
13655         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
13656         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
13657         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
13658         config/cris/t-elfmulti, config/crx/t-crx,
13659         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
13660         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
13661         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
13662         config/h8300/t-h8300, config/i386/athlon.md,
13663         config/i386/darwin-libgcc.10.4.ver,
13664         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
13665         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
13666         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
13667         config/i386/t-linux64, config/i386/t-nwld,
13668         config/i386/t-rtems-i386, config/i386/t-sol2-10,
13669         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
13670         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
13671         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
13672         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
13673         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
13674         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
13675         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
13676         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
13677         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
13678         config/m68k/t-uclinux, config/mcore/t-mcore,
13679         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
13680         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
13681         config/mips/crtn.asm, config/mips/irix-crti.asm,
13682         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
13683         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
13684         config/mips/mips-fixed.md, config/mips/sb1.md,
13685         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
13686         config/mips/t-iris6, config/mips/t-isa3264,
13687         config/mips/t-libgcc-mips16, config/mips/t-linux64,
13688         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
13689         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
13690         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
13691         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
13692         config/mn10300/t-linux, config/mn10300/t-mn10300,
13693         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
13694         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
13695         config/picochip/libgccExtras/clzsi2.asm,
13696         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
13697         config/rs6000/darwin-libgcc.10.4.ver,
13698         config/rs6000/darwin-libgcc.10.5.ver,
13699         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
13700         config/rs6000/t-aix43, config/rs6000/t-aix52,
13701         config/rs6000/t-darwin, config/rs6000/t-fprules,
13702         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
13703         config/rs6000/t-lynx, config/rs6000/t-netbsd,
13704         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
13705         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
13706         config/rs6000/t-rtems, config/rs6000/t-spe,
13707         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
13708         config/score/t-score-elf, config/sh/divcost-analysis,
13709         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
13710         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
13711         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
13712         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
13713         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
13714         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
13715         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
13716         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
13717         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
13718         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
13719         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
13720         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
13721         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
13722         limitx.h, version.c, xcoff.h: Add copyright and license notices.
13723         * config/h8300/genmova.sh: Include copyright and license notices
13724         in generated output.
13725         * config/h8300/mova.md: Regenerate.
13726         * doc/install.texi2html: Include word "Copyright" in copyright
13727         notice and use name "Free Software Foundation, Inc.".
13728         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
13729         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
13730         ChangeLog-2007, ChangeLog-2008: Correct dates.
13731
13732 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
13733
13734         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
13735         NE_EXPR operations as well.
13736         * c-parser.c (c_parser_condition): Do not set location information on
13737         the condition.
13738         (c_parser_conditional_expression): Likewise.
13739         (c_parser_binary_expression): Set location information on operators.
13740         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
13741         TRUTH_NOT_EXPR has been folded.
13742         * fold-const.c (fold_truth_not_expr): Copy location information from
13743         the incoming expression to the outgoing one.
13744         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
13745         recursive calls on the LHS of the operator but pass that of the
13746         operator to recursive calls on the RHS of the operator.  Set it
13747         on the COND_EXPR.
13748         (shortcut_cond_expr): Set the locus of the operator on the second
13749         COND_EXPR and that of the expression on the first in degenerate cases.
13750         Pass the locus of the expression to calls to shortcut_cond_r.
13751         Set the locus of the 'then' block on the associated jump, if any.
13752         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
13753         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
13754         expression to call to gimplify_boolean_expr.
13755
13756 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
13757
13758         * config.gcc: Add additional configuration for
13759         i686-w64-mingw* and x86_64-w64-mingw* triplet.
13760         * config/i386/mingw-w64.h: New mingw-w64 specific header.
13761         (CPP_SPEC): Redefine for allowing -municode option.
13762         (STARTFILE_SPEC): Likewise.
13763         * config/i386/t-mingw-w64: New.
13764         * config/i386/mingw-w64.opt: New.
13765         (municode): Add new target option.
13766         * doc/invoke.texi (municode): Add documentation for new option.
13767
13768 2009-04-21  Ian Lance Taylor  <iant@google.com>
13769
13770         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13771         Correct test for number of arguments.
13772         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
13773
13774 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
13775
13776         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
13777         argument of emit_library_call.
13778
13779 2009-04-21  Richard Guenther  <rguenther@suse.de>
13780
13781         PR middle-end/39829
13782         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
13783         inside VIEW_CONVERT_EXPRs.
13784
13785 2009-04-21  Martin Jambor  <mjambor@suse.cz>
13786
13787         * tree-switch-conversion.c (build_constructors): Split a long line.
13788         (constructor_contains_same_values_p): New function.
13789         (build_one_array): Create assigns of constants if possible, do not
13790         call mark_sym_for_renaming, call update_stmt.
13791         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
13792         make_rename_temp.  Do not call mark_symbols_for_renaming, call
13793         update_stmt.
13794         (gen_def_assigns): Do not call mark_symbols_for_renaming or
13795         find_new_referenced_vars, call update_stmt.
13796         (gen_inbound_check): Use create_tmp_var and create ssa names manually
13797         instead of calling make_rename_temp.  Do not call
13798         find_new_referenced_vars or mark_symbols_for_renaming, call
13799         update_stmt.
13800
13801 2009-04-21  Richard Guenther  <rguenther@suse.de>
13802
13803         PR tree-optimization/39827
13804         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
13805         (tree_ssa_phiprop): Pass the correct array size.
13806
13807 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
13808
13809         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
13810
13811 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13812
13813         PR 16202
13814         * c-typeck.c (lvalue_p): Move declaration ...
13815         * c-common.h (lvalue_p): ... to here.
13816         * c-common.c (candidate_equal_p): New.
13817         (add_tlist): Use it.
13818         (merge_tlist): Use it.
13819         (warn_for_collisions_1): Likewise.
13820         (warning_candidate_p): Accept more candidates.
13821         (verify_tree): A warning candidate can be an expression. Use
13822         candidate_equal_p.
13823
13824 2009-04-21  Ben Elliston  <bje@au.ibm.com>
13825
13826         PR target/5267
13827         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
13828         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
13829         options.  Remove -mcall-solaris documentation.
13830
13831 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13832
13833         PR c++/13358
13834         * doc/invoke.texi (-Wlong-long): Update description.
13835         * c-lex (interpret_integer): Only warn if there was no previous
13836         overflow and -Wlong-long is enabled.
13837         * c-decl.c (declspecs_add_type): Drop redundant flags.
13838         * c.opt (Wlong-long): Init to -1.
13839         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
13840         and front-end warn_long_long. Wlong-long only depends on other
13841         flags if it is uninitialized.
13842         * c-parser.c (disable_extension_diagnostics): warn_long_long is
13843         the same for CPP and FE.
13844         (restore_extension_diagnostics): Likewise.
13845
13846 2009-04-20  Ian Lance Taylor  <iant@google.com>
13847
13848         Fix enum conversions which are invalid in C++:
13849         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
13850         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
13851         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
13852         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
13853         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
13854         (dbxout_parms): Likewise.
13855         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
13856         (df_clear_flags): Likewise.
13857         * df-problems.c (df_rd_bb_local_compute_process_def): Change
13858         top_flag parameter to int.
13859         (df_chain_create_bb_process_use): Likewise.
13860         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
13861         Remove cast.
13862         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
13863         (df_ref_create_structure, df_def_record_1): Likewise.
13864         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
13865         (df_notes_rescan): Change 0 to VOIDmode in function call.
13866         (df_get_call_refs, df_insn_refs_collect): Likewise.
13867         (df_bb_regs_collect): Likewise.
13868         (df_entry_block_defs_collect): Likewise.
13869         (df_exit_block_uses_collect): Likewise.
13870         * df.h: Update declarations.
13871         * double-int.c (double_int_divmod): Add cast to enum type.
13872         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
13873         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
13874         (based_loc_descr): Likewise.
13875         (loc_descriptor_from_tree_1): Change first_op and second_op to
13876         enum dwarf_location_atom.  Add cast to enum type.
13877         * expmed.c (init_expmed): Change 0 to SET in function call.
13878         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
13879         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
13880         (do_store_flag): Likewise.
13881         * fixed-value.h (struct fixed_value): Change mode to enum
13882         machine_mode.
13883         * function.c (assign_parms): Change 0 to VOIDmode in function call.
13884         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
13885         function call.
13886         (insert_insn_decl, insert_decl, insert_state): Likewise.
13887         (automata_list_finish): Likewise.
13888         * genrecog.c (process_define_predicate): Add cast to enum type.
13889         * gensupport.c (init_predicate_table): Add cast to enum type.
13890         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
13891         function call.
13892         (gimple_build_call_1, gimple_build_label): Likewise.
13893         (gimple_build_goto, gimple_build_asm_1): Likewise.
13894         (gimple_build_switch_1, gimple_build_cdt): Likewise.
13895         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
13896         (enum fallback): Rename from enum fallback_t.
13897         (fallback_t): Typedef as int.
13898         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
13899         GSI_SAME_STMT in function call.
13900         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
13901         enum type.
13902         (setup_reg_class_relations): Likewise.
13903         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
13904         (setup_prohibited_class_mode_regs): Add cast to enum type.
13905         (setup_prohibited_mode_move_regs): Likewise.
13906         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
13907         (record_address_regs): Change i to enum reg_class.
13908         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
13909         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
13910         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
13911         (GET_MODE_2XWIDER_MODE): Likewise.
13912         (GET_CLASS_NARROWEST_MODE): Likewise.
13913         * omp-low.c (expand_omp_for): Add cast to enum type.
13914         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
13915         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
13916         * postreload.c (reload_cse_simplify_operands): Change rclass local
13917         to enum reg_class.
13918         * predict.c (combine_predictions_for_insn): Change best_predictor
13919         and predictor to enum br_predictor.
13920         (combine_predictions_for_bb): Likewise.
13921         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
13922         use SET_PREDICT_EXPR_OUTCOME.
13923         * real.c (real_arithmetic): Change icode to code in function call.
13924         * reginfo.c (init_move_cost): Add casts to enum type.
13925         (init_reg_sets_1, init_fake_stack_mems): Likewise.
13926         * regmove.c (regclass_compatible_p): Change class0 and class1 to
13927         enum reg_class.
13928         * reload.c (find_valid_class): Add casts to enum type.
13929         (push_reload): Change 0 to NO_REGS in function call.
13930         (find_reloads): Change this_alternative to array of enum
13931         reg_class.  Remove some now-unnecessary casts.
13932         (make_memloc): Change 0 to VOIDmode in function call.
13933         * reload1.c (reload): Change 0 to VOIDmode in function call.
13934         (eliminate_regs_1, elimination_effects): Likewise.
13935         (eliminate_regs_in_insn): Likewise.
13936         (emit_input_reload_insns): Add cast to enum type.
13937         (delete_output_reload): Change 0 to VOIDmode in function call.
13938         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
13939         to enum type in function call.
13940         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
13941         (SET_PREDICT_EXPR_OUTCOME): Define.
13942         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
13943         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
13944         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
13945         (dump_function): Likewise.
13946         * tree-dump.h: Update declarations.
13947         * tree-pass.h: Update declarations.
13948         * varasm.c (assemble_integer): Change mclass to enum mode_class.
13949         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
13950         enum type.
13951         (arm_rtx_costs_1): Correct parenthesization.
13952         (arm_rtx_costs): Add casts to enum type.
13953         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
13954         (vfp_emit_fstmd): Use add_rg_note.
13955         (emit_multi_reg_push, emit_sfm): Likewise.
13956         (thumb_set_frame_pointer): Likewise.
13957         (arm_expand_prologue): Likewise.
13958         (arm_regno_class): Change return type to enum reg_class.
13959         (thumb1_expand_prologue): Use add_reg_note.
13960         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
13961         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
13962         in function call.
13963         * config/arm/gentune.sh: Add cast to enum type.
13964         * config/arm/arm-tune.md: Rebuild.
13965         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
13966         (ix86_split_fp_branch, predict_jump): Likewise.
13967         (ix86_expand_multi_arg_builtin): Change sub_code from enum
13968         insn_code to enum rtx_code.
13969         (ix86_builtin_vectorized_function): Add cast to enum type.
13970         * config/i386/i386.md (truncdfsf2): Change slot to enum
13971         ix86_stack_slot.
13972         (truncxf<mode>2, isinf<mode>2): Likewise.
13973         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
13974         enum type.
13975         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
13976         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
13977         (insert_bundle_state): Change 1 to INSERT in function call.
13978         (ia64_add_bundle_selector_before): Likewise.
13979         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
13980         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
13981         (restore_stack_nonlocal): Likewise.
13982         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
13983         function call.
13984         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
13985         function call.
13986         (mips_rtx_costs): Likewise.
13987         (mips_override_options): Add casts to enum type.
13988         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
13989         in function call.
13990         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
13991         (store_reg, set_reg_plus_d): Likewise.
13992         (hppa_expand_prologue, hppa_profile_hook): Likewise.
13993         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
13994         cast to enum type.
13995         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
13996         function call.
13997         (emit_unlikely_jump): Use add_reg_note.
13998         (rs6000_emit_allocate_stack): Likewise.
13999         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
14000         (output_toc): Change 1 to INSERT in function call.
14001         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
14002         (rs6000_initialize_trampoline): Likewise.
14003         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
14004         function call.
14005         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
14006         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
14007         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
14008         (save_gprs): Use add_reg_note.
14009         (s390_emit_prologue): Likewise.
14010         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
14011         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
14012         (sparc_fold_builtin): Add cast to enum type.
14013         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
14014         enum insn_code.
14015         (spu_expand_prologue): Use add_reg_note.
14016         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
14017
14018 2009-04-20  Ian Lance Taylor  <iant@google.com>
14019
14020         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
14021         (c_parser_postfix_expression_after_primary): Get VEC for list of
14022         arguments.  Get original types of arguments.  Call
14023         build_function_call_vec.
14024         (cached_expr_list_1, cached_expr_list_2): New static variables.
14025         (c_parser_expr_list): Change return type to VEC *.  Add
14026         p_orig_types parameter.  Change all callers.
14027         (c_parser_release_expr): New static function.
14028         (c_parser_vec_to_tree_list): New static function.
14029         * c-typeck.c (build_function_call): Rewrite to build a VEC and
14030         call build_function_call_vec.
14031         (build_function_call_vec): New function, based on old
14032         build_function_call.
14033         (convert_arguments): Remove nargs and argarray parameters.  Change
14034         values to a VEC.  Add origtypes parameter.
14035         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
14036         (convert_for_assignment): Add origtype parameter.  Change all
14037         callers.  If warn_cxx_compat, check for conversion to an enum
14038         type when calling a function.
14039         (store_init_value): Add origtype parameter.  Change all callers.
14040         (digest_init): Likewise.
14041         (struct init_node): Add origtype field.
14042         (add_pending_init): Add origtype parameter.  Change all callers.
14043         (output_init_element): Likewise.
14044         (output_pending_init_elements): Pass origtype from init_node to
14045         output_init_element.
14046         (process_init_element): Pass origtype from c_expr to
14047         output_init_element.
14048         (c_finish_return): Add origtype parameter.  Change all callers.
14049         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
14050         caller.
14051         (sync_resolve_params): Likewise.
14052         (sync_resolve_return): Change params to first_param.  Change caller.
14053         (resolve_overloaded_builtins): Change params to VEC *.  Change
14054         callers.  Save first parameter around call to build_function_call_vec.
14055         * c-decl.c (finish_decl): Add origtype parameter.  Change all
14056         callers.  Call build_function_call_vec rather than
14057         build_function_call for cleanup.
14058         * c-tree.h: Update declarations.
14059         * c-common.h: Update declarations.
14060         * stub-objc.c (objc_rewrite_function_call): Change parameter from
14061         params to first_param.
14062         * target.h (struct gcc_target): Change resolve_overloaded_builtin
14063         params parameter from tree to void *.
14064         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14065         Change arglist parameter to have type void *, and to be a pointer
14066         to a VEC.
14067         * config/rs6000/rs6000-protos.h
14068         (altivec_resolve_overloaded_builtin): Update declaration.
14069         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
14070         fnargs parameter to have type void *, and to be a pointer to a
14071         VEC.  Call build_function_call_vec instead of
14072         build_function_call.
14073         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
14074
14075 2009-04-20  Joey Ye  <joey.ye@intel.com>
14076             Xuepeng Guo  <xuepeng.guo@intel.com>
14077             H.J. Lu  <hongjiu.lu@intel.com>
14078
14079         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
14080
14081         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
14082         (IX86_LEA_PRIORITY): Likewise.
14083         (distance_non_agu_define): New function.
14084         (distance_agu_use): Likewise.
14085         (ix86_lea_for_add_ok): Likewise.
14086         (ix86_dep_by_shift_count): Likewise.
14087
14088         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
14089         should split for LEA.
14090
14091         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
14092         function.
14093         (ix86_dep_by_shift_count): Likewise.
14094
14095 2009-04-20  Richard Guenther  <rguenther@suse.de>
14096
14097         * expr.c (handled_component_p): Move ...
14098         * tree.h (handled_component_p): ... here.
14099         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
14100         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
14101         and REALPART_EXPR to be in one group.
14102
14103 2009-04-20  Richard Guenther  <rguenther@suse.de>
14104
14105         * basic-block.h (get_all_dominated_blocks): Declare.
14106         * dominance.c (get_all_dominated_blocks): New function.
14107         * tree-cfg.c (get_all_dominated_blocks): Remove.
14108         (remove_edge_and_dominated_blocks): Adjust.
14109         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
14110         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
14111         instead of recursing.
14112
14113 2009-04-20  Doug Kwan  <dougkwan@google.com>
14114
14115         * cgraph.h (cgraph_node_ptr): New type for vector functions.
14116         (struct cgraph_node_set_def): New type.
14117         (cgraph_node_set) New type. Also declare vector functions.
14118         (struct cgraph_node_set_element_def): New type.
14119         (cgraph_node_set_element): Ditto.
14120         (cgraph_node_set_iterator): New iterator type.
14121         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
14122         cgraph_node_set_remove, dump_cgraph_node_set,
14123         debug_cgraph_node_set): New prototypes.
14124         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
14125         cgraph_node_set_size): New inlines.
14126         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
14127         including cgraph.h.
14128         (struct ipa_opt_pass): Add struct cgraph_node_set_def
14129         argument to function 'write_summary'.
14130         * ipa.c: Include ggc.h.
14131         (hash_cgraph_node_set_element,
14132         eq_cgraph_node_set_element, cgraph_node_set_new,
14133         cgraph_node_set_add, cgraph_node_set_remove,
14134         cgraph_node_set_find, dump_cgraph_node_set,
14135         debug_cgraph_node_set): New functions.
14136         * Makefile.in (ipa.o): Add dependency on GGC_H.
14137
14138 2009-04-20  Ira Rosen  <irar@il.ibm.com>
14139
14140         PR tree-optimization/39675
14141         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
14142         check of the return code of vect_schedule_slp. Check that
14143         stmt_vec_info still exists for the statement, before checking its
14144         vectorization type.
14145
14146 2009-04-20  Michael Matz  <matz@suse.de>
14147
14148         * Makefile.in (generated_files): Take out $(simple_generated_c).
14149
14150 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
14151
14152         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
14153         (UINTPTR_TYPE):  Likewise.
14154
14155 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
14156
14157         PR c/37481
14158         * c-typeck.c (digest_init): Check for initializing an array with a
14159         string literal.
14160
14161 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
14162
14163         PR c/19771
14164         * c-semantics.c (pop_stmt_list): Propagate
14165         STATEMENT_LIST_HAS_LABEL to parent statement list.
14166
14167 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
14168
14169         * config/mips/mips.h (mips_tune_attr): New macro.
14170         * config/mips/mips.md (cpu): Use it.
14171
14172 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
14173
14174         PR c/38243
14175         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
14176         declaring a tag.
14177
14178 2009-04-19  Diego Novillo  <dnovillo@google.com>
14179
14180         * toplev.c (compile_file): Move call to coverage_finish ...
14181         * cgraphunit.c (ipa_passes): ... here.
14182         Call cgraph_process_new_functions.
14183         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
14184         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
14185
14186 2009-04-19  Jan Hubicka  <jh@suse.cz>
14187
14188         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
14189         cfun.
14190         (dump_cgraph_node): Dump can throw external flag.
14191         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
14192
14193 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14194
14195         PR c/32061
14196         PR c++/36954
14197         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
14198         * common.opt (Wlogical-op): Move from here...
14199         * c.opt (Wlogical-op): ... to here.
14200         * c-typeck.c (parser_build_binary_op): Update call to
14201         warn_logical_operator.
14202         * c-opts.c (c_common_post_options): Enable warn_logical_op with
14203         extra_warnings.
14204         * c-common.c (warn_logical_op): Update.
14205         * c-common.h (warn_logical_op): Update declaration.
14206
14207 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
14208
14209         * tree.c (protected_set_expr_location): Fix formatting.
14210
14211 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
14212
14213         PR c/27676
14214         * c-typeck.c (readonly_warning): new.
14215         (build_unary_op, build_modify_expr): Use readonly_warning for
14216         storing into something readonly but not const-qualified.
14217
14218 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
14219
14220         PR c/22367
14221         * c-typeck.c (build_unary_op): Check for taking address of
14222         expression of type void.
14223
14224 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
14225
14226         PR c/35210
14227         * c-typeck.c (build_function_call): Check for calling a function
14228         with qualified void return types.  Call require_complete_type when
14229         generating a trap.
14230
14231 2009-04-18  Jan Hubicka  <jh@suse.cz>
14232
14233         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
14234         Set nothrow flag.
14235         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
14236         can_throw_external flag.
14237         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
14238         * ipa-pure-const.c (ignore_edge): New function.
14239         (propagate): Compute order for NOTHROW computation; set NOTHROWs
14240         only over can_throw_external edges.
14241         (local_pure_const): Add nothrow flag.
14242         * ipa-utils.c (searchc): Add ignore_edge callback.
14243         (ipa_utils_reduced_inorder): Add ignore_edge callback.
14244         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
14245         (set_nothrow_function_flags): Update cgraph.
14246         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
14247
14248 2009-04-18  Richard Guenther  <rguenther@suse.de>
14249
14250         PR middle-end/39804
14251         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
14252         (fold_stmt): ... this and ...
14253         (fold_stmt_inplace): ... this.
14254         (fold_stmt_1): Fold references in calls and asms.
14255         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
14256
14257 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
14258
14259         * tree-vrp.c (ssa_name_nonzero_p): Remove.
14260         * tree.h: Remove the prototype for ssa_name_nonzero_p.
14261
14262 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
14263
14264         * tree.c (function_args_count): Remove.
14265         * tree.h: Remove the prototype for function_args_count.
14266
14267 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
14268
14269         * tree-iterator.c (expr_only): Remove.
14270         * tree.h: Remove the prototype for expr_only.
14271
14272 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
14273
14274         * reginfo.c (cannot_change_mode_set_regs): Remove.
14275         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
14276
14277 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
14278
14279         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
14280         whether operands 0 and 1 overlaps.
14281
14282 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14283
14284         PR middle-end/36902
14285         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
14286         pointer. Use warning_at instead of warning.
14287         (search_for_addr_array): Likewise.
14288         (check_array_bounds): Likewise.
14289         (check_all_array_refs): Check that the incoming edge is not in the
14290         list of edges to be removed.
14291         (check_all_array_refs): Avoid the temporal pointer.
14292         (vrp_visit_cond_stmt): Fix typo.
14293         (simplify_switch_using_ranges): Handle the case where the switch
14294         index is an integer constant.
14295
14296 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
14297
14298         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
14299
14300 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
14301
14302         * doc/extend.texi, doc/invoke.texi: Fix typos.
14303
14304 2009-04-17  Cary Coutant  <ccoutant@google.com>
14305
14306         * tree-flow-inline.h (get_lineno): Fix inverted test.
14307
14308 2009-04-17  Diego Novillo  <dnovillo@google.com>
14309
14310         * tree-ssa-pre.c (create_expression_by_pieces): Remove
14311         assertion for AVAIL_OUT.
14312
14313 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
14314
14315         PR target/38627
14316         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
14317         * config/sh/linux-atomic.asm: Likewise.
14318
14319 2009-04-17  Diego Novillo  <dnovillo@google.com>
14320
14321         * except.c (debug_eh_tree): New.
14322         (struct eh_region, struct eh_status): Move ...
14323         * except.h: ... here.
14324         (add_type_for_runtime): Declare extern.
14325         (lookup_type_for_runtime): Likewise.
14326         (debug_eh_tree): Declare.
14327         * Makefile.in (GTFILES): List except.h before except.c
14328
14329 2009-04-17  Diego Novillo  <dnovillo@google.com>
14330
14331         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
14332         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
14333         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
14334         (find_vars_r): ... here.
14335         * tree-flow.h (find_referenced_vars_in): Declare.
14336         * tree-ssa-pre.c (create_expression_by_pieces): Assert
14337         that AVAIL_OUT exists for BLOCK.
14338         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
14339         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
14340         (tree-parloops.o): Likewise.
14341
14342 2009-04-17  Simon Baldwin  <simonb@google.com>
14343
14344         * toplev.c (default_tree_printer): Add handling for %E format.
14345
14346 2009-04-17  Diego Novillo  <dnovillo@google.com>
14347
14348         * tree-pretty-print.c (dump_generic_node): Add break after
14349         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
14350         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
14351         FUNCTION_TYPE together.  Call print_struct_decl when printing
14352         structures and TDF_SLIM is not given.
14353         (print_struct_decl): Fix logic for detecting recursion.
14354
14355 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
14356
14357         PR 31567
14358         * gcc.c (create_at_file): New.
14359         (compile_input_file_p): New.
14360         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
14361         * main.c (main): Update call to toplev_main.
14362         * toplev.c (toplev_main): Change signature. Call expandargv.
14363         * toplev.h (toplev_main): Change signature.
14364
14365 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
14366
14367         * dwarf2out.c (field_byte_offset): Use the type size as the field size
14368         if the latter is not constant.
14369
14370 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
14371
14372         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
14373
14374 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
14375
14376         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
14377         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
14378
14379 2009-04-17  Richard Guenther  <rguenther@suse.de>
14380
14381         * tree-ssa-structalias.c (get_constraint_for_component_ref):
14382         Handle component references view-converting an invariant address.
14383
14384 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
14385
14386         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
14387         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
14388         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
14389         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
14390         Use @deftypevr rather than @deftypevar.
14391
14392 2009-04-17  Richard Guenther  <rguenther@suse.de>
14393
14394         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
14395         (get_prop_source_stmt): Likewise.
14396         (can_propagate_from): Likewise.
14397
14398 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
14399
14400         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
14401         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
14402         (--with-multilib-list): Add default value.
14403         * configure: Regenerate.
14404         * Makefile.in (TM_ENDIAN_CONFIG): Define.
14405         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
14406         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
14407         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
14408         Don't add default cpu to multilib list unnecessarily, but do enable
14409         the relevant compiler option..
14410         Add support for --with-multilib-list=<blank> and
14411         --with-multilib-list=!<somelib> to supress unwanted multilibs.
14412         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
14413         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
14414         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
14415         TM_MULTILIB_CONFIG.
14416         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
14417         (MULTILIB_OSDIRNAMES): New variable.
14418         * config/sh/t-1e: Delete file.
14419         * config/sh/t-mlib-sh1: Delete file.
14420         * config/sh/t-mlib-sh2: Delete file.
14421         * config/sh/t-mlib-sh2a: Delete file.
14422         * config/sh/t-mlib-sh2a-nofpu: Delete file.
14423         * config/sh/t-mlib-sh2a-single: Delete file.
14424         * config/sh/t-mlib-sh2a-single-only: Delete file.
14425         * config/sh/t-mlib-sh2e: Delete file.
14426         * config/sh/t-mlib-sh3e: Delete file.
14427         * config/sh/t-mlib-sh4: Delete file.
14428         * config/sh/t-mlib-sh4-nofpu: Delete file.
14429         * config/sh/t-mlib-sh4-single: Delete file.
14430         * config/sh/t-mlib-sh4-single-only: Delete file.
14431         * config/sh/t-mlib-sh4a: Delete file.
14432         * config/sh/t-mlib-sh4a-nofpu: Delete file.
14433         * config/sh/t-mlib-sh4a-single: Delete file.
14434         * config/sh/t-mlib-sh4a-single-only: Delete file.
14435         * config/sh/t-mlib-sh4al: Delete file.
14436         * config/sh/t-mlib-sh5-32media: Delete file.
14437         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
14438         * config/sh/t-mlib-sh5-64media: Delete file.
14439         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
14440         * config/sh/t-mlib-sh5-compact: Delete file.
14441         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
14442         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
14443         * doc/install.texi (Options specification): Add
14444         --with-multilib-list and --with-endian.
14445
14446 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
14447
14448         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
14449         REVISION_c.
14450         (OBJS-common): Add plugin-version.o.
14451         (plugin-version.o): New.
14452         * gcc-plugin.h (plugin_gcc_version): New.
14453         (plugin_default_version_check): New.
14454         (plugin_init_func, plugin_init): Add version argument.
14455         * plugin-version.c: New.
14456         * plugin.c (str_plugin_gcc_version_name): New.
14457         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
14458         pass it to the init function.
14459         (plugin_default_version_check): New.
14460
14461 2009-04-17  Richard Guenther  <rguenther@suse.de>
14462
14463         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
14464         for decl-vs-decl disambiguation.
14465
14466 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
14467
14468         * config/s390/s390.h (s390_tune_attr): New macro definition.
14469         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
14470
14471 2009-04-17  Richard Guenther  <rguenther@suse.de>
14472
14473         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
14474         (fold_stmt_r): Likewise.
14475         (maybe_fold_reference): New function.
14476         (fold_gimple_assign): Handle cases fold_stmt_r did.
14477         (fold_stmt): Do not use fold_stmt_r.
14478         (fold_stmt_inplace): Likewise.
14479
14480 2009-04-17  Richard Guenther  <rguenther@suse.de>
14481
14482         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
14483         (record_equivalences_from_stmt): Remove useless checks and
14484         simplifications.
14485         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
14486         the type is already suitable.
14487
14488 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
14489
14490         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
14491
14492 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
14493
14494         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
14495         (CMPtype): Define as __gcc_CMPtype.
14496
14497 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
14498
14499         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
14500         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
14501
14502 2009-04-17  Richard Guenther  <rguenther@suse.de>
14503
14504         PR tree-optimization/39746
14505         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
14506         special-casing for builtins and static variable use/def.
14507         (call_may_clobber_ref_p_1): Likewise.
14508
14509 2009-04-16  Ian Lance Taylor  <iant@google.com>
14510
14511         * df.h: Include "timevar.h".
14512         (struct df_problem): Change tv_id field to timevar_id_t.
14513         * tree-pass.h: Include "timevar.h".
14514         (struct opt_pass): Change tv_id field to timevar_id_t.
14515         * timevar.h (timevar_id_t): Define TV_NONE.
14516         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
14517         TV_NONE rather than tv_id != 0.
14518         (execute_one_pass): Likewise.
14519         * Makefile.in (DF_H): Add $(TIMEVAR_H).
14520         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
14521         dependencies to $(TREE_PASS_H).
14522         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
14523         to TV_NONE.
14524         (pass_branch_target_load_optimize2): Likewise.
14525         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
14526         (pass_outof_cfg_layout_mode): Likewise.
14527         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
14528         (pass_rebuild_cgraph_edges): Likewise.
14529         (pass_remove_cgraph_callee_edges): Likewise.
14530         * df-core.c (pass_df_initialize_opt): Likewise.
14531         (pass_df_initialize_no_opt): Likewise.
14532         (pass_df_finish): Likewise.
14533         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
14534         * except.c (pass_set_nothrow_function_flags): Likewise.
14535         (pass_convert_to_eh_region_ranges): Likewise.
14536         * final.c (pass_compute_alignments): Likewise.
14537         * function.c (pass_instantiate_virtual_regs): Likewise.
14538         (pass_init_function): Likewise.
14539         (pass_leaf_regs): Likewise.
14540         (pass_match_asm_constraints): Likewise.
14541         * gimple-low.c (pass_lower_cf): Likewise.
14542         (pass_mark_used_blocks): Likewise.
14543         * init-regs.c (pass_initialize_regs): Likewise.
14544         * integrate.c (pass_initial_value_sets): Likewise.
14545         * ira.c (pass_ira): Likewise.
14546         * jump.c (pass_cleanup_barriers): Likewise.
14547         * omp-low.c (pass_expand_omp): Likewise.
14548         (pass_lower_omp): Likewise.
14549         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
14550         * recog.c (pass_split_all_insns): Likewise.
14551         (pass_split_after_reload): Likewise.
14552         (pass_split_before_regstack): Likewise.
14553         (pass_split_before_sched2): Likewise.
14554         (pass_split_for_shorten_branches): Likewise.
14555         * reginfo.c (pass_reginfo_init): Likewise.
14556         (pass_subregs_of_mode_init): Likewise.
14557         (pass_subregs_of_mode_finish): Likewise.
14558         * passes.c (pass_postreload): Likewise.
14559         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
14560         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
14561         (pass_warn_function_return): Likewise.
14562         (pass_warn_function_noreturn): Likewise.
14563         * tree-complex.c (pass_lower_complex): Likewise.
14564         (pass_lower_complex_O0): Likewise.
14565         * tree-if-conv.c (pass_if_conversion): Likewise.
14566         * tree-into-ssa.c (pass_build_ssa): Likewise.
14567         * tree-mudflap.c (pass_mudflap_1): Likewise.
14568         (pass_mudflap_2): Likewise.
14569         * tree-nomudflap.c (pass_mudflap_1): Likewise.
14570         (pass_mudflap_2): Likewise.
14571         * tree-nrv.c (pass_return_slot): Likewise.
14572         * tree-object-size.c (pass_object_sizes): Likewise.
14573         * tree-optimize.c (pass_all_optimizations): Likewise.
14574         (pass_early_local_passes): Likewise.
14575         (pass_all_early_optimizations): Likewise.
14576         (pass_cleanup_cfg): Likewise.
14577         (pass_cleanup_cfg_post_optimizing): Likewise.
14578         (pass_free_datastructures): Likewise.
14579         (pass_free_cfg_annotations): Likewise.
14580         (pass_fixup_cfg): Likewise.
14581         (pass_init_datastructures): Likewise.
14582         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
14583         (pass_late_warn_uninitialized): Likewise.
14584         (pass_update_address_taken): Likewise.
14585         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
14586         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
14587         (pass_cse_sincos): Likewise.
14588         (pass_convert_to_rsqrt): Likewise.
14589         * tree-ssa-structalias.c (pass_build_alias): Likewise.
14590         * tree-stdarg.c (pass_stdarg): Likewise.
14591         * tree-tailcall.c (pass_tail_recursion): Likewise.
14592         (pass_tail_calls): Likewise.
14593         * tree-vect-generic.c (pass_lower_vector): Likewise.
14594         (pass_lower_vector_ssa): Likewise.
14595         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
14596
14597 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
14598
14599         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
14600         XLR entry.
14601         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
14602         Handle -march=xlr.
14603         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
14604         logical and signext.
14605
14606 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
14607
14608         PR target/39767
14609         * config/sh/predicates.md (arith_operand): Check if the operand
14610         of TRUNCATE is a REG.
14611
14612 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
14613
14614         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
14615         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
14616
14617 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
14618
14619         * tree-iterator.c (tsi_split_statement_list_after,
14620         tsi_split_statement_list_before): Remove.
14621         * tree-iterator.h: Remove the prototypes for
14622         tsi_split_statement_list_after and tsi_split_statement_list_before.
14623
14624 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
14625
14626         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
14627         * tree-ssa-propagate.h: Remove the prototype for
14628         stmt_makes_single_load.
14629
14630 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
14631
14632         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
14633         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
14634
14635 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
14636
14637         * tree-iterator.c (EXPR_LAST_BODY): Remove.
14638
14639 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
14640
14641         * except.c (eh_region_outer_p): Remove.
14642         * except.h: Remove the prototype for eh_region_outer_p.
14643
14644 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
14645
14646         * function.c (current_function_assembler_name): Remove.
14647         * function.h: Remove the prototype for
14648         current_function_assembler_name.
14649
14650 2009-04-16  Ian Lance Taylor  <iant@google.com>
14651
14652         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
14653         (add_reg_note): Call alloc_reg_note.
14654         * rtl.h (alloc_reg_note): Declare.
14655         * combine.c (try_combine): Use alloc_reg_note.
14656         (recog_for_combine, move_deaths): Likewise.
14657         (distribute_notes): Use alloc_reg_note and add_reg_note.
14658         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
14659         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
14660         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
14661
14662 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
14663
14664         PR rtl-optimization/39762
14665         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
14666         ira_may_move_out_cost): Add comments about way of their usage.
14667         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
14668
14669         * ira-conflicts.c (process_regs_for_copy): Use function
14670         ira_get_register_move_cost instead of global
14671         ira_register_move_cost.
14672
14673         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
14674         color_pass, move_spill_restore, update_curr_costs): Ditto.
14675
14676         * ira-lives.c (process_single_reg_class_operands): Ditto.
14677
14678         * ira-emit.c (emit_move_list): Ditto.
14679
14680         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
14681         (record_reg_classes): Ditto.  Use functions
14682         ira_get_register_move_cost and ira_get_may_move_cost instead of
14683         global vars ira_register_move_cost, ira_may_move_out_cost and
14684         ira_may_move_in_cost.
14685         (record_address_regs): Don't call ira_init_register_move_cost.
14686         Use function ira_get_may_move_cost instead of global
14687         ira_may_move_in_cost.
14688         (process_bb_node_for_hard_reg_moves): Use function
14689         ira_get_register_move_cost instead of global ira_register_move_cost.
14690         (ira_costs): Don't call ira_init_register_move_cost.
14691
14692 2009-04-16  Richard Guenther  <rguenther@suse.de>
14693
14694         * tree-cfg.c (verify_gimple_assign_binary):
14695         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
14696         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
14697         (create_general_new_stmt): Note that this function is broken.
14698
14699 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
14700
14701         * common.opt (fhelp): Add Var(help_flag).
14702         * gcc-plugin.h (plugin_info): Add help.
14703         * plugin.c (plugin_name_args): Add help.
14704         (register_plugin_info): Set plugin->help.
14705         (print_help_one_plugin): New.
14706         (print_plugins_help): New.
14707         * plugin.h (print_plugins_help): New.
14708         * toplev.c (toplev_main): Call print_plugins_help if needed.
14709
14710 2009-04-16  Richard Guenther  <rguenther@suse.de>
14711
14712         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
14713         (gimple_ior_addresses_taken_1): New function.
14714         (gimple_ior_addresses_taken): Likewise.
14715         * gimple.h (struct gimple_statement_with_ops_base): Remove
14716         addresses_taken member.
14717         (gimple_ior_addresses_taken): Declare.
14718         (gimple_addresses_taken, gimple_addresses_taken_ptr,
14719         gimple_set_addresses_taken): Remove.
14720         * ipa-reference.c (mark_address): New function.
14721         (scan_stmt_for_static_refs): Use it for marking addresses taken.
14722         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
14723         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
14724         (gimple_add_to_addresses_taken): Remove.
14725         (get_tmr_operands): Call mark_address_taken.
14726         (get_asm_expr_operands): Likewise.
14727         (get_expr_operands): Likewise.
14728         (build_ssa_operands): Do not clear the addresses_taken bitmap.
14729         (free_stmt_operands): Do not free it.
14730         * tree-ssa.c (delete_tree_ssa): Likewise.
14731         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
14732
14733 2009-04-16  Richard Guenther  <rguenther@suse.de>
14734
14735         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
14736         (walk_stmt_load_store_ops): Likewise.
14737         * gimple.c (get_base_loadstore): New function.
14738         (walk_stmt_load_store_addr_ops): Likewise.
14739         (walk_stmt_load_store_ops): Likewise.
14740         * ipa-pure-const.c (check_op): Simplify.
14741         (check_load, check_store): New functions.
14742         (check_stmt): Use walk_stmt_load_store_ops.
14743         * ipa-reference.c (mark_load): Adjust signature.
14744         (mark_store): Likewise.
14745         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
14746
14747 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
14748
14749         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
14750         (plugin_info): New.
14751         * opts.c (common_handle_option): Don't call print_version.
14752         * plugin.c (plugin_name_args): Add version.
14753         (register_plugin_info): New.
14754         (register_callback): Handle PLUGIN_INFO.
14755         (try_init_one_plugin): New.
14756         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
14757         if failed to init.
14758         (finalize_one_plugin): New.
14759         (finalize_plugins): New.
14760         (print_one_plugin): New.
14761         (print_plugins_versions): New.
14762         * plugin.h (print_plugins_versions): New.
14763         (finalize_plugins): New.
14764         * toplev.c (compile_file): Don't call initialize_plugins.
14765         (print_version): Call print_plugins_versions.
14766         (toplev_main): Call initialize_plugins. Print version if needed.
14767         Call finalize_plugins.
14768
14769 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
14770
14771         * common.opt (fversion): New.
14772         * gcc.c (print_version): New.
14773         (process_command): Don't print the version. Just set print_version.
14774         (main): Print version. Call subprocesses if print_version and
14775         verbose_flag are set.
14776         * opts.c (common_handle_option): Handle OPT_fversion.
14777
14778 2009-04-16  Richard Guenther  <rguenther@suse.de>
14779             Ira Rosen  <irar@il.ibm.com>
14780
14781         PR tree-optimization/39698
14782         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
14783         type of the reduction variable.  Only generate the def if
14784         it is needed.
14785
14786         * omp-low.c (expand_omp_for_generic): When converting to a pointer
14787         make sure to first convert to an integer of the same precision.
14788         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
14789         the type of the evolution correctly in computing the new
14790         induction variable base.
14791
14792 2009-04-16  Richard Guenther  <rguenther@suse.de>
14793
14794         PR middle-end/39625
14795         * tree-cfg.c (make_blocks): Split statements with to-be
14796         abnormal SSA names on the lhs.
14797
14798 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
14799
14800         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
14801         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
14802         * c-typeck.c (really_start_incremental_init): Likewise.
14803         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
14804         (TARGET_INITIALIZER): Remove it.
14805         * target.h (struct target): Remove vector_opaque_p.
14806         * tree.c (build_opaque_vector_type): New.
14807         * tree.h (TYPE_VECTOR_OPAQUE): New.
14808         (build_opaque_vector_type): Declare.
14809         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
14810         * config/rs6000/rs6000.c (build_opaque_vector_type,
14811         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
14812         (rs6000_init_builtins): Use build_opaque_vector_type for
14813         opaque_V4SI_type_node.
14814
14815 2009-04-15  Catherine Moore  <clm@codesourcery.com>
14816
14817         * debug.h (set_name):  Declare.
14818         * dwarf2out.c (dwarf2out_set_name): Declare.
14819         (dwarf2_debug_hooks): Add set_name.
14820         (find_AT_string): New.
14821         (add_AT_string): Call find_AT_string.
14822         (dwarf2out_set_name): New.
14823         * cp/decl.c (grokdeclarator): Call set_name.
14824         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
14825         * debug.c (do_nothing_debug_hooks):  Likewise.
14826         * dbxout.c (dbx_debug_hooks): Likewise.
14827         * sdbout.c (sdb_debug_hooks): Likewise.
14828
14829 2009-04-15  Michael Eager  <eager@eagercon.com>
14830
14831         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
14832         reg for single-precision FPU.
14833         * config/rs6000/rs6000.md (movsi_internal1): Only for
14834         !TARGET_SINGLE_FPU.
14835         (movsi_internal1_single): New. Add pattern to move SI values to/from
14836         single-precision FP regs.
14837
14838 2009-04-15  Richard Guenther  <rguenther@suse.de>
14839
14840         * omp-low.c (lower_rec_input_clauses): Build correct address
14841         expressions.
14842         (expand_omp_for_generic): Fix multiplication type.
14843         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
14844         (generate_memset_zero): Fix types.
14845         * tree-profile.c (prepare_instrumented_value): Correctly
14846         widen a pointer.
14847
14848 2009-04-15  Ian Lance Taylor  <iant@google.com>
14849
14850         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
14851         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
14852         for -Wall and for -Wc++-compat.
14853         (c_common_post_options): For C++, set warn_enum_compare if not
14854         already set.
14855         * c-tree.h (struct c_expr): Add field original_type.
14856         (build_external_ref): Update declaration.
14857         * c-parser.c (c_parser_braced_init): Set original_type.
14858         (c_parser_initelt): Likewise.
14859         (c_parser_expr_no_commas): Likewise.
14860         (c_parser_conditional_expression): Likewise.
14861         (c_parser_cast_expression): Likewise.
14862         (c_parser_unary_expression): Likewise.  Pull setting of
14863         original_code to top of function.
14864         (c_parser_sizeof_expression): Set original_type.
14865         (c_parser_alignof_expression): Likewise.
14866         (c_parser_postfix_expression): Likewise.  Pull setting of
14867         original_code to top of function.
14868         (c_parser_postfix_expression_after_paren_type): Set original_type.
14869         (c_parser_postfix_expression_after_primary): Likewise.
14870         (c_parser_expression): Likewise.
14871         * c-typeck.c (build_external_ref): Add type parameter.  Change all
14872         callers.
14873         (c_expr_sizeof_expr): Set original_type field.
14874         (parser_build_unary_op): Likewise.
14875         (parser_build_binary_op): Likewise.  Optionally warn about
14876         comparisons of enums of different types.
14877         (digest_init): Set original_type field.
14878         (really_start_incremental_init): Likewise.
14879         (push_init_level, pop_init_level): Likewise.
14880         * doc/invoke.texi (Warning Options): -Wenum-compare now
14881         supported in C.
14882
14883 2009-04-15  Richard Guenther  <rguenther@suse.de>
14884
14885         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
14886         out a necessary conversion.
14887         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
14888         names we didn't value number.
14889         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
14890
14891 2009-04-15  Richard Guenther  <rguenther@suse.de>
14892
14893         PR tree-optimization/39764
14894         * tree-ssa-ccp.c (get_value): Canonicalize value with
14895         canonicalize_float_value.
14896
14897 2009-04-15  Jan Hubicka  <jh@suse.cz>
14898
14899         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
14900         Wrong version of patch.
14901
14902 2009-04-15  Jan Hubicka  <jh@suse.cz>
14903
14904         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
14905
14906 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
14907
14908         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
14909         our distinct integral and vector types.
14910
14911 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
14912
14913         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
14914         * init.c (build_vtbl_address): Remove call to assemble_external.
14915
14916 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
14917
14918         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
14919         output for other floating point modes.
14920
14921 2009-04-14  Diego Novillo  <dnovillo@google.com>
14922
14923         * diagnostic.c (diagnostic_report_diagnostic): Do not
14924         warn about loaded plugins for DK_ERROR and DK_WARNING.
14925         * c-decl.c (declspecs_add_type): Move call to
14926         invoke_plugin_callbacks ...
14927         * c-parser.c (c_parser_declspecs): ... here.
14928         * plugin.c (dump_active_plugins): Tidy output.
14929
14930 2009-04-14  Diego Novillo  <dnovillo@google.com>
14931             Le-Chun Wu  <lcwu@google.com>
14932
14933         * configure.ac: Add --enable-plugin support.
14934         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
14935         * Makefile.in (PLUGIN_H): Define.
14936         Export ENABLE_PLUGIN and GMPINC to site.exp.
14937         Add PLUGINLIBS to link command.
14938         Add/modify dependencies for plugin.o and files including plugin.h.
14939         (plugin.o): New.
14940         * config.in: Regenerate.
14941
14942         * opts.c (common_handle_option): Handle OPT_fplugin_ and
14943         OPT_fplugin_arg_.
14944
14945 2009-04-14  Le-Chun Wu  <lcwu@google.com>
14946
14947         * tree-pass.h (register_one_dump_file): Add a prototype for
14948         register_one_dump_file.
14949         * toplev.c (compile_file): Call initialize_plugins.
14950         (do_compile): Call invoke_plugin_callbacks.
14951         (toplev_main): Call invoke_plugin_callbacks.
14952         * common.opt: Add -fplugin= and -fplugin-arg-.
14953         * gcc-plugin.h: New public header file for plugins to include.
14954         * plugin.c: New source file.
14955         * plugin.h: New internal header file.
14956         * passes.c (register_one_dump_file): Make it external.
14957
14958         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
14959
14960 2009-04-14  Diego Novillo  <dnovillo@google.com>
14961
14962         * doc/plugins.texi: New.
14963         * doc/gccint.texi: Add reference to Plugins chapter.
14964         * doc/invoke.texi: Document -fplugin and -fplugin-arg
14965         * diagnostic.c (diagnostic_report_diagnostic): Warn about
14966         loaded plugins, if any.
14967         * timevar.def (TV_PLUGIN_INIT): Define.
14968         (TV_PLUGIN_RUN): Define.
14969         * plugin.c: Include timevar.h
14970         (plugins_active_p): New.
14971         (dump_active_plugins): New.
14972         (debug_active_plugins): New.
14973
14974 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
14975
14976         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
14977         library paths.
14978         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
14979
14980 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
14981
14982         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
14983         the same as a minus without a shift.
14984
14985 2009-04-14  Nick Clifton  <nickc@redhat.com>
14986
14987         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
14988         comparisons with small integers will always produce a short
14989         branch.
14990
14991 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
14992
14993         Merge:
14994         2008-12-19  Diego Novillo  <dnovillo@google.com>
14995
14996         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
14997
14998 2009-04-14  Richard Guenther  <rguenther@suse.de>
14999
15000         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
15001         verification.
15002         (verify_gimple_assign_binary): Likewise.  Handle shifts and
15003         rotates correctly.
15004         (verify_gimple_phi): Print the mismatched argument position.
15005         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
15006         Fix types.
15007         (vect_update_init_of_dr): Likewise.
15008         * matrix-reorg.c (transform_access_sites): Do what the
15009         comment suggests.
15010         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
15011
15012 2009-04-13  Michael Eager  <eager@eagercon.com>
15013
15014         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
15015         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
15016         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
15017         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
15018         remove duplicate config
15019
15020 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
15021
15022         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
15023         file_name:line_number type locator of the call site.
15024
15025 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
15026
15027         * genautomata.c: Put blank after comma.
15028         (automaton_decls): New.
15029         (struct unit_usage): Add comments to member next.
15030         (store_alt_unit_usage): Keep the list ordered.
15031         (unit_present_on_list_p, equal_alternatives_p): New.
15032         (check_regexp_units_distribution): Check units distribution
15033         correctness correctly.
15034         (main): Don't write automata if error is found.  Return correct
15035         exit code.
15036
15037         * config/m68k/cf.md (cfv4_ds): Remove.
15038         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
15039         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
15040
15041         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
15042         power4-load-ext, power4-store, power4-store-update,
15043         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
15044         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
15045         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
15046         power4-sqrt, power4-isync): Modify reservation to make correct
15047         unit distribution to automata.
15048
15049         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
15050         power5-store-update, power5-two, power5-three, power5-lmul,
15051         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
15052
15053 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
15054
15055         * except.c (pass_set_nothrow_function_flags): Set name and add
15056         TODO_dump_func.
15057         (set_nothrow_function_flags): Mention in the dump file when
15058         changing a function to nothrow.
15059
15060 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
15061
15062         PR/39066
15063         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
15064         instead of unsigned long.
15065
15066 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15067
15068         * config/arm/arm.c (return_used_this_function): Remove.
15069         (arm_output_function_prologue): Remove use of
15070         return_used_this_function.
15071         (output_return_instruction): Replace use of
15072         return_used_this_function
15073         by cfun->machine->return_used_this_function.
15074         (arm_output_epilogue): Likewise.
15075         (arm_output_function_epilogue): Likewise.
15076         (thumb_unexpanded_epilogue): Likewise.
15077         * config/arm/arm.h (struct machine_function):
15078         New member return_used_this_function.
15079
15080 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
15081
15082         * doc/install.texi: Correct description of default directory for
15083         --with-gxx-include-dir.
15084
15085 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
15086
15087         * fold-const.c (build_range_check): Properly deal with enumeral and
15088         boolean base types.
15089
15090 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
15091
15092         * doc/invoke.texi (max_gcse_passes): Remove documentation.
15093         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
15094         * params.h (MAX_GCSE_PASSES): Remove.
15095         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
15096         in sequence.  Remove ability to run multiple passes.
15097         (bypass_jumps): Report run as third CPROP pass.
15098
15099 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
15100
15101         PR middle-end/39651
15102         * except.c (can_throw_external): Look at each insn in a SEQUENCE
15103         when deciding whether the whole SEQUENCE can throw.
15104
15105 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
15106
15107         PR target/39740
15108         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
15109         offseted label references.
15110
15111 2009-04-11  Jan Hubicka  <jh@suse.cz>
15112
15113         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
15114
15115 2009-04-11  Richard Guenther  <rguenther@suse.de>
15116
15117         PR middle-end/39732
15118         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
15119         return variables as TREE_ADDRESSABLE.
15120
15121 2009-04-11  Richard Guenther  <rguenther@suse.de>
15122
15123         PR tree-optimization/39713
15124         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
15125         reference trees have SSA_NAME operands.
15126
15127 2009-04-11  Richard Guenther  <rguenther@suse.de>
15128
15129         PR c/39712
15130         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
15131         address expressions.
15132
15133 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
15134
15135         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
15136         match changes in Cygwin 1.7
15137         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
15138         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
15139
15140 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
15141
15142         PR tree-optimization/39701
15143         * doc/invoke.texi (Optimization Options): Document change in
15144         meaning and initialization of -fdelete-null-pointer-checks.
15145
15146 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
15147
15148         PR middle-end/39701
15149         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
15150
15151         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
15152         here.
15153
15154         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
15155
15156 2009-04-10  Chao-ying Fu  <fu@mips.com>
15157
15158         * doc/tm.texi (Instruction Output): Document
15159         TARGET_ASM_FINAL_POSTSCAN_INSN.
15160         * target.h (final_postscan_insn): New field in asm_out.
15161         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
15162         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
15163         * final.c (final_scan_insn): Call
15164         targetm.asm_out.final_postscan_insn after outputting
15165         an asm macro and a normal instruction.
15166
15167         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
15168         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
15169         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
15170         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
15171         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
15172
15173 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
15174
15175         PR middle-end/39701
15176         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
15177         variables as non-NULL even with -fdelete-null-pointer-checks.
15178
15179 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
15180
15181         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
15182
15183 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
15184
15185         PR target/39678
15186         * config/i386/i386.c (classify_argument): Handle SCmode with
15187         (bit_offset % 64) != 0.
15188
15189 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
15190
15191         * doc/invoke.texi (Optimize Options): Add cross-reference to
15192         -Q --help=optimizers examples.
15193
15194 2009-04-10  Ben Elliston  <bje@au.ibm.com>
15195
15196         PR target/36800
15197         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
15198         regalign for the reg == fpr and TDmode case.
15199
15200 2009-04-09  David Ayers  <ayers@fsfe.org>
15201
15202         PR objc/29200
15203         * objc/objc-act.c (warn_with_method): Remove helper function.
15204         (check_duplicates): Call warning and inform directly.
15205         (really_start_method): Likewise.
15206
15207 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
15208
15209         * expmed.c (expand_divmod): Always use a comparison for a division
15210         by a large unsigned integer.
15211
15212         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
15213         for things others than variables or functions as nonzero.
15214
15215 2009-04-09  Nick Clifton  <nickc@redhat.com>
15216
15217         * unwind-compat.c: Change copyright header to refer to version
15218         3 of the GNU General Public License with version 3.1 of the
15219         GCC Runtime Library Exception and to point readers at the
15220         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
15221         * config/alpha/crtfastmath.c: Likewise.
15222         * config/alpha/linux-unwind.h: Likewise.
15223         * config/alpha/qrnnd.asm: Likewise.
15224         * config/alpha/vms-crt0-64.c: Likewise.
15225         * config/alpha/vms-crt0.c: Likewise.
15226         * config/alpha/vms-dwarf2.asm: Likewise.
15227         * config/alpha/vms-dwarf2eh.asm: Likewise.
15228         * config/alpha/vms-psxcrt0-64.c: Likewise.
15229         * config/alpha/vms-psxcrt0.c: Likewise.
15230         * config/alpha/vms_tramp.asm: Likewise.
15231         * config/arc/initfini.c: Likewise.
15232         * config/arc/lib1funcs.asm: Likewise.
15233         * config/arm/bpabi-v6m.S: Likewise.
15234         * config/arm/bpabi.S: Likewise.
15235         * config/arm/bpabi.c: Likewise.
15236         * config/arm/crti.asm: Likewise.
15237         * config/arm/crtn.asm: Likewise.
15238         * config/arm/ieee754-df.S: Likewise.
15239         * config/arm/ieee754-sf.S: Likewise.
15240         * config/arm/lib1funcs.asm: Likewise.
15241         * config/arm/libunwind.S: Likewise.
15242         * config/arm/linux-atomic.c: Likewise.
15243         * config/arm/mmintrin.h: Likewise.
15244         * config/arm/pr-support.c: Likewise.
15245         * config/arm/unaligned-funcs.c: Likewise.
15246         * config/arm/unwind-arm.c: Likewise.
15247         * config/arm/unwind-arm.h: Likewise.
15248         * config/avr/libgcc.S: Likewise.
15249         * config/bfin/crti.s: Likewise.
15250         * config/bfin/crtlibid.s: Likewise.
15251         * config/bfin/crtn.s: Likewise.
15252         * config/bfin/lib1funcs.asm: Likewise.
15253         * config/bfin/linux-unwind.h: Likewise.
15254         * config/cris/arit.c: Likewise.
15255         * config/cris/cris_abi_symbol.c: Likewise.
15256         * config/darwin-64.c: Likewise.
15257         * config/darwin-crt2.c: Likewise.
15258         * config/darwin-crt3.c: Likewise.
15259         * config/darwin.h: Likewise.
15260         * config/dbxelf.h: Likewise.
15261         * config/dfp-bit.c: Likewise.
15262         * config/dfp-bit.h: Likewise.
15263         * config/elfos.h: Likewise.
15264         * config/fixed-bit.c: Likewise.
15265         * config/fixed-bit.h: Likewise.
15266         * config/fp-bit.c: Likewise.
15267         * config/fp-bit.h: Likewise.
15268         * config/fr30/crti.asm: Likewise.
15269         * config/fr30/crtn.asm: Likewise.
15270         * config/fr30/lib1funcs.asm: Likewise.
15271         * config/freebsd-spec.h: Likewise.
15272         * config/frv/cmovd.c: Likewise.
15273         * config/frv/cmovh.c: Likewise.
15274         * config/frv/cmovw.c: Likewise.
15275         * config/frv/frvbegin.c: Likewise.
15276         * config/frv/frvend.c: Likewise.
15277         * config/frv/lib1funcs.asm: Likewise.
15278         * config/glibc-stdint.h: Likewise.
15279         * config/h8300/clzhi2.c: Likewise.
15280         * config/h8300/crti.asm: Likewise.
15281         * config/h8300/crtn.asm: Likewise.
15282         * config/h8300/ctzhi2.c: Likewise.
15283         * config/h8300/fixunssfsi.c: Likewise.
15284         * config/h8300/lib1funcs.asm: Likewise.
15285         * config/h8300/parityhi2.c: Likewise.
15286         * config/h8300/popcounthi2.c: Likewise.
15287         * config/i386/ammintrin.h: Likewise.
15288         * config/i386/att.h: Likewise.
15289         * config/i386/avxintrin.h: Likewise.
15290         * config/i386/biarch64.h: Likewise.
15291         * config/i386/bmmintrin.h: Likewise.
15292         * config/i386/cpuid.h: Likewise.
15293         * config/i386/cross-stdarg.h: Likewise.
15294         * config/i386/crtfastmath.c: Likewise.
15295         * config/i386/crtprec.c: Likewise.
15296         * config/i386/cygming-crtbegin.c: Likewise.
15297         * config/i386/cygming-crtend.c: Likewise.
15298         * config/i386/cygwin.asm: Likewise.
15299         * config/i386/emmintrin.h: Likewise.
15300         * config/i386/gmm_malloc.h: Likewise.
15301         * config/i386/gthr-win32.c: Likewise.
15302         * config/i386/i386.h: Likewise.
15303         * config/i386/immintrin.h: Likewise.
15304         * config/i386/linux-unwind.h: Likewise.
15305         * config/i386/linux64.h: Likewise.
15306         * config/i386/mm3dnow.h: Likewise.
15307         * config/i386/mmintrin-common.h: Likewise.
15308         * config/i386/mmintrin.h: Likewise.
15309         * config/i386/nmmintrin.h: Likewise.
15310         * config/i386/pmm_malloc.h: Likewise.
15311         * config/i386/pmmintrin.h: Likewise.
15312         * config/i386/smmintrin.h: Likewise.
15313         * config/i386/sol2-c1.asm: Likewise.
15314         * config/i386/sol2-ci.asm: Likewise.
15315         * config/i386/sol2-cn.asm: Likewise.
15316         * config/i386/sol2-gc1.asm: Likewise.
15317         * config/i386/tmmintrin.h: Likewise.
15318         * config/i386/unix.h: Likewise.
15319         * config/i386/w32-unwind.h: Likewise.
15320         * config/i386/wmmintrin.h: Likewise.
15321         * config/i386/x86-64.h: Likewise.
15322         * config/i386/x86intrin.h: Likewise.
15323         * config/i386/xmmintrin.h: Likewise.
15324         * config/ia64/crtbegin.asm: Likewise.
15325         * config/ia64/crtend.asm: Likewise.
15326         * config/ia64/crtfastmath.c: Likewise.
15327         * config/ia64/crti.asm: Likewise.
15328         * config/ia64/crtn.asm: Likewise.
15329         * config/ia64/fde-glibc.c: Likewise.
15330         * config/ia64/lib1funcs.asm: Likewise.
15331         * config/ia64/linux-unwind.h: Likewise.
15332         * config/ia64/quadlib.c: Likewise.
15333         * config/ia64/unwind-ia64.c: Likewise.
15334         * config/linux.h: Likewise.
15335         * config/m32c/m32c-lib1.S: Likewise.
15336         * config/m32c/m32c-lib2-trapv.c: Likewise.
15337         * config/m32c/m32c-lib2.c: Likewise.
15338         * config/m32r/initfini.c: Likewise.
15339         * config/m68hc11/larith.asm: Likewise.
15340         * config/m68hc11/m68hc11-crt0.S: Likewise.
15341         * config/m68k/cf.md: Likewise.
15342         * config/m68k/crti.s: Likewise.
15343         * config/m68k/crtn.s: Likewise.
15344         * config/m68k/lb1sf68.asm: Likewise.
15345         * config/m68k/linux-unwind.h: Likewise.
15346         * config/mcore/crti.asm: Likewise.
15347         * config/mcore/crtn.asm: Likewise.
15348         * config/mcore/lib1.asm: Likewise.
15349         * config/mips/linux-unwind.h: Likewise.
15350         * config/mips/loongson.h: Likewise.
15351         * config/mips/mips16.S: Likewise.
15352         * config/mmix/crti.asm: Likewise.
15353         * config/mmix/crtn.asm: Likewise.
15354         * config/pa/fptr.c: Likewise.
15355         * config/pa/hpux-unwind.h: Likewise.
15356         * config/pa/lib2funcs.asm: Likewise.
15357         * config/pa/linux-atomic.c: Likewise.
15358         * config/pa/linux-unwind.h: Likewise.
15359         * config/pa/milli64.S: Likewise.
15360         * config/pa/quadlib.c: Likewise.
15361         * config/pa/stublib.c: Likewise.
15362         * config/picochip/libgccExtras/adddi3.asm: Likewise.
15363         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
15364         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
15365         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
15366         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
15367         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
15368         * config/picochip/libgccExtras/divmod15.asm: Likewise.
15369         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
15370         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
15371         * config/picochip/libgccExtras/longjmp.asm: Likewise.
15372         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
15373         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
15374         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
15375         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
15376         * config/picochip/libgccExtras/setjmp.asm: Likewise.
15377         * config/picochip/libgccExtras/subdi3.asm: Likewise.
15378         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
15379         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
15380         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
15381         * config/rs6000/750cl.h: Likewise.
15382         * config/rs6000/altivec.h: Likewise.
15383         * config/rs6000/biarch64.h: Likewise.
15384         * config/rs6000/crtresfpr.asm: Likewise.
15385         * config/rs6000/crtresgpr.asm: Likewise.
15386         * config/rs6000/crtresxfpr.asm: Likewise.
15387         * config/rs6000/crtresxgpr.asm: Likewise.
15388         * config/rs6000/crtsavfpr.asm: Likewise.
15389         * config/rs6000/crtsavgpr.asm: Likewise.
15390         * config/rs6000/darwin-asm.h: Likewise.
15391         * config/rs6000/darwin-fallback.c: Likewise.
15392         * config/rs6000/darwin-fpsave.asm: Likewise.
15393         * config/rs6000/darwin-ldouble.c: Likewise.
15394         * config/rs6000/darwin-tramp.asm: Likewise.
15395         * config/rs6000/darwin-unwind.h: Likewise.
15396         * config/rs6000/darwin-vecsave.asm: Likewise.
15397         * config/rs6000/darwin-world.asm: Likewise.
15398         * config/rs6000/e500crtres32gpr.asm: Likewise.
15399         * config/rs6000/e500crtres64gpr.asm: Likewise.
15400         * config/rs6000/e500crtres64gprctr.asm: Likewise.
15401         * config/rs6000/e500crtrest32gpr.asm: Likewise.
15402         * config/rs6000/e500crtrest64gpr.asm: Likewise.
15403         * config/rs6000/e500crtresx32gpr.asm: Likewise.
15404         * config/rs6000/e500crtresx64gpr.asm: Likewise.
15405         * config/rs6000/e500crtsav32gpr.asm: Likewise.
15406         * config/rs6000/e500crtsav64gpr.asm: Likewise.
15407         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
15408         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
15409         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
15410         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
15411         * config/rs6000/eabi-ci.asm: Likewise.
15412         * config/rs6000/eabi-cn.asm: Likewise.
15413         * config/rs6000/eabi.asm: Likewise.
15414         * config/rs6000/linux-unwind.h: Likewise.
15415         * config/rs6000/linux64.h: Likewise.
15416         * config/rs6000/paired.h: Likewise.
15417         * config/rs6000/paired.md: Likewise.
15418         * config/rs6000/ppc64-fp.c: Likewise.
15419         * config/rs6000/ppu_intrinsics.h: Likewise.
15420         * config/rs6000/rs6000.h: Likewise.
15421         * config/rs6000/si2vmx.h: Likewise.
15422         * config/rs6000/sol-ci.asm: Likewise.
15423         * config/rs6000/sol-cn.asm: Likewise.
15424         * config/rs6000/spe.h: Likewise.
15425         * config/rs6000/spu2vmx.h: Likewise.
15426         * config/rs6000/sysv4.h: Likewise.
15427         * config/rs6000/tramp.asm: Likewise.
15428         * config/rs6000/vec_types.h: Likewise.
15429         * config/s390/linux-unwind.h: Likewise.
15430         * config/s390/tpf-unwind.h: Likewise.
15431         * config/score/crti.asm: Likewise.
15432         * config/score/crtn.asm: Likewise.
15433         * config/sh/crt1.asm: Likewise.
15434         * config/sh/crti.asm: Likewise.
15435         * config/sh/crtn.asm: Likewise.
15436         * config/sh/divtab-sh4-300.c: Likewise.
15437         * config/sh/divtab-sh4.c: Likewise.
15438         * config/sh/divtab.c: Likewise.
15439         * config/sh/lib1funcs-4-300.asm: Likewise.
15440         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
15441         * config/sh/lib1funcs.asm: Likewise.
15442         * config/sh/lib1funcs.h: Likewise.
15443         * config/sh/linux-atomic.asm: Likewise.
15444         * config/sh/linux-unwind.h: Likewise.
15445         * config/sh/shmedia.h: Likewise.
15446         * config/sh/sshmedia.h: Likewise.
15447         * config/sh/ushmedia.h: Likewise.
15448         * config/sparc/crtfastmath.c: Likewise.
15449         * config/sparc/linux-unwind.h: Likewise.
15450         * config/sparc/sol2-c1.asm: Likewise.
15451         * config/sparc/sol2-ci.asm: Likewise.
15452         * config/sparc/sol2-cn.asm: Likewise.
15453         * config/spu/divmodti4.c: Likewise.
15454         * config/spu/divv2df3.c: Likewise.
15455         * config/spu/float_disf.c: Likewise.
15456         * config/spu/float_unsdidf.c: Likewise.
15457         * config/spu/float_unsdisf.c: Likewise.
15458         * config/spu/float_unssidf.c: Likewise.
15459         * config/spu/mfc_multi_tag_release.c: Likewise.
15460         * config/spu/mfc_multi_tag_reserve.c: Likewise.
15461         * config/spu/mfc_tag_release.c: Likewise.
15462         * config/spu/mfc_tag_reserve.c: Likewise.
15463         * config/spu/mfc_tag_table.c: Likewise.
15464         * config/spu/multi3.c: Likewise.
15465         * config/spu/spu_internals.h: Likewise.
15466         * config/spu/spu_intrinsics.h: Likewise.
15467         * config/spu/spu_mfcio.h: Likewise.
15468         * config/spu/vec_types.h: Likewise.
15469         * config/spu/vmx2spu.h: Likewise.
15470         * config/stormy16/stormy16-lib2.c: Likewise.
15471         * config/svr4.h: Likewise.
15472         * config/sync.c: Likewise.
15473         * config/v850/lib1funcs.asm: Likewise.
15474         * config/vxlib-tls.c: Likewise.
15475         * config/vxlib.c: Likewise.
15476         * config/vxworks-dummy.h: Likewise.
15477         * config/xtensa/crti.asm: Likewise.
15478         * config/xtensa/crtn.asm: Likewise.
15479         * config/xtensa/ieee754-df.S: Likewise.
15480         * config/xtensa/ieee754-sf.S: Likewise.
15481         * config/xtensa/lib1funcs.asm: Likewise.
15482         * config/xtensa/lib2funcs.S: Likewise.
15483         * config/xtensa/linux-unwind.h: Likewise.
15484         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
15485         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
15486         * coretypes.h: Likewise.
15487         * crtstuff.c: Likewise.
15488         * defaults.h: Likewise.
15489         * dwarf2.h: Likewise.
15490         * emutls.c: Likewise.
15491         * gbl-ctors.h: Likewise.
15492         * gcov-io.h: Likewise.
15493         * ginclude/float.h: Likewise.
15494         * ginclude/iso646.h: Likewise.
15495         * ginclude/stdarg.h: Likewise.
15496         * ginclude/stdbool.h: Likewise.
15497         * ginclude/stddef.h: Likewise.
15498         * ginclude/stdfix.h: Likewise.
15499         * ginclude/stdint-gcc.h: Likewise.
15500         * ginclude/tgmath.h: Likewise.
15501         * gthr-aix.h: Likewise.
15502         * gthr-dce.h: Likewise.
15503         * gthr-gnat.c: Likewise.
15504         * gthr-gnat.h: Likewise.
15505         * gthr-lynx.h: Likewise.
15506         * gthr-mipssde.h: Likewise.
15507         * gthr-nks.h: Likewise.
15508         * gthr-posix.c: Likewise.
15509         * gthr-posix.h: Likewise.
15510         * gthr-posix95.h: Likewise.
15511         * gthr-rtems.h: Likewise.
15512         * gthr-single.h: Likewise.
15513         * gthr-solaris.h: Likewise.
15514         * gthr-tpf.h: Likewise.
15515         * gthr-vxworks.h: Likewise.
15516         * gthr-win32.h: Likewise.
15517         * gthr.h: Likewise.
15518         * libgcc2.c: Likewise.
15519         * libgcc2.h: Likewise.
15520         * libgcov.c: Likewise.
15521         * tsystem.h: Likewise.
15522         * typeclass.h: Likewise.
15523         * unwind-c.c: Likewise.
15524         * unwind-compat.h: Likewise.
15525         * unwind-dw2-fde-compat.c: Likewise.
15526         * unwind-dw2-fde-darwin.c: Likewise.
15527         * unwind-dw2-fde-glibc.c: Likewise.
15528         * unwind-dw2-fde.c: Likewise.
15529         * unwind-dw2-fde.h: Likewise.
15530         * unwind-dw2.c: Likewise.
15531         * unwind-dw2.h: Likewise.
15532         * unwind-generic.h: Likewise.
15533         * unwind-pe.h: Likewise.
15534         * unwind-sjlj.c: Likewise.
15535         * unwind.inc: Likewise.
15536         * config/arm/neon-gen.ml: Change generated copyright header to
15537         refer to version 3 of the GNU General Public License with
15538         version 3.1 of the GCC Runtime Library Exception and to point
15539         readers at the COPYING3 and COPYING3.RUNTIME files and the
15540         FSF's license web page.
15541         * config/arm/arm_neon.h: Regenerate.
15542
15543 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
15544
15545         * config/cris/cris.md: Change copyright header to refer to version
15546         3 of the GNU General Public License.
15547         * doc/install.texi2html: Change copyright header to refer to version
15548         3 of the GNU General Public License and to point readers at the
15549         COPYING3 file and the FSF's license web page.
15550         * config/vax/linux.h: Likewise.
15551
15552 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
15553
15554         * config/i386/i386.md (cmpcc): New.
15555         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
15556         (sync_compare_and_swap_cc*): Delete.
15557
15558         * config/s390/s390.c (s390_compare_emitted): Remove.
15559         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
15560         s390_compare_emitted used to be handled.  Assert that modes match.
15561         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
15562         refer to sync_compare_and_swap_ccsi.
15563         * config/s390/s390.h (s390_compare_emitted): Remove.
15564         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
15565         instead of s390_compare_emitted.
15566         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
15567         instead of s390_compare_emitted.
15568         * config/s390/s390.md (cmpcc): New.
15569         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
15570         CC_REGNUM, do not pretend it's set.
15571         (sync_compare_and_swap_cc*): Delete.
15572         * config/s390/predicates.md (cc_reg_operand): New.
15573
15574         * expr.c (sync_compare_and_swap_cc): Delete.
15575         * optabs.h (sync_compare_and_swap_cc): Delete.
15576         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
15577         is being used with can_compare_p.
15578         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
15579         (find_cc_set): New.
15580         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
15581         look for a MODE_CC set instead.  Use emit_store_flag.
15582         (expand_compare_and_swap_loop): Likewise, with some additional
15583         complication to avoid a force_reg when useless.  Use
15584         emit_cmp_and_jump_insns.
15585         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
15586         * doc/md.texi (sync_compare_and_swap_cc): Merge with
15587         sync_compare_and_swap documentation.
15588
15589 2009-04-09  Jan Hubicka  <jh@suse.cz>
15590
15591         * except.c (find_prev_try): Break out from ....
15592         (duplicate_eh_regions): ... here; properly update prev_try pointers
15593         when duplication part of tree.
15594         (dump_eh_tree): Improve dumping.
15595         (verify_eh_region): New.
15596         (verify_eh_tree): Use it.
15597
15598 2009-04-06  Richard Guenther  <rguenther@suse.de>
15599
15600         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
15601         &ARRAY addresses by adjusting their types and prepending
15602         a conversion.
15603         * tree-cfg.c (verify_gimple_assign_single): Verify that
15604         addresses are correct.
15605
15606 2009-04-09  Richard Guenther  <rguenther@suse.de>
15607
15608         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
15609         indices into an array reference if possible.
15610         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
15611         Fold POINTER_PLUS_EXPR statements with invariant address.
15612
15613 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
15614
15615         PR target/39634
15616         * config.gcc (powerpc64-*-linux*): Always build biarch.
15617
15618 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
15619
15620         PR c/39613
15621         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
15622         it and pedwarn if this results in an INTEGER_CST.
15623
15624 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15625
15626         * doc/install.texi: Update minimum GMP version.  Remove obsolete
15627         text in MPFR section.
15628
15629 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
15630
15631         * dwarf2out.c (class_scope_p): New static inline.
15632         (class_or_namespace_scope_p): Use it.
15633         (gen_variable_die): Use DW_TAG_member tag for static data member
15634         declarations instead of DW_TAG_variable.
15635
15636         PR middle-end/39573
15637         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
15638         variables.
15639
15640 2009-04-08  Richard Guenther  <rguenther@suse.de>
15641
15642         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
15643         valueize random data.
15644
15645 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
15646
15647         * config.gcc (aix tm_file):  Add aix-stdint.h.
15648         (aix tm clause use_gcc_stdint):  Set to wrap.
15649         * config/rs6000/aix-stdint.h:  New file.
15650
15651 2009-04-08  Richard Guenther  <rguenther@suse.de>
15652
15653         PR middle-end/36291
15654         * tree-dfa.c (add_referenced_var): Do not recurse into
15655         global initializers.
15656         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
15657         exposed variables.
15658         (fold_const_aggregate_ref): Likewise.
15659
15660 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
15661
15662         * recog.c (ordered_comparison_operator): New.
15663         * gensupport.c (std_preds): Add it.
15664         * doc/md.texi (Machine-Independent Predicates): Document it.
15665
15666 2009-04-08  Jan Hubicka  <jh@suse.cz>
15667
15668         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
15669         * function.h (rtl_eh): Remove exception_handler_label_map.
15670         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
15671         remove_exception_handler_label, for_each_eh_label_1): Remove.
15672         (rtl_remove_unreachable_regions): Remove.
15673         (convert_from_eh_region_ranges): Do not remove unreachable regions.
15674         (find_exception_handler_labels): Don't build the hashtable.
15675         (maybe_remove_eh_handler): Remove.
15676         (for_each_eh_label): Rewrite to walk the tree.
15677         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
15678         * except.h (maybe_remove_eh_handler): Remove.
15679         * passes.c (init_optimization_passes): Schedule second EH cleanup
15680         before out-of-ssa.
15681         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
15682         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
15683
15684 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
15685
15686         * genoutput.c (validate_optab_operands): New.
15687         (gen_insn, gen_expand): Call it.
15688
15689         * genflags.c (gen_insn): Detect misused iterators.
15690         (main): Pass line_no to gen_insn, exit with status 1 on error.
15691
15692         * genextract.c (line_no): Make global.
15693         (VEC_safe_set_locstr): Change assertion to error message.
15694         (main): Exit with status 1 on error.
15695
15696 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
15697
15698         PR c/39614
15699         PR c/39673
15700         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
15701         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
15702         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
15703         * c-convert.c (convert): Do not call fold on results of conversion
15704         functions when the result is a C_MAYBE_CONST_EXPR.
15705         * c-parser.c (c_parser_postfix_expression): Do not fold condition
15706         of __builtin_choose_expr.
15707         * c-typeck.c (remove_c_maybe_const_expr): New.
15708         (build_unary_op, build_conditional_expr, build_compound_expr,
15709         build_binary_op, c_objc_common_truthvalue_conversion): Call
15710         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
15711         integer operands.
15712
15713 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
15714
15715         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
15716         CODE to produce a new one. Add a prototype to use fold_convert_const
15717
15718 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
15719
15720         PR bootstrap/39660
15721         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
15722         mix declarations and code.
15723
15724 2009-04-08  Ben Elliston  <bje@au.ibm.com>
15725
15726         * gcc.c: Replace `CC' with `GCC' throughout.
15727
15728 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
15729
15730         * doc/invoke.texi: Document Atom support.
15731
15732 2009-04-07  Jason Merrill  <jason@redhat.com>
15733
15734         PR c++/25185
15735         * c-common.h, c-common.c: Add flag_pretty_templates.
15736         * c-opts.c (c_common_handle_option): Set it.
15737         * c.opt: Add -fno-pretty-templates.
15738         * doc/invoke.texi (C++ Dialect Options): Likewise.
15739
15740 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
15741
15742         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
15743         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
15744         (ia64_expand_builtin): Likewise.
15745
15746 2009-04-07  Martin Jambor  <mjambor@suse.cz>
15747
15748         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
15749         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
15750         ADDR_EXPRS are include too.
15751
15752 2009-04-07  Richard Guenther  <rguenther@suse.de>
15753
15754         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
15755         decls are only used if passes as parameters or if they are
15756         local statics and the call is not to a builtin.
15757         (call_may_clobber_ref_p_1): Likewise.
15758
15759 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
15760
15761         * expr.c (do_store_flag): Remove last argument.  Simplify code
15762         to avoid duplication of tests already done by can_compare_p.
15763         (expand_expr_real_1): Adjust caller.
15764
15765 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
15766
15767         * optabs.c (can_compare_p): Test the predicate of a
15768         cbranch and cstore pattern.
15769
15770 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
15771
15772         * expr.c (convert_move): Use emit_store_flag instead of
15773         "emulating" it.
15774
15775 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
15776
15777         * config/i386/i386.c (ix86_compare_emitted): Remove.
15778         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
15779         ix86_compare_op0 like ix86_compare_emitted used to be handled.
15780         * config/i386/i386.h (ix86_compare_emitted): Remove.
15781         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
15782         instead of ix86_compare_emitted.
15783         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
15784
15785 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
15786
15787         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
15788         Add t-sysroot-suffix to tmake_file.
15789         * config/print-sysroot-suffix.sh: New file.
15790         * config/t-sysroot-suffix: New file.
15791
15792 2009-04-07  Ben Elliston  <bje@au.ibm.com>
15793
15794         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
15795         as the latter produces a warning when the target does not support
15796         infinity.
15797
15798 2009-04-07  Ben Elliston  <bje@au.ibm.com>
15799
15800         * dfp.c: Replace type punning assignments with memcpy throughout.
15801         * Makefile.in (dfp.o-warn): Remove.
15802
15803 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
15804
15805         PR target/39634
15806         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
15807         Include soft-fp/t-softfp after rs6000/t-linux64.
15808
15809 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
15810
15811         * stor-layout.c (set_sizetype): Use the full precision of their
15812         machine mode for bitsize types.
15813
15814 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
15815
15816         * config/i386/i386.md: Revert 2 accidental checkins.
15817
15818 2009-04-06  Joey Ye  <joey.ye@intel.com>
15819             Xuepeng Guo  <xuepeng.guo@intel.com>
15820             H.J. Lu  <hongjiu.lu@intel.com>
15821
15822         Atom pipeline model, tuning and insn selection.
15823         * config.gcc (atom): Add atom config options and target.
15824
15825         * config/i386/atom.md: New.
15826
15827         * config/i386/i386.c (atom_cost): New cost.
15828         (m_ATOM): New macro flag.
15829         (initial_ix86_tune_features): Set m_ATOM.
15830         (x86_accumulate_outgoing_args): Likewise.
15831         (x86_arch_always_fancy_math_387): Likewise.
15832         (processor_target): Add Atom cost.
15833         (cpu_names): Add Atom cpu name.
15834         (override_options): Set Atom ISA.
15835         (ix86_issue_rate): New case PROCESSOR_ATOM.
15836         (ix86_adjust_cost): Likewise.
15837
15838         * config/i386/i386.h (TARGET_ATOM): New target macro.
15839         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
15840         (TARGET_OPT_AGU): New target option.
15841         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
15842         (processor_type): Add PROCESSOR_ATOM.
15843
15844         * config/i386/i386.md (cpu): Add new value "atom".
15845         (use_carry, movu): New attr.
15846         (atom.md): Include atom.md.
15847         (adddi3_carry_rex64): Set attr "use_carry".
15848         (addqi3_carry): Likewise.
15849         (addhi3_carry): Likewise.
15850         (addsi3_carry): Likewise.
15851         (*addsi3_carry_zext): Likewise.
15852         (subdi3_carry_rex64): Likewise.
15853         (subqi3_carry): Likewise.
15854         (subhi3_carry): Likewise.
15855         (subsi3_carry): Likewise.
15856         (x86_movdicc_0_m1_rex64): Likewise.
15857         (*x86_movdicc_0_m1_se): Likewise.
15858         (x86_movsicc_0_m1): Likewise.
15859         (*x86_movsicc_0_m1_se): Likewise.
15860         (*adddi_1_rex64): Emit add insn as much as possible.
15861         (*addsi_1): Likewise.
15862         (return_internal): Set atom_unit.
15863         (return_internal_long): Likewise.
15864         (return_pop_internal): Likewise.
15865         (*rcpsf2_sse): Set atom_sse_attr attr.
15866         (*qrt<mode>2_sse): Likewise.
15867         (*prefetch_sse): Likewise.
15868
15869         * config/i386/i386-c.c (ix86_target_macros_internal): New case
15870         PROCESSOR_ATOM.
15871         (ix86_target_macros_internal): Likewise.
15872
15873         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
15874         (*prefetch_sse_rex): Likewise.
15875         (sse_rcpv4sf2): Likewise.
15876         (sse_vmrcpv4sf2): Likewise.
15877         (sse_sqrtv4sf2): Likewise.
15878         (<sse>_vmsqrt<mode>2): Likewise.
15879         (sse_ldmxcsr): Likewise.
15880         (sse_stmxcsr): Likewise.
15881         (*sse_sfence): Likewise.
15882         (sse2_clflush): Likewise.
15883         (*sse2_mfence): Likewise.
15884         (*sse2_lfence): Likewise.
15885         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
15886         (<sse>_movup<ssemodesuffixf2c>): Likewise.
15887         (avx_movdqu<avxmodesuffix>): Likewise.
15888         (avx_lddqu<avxmodesuffix>): Likewise.
15889         (sse2_movntv2di): Change attr "type" to "ssemov".
15890         (sse2_movntsi): Likewise.
15891         (rsqrtv8sf2): Change attr "type" to "sseadd".
15892         (sse3_addsubv2df3): Set attr "atom_unit".
15893         (sse3_h<plusminus_insn>v4sf3): Likewise.
15894         (*sse2_pmaddwd): Likewise.
15895         (*vec_extractv2di_1_rex64): Likewise.
15896         (*vec_extractv2di_1_avx): Likewise.
15897         (sse2_psadbw): Likewise.
15898         (ssse3_phaddwv8hi3): Likewise.
15899         (ssse3_phaddwv4hi3): Likewise.
15900         (ssse3_phadddv4si3): Likewise.
15901         (ssse3_phadddv2si3): Likewise.
15902         (ssse3_phaddswv8hi3): Likewise.
15903         (ssse3_phaddswv4hi3): Likewise.
15904         (ssse3_phsubwv8hi3): Likewise.
15905         (ssse3_phsubwv4hi3): Likewise.
15906         (ssse3_phsubdv4si3): Likewise.
15907         (ssse3_phsubdv2si3): Likewise.
15908         (ssse3_phsubswv8hi3): Likewise.
15909         (ssse3_phsubswv4hi3): Likewise.
15910         (ssse3_pmaddubsw128): Likewise.
15911         (sse3_pmaddubsw: Likewise.
15912         (ssse3_palignrti): Likewise.
15913         (ssse3_palignrdi): Likewise.
15914
15915 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
15916
15917         * doc/install.texi (Specific): Fix two cross-references to MinGW.
15918
15919 2009-04-06  Richard Guenther  <rguenther@suse.de>
15920
15921         PR tree-optimization/28868
15922         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
15923         of which PHI results we inserted.
15924         (insert_into_preds_of_block): Record inserted PHIs.
15925         (eliminate): Eliminate redundant PHI nodes.
15926         (init_pre): Init inserted_phi_names.
15927
15928 2009-04-06  Richard Guenther  <rguenther@suse.de>
15929
15930         PR tree-optimization/39643
15931         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
15932         IMAGPART_EXPRs of complex constants.
15933         (execute_fold_all_builtins): If we folded a call queue
15934         TODO_update_address_taken.
15935
15936 2009-04-06  Jan Hubicka  <jh@suse.cz>
15937
15938         PR middle-end/39659
15939         * except.c (remove_unreachable_regions): Propagate may_contain_throw
15940         flag.
15941
15942 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
15943
15944         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
15945         delay slot.
15946         (ic_invalidate_array): Likewise.
15947
15948 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
15949
15950         * calls.c (emit_library_call_value_1): Fix a problem with parameter
15951         alignment for library calls.
15952
15953 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
15954
15955         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
15956         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
15957         * config/i386/mingw-stdint.h:  New file.
15958
15959 2009-04-05  Richard Guenther  <rguenther@suse.de>
15960
15961         PR tree-optimization/39648
15962         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
15963         our &A vs. &A[0] IL deficiencies.
15964
15965 2009-04-04  Jan Hubicka  <jh@suse.cz>
15966
15967         * except.c (sjlj_find_directly_reachable_regions): Be ready for
15968         removed toplevel regions.
15969         (sjlj_mark_call_sites): Likewise.
15970
15971 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
15972
15973         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
15974         (cygwin tm clause use_gcc_stdint):  Set to wrap.
15975         * config/i386/cygwin-stdint.h:  New file.
15976
15977 2009-04-04  Richard Guenther  <rguenther@suse.de>
15978
15979         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
15980         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
15981         single-argument PHIs if we are in loop-closed SSA form.
15982         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
15983         for the pre-condition.
15984         (slpeel_tree_peel_loop_to_edge): Likewise.
15985         (vect_build_loop_niters): Take an optional sequence to append stmts.
15986         (vect_generate_tmps_on_preheader): Likewise.
15987         (vect_do_peeling_for_loop_bound): Take extra guards for the
15988         pre-condition.
15989         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
15990         the cost model check.
15991         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
15992         guards if we are going to peel.  Do not apply versioning in that case.
15993         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
15994         (vect_do_peeling_for_loop_bound): Likewise.
15995         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
15996         loop bound only record extra pre-conditions, do not apply loop
15997         versioning.
15998
15999 2009-04-04  Richard Guenther  <rguenther@suse.de>
16000
16001         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
16002         renaming code.
16003
16004 2009-04-04  Jan Hubicka  <jh@suse.cz>
16005
16006         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
16007         last_basic_block for size of bb->index indexed array.
16008         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
16009         compute_out, link_btr_uses, build_btr_def_use_webs,
16010         build_btr_def_use_webs, migrate_btr_defs): Likewise.
16011
16012 2009-04-04  Jan Hubicka  <jh@suse.cz>
16013
16014         * except.c (remove_eh_handler_and_replace): Break out from ...
16015         (remove_eh_handler): ... here.
16016         (bring_to_root): New function.
16017         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
16018         handled ones, bring others to root of tree.
16019
16020 2009-04-04  Jan Hubicka  <jh@suse.cz>
16021
16022         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
16023         (all_phis_safe_to_merge): New function.
16024         (update_info): New structure.
16025         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
16026         (cleanup_empty_eh): Update SSA if possible.
16027
16028 2009-04-04  Richard Guenther  <rguenther@suse.de>
16029
16030         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
16031         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
16032         (append_vuse): Likewise.
16033
16034 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
16035
16036         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
16037         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
16038         instead of REG_UNSAVED for DW_CFA_undefined.
16039         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
16040         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
16041         outermost frame.
16042
16043 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
16044
16045         PR target/39501
16046         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
16047         * testsuite/gcc.c-torture/execute/pr39501.c: New file.
16048         * testsuite/gcc.c-torture/execute/pr39501.x: New file.
16049
16050 2009-04-04  Richard Guenther  <rguenther@suse.de>
16051
16052         PR tree-optimization/8781
16053         PR tree-optimization/37892
16054         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
16055         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
16056         (valueize_refs): Call it for *& valueizations.
16057         (shared_reference_ops_from_ref): Rename to ...
16058         (valueize_shared_reference_ops_from_ref): ... this and valueize.
16059         (shared_reference_ops_from_call): Rename to ...
16060         (valueize_shared_reference_ops_from_call): ... this and valueize.
16061         (vn_reference_lookup): Update.
16062         (visit_reference_op_call): Likewise.
16063         * tree-ssa-pre.c (phi_translate_1): Fold *&.
16064         (eliminate): Value-replace the call address in call statements.
16065
16066 2009-04-04  Richard Guenther  <rguenther@suse.de>
16067
16068         PR tree-optimization/39636
16069         * tree-ssa-forwprop.c
16070         (forward_propagate_addr_into_variable_array_index): Check for
16071         GIMPLE_ASSIGN before accessing the rhs code.
16072
16073 2009-04-03  Jason Merrill  <jason@redhat.com>
16074
16075         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
16076
16077 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
16078
16079         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
16080         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
16081         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
16082         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
16083         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
16084         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
16085         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
16086         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
16087         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
16088         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
16089         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
16090         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
16091         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
16092         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
16093         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
16094         Use fr_reg_or_fp01_operand instead of fr_register_operand
16095
16096         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
16097         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
16098         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
16099
16100 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
16101
16102         PR rtl-optimization/39607
16103         PR rtl-optimization/39631
16104
16105         Revert:
16106
16107         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
16108         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
16109         instead of DF_LR_OUT.
16110         * ira-lives.c (process_bb_node_lives): Ditto.
16111         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
16112         instead of DF_LR_{OUT,IN}.
16113         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
16114         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
16115
16116 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
16117
16118         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
16119         (execute_lower_omp): Always run but take the short way out if -fopenmp
16120         is not given.
16121         (gate_lower_omp): Remove, forcing the pass manager to always run the
16122         pass and always set PROP_gimple_lomp.
16123         (pass_lower_omp): Remove gate function.
16124         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
16125         PROP_trees.  Instead, require it.
16126         * ipa-cp.c (pass_ipa_cp): Likewise.
16127         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
16128         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
16129         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
16130         and PROP_gimple_leh.
16131
16132 2009-04-03  Richard Guenther  <rguenther@suse.de>
16133
16134         PR middle-end/13146
16135         PR tree-optimization/23940
16136         PR tree-optimization/33237
16137         PR middle-end/33974
16138         PR middle-end/34093
16139         PR tree-optimization/36201
16140         PR tree-optimization/36230
16141         PR tree-optimization/38049
16142         PR tree-optimization/38207
16143         PR tree-optimization/38230
16144         PR tree-optimization/38301
16145         PR tree-optimization/38585
16146         PR middle-end/38895
16147         PR tree-optimization/38985
16148         PR tree-optimization/39299
16149         * tree-ssa-structalias.h: Remove.
16150         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
16151         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
16152         (struct vuse_element_d): Remove.
16153         (struct vuse_vec_d): Likewise.
16154         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
16155         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
16156         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
16157         VUSE_ELEMENT_VAR): Likewise.
16158         (struct voptype_d): Likewise.
16159         (NUM_VOP_FREE_BUCKETS): Likewise.
16160         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
16161         (struct stmt_operands_d): Remove.
16162         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
16163         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
16164         VDEF_NUM, VDEF_VECT): Likewise.
16165         (copy_virtual_operands): Remove.
16166         (operand_build_cmp): Likewise.
16167         (create_ssa_artificial_load_stmt): Likewise.
16168         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
16169         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
16170         vuse_index and mayuse_index members.  Pack and move done and iter_type
16171         members to the front.
16172         (SSA_OP_VMAYUSE): Remove.
16173         (SSA_OP_VIRTUAL_USES): Adjust.
16174         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
16175         (unlink_stmt_vdef): Declare.
16176         (add_to_addressable_set): Remove.
16177         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
16178         (vrp_visit_stmt): Likewise.
16179         * doc/tree-ssa.texi (Alias analysis): Update.
16180         * doc/invoke.texi (max-aliased-vops): Remove docs.
16181         (avg-aliased-vops): Likewise.
16182         * tree-into-ssa.c (syms_to_rename): Remove.
16183         (need_to_update_vops_p): Likewise.
16184         (need_to_initialize_update_ssa_p): Rename to ...
16185         (update_ssa_initialized_fn): ... this.  Track function we are
16186         initialized for.
16187         (symbol_marked_for_renaming): Simplify.
16188         (add_new_name_mapping): Do not set need_to_update_vops_p.
16189         (dump_currdefs): Use SYMS_TO_RENAME.
16190         (rewrite_update_stmt): Always walk all uses/defs.
16191         (dump_update_ssa): Adjust.
16192         (init_update_ssa): Take function argument.  Track what we are
16193         initialized for.
16194         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
16195         (create_new_def_for): Initialize for cfun, assert we are initialized
16196         for cfun.
16197         (mark_sym_for_renaming): Simplify.
16198         (mark_set_for_renaming): Do not initialize update-ssa.
16199         (need_ssa_update_p): Simplify.  Take function argument.
16200         (name_mappings_registered_p): Assert we ask for the correct function.
16201         (name_registered_for_update_p): Likewise.
16202         (ssa_names_to_replace): Likewise.
16203         (release_ssa_name_after_update_ssa): Likewise.
16204         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
16205         (dump_decl_set): Do not print a newline.
16206         (debug_decl_set): Do it here.
16207         (dump_update_ssa): And here.
16208         * tree-ssa-loop-im.c (move_computations): Adjust.
16209         (movement_possibility): Likewise.
16210         (determine_max_movement): Likewise.
16211         (gather_mem_refs_stmt): Likewise.
16212         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
16213         or NAME_MEMORY_TAG.
16214         * tree-complex.c (update_all_vops): Remove.
16215         (expand_complex_move): Adjust.
16216         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
16217         Simplify test for memory referencing statement.  Exclude
16218         non-invariant ADDR_EXPRs.
16219         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
16220         * tree-loop-distribution.c (generate_memset_zero): Adjust.
16221         (rdg_flag_uses): Likewise.
16222         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
16223         related code.
16224         (tree_optimize_tail_calls_1): Also split the
16225         edge from the entry block if we have degenerate PHI nodes in
16226         the first basic block.
16227         * tree.c (init_ttree): Remove memory-tag related code.
16228         (tree_code_size): Likewise.
16229         (tree_node_structure): Likewise.
16230         (build7_stat): Re-write to be build6_stat.
16231         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
16232         (SSA_VAR_P): Adjust.
16233         (struct tree_memory_tag): Remove.
16234         (struct tree_memory_partition_tag): Likewise.
16235         (union tree_node): Adjust.
16236         (build7): Re-write to be build6.
16237         * tree-pass.h (pass_reset_cc_flags): Remove.
16238         (TODO_update_address_taken): New flag.
16239         (pass_simple_dse): Remove.
16240         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
16241         * params.h (MAX_ALIASED_VOPS): Remove.
16242         (AVG_ALIASED_VOPS): Likewise.
16243         * omp-low.c (expand_omp_taskreg): Update SSA form.
16244         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
16245         aliases the lhs in a copy stmt.
16246         * tree-ssa-dse.c (struct address_walk_data): Remove.
16247         (memory_ssa_name_same): Likewise.
16248         (memory_address_same): Likewise.
16249         (get_kill_of_stmt_lhs): Likewise.
16250         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
16251         unused stores.  Look through PHI nodes into post-dominated regions.
16252         (dse_optimize_stmt): Simplify.  Properly remove stores.
16253         (tree_ssa_dse): Compute dominators.
16254         (execute_simple_dse): Remove.
16255         (pass_simple_dse): Likewise.
16256         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
16257         gimple_loaded_syms and gimple_stored_syms computation.
16258         * toplev.c (dump_memory_report): Dump alias and pta stats.
16259         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
16260         (vn_reference_eq): Likewise.
16261         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
16262         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
16263         valueize_vuses): Remove.
16264         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
16265         (get_def_ref_stmt_vuse): ... this.
16266         (vn_reference_lookup_2): New function.
16267         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
16268         walking equivalent vuses.  Simplify.
16269         (vn_reference_lookup): Likewise.
16270         (vn_reference_insert): Likewise.
16271         (vn_reference_insert_pieces): Likewise.
16272         (visit_reference_op_call): Simplify.
16273         (visit_reference_op_load): Likewise.
16274         (visit_reference_op_store): Likewise.
16275         (init_scc_vn): Remove shared_lookup_vuses initialization.
16276         (free_scc_vn): Remove shared_lookup_vuses freeing.
16277         (sort_vuses, sort_vuses_heap): Remove.
16278         (get_ref_from_reference_ops): Export.
16279         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
16280         vector with single vuse pointer.
16281         (vn_reference_lookup_pieces, vn_reference_lookup,
16282         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
16283         (shared_vuses_from_stmt): Remove.
16284         (get_ref_from_reference_ops): Declare.
16285         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
16286         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
16287         memory-tag related code.
16288         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
16289         (likely_value): Add comment, skip static-chain of call statements.
16290         (surely_varying_stmt_p): Adjust.
16291         (gimplify_and_update_call_from_tree): Likewise.
16292         (execute_fold_all_builtins): Do not rebuild alias info.
16293         (gimplify_and_update_call_from_tree): Properly update VOPs.
16294         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
16295         (copy_ref_info): Remove memory-tag related code.
16296         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
16297         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
16298         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
16299         computation.
16300         * tree-ssa-dom.c (gimple_p): Remove typedef.
16301         (eliminate_redundant_computations): Adjust.
16302         (record_equivalences_from_stmt): Likewise.
16303         (avail_expr_hash): Likewise.
16304         (avail_expr_eq): Likewise.
16305         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
16306         (stmt_makes_single_load): Likewise.
16307         (stmt_makes_single_store): Likewise.
16308         * tree-ssa-alias.c: Rewrite completely.
16309         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
16310         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
16311         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
16312         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
16313         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
16314         Remove public functions.
16315         (pass_reset_cc_flags): Remove.
16316         (pass_build_alias): Move ...
16317         * tree-ssa-structalias.c (pass_build_alias): ... here.
16318         * tree-ssa-alias.c (may_be_aliased): Move ...
16319         * tree-flow-inline.h (may_be_aliased): ... here.
16320         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
16321         count_uses_and_derefs): Move ...
16322         * gimple.c: ... here.
16323         * gimple.h (count_uses_and_derefs): Declare.
16324         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
16325         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
16326         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
16327         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
16328         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
16329         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
16330         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
16331         New functions.
16332         * tree-dfa.c (refs_may_alias_p): Move ...
16333         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
16334         * tree-ssa-alias.h: New file.
16335         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
16336         (statement_sink_location): Likewise.
16337         * opts.c (decode_options): Do not adjust max-aliased-vops or
16338         avg-aliased-vops values.
16339         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
16340         (TV_CALL_CLOBBER): Likewise.
16341         (TV_FLOW_SENSITIVE): Likewise.
16342         (TV_FLOW_INSENSITIVE): Likewise.
16343         (TV_MEMORY_PARTITIONING): Likewise.
16344         (TV_ALIAS_STMT_WALK): New timevar.
16345         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
16346         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
16347         (get_address_description): Remove memory-tag related code.
16348         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
16349         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
16350         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
16351         and immediate uses in statements.  Document.
16352         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
16353         (dump_symbols): Remove.
16354         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
16355         * alias.c (get_deref_alias_set): New function split out from ...
16356         (get_alias_set): ... here.
16357         * alias.h (get_deref_alias_set): Declare.
16358         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
16359         type parameter.  Remove restrict pointer handling.  Create a
16360         ref-all pointer in case type-based alias sets do not conflict.
16361         (vect_analyze_data_refs): Remove SMT related code.
16362         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
16363         (vectorizable_load): Likewise.
16364         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
16365         (DR_SYMBOL_TAG, DR_VOPS): Remove.
16366         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
16367         Ignore vops and SMTs.
16368         (dr_analyze_alias): Likewise..
16369         (free_data_ref): Likewise.
16370         (create_data_ref): Likewise.
16371         (analyze_all_data_dependences): Likewise.
16372         (get_references_in_stmt): Adjust.
16373         * tree-flow-inline.h (gimple_aliases_computed_p,
16374         gimple_addressable_vars, gimple_call_clobbered_vars,
16375         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
16376         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
16377         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
16378         gimple_mem_ref_stats): Remove.
16379         (gimple_vop): New function.
16380         (op_iter_next_use): Remove vuses and mayuses cases.
16381         (op_iter_next_def): Remove vdefs case.
16382         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
16383         (clear_and_done_ssa_iter): Do not set removed fields.
16384         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
16385         Assert we are not iterating over vuses or vdefs if not also
16386         iterating over uses or defs.
16387         (op_iter_init_use): Likewise.
16388         (op_iter_init_def): Likewise.
16389         (op_iter_next_vdef): Remove.
16390         (op_iter_next_mustdef): Likewise.
16391         (op_iter_init_vdef): Likewise.
16392         (compare_ssa_operands_equal): Likewise.
16393         (link_use_stmts_after): Handle vuse operand.
16394         (is_call_used): Use is_call_clobbered.
16395         (is_call_clobbered): Global variables are always call clobbered,
16396         query the call-clobbers bitmap.
16397         (mark_call_clobbered): Ignore global variables.
16398         (clear_call_clobbered): Likewise.
16399         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
16400         virtual operands sanity check.
16401         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
16402         Remove.
16403         (TARGET_MEM_REF): Remove TMR_TAG operand.
16404         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
16405         Remove call-clobber related code.
16406         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
16407         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
16408         partitions or escape reason.
16409         (get_single_def_stmt, get_single_def_stmt_from_phi,
16410         get_single_def_stmt_with_phi): Remove.
16411         (dump_referenced_vars): Tidy.
16412         (get_ref_base_and_extent): Allow bare decls.
16413         (collect_dfa_stats): Adjust.
16414         * graphite.c (rename_variables_in_stmt): Adjust.
16415         (graphite_copy_stmts_from_block): Likewise.
16416         (translate_clast): Likewise.
16417         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
16418         (EXPR_DIES): New.
16419         (translate_vuse_through_block): Use the oracle.
16420         (phi_translate_1): Adjust.
16421         (value_dies_in_block_x): Use the oracle.  Cache the outcome
16422         in EXPR_DIES.
16423         (valid_in_sets): Check if the VUSE for
16424         a REFERENCE is available.
16425         (eliminate): Do not remove stmts during elimination,
16426         instead queue and remove them afterwards.
16427         (do_pre): Do not rebuild alias info.
16428         (pass_pre): Run TODO_rebuild_alias before PRE.
16429         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
16430         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
16431         (mark_all_v_defs_stmt): Remove.
16432         (mark_all_v_defs_seq): Adjust.
16433         (sra_replace): Likewise.
16434         (scalarize_use): Likewise.
16435         (scalarize_copy): Likewise.
16436         (scalarize_init): Likewise.
16437         (scalarize_ldst): Likewise.
16438         (todoflags): Remove.
16439         (tree_sra): Do not rebuild alias info.
16440         (tree_sra_early): Adjust.
16441         (pass_sra): Run TODO_update_address_taken before SRA.
16442         * tree-predcom.c (set_alias_info): Remove.
16443         (prepare_initializers_chain): Do not call it.
16444         (mark_virtual_ops_for_renaming): Adjust.
16445         (mark_virtual_ops_for_renaming_list): Remove.
16446         (initialize_root_vars): Adjust.
16447         (initialize_root_vars_lm): Likewise.
16448         (prepare_initializers_chain): Likewise.
16449         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
16450         (may_propagate_copy_into_stmt): Likewise.
16451         (merge_alias_info): Do nothing for now.
16452         (propagate_tree_value_into_stmt): Adjust.
16453         (stmt_may_generate_copy): Likewise.
16454         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
16455         not mark symbols for renaming.
16456         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
16457         with the same statement, make sure to update the new pointed-to one.
16458         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
16459         call statements, do not mark symbols for renaming.
16460         (mark_operand_necessary): Dump something.
16461         (ref_may_be_aliased): New function.
16462         (mark_aliased_reaching_defs_necessary_1): New helper function.
16463         (mark_aliased_reaching_defs_necessary): Likewise.
16464         (mark_all_reaching_defs_necessary_1): Likewise.
16465         (mark_all_reaching_defs_necessary): Likewise.
16466         (propagate_necessity): Do not process virtual PHIs.  For
16467         non-aliased loads mark all reaching definitions as necessary.
16468         For aliased loads and stores mark the immediate dominating
16469         aliased clobbers as necessary.
16470         (visited): New global static.
16471         (perform_tree_ssa_dce): Free visited bitmap after propagating
16472         necessity.
16473         (remove_dead_phis): Perform simple dead virtual PHI removal.
16474         (remove_dead_stmt): Properly unlink virtual operands when
16475         removing stores.
16476         (eliminate_unnecessary_stmts): Schedule PHI removal after
16477         stmt removal.
16478         * tree-ssa-ter.c (is_replaceable_p): Adjust.
16479         (process_replaceable): Likewise.
16480         (find_replaceable_in_bb): Likewise.
16481         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
16482         based on the single gimple vop.
16483         (verify_flow_insensitive_alias_info): Remove.
16484         (verify_flow_sensitive_alias_info): Likewise.
16485         (verify_call_clobbering): Likewise.
16486         (verify_memory_partitions): Likewise.
16487         (verify_alias_info): Likewise.
16488         (verify_ssa): Adjust..
16489         (execute_update_addresses_taken): Export.  Update SSA
16490         manually.  Optimize only when optimizing.  Use a local bitmap.
16491         (pass_update_address_taken): Remove TODO_update_ssa, add
16492         TODO_dump_func.
16493         (pass_update_address_taken): Just use TODO_update_address_taken.
16494         (init_tree_ssa): Do not initialize addressable_vars.
16495         (verify_ssa): Verify new VUSE / VDEF properties.
16496         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
16497         Do not call verify_alias_info.
16498         (delete_tree_ssa): Clear the VUSE, VDEF operands.
16499         Do not free the loaded and stored syms bitmaps.  Reset the escaped
16500         and callused solutions.  Do not free addressable_vars.
16501         Remove memory-tag related code.
16502         (warn_uninitialized_var): Aliases are always available.
16503         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
16504         * lambda-code.c (can_put_in_inner_loop): Adjust.
16505         (can_put_after_inner_loop): Likewise.
16506         (perfect_nestify): Likewise.
16507         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
16508         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
16509         (vectorizable_conversion): Do not mark symbols for renaming.
16510         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
16511         (expand_call_inline): Unlink the calls virtual operands before
16512         replacing it.
16513         (tree_function_versioning): Do not call update_ssa if we are not
16514         updating clones.  Simplify.
16515         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
16516         (propagate_with_phi): Likewise..
16517         * tree-outof-ssa.c (create_temp): Remove memory tag and call
16518         clobber code.  Assert we are not aliased or global.
16519         * tree-flow.h: Include tree-ssa-alias.h
16520         (enum escape_type): Remove.
16521         (struct mem_sym_stats_d): Likewise.
16522         (struct mem_ref_stats_d): Likewise.
16523         (struct gimple_df): Add vop member.  Remove global_var,
16524         call_clobbered_vars, call_used_vars, addressable_vars,
16525         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
16526         escaped and callused members.
16527         (struct ptr_info_def): Remove all members, add points-to solution
16528         member pt.
16529         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
16530         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
16531         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
16532         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
16533         (tree-ssa-alias.o): Likewise.
16534         (toplev.o): Add tree-ssa-alias.h
16535         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
16536         * gimple.c (gimple_set_bb): Fix off-by-one error.
16537         (is_gimple_reg): Do not handle memory tags.
16538         (gimple_copy): Also copy virtual operands.
16539         Delay updating the statement.  Do not reset loaded and stored syms.
16540         (gimple_set_stored_syms): Remove.
16541         (gimple_set_loaded_syms): Likewise.
16542         (gimple_call_copy_skip_args): Copy the virtual operands
16543         and mark the new statement modified.
16544         * tree-ssa-structalias.c (may_alias_p): Remove.
16545         (set_uids_in_ptset): Take the alias set to prune with as
16546         parameter.  Fold in the alias test of may_alias_p.
16547         (compute_points_to_sets): Compute whether a ptr is dereferenced
16548         in a local sbitmap.
16549         (process_constraint): Deal with &ANYTHING on the lhs, reject all
16550         other ADDRESSOF constraints on the lhs.
16551         (get_constraint_for_component_ref): Assert that we don't get
16552         ADDRESSOF constraints from the base of the reference.
16553         Properly generate UNKNOWN_OFFSET for DEREF if needed.
16554         (struct variable_info): Remove collapsed_to member.
16555         (get_varinfo_fc): Remove.
16556         (new_var_info): Do not set collapsed_to.
16557         (dump_constraint): Do not follow cycles.
16558         (dump_constraint_graph): Likewise.
16559         (build_pred_graph): Likewise.
16560         (build_succ_graph): Likewise.
16561         (rewrite_constraints): Likewise.
16562         (do_simple_structure_copy): Remove.
16563         (do_rhs_deref_structure_copy): Remove.
16564         (do_lhs_deref_structure_copy): Remove.
16565         (collapse_rest_of_var): Remove.
16566         (do_structure_copy): Re-implement.
16567         (pta_stats): New global variable.
16568         (dump_pta_stats): New function.
16569         (struct constraint_expr): Make offset signed.
16570         (UNKNOWN_OFFSET): Define special value.
16571         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
16572         (solution_set_expand): New helper function split out from ...
16573         (do_sd_constraint): ... here.
16574         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
16575         (do_ds_constraint): Likewise.
16576         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
16577         and CALLUSED = *CALLUSED.
16578         (set_union_with_increment): Make inc argument signed.
16579         (type_safe): Remove.
16580         (get_constraint_for_ptr_offset): Handle unknown and negative
16581         constant offsets.
16582         (first_vi_for_offset): Handle offsets before start.  Bail
16583         out early for offsets beyond the variable extent.
16584         (first_or_preceding_vi_for_offset): New function.
16585         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
16586         Together with ESCAPED = *ESCAPED this properly computes reachability.
16587         (find_what_var_points_to): New function.
16588         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
16589         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
16590         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
16591         pt_solutions_intersect): New functions.
16592         (compute_call_used_vars): Remove.
16593         (compute_may_aliases): New main entry into PTA computation.
16594         * gimple.h (gimple_p): New typedef.
16595         (struct gimple_statement_base): Remove references_memory_p.
16596         (struct gimple_statement_with_memory_ops_base): Remove
16597         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
16598         members.
16599         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
16600         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
16601         gimple_set_references_memory): Remove.
16602         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
16603         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
16604         New functions.
16605         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
16606         (verify_expr): Allow RESULT_DECL.
16607         (gimple_duplicate_bb): Do not copy virtual operands.
16608         (gimple_duplicate_sese_region): Adjust.
16609         (gimple_duplicate_sese_tail): Likewise.
16610         (mark_virtual_ops_in_region): Remove.
16611         (move_sese_region_to_fn): Do not call it.
16612         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
16613         and pass_simple_dse.
16614         (execute_function_todo): Handle TODO_update_address_taken,
16615         call execute_update_addresses_taken for TODO_rebuild_alias.
16616         (execute_todo): Adjust.
16617         (execute_one_pass): Init dump files early.
16618         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
16619         call-clobbered.
16620         (create_general_new_stmt): Clear vops.
16621         * tree-ssa-reassoc.c (get_rank): Adjust.
16622         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
16623         symbols for renaming.
16624         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
16625         (PARAM_AVG_ALIASED_VOPS): Likewise.
16626         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
16627         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
16628         * tree-ssa-operands.c: Simplify for new virtual operand representation.
16629         (operand_build_cmp, copy_virtual_operands,
16630         create_ssa_artificial_load_stmt, add_to_addressable_set,
16631         gimple_add_to_addresses_taken): Remove public functions.
16632         (unlink_stmt_vdef): New function.
16633
16634 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
16635
16636         * config.gcc (powerpc-*-linux*): Merge variants.
16637
16638 2009-04-02  Chao-ying Fu  <fu@mips.com>
16639             James Grosbach  <james.grosbach@microchip.com>
16640
16641         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
16642         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
16643         cop0_sp_offset.
16644         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
16645         keep_interrupts_masked_p, use_debug_exception_return_p.
16646         (mips_attribute_table): Add interrupt, use_shadow_register_set,
16647         keep_interrupts_masked, use_debug_exception_return.
16648         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
16649         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
16650         New functions.
16651         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
16652         (mips_print_operand): Process COP0 registers to print $0 .. $31
16653         correctly for GAS to process.
16654         (mips_interrupt_extra_call_saved_reg_p): New function.
16655         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
16656         extra registers.
16657         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
16658         (mips_compute_frame_info): Add supports for interrupt context that
16659         includes doubleword accumulators and COP0 registers.
16660         (mips_for_each_saved_acc): New function.
16661         (mips_for_each_saved_gpr_and_fpr): Change the function name from
16662         mips_for_each_saved_reg.
16663         (mips_save_reg): Save accumulators.
16664         (mips_kernel_reg_p): A new for_each_rtx callback.
16665         (mips_expand_prologue): Support interrupt handlers.
16666         (mips_restore_reg): Restore accumulators.
16667         (mips_expand_epilogue): Support interrupt handlers.
16668         (mips_can_use_return_insn): Return false for interrupt handlers.
16669         (mips_epilogue_uses): New function.
16670         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
16671         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
16672         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
16673         cop0_move): New instructions.
16674         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
16675         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
16676         defines.
16677         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
16678         New defines.
16679         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
16680         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
16681         interrupt handlers, we use K0 as the temporary register.
16682         (EPILOGUE_USES): Change to a function call.
16683         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
16684         handlers, we use K0 as the temporary register.
16685
16686         * doc/extend.texi (Function Attributes): Document interrupt,
16687         use_shadow_register_set, keep_interrupts_masked,
16688         use_debug_exception_return for MIPS attributes.
16689
16690 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
16691
16692         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
16693         Remove a number of t-files from tmake_file.
16694         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
16695         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
16696         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
16697         target_prototype, not TARGET_PROTOTYPE.
16698         (LINK_OS_GNU_SPEC): Define.
16699         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
16700         and darwin-ldoubdle.c.
16701
16702 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
16703
16704         PR driver/39293
16705         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
16706         (cpp_options): Ditto.
16707         (default_compilers): Ditto.
16708         (display_help): Ditto.
16709         (process_command): Ditto.
16710         (do_spec_1): Ditto.
16711         (set_input): Use lbasename instead of duplicate code.
16712         (save_temps_prefix): New static for -save-temps=obj.
16713         (save_temps_length): Ditto.
16714
16715         * doc/invoke.texi (-save-temps=obj): Document new variant to
16716         -save-temps switch.
16717
16718 2009-04-02  Jeff Law  <law@redhat.com>
16719
16720         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
16721         variable.
16722
16723 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
16724
16725         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
16726         * configure: Regenerated.
16727
16728 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
16729
16730         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
16731         share the argument list.
16732
16733 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
16734
16735         Merge
16736
16737         2009-02-12  Diego Novillo  <dnovillo@google.com>
16738
16739         * varpool.c (debug_varpool): New.
16740         * cgraph.h (debug_varpool): Declare.
16741
16742 2009-04-02  Jan Hubicka  <jh@suse.cz>
16743
16744         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
16745         pass.
16746
16747 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
16748
16749         * config/i386/i386.c (ix86_abi): Move initialization to ...
16750         (override_options): Here.
16751
16752 2009-04-02  Christian Bruel  <christian.bruel@st.com>
16753
16754         * config/sh/sh.c (sh_dwarf_register_span): New function.
16755         (TARGET_DWARF_REGISTER_SPAN): Define.
16756         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
16757
16758 2009-04-02  Ira Rosen  <irar@il.ibm.com>
16759
16760         PR tree-optimization/39595
16761         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
16762         interleaved loads group is not  greater than the SLP group size.
16763
16764 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
16765
16766         * builtins.c (is_builtin_name): New.
16767         (called_as_built_in): Use is_builtin_name.
16768         * tree.h (is_builtin_name): New.
16769         * varasm.c (incorporeal_function_p): Use is_builtin_name
16770
16771 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
16772
16773         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
16774
16775 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
16776
16777         PR c++/26693
16778         * c-decl.c (clone_underlying_type): Move this ...
16779         * c-common.c (set_underlying_type): ... here.
16780         Also, make sure the function properly sets TYPE_STUB_DECL() on
16781         the newly created typedef variant type.
16782         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
16783         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
16784         points.
16785
16786 2009-04-02  Richard Guenther  <rguenther@suse.de>
16787
16788         PR tree-optimization/37221
16789         * tree-flow.h (degenerate_phi_result): Declare.
16790         * tree-ssa-dom.c (degenerate_phi_result): Export.
16791         * tree-scalar-evolution.c (analyze_initial_condition): If
16792         the initial condition is defined by a degenerate PHI node
16793         use the degenerate value.
16794
16795 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
16796
16797         PR rtl-optimization/39588
16798         * combine.c (merge_outer_ops): Do not set the constant when this
16799         is not necessary.
16800         (simplify_shift_const_1): Do not modify it either in this case.
16801
16802 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
16803
16804         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
16805         tuning is deprecated if -mtune value is set to an Itanium1 variant.
16806
16807 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
16808
16809         PR c/29027
16810         * c-lex.c (interpret_float): Default (no suffix) is double.
16811
16812 2009-04-1  Xinliang David Li  <davidxl@google.com>
16813
16814         * config/i386/i386.c (legitimate_constant_p): Recognize
16815         all one vector constant.
16816
16817 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
16818
16819         * config/vax/vax.c: Add #includes to silence warnings.
16820         Change #include order to silence two warnings.
16821
16822 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
16823
16824         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
16825         (ASM_SPEC): Pass -k to the assembler for PIC code.
16826
16827 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
16828
16829         * config.gcc: Add vax-*-linux* to the switch.
16830         * config/vax/linux.h: New file. (TARGET_VERSION,
16831         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
16832
16833 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
16834
16835         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
16836         Use predicate macros instead of GET_CODE() == foo.
16837         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
16838         ashlsi3, rotrsi3, <unnamed>): Likewise.
16839
16840 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
16841
16842         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
16843         jbbccihi, jbbccisi): Remova trailing whitespace.
16844         * config/vax/constraints.md: Likewise.
16845         * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16846         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
16847         * config/vax/predicates.md: Likewise.
16848         * config/vax/vax.c (print_operand_address, vax_output_int_move,
16849         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
16850         * config/vax/vax.h: Likewise.
16851         * config/vax/vax.md (nonlocal_goto): Likewise.
16852
16853 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
16854
16855         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
16856         (indirectable_address_p, adjacent_operands_p): Add spaces around
16857         braces.
16858         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
16859
16860 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
16861
16862         * config/vax/vax.c (legitimate_constant_address_p,
16863         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
16864         index_term_p, reg_plus_index_p, legitimate_address_p,
16865         vax_mode_dependent_address_p): Update comments to match functions
16866         modified by the recent int->bool conversion.
16867
16868 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
16869
16870         * config/vax/builtins.md: Update copyright message.
16871         * config/vax/constraints.md: Likewise.
16872         * config/vax/netbsd-elf.h: Likewise.
16873         * config/vax/predicates.md: Likewise.
16874         * config/vax/vax-protos.h: Likewise.
16875         * config/vax/vax.c: Likewise.
16876         * config/vax/vax.h: Likewise.
16877         * config/vax/vax.md: Likewise.
16878         * config/vax/vax.opt: Likewise.
16879
16880 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
16881
16882         * config/vax/builtins.md (ffssi2, ffssi2_internal,
16883         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
16884         * config/vax/constraints.md (B, R): Likewise.
16885         * config/vax/predicates.md (external_memory_operand,
16886         nonimmediate_addsub_di_operand): Likewise.
16887         * config/vax/vax.c (vax_output_int_add): Likewise.
16888         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
16889         untyped_call): Likewise.
16890
16891 2009-04-01  Matt Thomas  <matt@3am-software.com>
16892
16893         * config/vax/predicates.md: New file.
16894         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
16895         external_const_operand, nonsymbolic_operand, external_memory_operand,
16896         indirect_memory_operand, indexed_memory_operand,
16897         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
16898         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
16899         predicate.
16900         * config/vax/constraints.md: New file.
16901         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
16902         New constraint.
16903         * config/vax/builtins.md: New file.
16904         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
16905         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
16906         jbbccisi): Define.
16907         * config/vax/vax.opt (mqmath): Add option.
16908         * config/vax/vax.md (isfx): Extend with DI.
16909         (VAXintQH, VAXintQHSD): Define.
16910         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
16911         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
16912         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
16913         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
16914         (movdi): Update constraints and use vax_output_int_move().
16915         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
16916         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
16917         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
16918         nonlocal_goto): New.
16919         (mov<mode>): Extend accepted operand types.
16920         (subdi3_old): Rename from subdi3, change update constraints and use
16921         a new implementation.
16922         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
16923         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
16924         MOVE_RATIO, CLEAR_RATIO): Define.
16925         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
16926         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
16927         (PRINT_OPERAND): Redefine using a function instead of inlined code.
16928         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
16929         (split_quadword_operands): Make static and really allow variable
16930         splitting.
16931         (print_operand_address): Update for PIC generation.
16932         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
16933         indexable_address_p, fixup_mathdi_operand,
16934         vax_expand_addsub_di_operands, adjacent_operands_p): New.
16935         (vax_float_literal, legitimate_constant_p,
16936         indirectable_constant_address_p, index_term_p,
16937         reg_plus_index_p): Return bool instead of int.
16938         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
16939         where needed.
16940         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
16941         generation.
16942         (vax_output_conditional_branch): Indent.
16943         (legitimate_constant_address_p, indirectable_constant_address_p,
16944         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
16945         vax_mode_dependent_address_p): Return bool instead of int, update for
16946         PIC generation.
16947         * config/vax/vax-protos.h (legitimate_constant_address_p,
16948         legitimate_constant_p, legitimate_address_p,
16949         vax_mode_dependent_address_p): Change declaration to bool.
16950         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
16951         vax_expand_addsub_di_operands, vax_output_int_subtract,
16952         vax_output_movmemsi): Declare.
16953         (split_quadword_operands, vax_float_literal): Delete declaration.
16954         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
16955         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
16956         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
16957         ASM_OUTPUT_DWARF_PCREL): Define.
16958         (ASM_SPEC): Change definition to allow PIC generation.
16959
16960 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
16961
16962         * doc/sourcebuild.texi: Update front-end requirements.
16963
16964 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
16965
16966         PR target/39226
16967         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
16968         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
16969         (booldi3_internal3): Use boolean_or_operator instead of
16970         boolean_operator.
16971
16972 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
16973
16974         PR c/39605
16975         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
16976         declarator whose size is not an integer constant expression but
16977         folds to an integer constant, then treat it as a constant
16978         subsequently.
16979
16980 2009-04-01  Richard Guenther  <rguenther@suse.de>
16981
16982         * fold-const.c (fold_plusminus_mult_expr): Do not fold
16983         i * 4 + 2 to (i * 2 + 1) * 2.
16984
16985 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
16986
16987         PR c/37772
16988         * c-parser.c (c_parser_asm_statement): Skip until close paren and
16989         return if c_parser_asm_string_literal returned NULL.
16990
16991 2009-04-01  Nick Clifton  <nickc@redhat.com>
16992
16993         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
16994         already defined.
16995         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
16996         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
16997         other typedefs to avoid conflicts with libgcc2.c.  Define labels
16998         to gain 16-bit bit-manipulation functions from libgcc2.c and then
16999         include it.
17000         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
17001         to gain 16-bit trapping arithmetic functions from libgcc2.c and
17002         then include it.
17003
17004 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
17005
17006         * varasm.c (default_function_rodata_section): Declare DOT as
17007         const char*.
17008
17009 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
17010             Andrey Galkin  <agalkin@hypercom.com>
17011
17012         PR/39492
17013         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
17014         Make object_name unique for each process.
17015
17016 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
17017
17018         PR other/39591
17019         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
17020         addressable variables in the parallel that could go out of scope while
17021         running queued tasks.
17022
17023 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
17024
17025         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
17026         (CASE_VALUES_THRESHOLD): Redefine.
17027         * config/avr/avr.c (avr_override_options): Remove initialization of
17028         avr_case_values_threshold variable.
17029         (avr_case_values_threshold): Remove variable. Add new function.
17030         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
17031         * config/avr/avr.opt (mno-tablejump): Remove option.
17032         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
17033
17034 2009-04-01  DJ Delorie  <dj@redhat.com>
17035
17036         * varasm.c (default_function_rodata_section): Don't assume
17037         anything about where the first '.' in the section name is.
17038
17039 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
17040
17041         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
17042         rs6000_emit_stack_tie.
17043
17044 2009-03-31  Ian Lance Taylor  <iant@google.com>
17045
17046         * tree-eh.c (tree_remove_unreachable_handlers): Compare
17047         gimple_code with GIMPLE_RESX, not RESX.
17048
17049 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
17050
17051         * c-common.c (c_get_ident): New.
17052         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
17053
17054 2009-04-01  Ben Elliston  <bje@au.ibm.com>
17055
17056         * config/rs6000/sysv4.opt (msdata): Improve option description.
17057
17058 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
17059
17060         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
17061         (divdf3_internal_lat): Remove.
17062         (divxf3_internal_lat): Remove.
17063         (divxf3_internal_thr): Remove.
17064         (divxf): Use divxf3_internal.
17065         * config/ia64/div.md (divsf3_internal_lat): New.
17066         (divdf3_internal_lat): New.
17067         (divxf3_internal): New.
17068
17069 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
17070
17071         PR c/448
17072         * Makefile.in (USE_GCC_STDINT): Define.
17073         (stmp-int-hdrs): Install stdint.h if applicable.
17074         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
17075         if known.
17076         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
17077         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
17078         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
17079         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
17080         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
17081         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
17082         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
17083         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
17084         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
17085         (c_common_nodes_and_builtins): Initialize
17086         underlying_wchar_type_node.  Do not initialize
17087         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
17088         nodes for new types.
17089         (c_stddef_cpp_builtins): Define macros for new types.
17090         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
17091         Remove.
17092         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
17093         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
17094         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
17095         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
17096         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
17097         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
17098         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
17099         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
17100         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
17101         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
17102         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
17103         int16_type_node, int32_type_node, int64_type_node,
17104         uint8_type_node, uint16_type_node, c_uint32_type_node,
17105         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
17106         int_least32_type_node, int_least64_type_node,
17107         uint_least8_type_node, uint_least16_type_node,
17108         uint_least32_type_node, uint_least64_type_node,
17109         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
17110         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
17111         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
17112         uintptr_type_node): Define.
17113         * c-cppbuiltin.c (builtin_define_constants,
17114         builtin_define_type_minmax): New.
17115         (builtin_define_stdint_macros): Define more macros.
17116         (c_cpp_builtins): Define more limit macros.
17117         (type_suffix): New.
17118         (builtin_define_type_max): Define in terms of
17119         builtin_define_type_minmax.  Remove is_long parameter.  All
17120         callers changed.
17121         * config.gcc (use_gcc_stdint): Define.
17122         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
17123         Add newlib-stdint.h for generic targets.
17124         * config/glibc-stdint.h, config/newlib-stdint.h,
17125         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
17126         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
17127         * config/score/score.h (UINTPTR_TYPE): Define.
17128         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
17129         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
17130         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
17131         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
17132         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
17133         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
17134         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
17135         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
17136         * config/spu/spu.h (STDINT_LONG32): Define.
17137         * configure.ac (use_gcc_stdint): Substitute.
17138         * configure: Regenerate.
17139         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
17140         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
17141         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
17142         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
17143         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
17144         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
17145         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
17146         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
17147         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
17148         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
17149         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
17150         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
17151         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
17152         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
17153         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
17154         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
17155         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
17156         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
17157         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
17158         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
17159         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
17160         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
17161         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
17162         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
17163         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
17164         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
17165         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
17166         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
17167         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
17168
17169 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
17170
17171         * loop-iv.c (suitable_set_for_replacement): Renamed from
17172         simplify_using_assignment; changed to return bool and to accept new
17173         args DEST and SRC.  Return true iff we find a source/destination pair
17174         that can be used to make a replacement, and fill SRC and DEST if so.
17175         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
17176         changed.
17177         (simplify_using_initial_values): Deal with altered regs here and track
17178         more precisely the effect they have on the validity of our expression.
17179
17180         * loop-iv.c (simplify_using_condition): A condition of the form
17181         (EQ REG CONST) can be used to simply make a substitution.
17182         (simplify_using_initial_values): Keep track of conditions we have seen
17183         and keep using them to simplify new expressions, while applying the
17184         same substitutions to them as to the expression.
17185
17186         * simplify-rtx.c (simplify_relational_operation_1): Simplify
17187         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
17188         GEU/LTU reversed.
17189
17190         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
17191         changed.  Use this when trying to improve the upper bound.
17192         Generate the comparison by using simplify_gen_relational.
17193
17194         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
17195
17196         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
17197         functions.
17198         (simplify_using_assignment, simplify_using_initial_values): Call
17199         replace_in_expr to make replacements.  Call replace_single_def_regs
17200         once on the initial version of the expression.
17201
17202 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17203
17204         PR target/27237
17205         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
17206
17207 2009-03-31  Richard Guenther  <rguenther@suse.de>
17208
17209         PR middle-end/31029
17210         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
17211         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
17212
17213 2009-03-31  Richard Guenther  <rguenther@suse.de>
17214
17215         * tree.h (div_if_zero_remainder): Declare.
17216         * fold-const.c (div_if_zero_remainder): Export.
17217         * tree-ssa-forwprop.c
17218         (forward_propagate_addr_into_variable_array_index): Handle
17219         constant array index addition outside of the variable index.
17220
17221 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
17222
17223         PR target/39592
17224         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
17225         define_splits, floatunssi<mode>2): Require x87 conversions from
17226         DImode to be permitted.
17227
17228 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
17229
17230         PR preprocessor/15638
17231         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
17232
17233 2009-03-31  Richard Guenther  <rguenther@suse.de>
17234
17235         PR middle-end/23401
17236         PR middle-end/27810
17237         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
17238         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
17239         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
17240         a separate statement.
17241         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
17242         (lookup_tmp_var): Likewise.
17243         (is_gimple_formal_tmp_or_call_rhs): Remove.
17244         (is_gimple_reg_or_call_rhs): Rename to ...
17245         (is_gimple_reg_rhs_or_call): ... this.
17246         (is_gimple_mem_or_call_rhs): Rename to ...
17247         (is_gimple_mem_rhs_or_call): ... this.
17248         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
17249         DECL_GIMPLE_REG_P only if is_formal is true.
17250         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
17251         for non-proper post-modify expression gimplification.
17252         (gimplify_self_mod_expr): For post-modify expressions gimplify
17253         the lvalue to a minimal lvalue.
17254         (rhs_predicate_for): Remove formal temp case.
17255         (gimplify_modify_expr_rhs): Likewise.
17256         (gimplify_addr_expr): Use is_gimple_reg.
17257         (gimplify_expr): Remove formal temp cases.
17258         (gimple_regimplify_operands): Likewise.
17259         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
17260         and FILTER_EXPR like constants.
17261         * gimple.c (walk_gimple_op): Fix val_only initialization, use
17262         is_gimple_reg.
17263         (is_gimple_formal_tmp_rhs): Remove.
17264         (is_gimple_reg_rhs): Remove special casing.
17265         (is_gimple_mem_rhs): Fix.
17266         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
17267         (is_gimple_formal_tmp_var): Remove.
17268         (is_gimple_formal_tmp_reg): Likewise.
17269         (is_gimple_min_lval): Allow invariant component ref parts.
17270         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
17271         is_gimple_formal_tmp_reg): Remove declarations.
17272         * tree-cfg.c (verify_expr): Verify that variables with address
17273         taken do not have DECL_GIMPLE_REG_P set.
17274         * tree-mudflap.c (mf_build_check_statement_for): Use
17275         force_gimple_operand instead of gimplify_expr.
17276
17277 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
17278
17279         * modulo-sched.c (sms_schedule_by_order): Pass the actual
17280         schedulable rows to compute_split_row.
17281
17282 2009-03-31  Ben Elliston  <bje@au.ibm.com>
17283
17284         PR target/31635
17285         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
17286         OPT_mvrsave.
17287
17288 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
17289
17290         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
17291         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
17292         * configure: Regenerate.
17293         * config.in: Regenerate.
17294         * config/rs6000/rs6000.opt (mtls-markers): Add.
17295         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
17296         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
17297         (tls_ld_aix, tls_ld_sysv): Likewise.
17298         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
17299         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
17300
17301 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
17302
17303         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
17304
17305 2009-03-30  Jan Hubicka  <jh@suse.cz>
17306
17307         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
17308         out of RESX.
17309         (tree_remove_unreachable_handlers): Cleanup EH predecestor
17310         detection and label handling.
17311
17312 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
17313
17314         * ira-int.h (ira_allocno): Rename left_conflicts_num to
17315         left_conflicts_size.
17316         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
17317         ALLOCNO_LEFT_CONFLICTS_SIZE.
17318
17319         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
17320         remove_allocno_from_bucket_and_push,
17321         allocno_spill_priority_compare, push_allocnos_to_stack,
17322         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
17323         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
17324         (setup_allocno_left_conflicts_num): Ditto.  Rename to
17325         setup_allocno_left_conflicts_size.
17326         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
17327         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
17328         setup_allocno_left_conflicts_size instead of
17329         setup_allocno_left_conflicts_num.
17330
17331         * ira-build.c (ira_create_allocno): Use
17332         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
17333         ALLOCNO_LEFT_CONFLICTS_NUM.
17334
17335 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
17336
17337         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
17338         instead of DF_LR_OUT.
17339
17340         * ira-lives.c (process_bb_node_lives): Ditto.
17341
17342         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
17343         instead of DF_LR_{OUT,IN}.
17344
17345         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
17346
17347         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
17348
17349 2009-03-30  Jan Hubicka  <jh@suse.cz>
17350
17351         * except.c (label_to_region_map): Fix thinko.
17352
17353 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
17354
17355         PR middle-end/38237
17356         * tree.h (tree_find_value): New declaration.
17357         * tree.c (tree_find_value): New function.
17358         * varasm.c (assemble_external): Avoid duplicate entries on lists.
17359
17360 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
17361
17362         PR debug/39563
17363         * c-decl.c (struct c_binding): Add locus field.
17364         (bind): Add locus argument, set locus field from it.
17365         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
17366         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
17367         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
17368         implicitly_declare, undeclared_variable, lookup_label,
17369         declare_label, c_make_fname_decl, c_builtin_function,
17370         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
17371         bind callers.
17372
17373 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
17374
17375         PR target/38781
17376         * config/i386/i386.c (classify_argument): Check total size of
17377         structure.
17378
17379 2009-03-30  Martin Jambor  <mjambor@suse.cz>
17380
17381         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
17382         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
17383         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
17384         respectively.
17385
17386         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
17387         seen_variable_array_ref while also traversing a union.
17388
17389         * tree-inline.c (optimize_inline_calls): Do not call
17390         cgraph_node_remove_callees.
17391         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
17392         (pass_remove_cgraph_callee_edges): New variable.
17393         * passes.c (init_optimization_passes): Add
17394         pass_remove_cgraph_callee_edges after early inlining and before all
17395         late intraprocedural passes.
17396
17397         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
17398
17399 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
17400
17401         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
17402         Fix typos in names.
17403
17404 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
17405
17406         * combine.c (simplify_comparison): Use have_insn_for.
17407         * dojump.c (do_jump): Likewise.
17408
17409 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
17410
17411         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
17412         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
17413         sparc_compare_op0 like sparc_compare_emitted used to be handled.
17414         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
17415         instead of sparc_compare_emitted.
17416         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
17417         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
17418         instead of sparc_compare_emitted.
17419
17420 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
17421
17422         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
17423         enter/exit cfglayout mode.
17424         (pass_partition_block): Require it.
17425         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
17426         (combine_instructions): Track basic blocks instead of labels.
17427         (update_cfg_for_uncondjump): New.
17428         (try_combine): Use it.  Update jumps after rescanning.
17429         (pass_combine): Require PROP_cfglayout.
17430         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
17431
17432 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
17433
17434         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
17435         Provide/destroy PROP_cfglayout respectively.
17436         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
17437         * tree-pass.h (PROP_cfglayout): New.
17438
17439 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
17440
17441         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
17442         fold_convert_const_fixed_from_fixed,
17443         fold_convert_const_fixed_from_int,
17444         fold_convert_const_fixed_from_real, fold_negate_const): Do not
17445         set TREE_CONSTANT_OVERFLOW.
17446         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
17447         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
17448
17449 2009-03-30  Ira Rosen  <irar@il.ibm.com>
17450
17451         * tree-vect-loop-manip.c: New file.
17452         * tree-vectorizer.c: Update documentation and included files.
17453         (vect_loop_location): Make extern.
17454         (rename_use_op): Move to tree-vect-loop-manip.c
17455         (rename_variables_in_bb, rename_variables_in_loop,
17456         slpeel_update_phis_for_duplicate_loop,
17457         slpeel_update_phi_nodes_for_guard1,
17458         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
17459         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
17460         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
17461         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
17462         find_loop_location): Likewise.
17463         (new_stmt_vec_info): Move to tree-vect-stmts.c.
17464         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
17465         get_vectype_for_scalar_type, vect_is_simple_use,
17466         supportable_widening_operation, supportable_narrowing_operation):
17467         Likewise.
17468         (bb_in_loop_p): Move to tree-vect-loop.c.
17469         (new_loop_vec_info, destroy_loop_vec_info,
17470         reduction_code_for_scalar_code, report_vect_op,
17471         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
17472         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
17473         (vect_supportable_dr_alignment): Likewise.
17474         * tree-vectorizer.h (tree-data-ref.h): Include.
17475         (vect_loop_location): Declare.
17476         Reorganize function declarations according to the new file structure.
17477         * tree-vect-loop.c: New file.
17478         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
17479         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
17480         * tree-vect-data-refs.c: New file.
17481         * tree-vect-patterns.c (timevar.h): Don't include.
17482         * tree-vect-stmts.c: New file.
17483         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
17484         tree-vect-slp.c, tree-vect-loop.c.
17485         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
17486         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
17487         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
17488         (tree-vect-analyze.o): Remove.
17489         (tree-vect-transform.o): Likewise.
17490         (tree-vect-data-refs.o): Add rule.
17491         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
17492         tree-vect-slp.o): Likewise.
17493         (tree-vect-patterns.o): Remove redundant dependencies.
17494         (tree-vectorizer.o): Likewise.
17495         * tree-vect-slp.c: New file.
17496
17497 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17498
17499         * optc-gen.awk: Warn if an option flag has multiple different
17500         help strings.
17501
17502 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
17503
17504         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
17505         -floop-block): Document dependences on PPL, CLooG and Graphite.
17506
17507 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
17508
17509         PR rtl-optimization/323
17510         * c-common.c (c_fully_fold, convert_and_check,
17511         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
17512         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
17513         * c-common.def (EXCESS_PRECISION_EXPR): New.
17514         * c-cppbuiltin.c (builtin_define_float_constants): Define
17515         constants with enough digits for long double.
17516         * c-lex.c (interpret_float): Interpret constant with excess
17517         precision where appropriate.
17518         * c-opts.c (c_common_post_options): Set
17519         flag_excess_precision_cmdline.  Give an error for
17520         -fexcess-precision=standard for C++ for processors where the
17521         option is significant.
17522         * c-parser.c (c_parser_conditional_expression): Handle excess
17523         precision in condition.
17524         * c-typeck.c (convert_arguments): Handle arguments with excess
17525         precision.
17526         (build_unary_op): Move excess precision outside operation.
17527         (build_conditional_expr): Likewise.
17528         (build_compound_expr): Likewise.
17529         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
17530         (build_modify_expr): Handle excess precision in RHS.
17531         (convert_for_assignment): Handle excess precision in converted
17532         value.
17533         (digest_init, output_init_element, process_init_element): Handle
17534         excess precision in initializer.
17535         (c_finish_return): Handle excess precision in return value.
17536         (build_binary_op): Handle excess precision in operands and add
17537         excess precision as needed for operation.
17538         * common.opt (-fexcess-precision=): New option.
17539         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
17540         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
17541         For standard excess precision, output explicit conversion to and
17542         truncation from XFmode.
17543         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
17544         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
17545         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
17546         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
17547         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
17548         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
17549         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
17550         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
17551         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
17552         define_splits, sqrt<mode>2): Disable where appropriate for
17553         standard excess precision.
17554         * convert.c (convert_to_real): Do not shorten arithmetic to type
17555         for which excess precision would be used.
17556         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
17557         * doc/invoke.texi (-fexcess-precision=): Document option.
17558         (-mfpmath=): Correct index entry.
17559         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
17560         flag_excess_precision): New.
17561         * langhooks.c (lhd_post_options): Set
17562         flag_excess_precision_cmdline.
17563         * opts.c (common_handle_option): Handle -fexcess-precision=.
17564         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
17565         init_excess_precision): New.
17566         (lang_dependent_init_target): Call init_excess_precision.
17567         * tree.c (excess_precision_type): New.
17568         * tree.h (excess_precision_type): Declare.
17569
17570 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
17571
17572         PR c/35235
17573         * c-typeck.c (build_component_ref): Do not copy qualifiers from
17574         non-lvalue to component.
17575
17576 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
17577
17578         PR preprocessor/34695
17579         * Makefile.in (c-opts.o): Depend on c-tree.h.
17580         * c-common.c: Move down include of diagnostic.h.
17581         (done_lexing, c_cpp_error): New.
17582         * c-common.h (done_lexing): Declare.
17583         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
17584         (parse_in).
17585         * c-opts.c: Include c-tree.h.
17586         (c_common_init_options): Set preprocessor error callback.
17587         (c_common_handle_option): Do not set preprocessor
17588         inhibit_warnings, warnings_are_errors, warn_system_headers,
17589         pedantic_errors or inhibit_warnings flags.
17590         (c_common_post_options): Do not check cpp_errors (parse_in).
17591         (c_common_finish): Do not output dependencies if there were
17592         errors.  Do not check return value of cpp_finish.
17593         * c-ppoutput.c (pp_file_change): Set input_location.
17594         * c-tree.h (c_cpp_error): Declare.
17595         * diagnostic.c (diagnostic_set_info_translated): Also initialize
17596         override_column.
17597         (diagnostic_build_prefix): Check override_column.
17598         * diagnostic.h (diagnostic_info): Add override_column field.
17599         (diagnostic_override_column): Define.
17600
17601 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
17602
17603         * c-common.c (c_expand_expr, c_staticp): Remove.
17604         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
17605         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
17606         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
17607         * c-gimplify.c (gimplify_compound_literal_expr,
17608         optimize_compound_literals_in_ctor): Remove.
17609         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
17610         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
17611         * c-semantics.c (emit_local_var): Remove.
17612
17613         * langhooks-def.h (lhd_expand_expr): Remove.
17614         * langhooks.c (lhd_expand_expr): Remove.
17615         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
17616
17617         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
17618         handling from c-semantics.c; don't call into langhook.
17619         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
17620         * gimplify.c (gimplify_compound_literal_expr,
17621         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
17622         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
17623         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
17624         as was done in c-gimplify.c.
17625         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
17626         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
17627         Move from c-common.h.
17628         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
17629
17630         * tree.c (staticp): Do not call langhook.
17631         * langhooks.c (lhd_staticp): Delete.
17632         * langhooks-def.h (lhd_staticp): Delete prototype.
17633         (LANG_HOOKS_STATICP): Delete.
17634         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
17635
17636         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
17637         instead of DECL_STMTs.
17638
17639 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
17640
17641         PR c/456
17642         PR c/5675
17643         PR c/19976
17644         PR c/29116
17645         PR c/31871
17646         PR c/35198
17647         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
17648         void_type_node.
17649         (fold_call_expr): Return a NOP_EXPR from folding rather than the
17650         contained expression.
17651         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
17652         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
17653         conditional expressions for C.
17654         (decl_constant_value_for_optimization): Move from
17655         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
17656         whether optimizing and that the expression is a VAR_DECL not of
17657         array type instead of doing such checks in the caller.  Do not
17658         check pedantic.  Call gcc_unreachable for C++.
17659         * c-common.def (C_MAYBE_CONST_EXPR): New.
17660         * c-common.h (c_fully_fold, c_save_expr,
17661         decl_constant_value_for_optimization): New prototypes.
17662         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
17663         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
17664         EXPR_INT_CONST_OPERANDS): Define.
17665         * c-convert.c (convert): Strip nops from expression.
17666         * c-decl.c (groktypename): Take extra parameters expr and
17667         expr_const_operands.  Update call to grokdeclarator.
17668         (start_decl): Update call to grokdeclarator.  Add statement for
17669         expressions used in type of decl.
17670         (grokparm): Update call to grokdeclarator.
17671         (push_parm_decl): Update call to grokdeclarator.
17672         (build_compound_literal): Add parameter non_const and build a
17673         C_MAYBE_COSNT_EXPR if applicable.
17674         (grokdeclarator): Take extra parameters expr and
17675         expr_const_operands.  Track expressions used in declaration
17676         specifiers and declarators.  Fold array sizes and track whether
17677         they are constant expressions and whether they are integer
17678         constant expressions.
17679         (parser_xref_tag): Set expr and expr_const_operands fields in
17680         return value.
17681         (grokfield): Update call to grokdeclarator.
17682         (start_function): Update call to grokdeclarator.
17683         (build_null_declspecs): Set expr and expr_const_operands fields in
17684         return value.
17685         (declspecs_add_type): Handle expressions in typeof specifiers.
17686         * c-parser.c (c_parser_declspecs): Set expr and
17687         expr_const_operands fields for declaration specifiers.
17688         (c_parser_enum_specifier): Likewise.
17689         (c_parser_struct_or_union_specifier): Likewise.
17690         (c_parser_typeof_specifier): Likewise.  Update call to
17691         groktypename.  Fold expression as needed.  Return expressions with
17692         type instead of adding statements.
17693         (c_parser_attributes): Update calls to c_parser_expr_list.
17694         (c_parser_statement_after_labels): Fold expression before passing
17695         to objc_build_throw_stmt.
17696         (c_parser_condition): Fold expression.
17697         (c_parser_asm_operands): Fold expression.
17698         (c_parser_conditional_expression): Use c_save_expr.  Update call
17699         to build_conditional_expr.
17700         (c_parser_alignof_expression): Update call to groktypename.
17701         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
17702         original_code.  Fold expression argument of va_arg.  Create
17703         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
17704         argument to va_arg.  Update calls to groktypename.  Fold array
17705         index for offsetof.  Verify that first argument to
17706         __builtin_choose_expr has integer type.
17707         (c_parser_postfix_expression_after_paren_type): Update calls to
17708         groktypename and build_compound_literal.  Handle expressions with
17709         side effects in type name.
17710         (c_parser_postfix_expression_after_primary): Update call to
17711         c_parser_expr_list.  Set original_code for calls to
17712         __builtin_constant_p.
17713         (c_parser_expr_list): Take extra parameter fold_p.  Fold
17714         expressions if requested.
17715         (c_parser_objc_type_name): Update call to groktypename.
17716         (c_parser_objc_synchronized_statement): Fold expression.
17717         (c_parser_objc_receiver): Fold expression.
17718         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
17719         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
17720         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
17721         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
17722         (struct c_typespec): Add elements expr and expr_const_operands.
17723         (struct c_declspecs): Add elements expr and expr_const_operands.
17724         (groktypename, build_conditional_expr, build_compound_literal):
17725         Update prototypes.
17726         (in_late_binary_op): Declare.
17727         * c-typeck.c (note_integer_operands): New function.
17728         (in_late_binary_op): New variable.
17729         (decl_constant_value_for_broken_optimization): Move to c-common.c
17730         and rename to decl_constant_value_for_optimization.
17731         (default_function_array_conversion): Do not strip nops.
17732         (default_conversion): Do not call
17733         decl_constant_value_for_broken_optimization.
17734         (build_array_ref): Do not fold result.
17735         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
17736         result when operand is a VLA.
17737         (c_expr_sizeof_type): Update call to groktypename.  Handle
17738         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
17739         result when operand names a VLA type.
17740         (build_function_call): Update call to build_compound_literal.
17741         Only fold result for calls to __builtin_* functions.  Strip
17742         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
17743         the function designator.
17744         (convert_arguments): Fold arguments.  Update call to
17745         convert_for_assignment.
17746         (build_unary_op): Handle increment and decrement of
17747         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
17748         decrement earlier.  Fold operand of increment and decrement.
17749         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
17750         built for integer operand.  Wrap returns that are INTEGER_CSTs
17751         without being integer constant expressions or that have integer
17752         constant operands without being INTEGER_CSTs.
17753         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
17754         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
17755         result is an integer constant expression or can be used in
17756         unevaluated parts of one and avoid folding and wrap as
17757         appropriate.  Fold operands before possibly doing -Wsign-compare
17758         warnings.
17759         (build_compound_expr): Wrap result for C99 if operands can be used
17760         in integer constant expressions.
17761         (build_c_cast): Update call to digest_init.  Do not ignore
17762         overflow from casting floating-point constants to integers.  Wrap
17763         results that could be confused with integer constant expressions,
17764         null pointer constants or floating-point constants.
17765         (c_cast_expr): Update call to groktypename.  Handle expressions
17766         included in type name.
17767         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
17768         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
17769         Update calls to convert_for_assignment.
17770         (convert_for_assignment): Take new parameter
17771         null_pointer_constant.  Do not strip nops or call
17772         decl_constant_value_for_broken_optimization.  Set
17773         in_late_binary_op for conversions to boolean.
17774         (store_init_value): Update call to digest_init.
17775         (digest_init): Take new parameter null_pointer_constant.  Do not
17776         call decl_constant_value_for_broken_optimization.  pedwarn for
17777         initializers not constant expressions.  Update calls to
17778         convert_for_assignment.
17779         (constructor_nonconst): New.
17780         (struct constructor_stack): Add nonconst element.
17781         (really_start_incremental_init, push_init_level, pop_init_level):
17782         Handle constructor_nonconst and nonconst element.
17783         (set_init_index): Call constant_expression_warning for array
17784         designators.
17785         (output_init_element): Fold value.  Set constructor_nonconst as
17786         applicable.  pedwarn for initializers not constant expressions.
17787         Update call to digest_init.  Call constant_expression_warning
17788         where constant initializers are required.
17789         (process_init_element): Use c_save_expr.
17790         (c_finish_goto_ptr): Fold expression.
17791         (c_finish_return): Fold return value.  Update call to
17792         convert_for_assignment.
17793         (c_start_case): Fold switch expression.
17794         (c_process_expr_stmt): Fold expression.
17795         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
17796         ensure statement expression is not evaluated in constant expression.
17797         (build_binary_op): Track whether results are integer constant
17798         expressions or may occur in such, disable folding and wrap results
17799         as applicable.  Fold operands for -Wsign-compare warnings unless
17800         in_late_binary_op.
17801         (c_objc_common_truthvalue_conversion): Handle results folded to
17802         integer constants that are not integer constant expressions.
17803         * doc/extend.texi: Document when typeof operands are evaluated,
17804         that condition of __builtin_choose_expr is an integer constant
17805         expression, and more about use of __builtin_constant_p in
17806         initializers.
17807
17808 2009-03-29  Richard Guenther  <rguenther@suse.de>
17809
17810         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
17811         propagate addresses of array references.
17812
17813 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
17814
17815         * regmove.c (perhaps_ends_bb_p): Remove.
17816         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
17817         from INSN and check that the main loop stays within that basic block.
17818         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
17819         (regmove_forward_pass): Split out from regmove_optimize.  Use
17820         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
17821         (regmove_backward_pass): Split out from regmove_optimize.  Use
17822         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
17823         (regmove_optimize): Simplify.
17824
17825 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
17826
17827         PR target/39545
17828         * config/i386/i386.c (classify_argument): Ignore flexible array
17829         member in struct and warn ABI change.
17830
17831 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
17832
17833         * config/i386/i386-protos.h (ix86_agi_dependent): New.
17834
17835         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
17836         (ix86_adjust_cost): Updated.
17837
17838 2009-03-29  Jan Hubicka  <jh@suse.cz>
17839
17840         PR middle-end/28850
17841         * tree-pass.h (pass_cleanup_eh): New function.
17842         (remove_unreachable_regions): Break code handling RTL
17843         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
17844         that can not be reached by runtime.
17845         (can_be_reached_by_runtime): New function.
17846         (label_to_region_map): New function.
17847         (num_eh_regions): New function.
17848         (rtl_remove_unreachable_regions): New function.
17849         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
17850         (remove_eh_region): New function.
17851         * except.h: Include sbitmap and vecprim.
17852         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
17853         num_eh_regions): Declare.
17854         * passes.c (init_optimization_passes): Schedule cleanup_eh.
17855         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
17856         * tree-eh.c (tree_remove_unreachable_handlers): New function.
17857         (tree_empty_eh_handler_p): New function.
17858         (cleanup_empty_eh): New function.
17859         (cleanup_eh): New function.
17860         (pass_cleanup_eh): New function.
17861
17862 2009-03-29  Jan Hubicka  <jh@suse.cz>
17863
17864         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
17865         for removed regions.
17866
17867 2009-03-29  Jan Hubicka  <jh@suse.cz>
17868
17869         * except.c (dump_eh_tree): Dump all datastructures.
17870
17871 2009-03-29  Jan Hubicka  <jh@suse.cz>
17872
17873         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
17874         (duplicate_eh_regions_1): Likewise.
17875         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
17876         vector; call EH verification.
17877         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
17878         Be ready for region being removed.
17879
17880 2009-03-29  Jan Hubicka  <jh@suse.cz>
17881
17882         * bitmap.c (bitmap_last_set_bit): New function.
17883         * bitmap.h (bitmap_last_set_bit): Declare.
17884
17885 2009-03-29  David Ayers  <ayers@fsfe.org>
17886
17887         PR objc/27377
17888         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
17889         by calling objc_compare_types and surpress warnings about
17890         incompatible C pointers that are compatible ObjC pointers.
17891
17892 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
17893
17894         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
17895         call initialize_inline_failed.
17896         (initialize_inline_failed): Move it from here ...
17897         * cgraph.c (initialize_inline_failed): ... to here.
17898         (cgraph_create_edge): Call initialize_inline_failed rather than
17899         setting inline_failed directly.
17900
17901 2009-03-29  Ben Elliston  <bje@au.ibm.com>
17902
17903         PR target/32542
17904         * sysv4.opt (msdata): Improve comment.
17905         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
17906         * sysv4.h (SVR4_ASM_SPEC): Likewise.
17907
17908 2009-03-29  Ben Elliston  <bje@au.ibm.com>
17909
17910         PR target/30451
17911         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
17912         load and store attributes.
17913
17914 2009-03-29  Ben Elliston  <bje@au.ibm.com>
17915
17916         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
17917         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
17918         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
17919         * doc/extend.texi (X86 Built-in Functions): Add index entries for
17920         __builtin_infq and __builtin_huge_valq.
17921
17922 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
17923
17924         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
17925         atmega8m1 devices.
17926         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
17927         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
17928
17929 2009-03-28  Xinliang David Li  <davidxl@google.com>
17930
17931         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
17932         (do_dbg_cnt): New function.
17933
17934 2009-03-28  Jan Hubicka  <jh@suse.cz>
17935
17936         Merge from pretty-ipa:
17937
17938         2009-03-27  Jan Hubicka  <jh@suse.cz>
17939
17940         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
17941         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
17942         * passes.c (function_called_by_processed_nodes_p): New.
17943         * ipa-pure-const.c (check_call): Fix handling of operands.
17944         (analyze_function): Dump debug output for skipped bodies.
17945         (local_pure_const): Use function_called_by_processed_nodes_p.
17946         * dwarf2out.c (reference_to_unused): Use output.
17947         * passes.c (do_per_function_toporder): Likewise.
17948
17949         2008-11-12  Jan Hubicka  <jh@suse.cz>
17950
17951         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
17952         * ipa-pure-const.c (funct_state_d): Add can throw field; make
17953         state_set_in_source enum
17954         (check_decl): Ignore memory tags; do not set fake looping flags;
17955         dump diagnostics.
17956         (check_operand, check_tree, check_rhs_var, check_lhs_var,
17957         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
17958         (check_call, analyze_function): Rewrite.
17959         (check_stmt): New.
17960         (add_new_function): Update call of analyze_function.
17961         (generate_summary): Add call of analyze_function.
17962         (propagate): Propagate can_throw; handle state_set_in_source correctly.
17963         (local_pure_const): New function.
17964         (pass_local_pure_const): New pass.
17965         * ipa-inline.c (inline_transform): Set after_inlining.
17966         * tree-eh.c (stmt_can_throw_external): New.
17967         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
17968         work with aliasing built.
17969         * tree-flow.h (stmt_can_throw_external): New.
17970         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
17971         and local pure/const pass in early and late optimization queue.
17972
17973 2009-03-28  Martin Jambor  <mjambor@suse.cz>
17974
17975         * fold-const.c (get_pointer_modulus_and_residue): New parameter
17976         allow_func_align.
17977         (fold_binary): Allow function decl aligment consideration is the
17978         second argument is integer constant one.
17979         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
17980         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
17981         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
17982
17983 2009-03-28  Jan Hubicka  <jh@suse.cz>
17984
17985         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
17986         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
17987         * function.h (rtl_data): Add nothrow flag.
17988         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
17989         set DECL_NOTHROW for AVAILABLE functions.
17990
17991 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
17992
17993         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
17994         following vector keyword has expansion starting with pixel or bool
17995         keyword, expand vector to __vector and pixel or bool to __pixel or
17996         __bool.
17997
17998         PR c++/39554
17999         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
18000         warn_if_disallowed_function_p): Removed.
18001         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
18002         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
18003         warning_if_disallowed_function_p.
18004         * flags.h (warn_if_disallowed_function_p,
18005         warn_disallowed_functions): Removed.
18006         * common.opt (Wdisallowed-function-list=): Removed.
18007         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
18008
18009 2009-03-28  Richard Guenther  <rguenther@suse.de>
18010
18011         PR tree-optimization/38723
18012         * tree-ssa-pre.c (compute_avail): Add all default definitions to
18013         the entry block.
18014
18015 2009-03-28  Jan Hubicka  <jh@suse.cz>
18016
18017         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
18018         test introduced by my previous patch.
18019
18020 2009-03-28  Richard Guenther  <rguenther@suse.de>
18021
18022         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
18023         the PHIs value undefined.
18024
18025 2009-03-28  Jan Hubicka  <jh@suse.cz>
18026
18027         * tree-pass.h (pass_fixup_cfg): New pass.
18028         * ipa-inline.c (inline_transform): Set
18029         always_inline_functions_inlined/after_inlining.
18030         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
18031         (pass_fixup_cfg): New pass.
18032         * passes.c (init_optimization_passes): Add fixup_cfg.
18033
18034 2009-03-28  Richard Guenther  <rguenther@suse.de>
18035
18036         PR tree-optimization/38458
18037         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
18038         argument use the arguments copy-of value.
18039
18040 2009-03-28  Richard Guenther  <rguenther@suse.de>
18041
18042         PR tree-optimization/38180
18043         * tree-ssa-ccp.c (get_default_value): Simplify.
18044         (likely_value): Likewise.
18045         (surely_varying_stmt_p): Properly handle VOP case.
18046         (ccp_initialize): Likewise.
18047         (ccp_fold): Handle propagating through *&.
18048         (fold_const_aggregate_ref): Also handle decls.
18049
18050 2009-03-28  Jan Hubicka  <jh@suse.cz>
18051
18052         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
18053         * cgraph.h (cgraph_node): Likewise.
18054         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
18055         (cgraph_reset_node): Use process flag.
18056         (cgraph_mark_functions_to_output): Likewise.
18057         (cgraph_expand_function): Likewise.
18058         (cgraph_expand_all_functions): Likewise.
18059         (cgraph_output_in_order): Likewise.
18060         * dwarf2out.c (reference_to_unused): Likewise.
18061         * passes.c do_per_function_toporder): Likewise.
18062
18063 2009-03-28  Jan Hubicka  <jh@suse.cz>
18064
18065         Bring from lto-branch:
18066
18067         2008-09-03  Doug Kwan  <dougkwan@google.com>
18068
18069         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
18070         enums instead of reason strings.
18071         * cgraph.c (cgraph_create_edge): Same.
18072         (cgraph_inline_failed_string): New function.
18073         * cgraph.h (cgraph_inline_failed_t): New enum type.
18074         (cgraph_inline_failed_string): New prototype.
18075         (struct cgraph_edge): Change type of INLINED_FAILED from constant
18076         char pointer to cgraph_inline_failed_t.
18077         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
18078         (cgraph_default_inline_p): Ditto.
18079         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
18080         to cgraph_inline_failed_t pointer.
18081         * cif-code.def: New file.
18082         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
18083         reason string.
18084         (cgraph_check_inline_limits): Change type of REASON to pointer to
18085         cgraph_inline_failed_t.  Replace reason strings with enums.
18086         (cgraph_default_inline_p): Ditto.
18087         (cgraph_recursive_inlining_p): Ditto.
18088         (update_caller_keys): Change type of FAILED_REASON to
18089         cgraph_inline_failed_t.
18090         (cgraph_set_inline_failed): Change type of REASON to pointer to
18091         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
18092         convert enums to strings for text output.
18093         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
18094         to be of type cgraph_inline_failed_t.  Replace reason strings with
18095         enums.  Call cgraph_inline_failed_string to covert enums
18096         to strings for text output.
18097         (cgraph_decide_inlining): Replace reason strings with enums.
18098         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
18099         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
18100         for text output.
18101         * tree-inline.c (expand_call_inline): Change type of REASON
18102         to cgraph_inline_failed_t.  Replace reason strings with enums.
18103         Call cgraph_inline_failed_string for text output.
18104         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
18105         (cgraph.o): Ditto.
18106
18107 2009-03-28  Jan Hubicka  <jh@suse.cz>
18108
18109         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
18110         cgraph_clone_node): Remove master clone handling.
18111         (cgraph_is_master_clone, cgraph_master_clone): Remove.
18112         * cgraph.h (master_clone): Remove.
18113         (cgraph_is_master_clone, cgraph_master_clone): Remove.
18114         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
18115         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
18116
18117 2009-03-28  Jan Hubicka  <jh@suse.cz>
18118
18119         * cgraph.c (cgraph_function_body_availability): Functions declared
18120         inline are always safe to assume that it is not going to be replaced.
18121
18122 2009-03-28  Richard Guenther  <rguenther@suse.de>
18123
18124         PR tree-optimization/38513
18125         * tree-ssa-pre.c (eliminate): Remove redundant stores.
18126         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
18127         EXC_PTR_EXPR and FILTER_EXPR.
18128         (get_ref_from_reference_ops): Likewise.
18129
18130 2009-03-28  Richard Guenther  <rguenther@suse.de>
18131
18132         PR tree-optimization/38968
18133         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
18134         Use FLOOR_MOD_EXPR to compute misalignment.
18135
18136 2009-03-28  Richard Guenther  <rguenther@suse.de>
18137
18138         PR tree-optimization/37795
18139         * tree.h (combine_comparisons): Declare.
18140         * fold-const.c (combine_comparisons): Export.
18141         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
18142         comparisons.
18143         (ifcombine_iforif): Use combine_comparisons.
18144
18145 2009-03-28  Jan Hubicka  <jh@suse.cz>
18146
18147         * tree-eh.c (inlinable_call_p): New function.
18148         (make_eh_edges): Use it.
18149         (verify_eh_edges): Use it.
18150         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
18151         * except.c (reachable_next_level): Add inlinable_function argument
18152         (sjlj_find_directly_reachable_regions): Update.
18153         (add_reachable_handler): Do not set saw_any_handlers.
18154         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
18155         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
18156         Add new inlinable call parameter.
18157         (can_throw_internal, can_throw_external): Update.
18158         * except.h (can_throw_internal_1, can_throw_external_1,
18159         foreach_reachable_handler): Update declaration.
18160
18161 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
18162
18163         * config/arm/t-arm-coff, config/h8300/coff.h,
18164         config/i386/i386-aout.h, config/i386/i386-coff.h,
18165         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
18166         config/pdp11/2bsd.h, config/rs6000/aix41.h,
18167         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
18168         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
18169         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
18170         sys-types.h: Remove.
18171         * Makefile.in: Remove protoize and fixproto support and references
18172         in comments.
18173         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
18174         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
18175         Remove.
18176         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
18177         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
18178         unprotoize$(exeext).
18179         (rest.encap): Don't depend on $(STMP_FIXPROTO)
18180         (.PHONY): Don't depend on proto.
18181         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
18182         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
18183         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
18184         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
18185         build/gen-protos.o, build/scan.o, xsys-protos.h,
18186         build/fix-header$(build_exeext), build/fix-header.o,
18187         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
18188         stmp-install-fixproto): Remove.
18189         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
18190         SYSCALLS.c or fixproto files.
18191         (install-common): Don't install protoize.
18192         (install-headers-tar, install-headers-cpio, install-headers-cp):
18193         Don't depend on $(STMP_FIXPROTO).
18194         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
18195         install fixproto files or write out fixproto settings.
18196         (uninstall): Don't uninstall protoize.
18197         * config.gcc (use_fixproto): Remove.
18198         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
18199         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
18200         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
18201         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
18202         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
18203         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
18204         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
18205         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
18206         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
18207         * config/t-vxworks (STMP_FIXPROTO): Remove.
18208         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
18209         STMP_FIXPROTO): Remove.
18210         * config.in, configure: Regenerate.
18211         * crtstuff.c (gid_t, uid_t): Don't undefine.
18212         * doc/install.texi: Change m68k-coff to m68k-elf in example.
18213         (arm-*-coff, arm-*-aout: Remove target entries.
18214         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
18215         Remove mention of AIX 4.1.
18216         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
18217         * doc/invoke.texi (Running Protoize): Remove.
18218         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
18219         (Protoize Caveats): Remove.
18220         * tsystem.h: Update comments on headers assumed to exist.
18221
18222 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
18223
18224         * genautomata.c: Add a new year to the copyright.  Add a new
18225         reference.
18226         (struct insn_reserv_decl): Add comments for member bypass_list.
18227         (find_bypass): Remove.
18228         (insert_bypass): New.
18229         (process_decls): Use insert_bypass.
18230         (output_internal_insn_latency_func): Output all bypasses with the
18231         same input insn in one switch case.
18232
18233         * rtl.def (define_bypass): Describe bypass choice.
18234         * doc/md.texi (define_bypass): Ditto.
18235
18236 2009-03-27  Richard Guenther  <rguenther@suse.de>
18237
18238         * gimplify.c (mark_addressable): Export.
18239         * tree-flow.h (mark_addressable): Declare.
18240         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
18241         * tree-ssa.c (verify_phi_args): Verify that address taken
18242         variables have TREE_ADDRESSABLE set.
18243
18244 2009-03-27  Richard Guenther  <rguenther@suse.de>
18245
18246         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
18247         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
18248         Do not mark decls TREE_ADDRESSABLE.
18249         (build_fold_addr_expr): Adjust.
18250         (fold_addr_expr): Remove.
18251         (fold_unary): Use build_fold_addr_expr.
18252         (fold_comparison): Likewise.
18253         (split_address_to_core_and_offset): Likewise.
18254         * coverage.c (tree_coverage_counter_addr): Mark the array decl
18255         TREE_ADDRESSABLE.
18256         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
18257         (gimplify_modify_expr_to_memcpy): Mark source and destination
18258         addressable.
18259         * omp-low.c (create_omp_child_function): Mark the object decl
18260         TREE_ADDRESSABLE.
18261         (lower_rec_input_clauses): Mark the var we take the address of
18262         TREE_ADDRESSABLE.
18263         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
18264
18265 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
18266
18267         PR middle-end/39315
18268         * cfgexpand.c (expand_one_stack_var_at): Change alignment
18269         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
18270
18271 2009-03-27  Richard Guenther  <rguenther@suse.de>
18272
18273         PR tree-optimization/39120
18274         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
18275         constraints.
18276         (handle_lhs_call): Process return constraints.  Add escape
18277         constraints if necessary.
18278         (handle_const_call): Fill out return constraints.  Make nested
18279         case more precise.  Avoid consttmp if possible.
18280         (handle_pure_call): Fill out return constraints.  Avoid
18281         callused if possible.
18282         (find_func_aliases): Simplify call handling.
18283
18284 2009-03-27  Richard Guenther  <rguenther@suse.de>
18285
18286         PR tree-optimization/39120
18287         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
18288         as a representative.
18289         (solve_graph): Do propagate CALLUSED.
18290         (handle_pure_call): Use a scalar constraint from CALLUSED for
18291         the return value.
18292         (find_what_p_points_to): CALLUSED shall not appear in poins-to
18293         solutions.
18294
18295 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
18296
18297         PR c/39323
18298         * c-common.c (handle_aligned_attribute): Properly check alignment
18299         overflow.  Use (1U << i) instead of (1 << i).
18300
18301         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
18302
18303         * expr.h (get_mem_align_offset): Updated.
18304
18305         * tree.h (tree_decl_common): Change align to "unsigned int" and
18306         move it before pointer_alias_set.
18307
18308 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
18309             Jakub Jelinek  <jakub@redhat.com>
18310
18311         PR target/38034
18312         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
18313         gr_register_operand with gr_reg_or_0_operand.
18314         (cmpxchg_rel_di): Likewise.
18315         (sync_lock_test_and_set<mode>): Likewise.
18316
18317 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
18318
18319         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
18320         (true_regnum): Likewise.
18321
18322         * rtlanal.c (subreg_info): Moved to ...
18323         * rtl.h (subreg_info): Here.  New.
18324         (subreg_get_info): New.
18325
18326         * rtlanal.c (subreg_get_info): Make it extern.
18327
18328 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
18329
18330         PR target/39472
18331         * config/i386/i386.c (ix86_abi): New.
18332         (override_options): Handle -mabi=.
18333         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
18334         (ix86_call_abi_override): Likewise.
18335         (init_cumulative_args): Likewise.
18336         (function_arg_advance): Likewise.
18337         (function_arg_64): Likewise.
18338         (function_arg): Likewise.
18339         (ix86_pass_by_reference): Likewise.
18340         (ix86_function_value_regno_p): Likewise.
18341         (ix86_build_builtin_va_list_abi): Likewise.
18342         (setup_incoming_varargs_64): Likewise.
18343         (is_va_list_char_pointer): Likewise.
18344         (ix86_init_machine_status): Likewise.
18345         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
18346         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
18347         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
18348         (ix86_function_abi): Make it static and return enum calling_abi.
18349         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
18350         with ix86_abi.
18351         (ix86_fn_abi_va_list): Updated.
18352
18353         * config/i386/i386.h (ix86_abi): New.
18354         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
18355         (CONDITIONAL_REGISTER_USAGE): Likewise.
18356         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
18357         (machine_function): Likewise.
18358
18359         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
18360         with ix86_abi.
18361         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
18362         (STACK_BOUNDARY): Likewise.
18363         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
18364
18365         * config/i386/i386.opt (mabi=): New.
18366
18367         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
18368         return enum calling_abi.
18369         (ix86_function_type_abi): Likewise.
18370         (ix86_function_abi): Removed.
18371
18372         * doc/invoke.texi: Document -mabi= option for x86.
18373
18374 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18375
18376         * builtins.c (real_dconstp): Delete.
18377         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
18378
18379 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
18380             Jakub Jelinek  <jakub@redhat.com>
18381
18382         PR debug/37959
18383         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
18384         (gen_subprogram_die): When a function is explicit, generate the
18385         DW_AT_explicit attribute.
18386         * langhooks.h (struct lang_hooks_for_decls): Add
18387         function_decl_explicit_p langhook.
18388         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
18389         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
18390
18391 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
18392
18393         * builtins.c (fold_builtin_memory_op): Optimize memmove
18394         into memcpy if we can prove source and destination don't overlap.
18395
18396         * tree-inline.c: Include gt-tree-inline.h.
18397         (clone_fn_id_num): New variable.
18398         (clone_function_name): New function.
18399         (tree_function_versioning): Use it.
18400         * Makefile.in (GTFILES): Add tree-inline.c.
18401
18402 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
18403
18404         * BASE-VER: Change to 4.5.0.
18405
18406 2009-03-27  Xinliang David Li  <davidxl@google.com>
18407
18408         PR tree-optimization/39557
18409         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
18410
18411 2009-03-27  Xinliang David Li  <davidxl@google.com>
18412
18413         PR tree-optimization/39548
18414         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
18415         candidate check.
18416
18417 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
18418
18419         * c-common.c (pointer_int_sum): Use %wd on return from
18420         tree_low_cst.
18421
18422 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
18423
18424         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
18425         on return from tree_low_cst.
18426
18427 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18428
18429         PR c++/36799
18430         * ginclude/stdarg.h (va_copy): Define also for
18431         __GXX_EXPERIMENTAL_CXX0X__.
18432
18433 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18434
18435         PR c++/35652
18436         * builtins.h (c_strlen): Do not warn here.
18437         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
18438         * c-common.c (pointer_int_sum): Take an explicit location.
18439         Warn about offsets out of bounds.
18440         * c-common.h (pointer_int_sum): Adjust declaration.
18441
18442 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18443
18444         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
18445         markup glitch.
18446
18447 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
18448
18449         PR c++/39554
18450         * opts.c (warn_if_disallowed_function_p): Don't assume
18451         get_callee_fndecl must return non-NULL.
18452
18453 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
18454
18455         PR rtl-optimization/39522
18456         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
18457         when reg_reloaded_valid is set.
18458
18459 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18460
18461         * config/spu/divv2df3.c: New file.
18462         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
18463         (DPBIT_FUNCS): Filter out _div_df.
18464
18465 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
18466
18467         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
18468         a jump insn, count that jump in the distance to the loop start.
18469
18470 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
18471
18472         PR target/39523
18473         * config/sh/sh.c (calc_live_regs): Fix condition for global
18474         registers except PIC_OFFSET_TABLE_REGNUM.
18475
18476 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
18477
18478         PR/39518
18479         * doc/invoke.texi (-mconsole): New.
18480         (-mcygwin): New.
18481         (-mno-cygwin): New.
18482         (-mdll): New.
18483         (-mnop-fun-dllimport): New.
18484         (-mthread): New.
18485         (-mwin32): New.
18486         (-mwindows): New.
18487         (sub section "i386 and x86-64 Windows Options"): New.
18488
18489 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
18490
18491         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
18492         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
18493
18494 2009-03-25  Richard Guenther  <rguenther@suse.de>
18495
18496         PR middle-end/39497
18497         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
18498         of -Wno-error.
18499
18500 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
18501
18502         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
18503         neither of haifa/selective schedulers are working.
18504
18505 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18506
18507         * doc/invoke.texi (Debugging Options): Fix description of
18508         -fno-merge-debug-strings.
18509
18510 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
18511
18512         * config/cris/libgcc.ver: New version-script.
18513         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
18514
18515         * configure.ac <GAS features, nop mnemonic>: Add pattern
18516         crisv32-*-* for "nop".
18517         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
18518         * configure: Regenerate.
18519
18520 2009-03-24  Ira Rosen  <irar@il.ibm.com>
18521
18522         PR tree-optimization/39529
18523         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
18524         mark_sym_for_renaming for the tag copied to the new vector
18525         pointer.
18526
18527 2009-03-24  Arthur Loiret  <aloiret@debian.org>
18528
18529         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
18530         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
18531         EXTRA_SPEC_FUNCTIONS.
18532         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
18533         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
18534         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
18535         -march and -mtune options.
18536
18537 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
18538
18539         * config/m68k/t-rtems: Add m5329 multilib.
18540
18541 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
18542             Jakub Jelinek  <jakub@redhat.com>
18543
18544         PR debug/39524
18545         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
18546         nodes.
18547
18548 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
18549
18550         PR c/39495
18551         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
18552         instead of c_parser_expression_conv, if original_code isn't one of the
18553         4 allowed comparison codes, fail.
18554
18555 2009-03-23  Richard Guenther  <rguenther@suse.de>
18556
18557         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
18558         * tree.h (struct tree_type): Likewise.
18559         * reload.h (struct insn_chain): Likewise.
18560         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
18561         * function.h (struct function): Likewise.
18562         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
18563
18564 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
18565
18566         PR tree-optimization/39516
18567         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
18568
18569 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
18570
18571         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
18572         should be set true if BITS_PER_WORD of target is bigger than 32
18573
18574 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
18575
18576         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
18577         Translate -B-options to -rpath-link.  Correct existing
18578         rpath-link and conditionalize on !nostdlib.
18579
18580 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18581
18582         * doc/extend.texi (Function Attributes, Variable Attributes):
18583         Fix typos.
18584         * doc/invoke.texi (Debugging Options, Optimize Options)
18585         (i386 and x86-64 Options, MCore Options): Likewise.
18586
18587 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
18588
18589         PR debug/37890
18590         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
18591         it for block local namespace aliases.
18592         (gen_decl_die): Pass context_die to gen_namespace_die.
18593
18594 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
18595
18596         PR c/39495
18597         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
18598         minimum or maximum value.
18599
18600 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
18601
18602         * reginfo.c (globalize_reg): Recompute derived reg sets.
18603
18604 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
18605
18606         PR target/39063
18607         * libgcc2.c (mprotect): Do not use signed arguments for
18608         VirtualProtect, use DWORD arguments.  Also fix the 'may
18609         be used uninitialized' warning for the np variable.
18610
18611 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
18612
18613         PR target/39496
18614         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
18615         functions using regparm calling conventions when not optimizing.
18616         (ix86_function_sseregparm): Similarly for sseregparm calling
18617         conventions.
18618
18619 2009-03-19  Li Feng  <nemokingdom@gmail.com>
18620
18621         PR middle-end/39500
18622         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
18623         dependence if the first conflict is after niter iterations.
18624
18625 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
18626
18627         PR middle-end/38609
18628         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
18629         functions with dynamic stack-pointer adjustments.
18630
18631 2009-03-19  Ben Elliston  <bje@au.ibm.com>
18632
18633         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
18634         option; change to -msdata=data.
18635
18636 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18637
18638         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
18639         and -fopenmp.
18640
18641 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
18642
18643         PR target/35180
18644         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
18645
18646 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
18647
18648         * doc/invoke.texi (Code Gen Options): Expand discussion of
18649         -fno-common.
18650
18651 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
18652
18653         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
18654         * matrix-reorg.c (struct matrix_info): Likewise.
18655         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
18656         * rtl.h (struct mem_attrs): Likewise.
18657         * df.h (struct df): Likewise.
18658         * tree-data-ref.h (struct data_dependence_relation): Likewise.
18659         * ira-int.h (struct ira_allocno): Likewise.
18660         * df-scan.c (struct df_collection_rec): Likewise.
18661         * ira.c (struct equivalence): Likewise.
18662         * function.c (struct temp_slot): Likewise.
18663         * cfgloop.h (struct loop): Likewise.
18664
18665         PR debug/39485
18666         * function.c (use_register_for_decl): When not optimizing, disregard
18667         register keyword for variables with types containing methods.
18668
18669 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
18670
18671         PR middle-end/39447
18672         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
18673         (is_simple_operand): Call contains_component_ref_p before calling data
18674         reference analysis that would fail on COMPONENT_REFs.
18675
18676         * tree-vrp.c (search_for_addr_array): Fix formatting.
18677
18678 2009-03-18  Richard Guenther  <rguenther@suse.de>
18679
18680         * tree-vect-transform.c (vect_loop_versioning): Fold the
18681         generated comparisons.
18682         * tree-vectorizer.c (set_prologue_iterations): Likewise.
18683         (slpeel_tree_peel_loop_to_edge): Likewise.
18684
18685 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18686
18687         PR middle-end/37805
18688         * opts.c (print_specific_help): In addition to `undocumented',
18689         accept `separate' and `joined' flags if passed alone.  Describe
18690         output by the first matched one of those.
18691         (common_handle_option): Skip over empty strings.
18692         * gcc.c (display_help): Fix help string for `--help='.
18693         * doc/invoke.texi (Option Summary, Overall Options): With
18694         `--help=', classes and qualifiers can both be repeated, but
18695         only the latter can be negated.  One should not pass only
18696         negated qualifiers.  Fix markup and examples.
18697
18698         Revert
18699         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
18700         PR middle-end/37805
18701         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
18702         and -fhelp=separate.
18703
18704 2009-03-17  Jing Yu  <jingyu@google.com>
18705
18706         PR middle-end/39378
18707         * function.h (struct rtl_data): Move is_thunk from here...
18708         (struct function): ...to here.
18709         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
18710         * varasm.c (assemble_start_function): Change is_thunk from crtl to
18711         cfun.
18712         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
18713         cfun.
18714         (alpha_does_function_need_gp, alpha_start_function): Likewise.
18715         (alpha_output_function_end_prologue): Likewise.
18716         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
18717         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
18718         (rs6000_output_function_epilogue): Likewise.
18719         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
18720
18721 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
18722
18723         PR target/39482
18724         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
18725         from different units in a single alternative.
18726         (*truncdfsf_i387): Ditto.
18727         (*truncxfsf2_mixed): Ditto.
18728         (*truncxfdf2_mixed): Ditto.
18729
18730 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
18731
18732         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
18733         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
18734
18735         PR debug/39474
18736         * tree-ssa-live.c (remove_unused_locals): Don't remove local
18737         unused non-artificial variables when not optimizing.
18738
18739         PR debug/39471
18740         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
18741         DW_TAG_imported_module even if decl is IMPORTED_DECL with
18742         NAMESPACE_DECL in its DECL_INITIAL.
18743
18744         PR middle-end/39443
18745         * optabs.c (set_user_assembler_libfunc): New function.
18746         * expr.h (set_user_assembler_libfunc): New prototype.
18747         * c-common.c: Include libfuncs.h.
18748         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
18749         for memcmp, memset, memcpy, memmove and abort.
18750         * Makefile.in (c-common.o): Depend on libfuncs.h.
18751
18752         PR debug/39412
18753         * dwarf2out.c (gen_inlined_enumeration_type_die,
18754         gen_inlined_structure_type_die, gen_inlined_union_type_die,
18755         gen_tagged_type_instantiation_die): Removed.
18756         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
18757         do nothing.
18758
18759 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
18760
18761         PR testsuite/38526
18762         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
18763         its use.
18764         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
18765         (check-parallel-%): Ditto.
18766         (check-consistency): Ditto.
18767
18768 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
18769
18770         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
18771         local variable rhs by NULL_TREE.
18772
18773 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
18774
18775         PR target/39477
18776         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
18777
18778 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
18779
18780         PR target/39476
18781         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
18782
18783 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
18784
18785         PR target/39473
18786         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
18787         for ms->sysv ABI calls only in 64bit mode.
18788
18789         * config/i386/i386.md (untyped_call): Support 32bit.
18790
18791 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18792
18793         * doc/extend.texi: Replace x86_65 with x86_64.
18794
18795 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
18796
18797         PR tree-optimization/39455
18798         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
18799         mismatches for POINTER_TYPE_P (type).
18800         (number_of_iterations_le): Likewise.
18801
18802 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
18803
18804         * config/picochip/picochip.c: Removed profiling support.
18805         * config/picochip/picochip.md: Removed profiling instruction.
18806         * config/picochip/picochip.h: Removed profiling builtin.
18807
18808 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
18809
18810         * doc/install.texi (--with-host-libstdcxx): Document.
18811
18812 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
18813
18814         PR target/34299
18815         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
18816         generate a warning if the function name does not begin with
18817         "__vector" and the function has either the 'signal' or 'interrupt'
18818         attribute, from here to ...
18819         (avr_declare_function_name): ...here. New function.
18820         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
18821         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
18822
18823 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
18824
18825         PR bootstrap/39454
18826         * cse.c (fold_rtx): Don't modify original const_arg1 when
18827         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
18828         separate variable instead.
18829         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
18830         from out of range shift counts.
18831         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
18832
18833 2009-03-13  Catherine Moore  <clm@codesourcery.com>
18834
18835         * config/i386/x-mingw32 (host-mingw32.o): Replace
18836         diagnostic.h with $(DIAGNOSTIC_H).
18837
18838 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
18839
18840         PR target/39431
18841         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
18842         predicate.
18843         * config/i386/sync.md (sync_compare_and_swap<mode>,
18844         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
18845         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
18846         into a register.
18847         (sync_double_compare_and_swapdi_pic,
18848         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
18849         cmpxchg8b_pic_memory_operand instead of just memory_operand.
18850
18851 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
18852
18853         PR target/39445
18854         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
18855
18856 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
18857
18858         PR target/39327
18859         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
18860         (avx_addsubv4df3): Likewise.
18861         (*avx_addsubv4sf3): Likewise.
18862         (sse3_addsubv4sf3): Likewise.
18863
18864 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
18865
18866         PR target/38824
18867         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
18868
18869 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
18870
18871         PR debug/39432
18872         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
18873         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
18874         registers for allocnos created from user-defined variables.
18875
18876 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18877
18878         PR target/39181
18879         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
18880         of non-integer mode as well.
18881
18882 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
18883
18884         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
18885         for functions for which the parameter types are unknown.
18886
18887 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
18888
18889         PR target/39137
18890         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
18891         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
18892         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
18893         * config/i386/i386.c (ix86_local_alignment): For
18894         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
18895         long long variables on the stack to avoid dynamic realignment.
18896         Allow the first argument to be a decl rather than type.
18897         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
18898
18899 2009-03-11  Nick Clifton  <nickc@redhat.com>
18900
18901         PR target/5362
18902         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
18903         options.
18904         Add description to mno-lsim option.
18905         * config/mcore/mcore.h: Remove comment about deprecated m4align
18906         option.
18907         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
18908         * doc/invoke.texi: Add description of mno-lsim and
18909         mstack-increment options.
18910
18911         * config/fr30/fr30.opt: Document the -mno-lsim option.
18912         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
18913         and -mno-lsim options.
18914
18915 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18916
18917         * fold-const.c (fold_comparison): Only call fold_inf_compare
18918         if the mode supports infinities.
18919
18920 2009-03-11  Jason Merrill  <jason@redhat.com>
18921
18922         PR debug/39086
18923         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
18924         end already did.  Notice GIMPLE_CALL modifications of the result.
18925         Don't copy debug information from an ignored decl or a decl from
18926         another function.
18927
18928 2009-03-10  Richard Guenther  <rguenther@suse.de>
18929             Nathan Froyd  <froydnj@codesourcery.com>
18930
18931         PR middle-end/37850
18932         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
18933         (__divMODE3): Likewise.
18934
18935 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
18936
18937         PR tree-optimization/39394
18938         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
18939         DECL_SIZE_UNIT of variable length FIELD_DECLs.
18940
18941 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18942
18943         * recog.c (verfiy_changes): Disallow renaming of hard regs in
18944         inline asms for register asm ("") declarations.
18945
18946 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
18947
18948         * fold-const.c (fold_unary): Fix comment.
18949
18950 2009-03-07  Jan Hubicka  <jh@suse.cz>
18951
18952         PR target/39361
18953         * tree-inline.c (setup_one_parameter): Do replacement of const
18954         argument by constant in SSA form.
18955
18956 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18957
18958         PR middle-end/38028
18959         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
18960         determine alignment passed to assign_stack_local.
18961         (assign_parms_unsplit_complex): Likewise.
18962         * except.c (sjlj_build_landing_pads): Likewise.
18963
18964 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
18965
18966         PR middle-end/39360
18967         * tree-flow.h (add_referenced_var): Return bool instead of void.
18968         * tree-dfa.c (add_referenced_var): Return result of
18969         referenced_var_check_and_insert call.
18970         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
18971         of referenced_var_check_and_insert.
18972
18973         PR debug/39372
18974         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
18975         (gen_variable_die): Emit DW_AT_location on abstract static variable's
18976         DIE, don't emit it if abstract origin already has it.
18977         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
18978         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
18979
18980 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18981
18982         * genpreds.c (needs_variable): Fix parentheses at variable name
18983         detection.
18984         (write_tm_constrs_h): Indent generated code.
18985
18986 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18987
18988         * doc/extend.texi (Function Attributes): Add documentation
18989         for isr attributes.
18990
18991 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
18992
18993         PR debug/39387
18994         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
18995         take locus from its DECL_SOURCE_LOCATION instead of input_location.
18996
18997 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
18998
18999         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
19000         the loop as bad.
19001
19002 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
19003
19004         PR debug/39379
19005         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
19006         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
19007
19008 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
19009
19010         * config/i386/i386.md (R8_REG, R9_REG): New constants.
19011         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
19012         constants instead of magic numbers.
19013         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
19014         (QI_REG_P): Ditto.
19015         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
19016         (x86_64_ms_abi_int_parameter_registers): Ditto.
19017         (x86_64_int_return_registers): Ditto.
19018         (ix86_maybe_switch_abi): Ditto.
19019         (ix86_expand_call): Ditto for clobbered_registers array.
19020         (ix86_hard_regno_mode_ok): Ditto.
19021         (x86_extended_QIreg_mentioned_p): Ditto.
19022
19023 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
19024
19025         PR tree-optimization/39349
19026         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
19027
19028         * combine.c (gen_lowpart_for_combine): Use omode when generating
19029         clobber.
19030
19031 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
19032
19033         PR rtl-optimization/39235
19034         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
19035
19036 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
19037
19038         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
19039
19040 2009-03-04  Richard Guenther  <rguenther@suse.de>
19041
19042         PR tree-optimization/39362
19043         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
19044         that occur in abnormal PHIs should be varying.
19045
19046 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
19047
19048         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
19049         Extend comments.
19050         (simple_iv):  Take loop as an argument instead of statement.
19051         * tree-scalar-evolution.h (simple_iv): Declaration changed.
19052         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
19053         to simple_iv.
19054         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
19055         Ditto.
19056         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
19057         * matrix-reorg.c (analyze_transpose): Ditto.
19058         * tree-data-ref.c (dr_analyze_innermost): Ditto.
19059         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
19060         * tree-predcom.c (ref_at_iteration): Ditto.
19061         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
19062
19063 2009-03-04  Richard Guenther  <rguenther@suse.de>
19064
19065         PR tree-optimization/39358
19066         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
19067         escaped_id and callused_id.
19068         (solve_graph): Likewise.
19069
19070 2009-03-04  Richard Guenther  <rguenther@suse.de>
19071
19072         PR tree-optimization/39339
19073         * tree-sra.c (try_instantiate_multiple_fields): Make it
19074         no longer ICE on the above.
19075
19076 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
19077
19078         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
19079         that fits within Pmode.
19080
19081 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
19082
19083         PR middle-end/10109
19084         * tm.texi (LIBCALL_VALUE): Update description.
19085
19086 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
19087
19088         PR middle-end/34443
19089         * doc/extend.texi (section): Update description.
19090
19091 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
19092
19093         PR middle-end/39345
19094         * tree-inline.c (remapped_type): New.
19095         (can_be_nonlocal): Call remapped_type instead of remap_type.
19096
19097 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
19098
19099         PR fortran/39354
19100         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
19101         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
19102
19103 2009-03-03  Richard Guenther  <rguenther@suse.de>
19104
19105         PR middle-end/39272
19106         * tree.c (tree_nonartificial_location): New function.
19107         * tree.h (tree_nonartificial_location): Declare.
19108         * builtins.c (expand_builtin_memory_chk): Provide location
19109         of the call location for artificial function pieces.
19110         (maybe_emit_chk_warning): Likewise.
19111         (maybe_emit_sprintf_chk_warning): Likewise.
19112         (maybe_emit_free_warning): Likewise.
19113         * expr.c (expand_expr_real_1): Likewise.
19114
19115 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
19116
19117         PR tree-optimization/39343
19118         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
19119         COMPONENT_REF t has ARRAY_TYPE.
19120
19121 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
19122
19123         PR middle-end/39335
19124         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
19125         when the type precision of the induction variable should be
19126         larger than the type precision of nit.
19127         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
19128         * graphite.c (graphite_loop_normal_form): Same.
19129         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
19130
19131 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
19132
19133         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
19134         (*call_1_rex64_ms_sysv): Use named constants instead of magic
19135         numbers to describe clobbered registers.
19136         (*call_value_0_rex64_ms_sysv): Ditto.
19137         * config/i386/mmx.md (mmx_emms): Ditto.
19138         (mmx_femms): Ditto.
19139
19140 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
19141
19142         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
19143         of ABI_64.
19144
19145 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19146
19147         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
19148         (spu_section_type_flags): New function.
19149
19150 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
19151
19152         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
19153         reg_class_contents of FLOAT_REGS into a temporary.
19154
19155 2009-03-02  Richard Guenther  <rguenther@suse.de>
19156             Ira Rosen  <irar@il.ibm.com>
19157
19158         PR tree-optimization/39318
19159         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
19160         information to the vectorized statement.
19161
19162 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
19163
19164         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
19165         variable.  Use defined names instead of magic constants for REX SSE
19166         registers.
19167
19168 2009-03-01  Richard Guenther  <rguenther@suse.de>
19169
19170         PR tree-optimization/39331
19171         * omp-low.c (lower_send_shared_vars): Do not receive new
19172         values for the reference of DECL_BY_REFERENCE parms or results.
19173
19174 2009-03-01  Jan Hubicka  <jh@suse.cz>
19175
19176         PR debug/39267
19177         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
19178         BLOCK_NONLOCALIZED_VAR): New macros.
19179         (tree_block): Add nonlocalized_vars.
19180         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
19181         gen_decl_die): Add origin argument.  Allow generation of die with
19182         origin at hand only.
19183         (gen_member_die, gen_type_die_with_usage, force_decl_die,
19184         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
19185         of gen_*.
19186         (gen_block_die): Fix checking for unused blocks.
19187         (process_scope_var): Break out from .... ; work with origins only.
19188         (decls_for_scope) ... here; process nonlocalized list.
19189         (dwarf2out_ignore_block): Look for nonlocalized vars.
19190         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
19191         vars.
19192         (dump_scope_block): Dump them.
19193         * tree-inline.c (remap_decls): Handle nonlocalized vars.
19194         (remap_block): Likewise.
19195         (can_be_nonlocal): New predicate.
19196         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
19197
19198 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19199
19200         * configure: Regenerate.
19201
19202 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19203
19204         * optc-gen.awk: No need to duplicate option flags twice.
19205         Reuse help texts for duplicate options which do not have any.
19206
19207         * gcc.c (display_help): Document --version.
19208
19209         * gcc.c (main): If print_help_list and verbose_flag, ensure
19210         driver output comes before subprocess output.
19211
19212         * optc-gen.awk: Assign all remaining fields to help string,
19213         space-separated, for multi-line help in *.opt.
19214
19215         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
19216         -Wno-pedantic-ms-format is for MinGW targets only.
19217
19218         * doc/options.texi (Option file format): Fix bad indentation,
19219         restoring dropped sentence.
19220
19221 2009-02-28  Jan Hubicka  <jh@suse.cz>
19222
19223         * tree-inline.c (tree_function_versioning): Output debug info.
19224
19225 2009-02-28  Jan Hubicka  <jh@suse.cz>
19226
19227         PR debug/39267
19228         * tree-inline.c (setup_one_parameter): Do not copy propagate
19229         arguments when not optimizing.
19230
19231 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
19232
19233         PR target/39327
19234         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
19235         (avx_addsubv4df3): Likewise.
19236         (*avx_addsubv4sf3): Likewise.
19237         (sse3_addsubv4sf3): Likewise.
19238         (*avx_addsubv2df3): Likewise.
19239         (sse3_addsubv2df3): Likewise.
19240         (avx_unpckhps256): Correct item selectors.
19241         (avx_unpcklps256): Likewise.
19242         (avx_unpckhpd256): Likewise.
19243         (avx_unpcklpd256): Likewise.
19244
19245 2009-02-28  Jan Hubicka  <jh@suse.cz>
19246
19247         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
19248         static vars.
19249         (copy_arguments_for_versioning): If var is declared don't declare it.
19250         (tree_function_versioning): First setup substitutions and then copy
19251         args.
19252
19253 2009-02-27  Jan Hubicka  <jh@suse.cz>
19254
19255         PR debug/39267
19256         * cgraph.h (varpool_output_debug_info): Remove.
19257         * cgraphunit.c (varpool_output_debug_info): Remove.
19258         * dwarf2out.c (deferred_locations_struct): New struct
19259         (deferred_locations): New type.
19260         (deferred_locations_list): New static var.
19261         (deffer_location): New function.
19262         (gen_variable_die): Use it.
19263         (decls_for_scope): Output info on local static vars.
19264         (dwarf2out_finish): Process deferred locations.
19265         * varpool.c (varpool_output_debug_info): Remove.
19266
19267 2009-02-27  Jan Hubicka  <jh@suse.cz>
19268
19269         PR debug/39267
19270         * tree.h (TREE_PROTECTED): Fix comment.
19271         (BLOCK_HANDLER_BLOCK): Remove.
19272         (struct tree_block): Remove handler_block add body_block.
19273         (inlined_function_outer_scope_p): New.
19274         (is_body_block): Remove.
19275         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
19276         * dwarf2out.c (is_inlined_entry_point): Remove.
19277         (add_high_low_attributes): Use inlined_function_outer_scope_p.
19278         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
19279         code.
19280         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
19281         * gimplify.c (gimplify_expr): Gimplify body blocks.
19282         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
19283         block with multiple subblocks.
19284         (dump_scope_block): Prettier output; dump more flags and info.
19285         (dump_scope_blocks): New.
19286         (remove_unused_locals): Use dump_scope_blocks.
19287         * tree-flow.h (dump_scope_blocks): Declare.
19288         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
19289         * stmt.c (is_body_block): Remove.
19290         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
19291         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
19292
19293 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
19294
19295         PR middle-end/39308
19296         * graphite.c (graphite_loop_normal_form): Do not call
19297         number_of_iterations_exit from a gcc_assert.
19298
19299 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19300
19301         * config/s390/s390.c (s390_swap_cmp): Look for conditional
19302         jumps if COND is NULL.
19303         (find_cond_jump): New function.
19304         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
19305         * config/s390/s390.md: Remove z10_cobra attribute value.
19306
19307 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
19308
19309         * config/alpha/alpha.h (alpha_expand_mov): Return false if
19310         force_const_mem returns NULL_RTX.
19311
19312 2009-02-26  Jan Hubicka  <jh@suse.cz>
19313
19314         PR debug/39267
19315         * cgraph.h (varpool_output_debug_info): Remove.
19316         * cgraphunit.c (varpool_output_debug_info): Remove.
19317         * dwarf2out.c (deferred_locations_struct): New struct
19318         (deferred_locations): New type.
19319         (deferred_locations_list): New static var.
19320         (deffer_location): New function.
19321         (gen_variable_die): Use it.
19322         (decls_for_scope): Output info on local static vars.
19323         (dwarf2out_finish): Process deferred locations.
19324         * varpool.c (varpool_output_debug_info): Remove.
19325
19326 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
19327
19328         PR rtl-optimization/39241
19329         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
19330         to subreg_offset_representable_p.
19331
19332 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
19333
19334         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
19335         execute function prototype.  Get f and nregs from max_reg_num
19336         and get_insns.  Remove the first backward pass as it's dead,
19337         guard the forward pass by flag_expensive_optimizations.
19338         (rest_of_handle_regmove): Delete.
19339         (pass_regmove): Replace it with regmove_optimize.
19340
19341 2009-02-25  Martin Jambor  <mjambor@suse.cz>
19342
19343         PR tree-optimization/39259
19344         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
19345         calls_alloca function flags.
19346         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
19347         calls are detected.
19348
19349 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
19350
19351         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
19352         flags_set_1_rtx, flags_set_1_set): Delete.
19353         (regmove_optimize): Do not call mark_flags_life_zones.
19354
19355 2009-02-24  Julian Brown  <julian@codesourcery.com>
19356
19357         PR target/35965
19358         * config/arm/arm.c (require_pic_register): Only set
19359         cfun->machine->pic_reg once per function.
19360
19361 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
19362
19363         * doc/invoke.texi (Link Options): Document an easier way to pass
19364         options that take arguments to the GNU linker using -Xlinker and -Wl.
19365
19366 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
19367
19368         PR target/33785
19369         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
19370
19371 2009-02-24  Richard Guenther  <rguenther@suse.de>
19372
19373         PR debug/39285
19374         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
19375
19376 2009-02-24  Richard Guenther  <rguenther@suse.de>
19377             Zdenek Dvorak  <ook@ucw.cz>
19378
19379         PR tree-optimization/39233
19380         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
19381         from converting them to a generic type.
19382
19383 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
19384
19385         PR tree-optimization/39260
19386         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
19387         contains a condition with a real type.
19388         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
19389
19390 2009-02-23  Jason Merrill  <jason@redhat.com>
19391
19392         PR c++/38880
19393         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
19394         narrowing_initializer_constant_valid_p.
19395         (narrowing_initializer_constant_valid_p): Don't return
19396         null_pointer_node for adding a pointer to itself.
19397
19398 2009-02-23  Jan Hubicka  <jh@suse.cz>
19399
19400         PR c/12245
19401         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
19402         resizing.
19403
19404 2009-02-23  Jan Hubicka  <jh@suse.cz>
19405
19406         PR tree-optimization/37709
19407         * tree.c (block_ultimate_origin): Move here from dwarf2out.
19408         * tree.h (block_ultimate_origin): Declare.
19409         * dwarf2out.c (block_ultimate_origin): Move to tree.c
19410         * tree-ssa-live.c (remove_unused_scope_block_p):
19411         Eliminate blocks containig no instructions nor live variables nor
19412         nested blocks.
19413         (dump_scope_block): New function.
19414         (remove_unused_locals): Enable removal of dead blocks by default;
19415         enable dumping at TDF_DETAILS.
19416
19417 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
19418
19419         * config/i386/i386.c (classify_argument): Don't allow COImode
19420         and OImode.
19421         (function_arg_advance_32): Don't allow OImode.
19422         (function_arg_32): Likewise.
19423         (function_value_32): Likewise.
19424         (return_in_memory_32): Likewise.
19425         (function_arg_64): Remove OImode comment.
19426
19427 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
19428
19429         PR target/39261
19430         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
19431         ix86_expand_vector_set for V4DImode in 64bit mode only.
19432         (ix86_expand_vector_init_one_var): Likewise.
19433
19434 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
19435
19436         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
19437
19438 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
19439
19440         PR bootstrap/39257
19441         * loop-iv.c: Revert last change.
19442         * emit-rtl.c: Likewise.
19443
19444 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
19445
19446         PR target/39256
19447         * config/i386/i386.c (type_natural_mode): Remove an extra
19448         space in the warning message.
19449         (function_value_32): Handle 32-byte vector modes.
19450         (return_in_memory_32): Likewise.
19451
19452 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
19453
19454         * loop-iv.c (truncate_value): New function.
19455         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
19456         of lowpart_subreg.
19457         (lowpart_subreg): Move to...
19458         * emit-rtl.c: ...here.
19459
19460 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
19461
19462         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
19463         accidental and undocumented change at revision 140860.
19464
19465 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
19466
19467         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
19468         take gimple_seq * arguments.
19469         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
19470         types_compatible_p langhook.
19471
19472 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
19473             Joseph Myers  <joseph@codesourcery.com>
19474
19475         * config/arm/arm.c (arm_builtin_va_list): New function.
19476         (arm_expand_builtin_va_start): Likewise.
19477         (arm_gimplify_va_arg_expr): Likewise.
19478         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
19479         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
19480         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
19481         (va_list_type): New variable.
19482         (arm_mangle_type): Mangle va_list_type appropriately.
19483
19484 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
19485
19486         PR middle-end/39157
19487         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
19488         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
19489         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
19490         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
19491         parameter to 1000 for -O1 by default.
19492         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
19493         parameter.
19494         * loop-invariant.c: Include params.h.
19495         (move_loop_invariants): Don't call move_single_loop_invariants on
19496         very large loops.
19497
19498 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
19499
19500         * calls.c (emit_library_call_value_1): Use slot_offset instead of
19501         offset when calculating bounds for indexing stack_usage_map.  Fixes
19502         a buffer overflow with certain target setups.
19503
19504 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
19505
19506         PR target/39240
19507         * calls.c (expand_call): Clear try_tail_call if caller and callee
19508         disagree in promotion of function return value.
19509
19510 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
19511
19512         PR target/39175
19513         * c-common.c (c_determine_visibility): If visibility changed and
19514         DECL_RTL has been already set, call make_decl_rtl to update symbol
19515         flags.
19516
19517 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
19518
19519         PR c++/39188
19520         * varasm.c (assemble_variable): Don't check DECL_NAME when
19521         globalizing a variable.
19522
19523 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
19524
19525         PR c/38483
19526         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
19527         expression before any __builtin_trap call.
19528         * c-typeck.c (build_function_call): Convert and check function
19529         arguments before generating a call to a trap.  Evaluate the
19530         function arguments before the trap.
19531
19532 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
19533
19534         PR target/39228
19535         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
19536         (UNSPEC_FXAM_MEM): New unspec.
19537         (fxam<mode>2_i387_with_temp): New insn and split pattern.
19538         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
19539         memory using fxam<mode>2_i387_with_temp to remove excess precision.
19540
19541 2009-02-19  Richard Guenther  <rguenther@suse.de>
19542
19543         PR tree-optimization/39207
19544         PR tree-optimization/39074
19545         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
19546         storedanything_tree): New.
19547         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
19548         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
19549         (build_succ_graph): Add edges from STOREDANYTHING to all
19550         non-direct nodes.
19551         (init_base_vars): Initialize STOREDANYTHING.
19552         (compute_points_to_sets): Free substitution info after
19553         building the succ graph.
19554         (ipa_pta_execute): Likewise.
19555
19556         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
19557         field.
19558         (do_ds_constraint): Do not add to special var or non-pointer
19559         field solutions.
19560         (type_could_have_pointers): Split out from ...
19561         (could_have_pointers): ... here.  For arrays use the element type.
19562         (create_variable_info_for): Initialize may_have_pointers.
19563         (new_var_info): Likewise.
19564         (handle_lhs_call): Make the HEAP variable unknown-sized.
19565         (intra_create_variable_infos): Use a type with pointers for
19566         PARM_NOALIAS, make it unknown-sized.
19567
19568 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
19569
19570         PR target/39224
19571         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
19572
19573 2009-02-18  Jason Merrill  <jason@redhat.com>
19574
19575         PR target/39179
19576         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
19577         value if DECL_EXTERNAL.
19578         * tree-sra.c (sra_walk_gimple_assign): Likewise.
19579         * target.h (gcc_target::binds_local_p): Clarify "module".
19580         * tree.h (TREE_PUBLIC): Clarify "module".
19581
19582 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
19583
19584         PR target/38891
19585         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
19586         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
19587
19588 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
19589
19590         PR target/39082
19591         * c.opt (Wabi): Support C and ObjC.
19592         (Wpsabi): New.
19593
19594         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
19595
19596         * config/i386/i386.c (classify_argument): Warn once about the ABI
19597         change when passing union with long double.
19598
19599         * doc/invoke.texi: Update -Wabi for warning psABI changes.
19600
19601 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
19602
19603         PR c/35447
19604         * c-parser.c (c_parser_compound_statement): Always enter and leave
19605         a scope.
19606
19607 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19608
19609         PR target/34587
19610         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
19611
19612 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
19613
19614         PR tree-optimization/36922
19615         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
19616         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
19617         Likewise.
19618
19619 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
19620
19621         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
19622         to 0 for EABI64.
19623
19624 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
19625
19626         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
19627
19628 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
19629
19630         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
19631         tree sharing.
19632
19633 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
19634             Richard Sandiford  <rdsandiford@googlemail.com>
19635
19636         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
19637         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
19638         (loongson_biadd): ...this.
19639
19640 2009-02-17  Richard Guenther  <rguenther@suse.de>
19641
19642         PR tree-optimization/39202
19643         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
19644         a var make sure to follow existing collapses.
19645
19646 2009-02-17  Richard Guenther  <rguenther@suse.de>
19647
19648         PR middle-end/39214
19649         * langhooks.c (lhd_print_error_function): Check for NULL block.
19650
19651 2009-02-17  Richard Guenther  <rguenther@suse.de>
19652
19653         PR tree-optimization/39204
19654         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
19655         of the PHI arg.
19656
19657 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
19658
19659         * config/soft-fp/double.h: Update from glibc CVS.
19660
19661 2009-02-17  Richard Guenther  <rguenther@suse.de>
19662
19663         PR tree-optimization/39207
19664         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
19665         strict-aliasing warnings for pointers pointing to NULL.
19666
19667 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
19668
19669         PR c/35446
19670         * c-parser.c (c_parser_braced_init): Call pop_init_level when
19671         skipping until next close brace.
19672
19673 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
19674
19675         PR target/37049
19676         * config/i386/i386.c (ix86_expand_push): Set memory alignment
19677         to function argument boundary.
19678
19679 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
19680
19681         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
19682         in the lea_add. Reload eventually constraints it properly.
19683         * config/picochip/constraints.md: Remove the target constraint
19684         "b", since it is not needed anymore.
19685
19686 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
19687
19688         * gthr-dce.h: Uglify function parameter and local variable names.
19689         * gthr-gnat.h: Likewise.
19690         * gthr-mipssde.h: Likewise.
19691         * gthr-nks.h: Likewise.
19692         * gthr-posix95.h: Likewise.
19693         * gthr-posix.h: Likewise.
19694         * gthr-rtems.h: Likewise.
19695         * gthr-single.h: Likewise.
19696         * gthr-solaris.h: Likewise.
19697         * gthr-tpf.h: Likewise.
19698         * gthr-vxworks.h: Likewise.
19699         * gthr-win32.h: Likewise.
19700
19701 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
19702
19703         PR target/39196
19704         * config/i386/i386.md: Restrict the new peephole2 to move
19705         between MMX/SSE registers.
19706
19707 2009-02-15  Richard Guenther  <rguenther@suse.de>
19708
19709         Revert
19710         2009-02-13  Richard Guenther  <rguenther@suse.de>
19711
19712         * configure.ac: Enable LFS.
19713         * configure: Re-generate.
19714         * config.in: Likewise.
19715
19716 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19717
19718         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
19719         spu_srqwbyte, spu_srqwbytebc): Define.
19720         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
19721         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
19722         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
19723         "shrqby_<mode>"): New insn-and-split patterns.
19724         * config/spu/spu.c (expand_builtin_args): Determine and return
19725         number of operands using spu_builtin_description data.
19726         (spu_expand_builtin_1): Use it.
19727
19728 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
19729
19730         PR target/38056
19731         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
19732         TARGET_CONST_GP.
19733
19734 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
19735
19736         PR target/39149
19737         * config/i386/i386.c (override_options): Correct warning
19738         messages for -malign-loops, -malign-jumps and -malign-functions.
19739
19740 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
19741
19742         PR target/39152
19743         * config/i386/i386.md: Restrict the new peephole2 to move
19744         between the general purpose registers.
19745
19746 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
19747
19748         PR target/39162
19749         * config/i386/i386.c (type_natural_mode): Add a new argument.
19750         Return the original mode and warn ABI change if vector size is 32byte.
19751         (function_arg_advance): Updated.
19752         (function_arg): Likewise.
19753         (ix86_function_value): Likewise.
19754         (ix86_return_in_memory): Likewise.
19755         (ix86_sol10_return_in_memory): Likewise.
19756         (ix86_gimplify_va_arg): Likewise.
19757         (function_arg_32): Don't warn ABX ABI change here.
19758         (function_arg_64): Likewise.
19759
19760 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
19761
19762         * loop-iv.c (implies_p): In the final case, test that operands 0
19763         of the two comparisons match.
19764
19765         * config/bfin/bfin.c (find_prev_insn_start): New function.
19766         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
19767         (find_next_insn_start): Move.
19768
19769 2009-02-13  Richard Guenther  <rguenther@suse.de>
19770
19771         * configure.ac: Enable LFS.
19772         * configure: Re-generate.
19773         * config.in: Likewise.
19774
19775 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
19776
19777         PR c/35444
19778         * c-parser.c (c_parser_parms_list_declarator): Discard pending
19779         sizes on syntax error after some arguments have been parsed.
19780
19781 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
19782
19783         * doc/invoke.texi (-fira): Remove.
19784
19785 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
19786
19787         * caller-save.c: Replace regclass.c with reginfo.c in comments.
19788         * recog.c: Likewise.
19789         * rtl.h: Likewise.
19790
19791 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
19792
19793         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
19794         (umul_ppmm): Likewise.
19795         (count_leading_zeros): Likewise.
19796         (count_trailing_zeros): Likewise.
19797         (UMUL_TIME): Likewise.
19798
19799 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
19800
19801         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
19802         soft-fp/t-softfp to tmake_file.
19803
19804         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
19805         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
19806         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
19807         IA64_BUILTIN_INFQ]: New.
19808         (ia64_init_builtins): Initialize __builtin_infq,
19809         __builtin_fabsq and __builtin_copysignq if not HPUX.
19810         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
19811         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
19812
19813         * config/ia64/lib1funcs.asm (__divtf3): Define only if
19814         SHARED is defined.
19815         (__fixtfti): Likewise.
19816         (__fixunstfti): Likewise.
19817         (__floattitf): Likewise.
19818
19819         * config/ia64/libgcc-glibc.ver: New.
19820         * config/ia64/t-fprules-softfp: Likewise.
19821         * config/ia64/sfp-machine.h: Likewise.
19822
19823         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
19824         (LIBGCC2_TF_CEXT): Likewise.
19825         (TF_SIZE): Likewise.
19826         (TARGET_INIT_LIBFUNCS): Likewise.
19827
19828         * config/ia64/t-glibc (SHLINB_MAPFILES):
19829         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
19830
19831 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
19832
19833         * config/i386/i386.c (construct_container): Rewrite processing
19834         BLKmode with X86_64_SSE_CLASS.
19835
19836 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
19837
19838         PR target/39152
19839         * config/i386/i386.md: Replace simplify_replace_rtx with
19840         replace_rtx in the new peephole2.
19841
19842 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
19843
19844         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
19845         loop unrolling do not happen at -O2.
19846
19847 2009-02-12  Michael Matz  <matz@suse.de>
19848
19849         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
19850
19851 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
19852
19853         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
19854         for -g3.
19855
19856 2009-02-12  Ben Elliston  <bje@au.ibm.com>
19857
19858         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
19859         patterns when updating the back chain.  Missed in the 2009-02-10
19860         change.
19861
19862 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
19863
19864         * doc/extend.texi (Decimal Floating Types): Update identifier of
19865         draft TR and list of missing support.
19866
19867 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
19868
19869         PR middle-end/39154
19870         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
19871         bit to variable length decl's flags, add it also to its
19872         pointer replacement variable.
19873
19874 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
19875             Jakub Jelinek  <jakub@redhat.com>
19876
19877         PR target/39118
19878         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
19879         (memory_blockage): New expander.
19880         (*memory_blockage): New insn pattern.
19881         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
19882         instead of general blockage at the end of function prologue when
19883         frame pointer is used to access red zone area.  Do not emit blockage
19884         when profiling, it is emitted in generic code.
19885         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
19886         function epilogue when frame pointer is used to access red zone area.
19887
19888 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
19889
19890         PR target/38824
19891         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
19892         by arithmetic with memory operands.
19893         * config/i386/predicates.md (commutative_operator): New.
19894
19895 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
19896
19897         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
19898         bulleted lists.
19899
19900 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
19901
19902         * alias.h (record_alias_subset): Declare.
19903         * alias.c (record_alias_subset): Make global.
19904
19905 2009-02-10  Nick Clifton  <nickc@redhat.com>
19906
19907         * tree-parloops.c: Change license to GPLv3.
19908         * ipa-struct-reorg.c: Change license to GPLv3.
19909         * ipa-struct-reorg.h: Change license to GPLv3.
19910
19911 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
19912
19913         PR c/39084
19914         * c-decl.c (start_struct): Return NULL on error.
19915
19916 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
19917
19918         PR middle-end/39124
19919         * cfgloopmanip.c (remove_path): Call remove_bbs after
19920         cancel_loop_tree, not before it.
19921
19922         PR target/39139
19923         * function.h (struct function): Add has_local_explicit_reg_vars bit.
19924         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
19925         VAR_DECLs were seen.
19926         * tree-ssa-live.c (remove_unused_locals): Recompute
19927         cfun->has_local_explicit_reg_vars.
19928         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
19929         copies or clearings if cfun->has_local_explicit_reg_vars.
19930
19931 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
19932
19933         PR target/39118
19934         * config/i386/i386.c (expand_prologue): Emit blockage at the end
19935         of function prologue when frame pointer is used to access
19936         red zone area.
19937
19938 2009-02-10  Richard Guenther  <rguenther@suse.de>
19939
19940         PR middle-end/39127
19941         * gimplify.c (gimple_regimplify_operands): Always look if
19942         we need to create a temporary.
19943
19944 2009-02-10  Richard Guenther  <rguenther@suse.de>
19945
19946         PR tree-optimization/39132
19947         * tree-loop-distribution.c (todo): New global var.
19948         (generate_memset_zero): Trigger TODO_rebuild_alias.
19949         (tree_loop_distribution): Return todo.
19950
19951 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
19952
19953         PR target/39119
19954         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
19955         (x86_64_reg_class_name): Removed.
19956         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
19957         first one isn't X86_64_SSE_CLASS or any other ones aren't
19958         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
19959         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
19960         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
19961         and 3 X86_64_SSEUP_CLASS.
19962         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
19963         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
19964
19965 2009-02-10  Ben Elliston  <bje@au.ibm.com>
19966
19967         * config/rs6000/rs6000.md (allocate_stack): Always use an update
19968         form instruction to update the stack back chain word, even if the
19969         user has disabled the generation of update instructions.
19970         (movdi_<mode>_update_stack): New.
19971         (movsi_update_stack): Likewise.
19972         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
19973         always use an update form instruction to update the stack back
19974         chain word.
19975
19976 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
19977
19978         PR middle-end/38953
19979         * graphite.c (if_region_set_false_region): After moving a region in
19980         the false branch of a condition, remove the empty dummy basic block.
19981         (gloog): Remove wrong fix for PR38953.
19982
19983 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19984
19985         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
19986         generation due to implicit sign extension.
19987
19988 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
19989
19990         PR middle-end/38981
19991         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
19992         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
19993
19994 2009-02-09  Richard Guenther  <rguenther@suse.de>
19995
19996         PR middle-end/35202
19997         * convert.c (convert_to_real): Disable (float)fn((double)x)
19998         to fnf(x) conversion if errno differences may occur and
19999         -fmath-errno is set.
20000
20001 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
20002
20003         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
20004         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
20005         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
20006
20007 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
20008
20009         PR c/35434
20010         * c-common.c (handle_alias_attribute): Disallow attribute for
20011         anything not a FUNCTION_DECL or VAR_DECL.
20012
20013 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
20014
20015         PR c/39035
20016         * real.c (do_compare): Special-case compare of zero against
20017         decimal float value.
20018
20019 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
20020
20021         PR c/36432
20022         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
20023         as indicating flexible array members unless the field itself is
20024         being declarared as the incomplete array.
20025
20026 2009-02-06  Jan Hubicka  <jh@suse.cz>
20027
20028         PR tree-optimization/38844
20029         * ipa-inline.c (try_inline): Stop inlining recursion when edge
20030         is already inlined.
20031
20032 2009-02-06  Richard Guenther  <rguenther@suse.de>
20033
20034         PR middle-end/38977
20035         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
20036         fork because we may expand it as __gcov_fork.
20037
20038 2009-02-06  Nick Clifton  <nickc@redhat.com>
20039
20040         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
20041
20042 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
20043
20044         PR tree-optimization/35659
20045         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
20046         vn_phi_eq): Shortcut if hashcode does not match.
20047         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
20048         NULL operands.
20049         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
20050         and avoid iterative_hash_expr.
20051         (FOR_EACH_VALUE_ID_IN_SET): New.
20052         (value_id_compare): Remove.
20053         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
20054         sort expressions by value id.
20055
20056 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
20057
20058         PR target/38991
20059         * config/sh/predicates.md (general_movsrc_operand): Don't check
20060         the subreg of system registers here.
20061
20062 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
20063
20064         PR c++/39106
20065         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
20066         on the copied decl.
20067
20068 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
20069
20070         PR rtl-optimization/39110
20071         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
20072         addresses, not aligned ones.
20073
20074 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
20075             Richard Guenther  <rguenther@suse.de>
20076
20077         PR tree-optimization/39100
20078         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
20079         comment says and add edges.
20080
20081 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
20082
20083         PR c/35435
20084         * c-common.c (handle_tls_model_attribute): Ignore attribute for
20085         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
20086
20087 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
20088
20089         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
20090         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
20091         register_bb_in_sese, new_sese, free_sese): Moved.
20092         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
20093         outermost_loop_in_scop, build_scop_iteration_domain,
20094         expand_scalar_variables_ssa_name, get_vdef_before_scop,
20095         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
20096         Use loop_in_sese_p instead of loop_in_scop_p.
20097         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
20098         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
20099         (scopdet_basic_block_info): Fix bug in scop detection.
20100         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
20101         eq_loop_to_cloog_loop): Remove.
20102         (nb_loops_around_loop_in_scop, nb_loop
20103         ref_nb_loops): Moved here...
20104         * graphite.h (ref_nb_loops): ... from here.
20105         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
20106         (loop_domain_dim, loop_iteration_vector_dim): Remove.
20107         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
20108         * testsuite/gcc.dg/graphite/scop-19.c: New
20109
20110 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
20111             Hans-Peter Nilsson  <hp@axis.com>
20112
20113         PR rtl-optimization/37889
20114         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
20115         Move offset handling from PLUS to before the switch.  Use new
20116         arguments when considering SYMBOL_REFs too.
20117         (rtx_addr_can_trap_p): Pass dummy offset and size.
20118         (enum may_trap_p_flags): Remove.
20119         (may_trap_p_1): Pass size from MEM_SIZE.
20120
20121         PR rtl-optimization/38921
20122         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
20123         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
20124         * rtlanal.c (may_trap_after_code_motion_p): Delete.
20125         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
20126
20127 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
20128
20129         AVX Programming Reference (January, 2009)
20130         * config/i386/sse.md (*vpclmulqdq): New.
20131
20132 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
20133
20134         PR tree-optimization/38977
20135         PR gcov-profile/38292
20136         * calls.c (special_function_p): Disregard __builtin_ prefix.
20137
20138 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
20139
20140         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
20141         non-indexable addresses even before reload.
20142
20143 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
20144
20145         PR c/29129
20146         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
20147         as having variable size.  Do not give an error for unnamed
20148         parameters with [*] declarators.  Give a warning for type names
20149         with [*] declarators and mark them as variable size.
20150         * c-parser.c (c_parser_sizeof_expression): Do not give an error
20151         for sizeof applied to [*] type names.
20152
20153 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20154
20155         PR C++/36607
20156         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
20157
20158 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
20159
20160         * gcc.c (process_command): Update copyright notice dates.
20161         * gcov.c (print_version): Likewise.
20162         * gcov-dump.c (print_version): Likewise.
20163         * mips-tfile.c (main): Likewise.
20164         * mips-tdump.c (main): Likewise.
20165
20166 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
20167
20168         PR c/35433
20169         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
20170         for composite type involving a zero-length array type.
20171
20172 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
20173
20174         PR target/35318
20175         * function.c (match_asm_constraints_1): Skip over
20176         initial optional % in the constraint.
20177
20178         PR inline-asm/39059
20179         * c-parser.c (c_parser_postfix_expression): If fixed point is not
20180         supported, don't accept FIXED_CSTs.
20181         * c-decl.c (finish_declspecs): Error if fixed point is not supported
20182         and _Sat is used without _Fract/_Accum.  Set specs->type to
20183         integer_type_node for cts_fract/cts_accum if fixed point is not
20184         supported.
20185
20186 2009-02-02  Catherine Moore  <clm@codesourcery.com>
20187
20188         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
20189
20190 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
20191
20192         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
20193         (ABI_HAS_64BIT_SYMBOLS): Use it.
20194         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
20195
20196 2009-02-02  Paul Brook  <paul@codesourcery.com>
20197
20198         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
20199
20200 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
20201
20202         PR inline-asm/39058
20203         * recog.h (asm_operand_ok): Add constraints argument.
20204         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
20205         recurse on matching constraint.
20206         (check_asm_operands): Pass constraints as 3rd argument to
20207         asm_operand_ok.  Don't look up matching constraint here.
20208         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
20209         to asm_operand_ok.
20210
20211 2009-02-02  Ben Elliston  <bje@au.ibm.com>
20212
20213         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
20214         TARGET_NARROW_VOLATILE_BITFIELD macro names.
20215
20216 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20217
20218         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
20219         information.  Remove some obsolete information.  Reorganize.
20220
20221         * config/pa/fptr.c: Revert license to GPL 2.
20222         * config/pa/milli64.S: Likewise.
20223
20224 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
20225
20226         PR target/38904
20227         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
20228         LIBRARY name in, instead of hard-coding it.
20229         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
20230         extra target make frag to tmake_files according to EH model.
20231         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
20232         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
20233         frags that define makefile variable EH_MODEL appropriately.
20234         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
20235         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
20236         to "-sjlj" according to type of EH configured.
20237         (LIBGCC_SONAME):  Concatenate it to shared library base name.
20238         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
20239         to "_sjlj" according to type of EH configured.
20240         (LIBGCC_SONAME):  Concatenate it to shared library base name.
20241         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
20242         (SHLIB_LINK):  Add missing semicolon to if-else construct.
20243         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
20244         string value of "pe_dll" command-line option.
20245         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
20246         (SHLIB_SONAME):  Use it when overriding t-cygming default.
20247         (SHLIB_IMPLIB):  Override t-cygming default.
20248         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
20249         string value of "pe_dll" command-line option.
20250
20251 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
20252
20253         PR target/38952
20254         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
20255         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
20256
20257 2009-01-31  Richard Guenther  <rguenther@suse.de>
20258
20259         PR tree-optimization/38937
20260         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
20261         computing the transitive closure.
20262
20263 2009-01-30  Richard Guenther  <rguenther@suse.de>
20264
20265         PR tree-optimization/39041
20266         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
20267         Propagate variable indices only if the types match for this stmt.
20268
20269 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
20270
20271         PR target/39013
20272         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
20273         inline but never defined.
20274
20275 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
20276
20277         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
20278         (*insv_h_di_reg_extimm): New insn.
20279         (*insv_l<mode>_reg_extimm): New insn.
20280
20281 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
20282
20283         * config/picochip/picochip.c (flag_conserve_stack): set
20284         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
20285         fconserve-stack. Reduce call-overhead used by inliner.
20286
20287 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
20288
20289         PR/38157
20290         * common.opt (flag_conserve_stack): Initialised to zero.
20291
20292 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
20293
20294         PR/39002
20295         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
20296         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
20297         method.
20298
20299 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
20300
20301         * ira-color.c (allocno_reload_assign): Update comments.
20302         * regmove.c (regmove_optimize): Likewise.
20303
20304         * ra.h: Removed.
20305
20306 2009-01-29  Robert Millan  <rmh@aybabtu.com>
20307
20308         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
20309         * config/i386/kopensolaris-gnu.h: New file.  Undefine
20310         `MD_UNWIND_SUPPORT'.
20311         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
20312
20313 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
20314
20315         PR tree-optimization/39007
20316         * tree-loop-distribution.c (generate_builtin): Use
20317         recompute_dominator to compute the immediate dominator of the
20318         basic block just after the loop.
20319
20320 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20321
20322         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
20323         (ASM_OUTPUT_DWARF_PCREL): Define.
20324
20325 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
20326
20327         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
20328         * doc/passes.texi: Remove entries about regclass, local-alloc, and
20329         global.  Modify entries about regmove and IRA.
20330
20331         * ra-conflict.c: Remove the file.
20332
20333         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
20334
20335         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
20336         (pass_regclass_init): Rename to pass_reginfo_init.
20337
20338         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
20339
20340         * toplev.h (flag_ira): Remove.
20341
20342         * caller-save.c (setup_save_areas): Remove flag_ira.
20343
20344         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
20345
20346         * global.c: Remove the file.
20347
20348         * opts.c (decode_options): Remove flag_ira.
20349
20350         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
20351
20352         * regmove.c: Modify file description.
20353         (find_use_as_address, try_auto_increment): Define them only if
20354         AUTO_INC_DEC is defined.
20355         (replacement_quality, replace_in_call_usage, fixup_match_1,
20356         stable_and_no_regs_but_for_p): Remove.
20357         (reg_set_in_bb): Make it static.
20358         (regmove_optimize): Remove flag_ira and code which worked for
20359         !flag_ira.
20360
20361         * local-alloc.c: Remove the file.
20362
20363         * common.opt (fira): Remove.
20364
20365         * ira.c: Include except.h.
20366         (eliminable_regset): Move from global.c.
20367         (mark_elimination): Ditto.  Remove flag_ira.
20368         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
20369         equiv_mem_modified, validate_equiv_mem_from_store,
20370         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
20371         contains_replace_regs, memref_referenced_p, memref_used_between_p,
20372         no_equiv, recorded_label_ref): Move from local-alloc.c.
20373         (update_equiv_regs): Ditto.  Make it static.
20374         (print_insn_chain, print_insn_chains): Move it from global.c.
20375         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
20376         (build_insn_chain): Ditto.  Make it static.
20377         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
20378         Rename to init_live_subregs.
20379         (gate_ira): Remove flag_ira.
20380
20381         * regclass.c: Rename reginfo.c.  Change file description.
20382         (FORBIDDEN_INC_DEC_CLASSES): Remove.
20383         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
20384         (init_reg_sets_1): Remove code for evaluation of
20385         reg_class_superclasses and losing_caller_save_reg_set.
20386         (init_regs): Remove init_reg_autoinc.
20387         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
20388         ok_for_base_p_nonstrict): Remove.
20389         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
20390         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
20391         corresponding entries.
20392         (dump_regclass, record_operand_costs, scan_one_insn,
20393         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
20394         record_address_regs, auto_inc_dec_reg_p): Remove.
20395         (gt-regclass.h): Rename to gt-reginfo.h.
20396
20397         * rtl.h (dump_global_regs, retry_global_alloc,
20398         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
20399
20400         * Makefile.in (RA_H): Remove.
20401         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
20402         Rename regclass.o to reginfo.o.
20403         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
20404         gt-reginfo.h.
20405         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
20406         (GTFILES): Rename regclass.c to reginfo.c.
20407
20408         * passes.c (init_optimization_passes): Remove pass_local_alloc and
20409         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
20410
20411         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
20412         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
20413         Remove flag_ira.
20414         (finish_spills): Ditto.  Remove code for !flag_ira.
20415
20416 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
20417
20418         PR middle-end/35854
20419         * doc/invoke.texi (rtl debug options): Complete rewrite.
20420         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
20421         to auto_inc_dec".
20422         * mode-switching.c (pass_mode_switching): Rename pass from
20423         "mode-sw" to "mode_sw".
20424         * except.c (pass_convert_to_eh_ranges): Rename pass from
20425         "eh-ranges" to "eh_ranges".
20426         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
20427         to "subreg1".
20428
20429
20430 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
20431             Alexander Monakov  <amonakov@ispras.ru>
20432
20433         PR middle-end/38857
20434         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
20435         register.
20436         (move_exprs_to_boundary): Change return type and pass through
20437         should_move from move_op.  Relax assert.  Update usage ...
20438         (schedule_expr_on_boundary): ... here.  Use should_move instead of
20439         cant_move.
20440         (move_op_orig_expr_found): Indicate that insn was disconnected from
20441         stream.
20442         (code_motion_process_successors): Do not call after_merge_succs
20443         callback if original expression was not found when traversing any of
20444         the branches.
20445         (code_motion_path_driver): Change return type.  Update prototype.
20446         (move_op): Update comment.  Add a new parameter (should_move).  Update
20447         prototype.  Set *should_move based on indication provided by
20448         move_op_orig_expr_found.
20449
20450 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
20451
20452         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
20453         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
20454         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
20455         * config/rs6000/rs6000.c (rs6000_override_options): Default
20456         avoid-indexed-addresses on for Power6, off for everything else.
20457         (avoiding_indexed_address_p): New function.
20458         (rs6000_legitimize_address): Use it.
20459         (rs6000_legitimate_address): Likewise.
20460         * config/rs6000/rs6000.md (movXX_updateX): Likewise
20461
20462 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
20463
20464         PR tree-optimization/38997
20465         * tree-loop-distribution.c (generate_memset_zero): Use
20466         POINTER_PLUS_EXPR for a pointer addition.
20467
20468 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
20469
20470         * config/s390/s390.md (bswap<mode>2): New pattern added.
20471
20472 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
20473
20474         * config/s390/s390.md (*tls_load_31): Added type attribute.
20475
20476 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
20477
20478         * config/s390/s390.md: Fix a few comments.
20479
20480 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
20481
20482         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
20483         (*tm<mode>_full): Fixed z10prop attribute.
20484         (*tst<mode>_extimm): Fixed z10prop attribute.
20485         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
20486         (*tstqiCCT_cconly): Fixed z10prop attribute.
20487         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
20488         (*movsi_larl): Fixed z10prop attribute.
20489         (*movsi_zarch): Fixed z10prop attribute.
20490         (*movsi_eas): Fixed z10prop attribute.
20491         (*movhi): Fixed z10prop attribute.
20492         (*movqi): Fixed z10prop attribute.
20493         (*movstrictqi): Fixed z10prop attribute.
20494         (*mov<mode>): Fixed z10prop attribute.
20495         (*movcc): Fixed z10prop attribute.
20496         (*sethighpartdi_64): Fixed z10prop attribute.
20497         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
20498         (*negdi2_sign_cc): Fixed z10prop attribute.
20499         (*negdi2_sign): Fixed z10prop attribute.
20500         (*absdi2_sign_cc): Fixed z10prop attribute.
20501         (*absdi2_sign): Fixed z10prop attribute.
20502         (*negabsdi2_sign_cc): Fixed z10prop attribute.
20503         (*negabsdi2_sign): Fixed z10prop attribute.
20504         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
20505         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
20506         (doloop_si64): Fixed z10prop attribute.
20507         (doloop_si31): Fixed z10prop attribute.
20508         (doloop_long): Fixed z10prop attribute.
20509         (indirect_jump): Fixed z10prop attribute.
20510         (nop): Fixed z10prop attribute.
20511         (main_base_64): Fixed z10prop attribute.
20512         (reload_base_64): Fixed z10prop attribute.
20513
20514 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
20515
20516         PR rtl-optimization/38740
20517         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
20518         if !optimize.
20519         * config/mips/mips.c (mips_reorg): Likewise.
20520
20521 2009-01-28  Richard Guenther  <rguenther@suse.de>
20522
20523         PR tree-optimization/38926
20524         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
20525         with the correct value id to a value.
20526         (do_regular_insertion): Use the value number of edoubleprime
20527         for the value number of the expr.
20528
20529         Revert
20530         2008-08-21  Richard Guenther  <rguenther@suse.de>
20531
20532         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
20533         a PHI ask VN if it is already available.
20534         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
20535         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
20536
20537 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
20538
20539         PR middle-end/38934
20540         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
20541         set to varying whenever max has TREE_OVERFLOW set, similarly
20542         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
20543
20544 2009-01-28  Richard Guenther  <rguenther@suse.de>
20545
20546         PR middle-end/38908
20547         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
20548         uninitialized aggregate uses in call arguments.
20549
20550 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
20551
20552         PR tree-optimization/38984
20553         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
20554         the nothing_id variable if -fno-delete-null-pointer-checks.
20555
20556 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
20557
20558         PR target/38988
20559         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
20560         (set_got_offset_rex64): Ditto.
20561
20562 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
20563
20564         PR target/38941
20565         * doc/extend.texi: Improve local variable with asm reg.
20566
20567 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
20568
20569         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
20570         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
20571         was not supplied then set warn_packed_bitfield_compat to the
20572         default value of 1.
20573         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
20574         against 1.
20575
20576 2009-01-27  Richard Guenther  <rguenther@suse.de>
20577
20578         PR tree-optimization/38503
20579         * cfgexpand.c (expand_gimple_basic_block): Ignore
20580         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
20581         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
20582         variables that cannot have TBAA applied.
20583         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
20584         statements.
20585
20586 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
20587
20588         PR middle-end/38969
20589         * calls.c (initialize_argument_information): Do not wrap complex
20590         arguments in SAVE_EXPR.
20591
20592 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
20593
20594         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
20595         (INSTALL_LIBGCC): Revert typo commit.
20596
20597 2009-01-26  Richard Guenther  <rguenther@suse.de>
20598
20599         PR tree-optimization/38745
20600         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
20601         from special handling.
20602
20603 2009-01-26  Richard Guenther  <rguenther@suse.de>
20604
20605         PR tree-optimization/38745
20606         * tree-ssa.c (execute_update_addresses_taken): Do not include
20607         variables that cannot possibly be a register in not_reg_needs.
20608         Do not clear TREE_ADDRESSABLE on vars that may not become
20609         registers.
20610         * tree-ssa.c (update_alias_info_1): Include those in the set
20611         of addressable vars.
20612
20613 2009-01-26  Richard Guenther  <rguenther@suse.de>
20614
20615         PR middle-end/38851
20616         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
20617         * tree-ssa-dse.c: Include langhooks.h
20618         (execute_simple_dse): Remove stores with zero size.
20619
20620 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
20621
20622         PR c/38957
20623         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
20624         as PLUS_EXPR.
20625
20626 2009-01-24  Julian Brown  <julian@codesourcery.com>
20627
20628         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
20629         config/arm/linux-atomic.c.
20630         * config/arm/linux-atomic.c: New.
20631
20632 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
20633
20634         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
20635         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
20636         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
20637
20638 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
20639
20640         PR c/38938
20641         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
20642         properly.
20643
20644 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
20645
20646         PR tree-optimization/38953
20647         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
20648         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
20649         (gloog): Split the exit of the scop when the scop exit is a loop exit.
20650         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
20651         changed the CFG.
20652
20653 2009-01-24  Paul Brook  <paul@codesourcery.com>
20654
20655         * config/arm/neon.md (neon_type): Move to arm.md.
20656         (neon_mov<VSTRUCT>): Add neon_type attribute.
20657         * config/arm/arm.md (neon_type): Move to here.
20658         (conds): Add "unconditioal" and use as default for NEON insns.
20659
20660 2009-01-24  Ben Elliston  <bje@au.ibm.com>
20661
20662         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
20663         void *' warning from -Wc++-compat.
20664         * Makefile.in (dominance.o-warn): Remove.
20665
20666 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
20667
20668         PR tree-optimization/38932
20669         * fold-const.c (fold_unary_ignore_overflow): New.
20670         * tree.h (fold_unary_ignore_overflow): Declare.
20671         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
20672         * tree-ssa-sccvn.c (visit_reference_op_load,
20673         simplify_unary_expression): Likewise.
20674
20675 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
20676
20677         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
20678         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
20679         regardless of their type.
20680         * c-common.c (handle_packed_attribute): Don't ignore packed on
20681         bitfields.
20682         * c.opt (Wpacked-bitfield-compat): New warning option.
20683         * stor-layout.c (place_field): Warn if offset of a field changed.
20684         * doc/extend.texi (packed): Mention the ABI change.
20685         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
20686         (Warning Options): Add it to the list.
20687
20688 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
20689
20690         * c-opts.c (c_common_post_options): Fix a typo in comments.
20691
20692 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
20693
20694         PR middle-end/38615
20695         * gimplify.c (gimplify_init_constructor): Fix promotion of const
20696         variables to static.
20697         * doc/invoke.texi (-fmerge-all-constants): Update description.
20698
20699 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
20700
20701         PR target/38931
20702         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
20703         (*movdi_1_rex64): Use type "mmx" for alternative 5.
20704
20705 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
20706
20707         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
20708         a word boundary.
20709         (LOCAL_ALIGNMENT): Similarly.
20710
20711 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
20712             Joseph Myers  <joseph@codesourcery.com>
20713
20714         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
20715         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
20716         * config/arm/arm-tune.md: Regenerate.
20717         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
20718         -march=iwmmxt2.
20719
20720 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
20721
20722         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
20723         version number to five.
20724
20725 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
20726
20727         PR c++/38930
20728         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
20729         * c-common.c (set_underlying_type): Likewise.
20730         (is_typedef_decl ): Likewise
20731         * tree.h: Likewise
20732         (set_underlying_type): Likewise.
20733         (is_typedef_type): Likewise.
20734
20735 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
20736
20737         PR middle-end/38587
20738         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
20739         crossing setjmps.
20740
20741 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
20742
20743         PR bootstrap/37660
20744         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
20745         (LIBGCC_SPEC):  Don't define.
20746         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
20747
20748 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
20749
20750         PR rtl-optimization/38879
20751         * alias.c (base_alias_check): Unaligned access via AND address can
20752         alias all surrounding object types except those with sizes equal
20753         or wider than the size of unaligned access.
20754
20755 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
20756
20757         PR c++/26693
20758         * c-decl.c (clone_underlying_type): Move this ...
20759         * c-common.c (set_underlying_type): ... here.
20760         Also, make sure the function properly sets TYPE_STUB_DECL() on
20761         the newly created typedef variant type.
20762         (is_typedef_decl ): New entry point.
20763         * tree.h: Added a new member member_types_needing_access_check to
20764         struct tree_decl_non_common.
20765         (set_underlying_type): New entry point.
20766         (is_typedef_type): Likewise.
20767
20768 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
20769
20770         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
20771         Check whether two instructions have memory references that
20772         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
20773         are helper functions for traversing.
20774         * alias.h (insn_alias_sets_confilict_p): New prototypes.
20775         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
20776         not to draw dependency edge for instructions with non-conflicting
20777         alias sets.
20778
20779 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
20780
20781         PR other/38758
20782         * longlong.h: Update copyright years.  Use soft-fp license notice.
20783         Sync __clz_tab declaration with glibc.
20784
20785 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
20786
20787         PR target/30687
20788         * doc/extend.texi (syscall_linkage): New.
20789         (version_id): Modify.
20790
20791 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20792             Richard Guenther  <rguenther@suse.de>
20793
20794         PR tree-optimization/38747
20795         PR tree-optimization/38748
20796         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
20797         conversion if the base address is an indirect reference and the
20798         aliasing sets could cause issues.
20799
20800 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
20801
20802         * common.opt (fgraphite, fgraphite-identity): Add comment for
20803         explaining why these options are not documented.
20804
20805 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
20806
20807         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
20808         gimple_call_lhs is NULL.
20809
20810 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
20811
20812         PR target/38868
20813         * emit-rtl.c (adjust_address_1): Make sure memref is never
20814         overwritten.
20815
20816 2009-01-20  Ben Elliston  <bje@au.ibm.com>
20817
20818         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
20819         const qualifier from arg parameter. Remove unnecessary cast to char *.
20820         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
20821         const qualifier from arg 2.
20822
20823 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
20824
20825         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
20826
20827 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
20828
20829         PR c/38869
20830         * rtl.h (reinit_regs): New prototype.
20831         * regclass.c: Include ira.h.
20832         (reinit_regs): New.
20833         * Makefile.in (regclass.o): Add ira.h.
20834         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
20835
20836 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
20837
20838         PR target/38736
20839         * c-common.c (handle_aligned_attribute): Use
20840         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
20841         default alignment value.
20842
20843         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
20844
20845         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
20846         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
20847
20848         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
20849         __BIGGEST_ALIGNMENT__.
20850
20851         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
20852
20853 2009-01-18  Richard Guenther  <rguenther@suse.de>
20854
20855         PR tree-optimization/38819
20856         * tree-flow.h (operation_could_trap_helper_p): Declare.
20857         * tree-eh.c (operation_could_trap_helper_p): Export.
20858         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
20859         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
20860         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
20861         are about to insert a possibly trapping instruction and fail
20862         in this case.
20863
20864 2009-01-18  Andreas Schwab  <schwab@suse.de>
20865
20866         * doc/install.texi (Configuration): Remove obsolete paragraph
20867         about use of --with-gnu-ld with --with-gnu-as.
20868
20869 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
20870
20871         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
20872         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
20873         Follow spelling conventions.
20874
20875 2009-01-18  Ben Elliston  <bje@au.ibm.com>
20876
20877         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
20878         C++ warning about implicit conversion from void * to struct
20879         bitmap_head_def *.
20880         (bitmap_obstack_free): Likewise for bitmap_element *.
20881         * Makefile.in (bitmap.o-warn): Remove.
20882
20883 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
20884
20885         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
20886
20887 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
20888             Tobias Grosser  <tobi.grosser@amd.com>
20889
20890         * graphite.c (graphite_trans_scop_block): Do not block single
20891         nested loops.
20892
20893 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
20894
20895         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
20896         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
20897         test with assertion.
20898
20899 2009-01-16  Richard Guenther  <rguenther@suse.de>
20900
20901         PR tree-optimization/38835
20902         PR middle-end/36227
20903         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
20904         and INT + PTR -> (INT)(PTR p+ INT) folding.
20905         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
20906
20907 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
20908
20909         PR target/38554
20910         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
20911         the subreg from a lowpart subreg if it is also casting the value.
20912
20913 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
20914             Tobias Grosser  <tobi.grosser@amd.com>
20915
20916         * graphite.c (compare_prefix_loops): New.
20917         (build_scop_canonical_schedules): Rewritten.
20918         (graphite_transform_loops): Move build_scop_canonical_schedules
20919         after build_scop_iteration_domain.
20920
20921 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
20922             Tobias Grosser  <tobi.grosser@amd.com>
20923
20924         * graphite.c (add_conditions_to_domain): Add the loops to
20925         the dimension of the iteration domain.  Do copy the domain
20926         only when it exists.
20927         (build_scop_conditions_1): Do not call add_conditions_to_domain.
20928         (add_conditions_to_constraints): New.
20929         (can_generate_code_stmt, can_generate_code): Removed.
20930         (gloog): Do not call can_generate_code.
20931         (graphite_transform_loops): Call add_conditions_to_constraints
20932         after building the iteration domain.
20933
20934 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
20935
20936         PR tree-optimization/38789
20937         * tree-ssa-threadedge.c
20938         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
20939         __builtin_constant_p.
20940
20941 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
20942
20943         * dce.c (delete_unmarked_insns): Reversed the order that insns are
20944         examined before deleting them.
20945
20946 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
20947
20948         * function.c (aggregate_value_p): Correctly extract the function
20949         type from CALL_EXPR_FN lookup.
20950
20951 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
20952
20953         * config/picochip/picochip.c (picochip_override_options): Revert
20954         CFI asm flag disable commited previously.
20955
20956 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
20957             Tobias Grosser  <tobi.grosser@amd.com>
20958             Jan Sjodin  <jan.sjodin@amd.com>
20959
20960         * graphite.c (scan_tree_for_params): On substractions negate
20961         all the coefficients of the term.
20962         (clast_to_gcc_expression_red): New.  Handle reduction expressions
20963         of more than two operands.
20964         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
20965         (get_vdef_before_scop): Handle also the case of default definitions.
20966
20967 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
20968
20969         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
20970         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
20971         Also use them when walking CALL_INSN_FUNCTION_USAGE.
20972
20973 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
20974             Joey Ye  <joey.ye@intel.com>
20975
20976         PR middle-end/37843
20977         * cfgexpand.c (expand_stack_alignment): Don't update stack
20978         boundary nor check incoming stack boundary here.
20979         (gimple_expand_cfg): Update stack boundary and check incoming
20980         stack boundary here.
20981
20982 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
20983
20984         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
20985
20986 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
20987
20988         PR rtl-optimization/38245
20989         * calls.c (expand_call): Add stack arguments to
20990         CALL_INSN_FUNCTION_USAGE even for pure calls (when
20991         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
20992         in regs and partially in memory or BLKmode arguments.
20993         (emit_library_call_value_1): Add stack arguments to
20994         CALL_INSN_FUNCTION_USAGE even for pure calls (when
20995         ACCUMULATE_OUTGOING_ARGS).
20996         * dce.c: Include tm_p.h.
20997         (find_call_stack_args): New function.
20998         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
20999         argument.
21000         (mark_insn): Call find_call_stack_args for CALL_Ps.
21001         (prescan_insns_for_dce): Walk insns backwards in bb rather than
21002         forwards.  Allocate and free arg_stores bitmap if needed, pass it
21003         down to deletable_insn_p, don't mark stores set in arg_stores
21004         bitmap, clear the bitmap at the beginning of each bb.
21005         * Makefile.in (dce.o): Depend on $(TM_P_H).
21006
21007 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
21008
21009         PR target/22599
21010         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
21011         to make sure the insn is a conditional test (bug 22599).  Reformat a
21012         few long lines.
21013
21014 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
21015
21016         PR middle-end/38431
21017         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
21018         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
21019         (gloog): Do not call cleanup_tree_cfg.
21020         (graphite_transform_loops): Call cleanup_tree_cfg after all
21021         scops have been code generated.
21022
21023 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
21024         * doc/gty.texi (Invoking the garbage collector): Added new node
21025         and section documenting ggc_collect.
21026
21027 2009-01-14  Richard Guenther  <rguenther@suse.de>
21028
21029         PR tree-optimization/38826
21030         PR middle-end/38477
21031         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
21032         initialization notes only if we actually emitted a warning.
21033         (intra_create_variable_infos): Add constraints for a result decl
21034         that is passed by hidden reference.
21035         (build_pred_graph): Mark all related variables non-direct on
21036         address-taking.
21037
21038 2009-01-14  Nick Clifton  <nickc@redhat.com>
21039
21040         * ira-conflicts.c: Include addresses.h for the definition of
21041         base_reg_class.
21042         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
21043         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
21044
21045 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
21046
21047         PR target/38811
21048         * Makefile.in (ira-lives.o): Add except.h.
21049
21050         * ira-lives.c: Include except.h.
21051         (process_bb_node_lives): Process can_throw_internal.
21052
21053 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
21054
21055         PR rtl-optimization/38774
21056         * combine.c (simplify_set): When undoing cc_use change, don't do
21057         PUT_CODE on the newly created comparison, but instead put back the
21058         old comparison.
21059
21060 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
21061
21062         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
21063         values.  Remove duplicate arm8 entry.
21064
21065 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
21066
21067         PR tree-optimization/38786
21068         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
21069         the SSA_NAME case of expand_scalar_variables_expr.
21070         Set the type of an expression to the type of its assign statement.
21071         (expand_scalar_variables_expr): Also gather the scalar computation
21072         used to index the memory access.  Do not pass loop_p.
21073         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
21074         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
21075         the gimple_stmt_iterator where it inserts new code.
21076         Do not pass loop_p.
21077         (copy_bb_and_scalar_dependences): Do not pass loop_p.
21078         (translate_clast): Update call to copy_bb_and_scalar_dependences.
21079
21080 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
21081
21082         * graphite.h (debug_value): Removed.
21083         * graphite.c (debug_value): Removed.
21084
21085 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
21086
21087         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
21088         ldrd/strd with two 32-bit instructions.
21089
21090 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
21091
21092         * config/arm/arm.c (struct processors): Pass for speed down into
21093         cost helper functions.
21094         (const_ok_for_op): Handle COMPARE and inequality nodes.
21095         (arm_rtx_costs_1): Rewrite.
21096         (arm_size_rtx_costs): Update prototype.
21097         (arm_rtx_costs): Pass speed down to helper functions.
21098         (arm_slowmul_rtx_costs): Rework cost calculations.
21099         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
21100         (arm_9e_rtx_costs): Likewise.
21101
21102 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
21103
21104         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
21105         relocations of local symbols wider than UNITS_PER_WORD are not valid.
21106         (alpha_legitimize_address): Do not split local symbols wider than
21107         UNITS_PER_WORD into HIGH/LO_SUM parts.
21108
21109 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
21110
21111         PR bootstrap/38580
21112         * gcc.c (process_command): Replace call to execvp with calls
21113         to pex_one and exit.
21114
21115 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
21116
21117         PR target/29141
21118         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
21119         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
21120         variant for devices with 3-byte PC.
21121         (__tablejump_elpm__): New.
21122
21123 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
21124
21125         PR c/32041
21126         * c-parser.c (c_parser_postfix_expression): Allow `->' in
21127         offsetof member-designator, handle it as `[0].'.
21128
21129 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21130
21131         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
21132         function when not using named sections on targets with named sections
21133         if branch distance is less than 262132.
21134
21135 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
21136
21137         * combine.c (combine_instructions):  Recompute
21138         optimize_this_for_speed_p  for each BB in the main combine loop.
21139
21140 2009-01-12  Tomas Bily  <tbily@suse.cz>
21141
21142         PR middlend/38385
21143         * tree-loop-distribution.c (prop_phis): New function.
21144         (generate_builtin): Call prop_phis.
21145         * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
21146
21147 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
21148
21149         PR tree-optimization/38807
21150         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
21151         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
21152
21153 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
21154
21155         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
21156         subreg of op0 to the original op0.
21157
21158 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
21159
21160         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
21161
21162 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
21163
21164         PR debug/7055
21165         * mips-tfile.c (parse_def): Fix parsing of def strings
21166         starting with digits.
21167
21168 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
21169
21170         PR target/38695
21171         * config/arm/arm.c (arm_is_long_call_p): Don't call
21172         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
21173
21174 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
21175
21176         * regrename.c (regrename_optimize): Fix dumping.
21177         (find_oldest_value_reg): Preserve REG_POINTER.
21178         (copy_hardreg_forward_1): Likewise.
21179
21180 2009-01-09  Diego Novillo  <dnovillo@google.com>
21181
21182         * gimple.h (struct gimple_statement_base) <uid>: Document
21183         the restrictions on its use.
21184         (gimple_uid): Tidy.
21185         (gimple_set_uid): Tidy.
21186
21187 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
21188
21189         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
21190         zero guard even if align_bytes != 0 and count is smaller than
21191         size_needed.
21192
21193 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
21194
21195         PR rtl-optimization/38495
21196         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
21197         (add_range_and_copies_from_move_list): Print all added ranges.
21198         Add ranges to memory optimized destination.
21199
21200 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
21201
21202         PR target/38686
21203         PR target/38708
21204         * config/i386/i386.c (override_options): Reject
21205         -mstringop-strategy=rep_8byte with -m32.
21206         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
21207         to 1.  Do count comparison against epilogue_size_needed at compile
21208         time even when count_exp was constant forced into register.  For
21209         size_needed don't jump to epilogue, instead just avoid aligning
21210         and invoke the body algorithm.  If need_zero_guard, add zero guard
21211         even if count is non-zero, but smaller than size_needed + number of
21212         bytes that could be stored for alignment.
21213         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
21214         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
21215         but smaller than size_needed + number of bytes that could be stored
21216         for alignment.  Compare size_needed with epilogue_size_needed instead
21217         of desired_align - align, don't adjust size_needed, pass
21218         epilogue_size_needed to the epilogue expanders.
21219
21220         PR c/35742
21221         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
21222
21223 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21224
21225         * pa.c (last_address): Change to unsigned.
21226         (update_total_code_bytes): Change argument to unsigned.  Don't
21227         check if insn addresses are set.
21228         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
21229         addresses are not set.
21230         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
21231
21232 2009-01-09  Nick Clifton  <nickc@redhat.com>
21233
21234         * config/sh/symbian.c: Replace uses of DECL_INLINE with
21235         DECL_DECLARED_INLINE_P.
21236
21237 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
21238
21239         PR middle-end/38347
21240         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
21241         GET_MODE (op0) in operand_subword_force calls.
21242
21243         PR middle-end/38771
21244         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
21245         fold_convert arg0 operands to TREE_TYPE (op0) first.
21246
21247 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
21248
21249         * params.def (ira-max-conflict-table-size): Decrease default value
21250         to 1000.
21251
21252 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
21253
21254         PR tree-optimization/37031
21255         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
21256         on parameter_set.
21257         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
21258         allocate it using gc instead of heap, use VEC_quick_push instead of
21259         VEC_safe_push.
21260         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
21261         instead of heap, use VEC_quick_push instead of VEC_safe_push.
21262         * tree-data-ref.h (struct access_matrix): Change matrix to gc
21263         allocated vector from heap allocated.
21264         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
21265         * tree-loop-linear.c (linear_transform_loops): Allocate nest
21266         vector only after perfect_loop_nest_depth call.
21267
21268 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
21269             Jan Sjodin  <jan.sjodin@amd.com>
21270
21271         PR tree-optimization/38559
21272         * graphite.c (debug_value, copy_constraint,
21273         swap_constraint_variables, scale_constraint_variable, ): New.
21274         (get_lower_bound, get_upper_bound): Removed.
21275         (graphite_trans_bb_strip_mine): Clean up this code that works
21276         only for constant number of iterations.  Fully copy upper and
21277         lower bound constraints, not only the constant part of them.
21278         * graphite.h (debug_value): Declared.
21279
21280 2009-01-08  Ira Rosen  <irar@il.ibm.com>
21281
21282         PR tree-optimization/37194
21283         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
21284         Don't add the cost of cost model guard in prologue to scalar
21285         outside cost in case of known number of iterations.
21286
21287 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
21288             Alan Modra  <amodra@bigpond.net.au>
21289
21290         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
21291         non-word-aligned REG+CONST addressing.
21292
21293 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
21294
21295         PR target/38706
21296         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
21297         free_after_compilation when outputting a thunk.
21298         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
21299         Do not call free_after_compilation here.
21300
21301 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
21302
21303         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
21304         (ix86_valid_target_attribute_inner_p): Ditto.
21305
21306 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
21307
21308         PR tree-optimization/38492
21309         PR tree-optimization/38498
21310         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
21311         * tree-chrec.h (scev_is_linear_expression): Declared.
21312         * graphite.c (graphite_cannot_represent_loop_niter): New.
21313         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
21314         (graphite_loop_normal_form): Use gcc_assert.
21315         (scan_tree_for_params): Use CASE_CONVERT.
21316         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
21317         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
21318         Use gcc_assert.  Discard scops that contain unhandled cases.
21319         (build_scop_conditions): Return a boolean status for unhandled cases.
21320         (strip_mine_profitable_p): Print the loop number, not its depth.
21321         (is_interchange_valid): Pass the depth of the loop nest, don't
21322         recompute it wrongly.
21323         (graphite_trans_bb_block): Same.
21324         (graphite_trans_bb_block): Print tentative of loop blocking.
21325         (graphite_trans_scop_block): Do not print that the loop has been
21326         blocked.
21327         (graphite_transform_loops): Do not handle scops that contain condition
21328         scalar phi nodes.
21329
21330 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
21331
21332         AVX Programming Reference (December, 2008)
21333         * config/i386/avxintrin.h (_mm256_stream_si256): New.
21334         (_mm256_stream_pd): Likewise.
21335         (_mm256_stream_ps): Likewise.
21336
21337         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
21338         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
21339         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
21340         (bdesc_special_args): Add __builtin_ia32_movntdq256,
21341         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
21342         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
21343         (ix86_expand_special_args_builtin): Likewise.
21344
21345         * config/i386/sse.md (AVXMODEDI): New.
21346         (avx_movnt<mode>): Likewise.
21347         (avx_movnt<mode>): Likewise.
21348         (<sse>_movnt<mode>): Remove AVX support.
21349         (sse2_movntv2di): Likewise.
21350
21351 2009-01-07  Richard Guenther  <rguenther@suse.de>
21352
21353         PR middle-end/38751
21354         * fold-const.c (extract_muldiv): Remove obsolete comment.
21355         (fold_plusminus_mult_expr): Undo MINUS_EXPR
21356         to PLUS_EXPR canonicalization for the canonicalization.
21357
21358 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
21359
21360         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
21361         hosted cross-compilers generating less efficient code.
21362
21363 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
21364
21365         * function.h (rtl_data): Add a dbr_scheduled_p field.
21366         * reorg.c (dbr_schedule): Set it.
21367         (gate_handle_delay_slots): Check it.
21368         * config/mips/mips.c (mips_base_delayed_branch): Delete.
21369         (mips_reorg): Check flag_delayed_branch instead of
21370         mips_base_delayed_branch.
21371         (mips_override_options): Don't set mips_base_delayed_branch
21372         or flag_delayed_branch.
21373
21374 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
21375
21376         PR rtl-optimization/38426.
21377         * ira.c (ira): Set current_function_is_leaf earlier.
21378
21379 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
21380
21381         PR rtl-optimization/38722
21382         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
21383         too early, only set a flag and modify after last possible
21384         undo_all point.
21385
21386 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
21387
21388         PR c/34252
21389         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
21390         * real.c (decimal_single_format): Correct values of emin and emax.
21391         (decimal_double_format): Ditto.
21392         (decimal_quad_format): Ditto.
21393         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
21394         computation of DECnn_MIN and DECnn_MAX for corrected values of
21395         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
21396         __DECnn_MIN__, and adjust its computation for the corrected value
21397         of emin.
21398
21399 2009-01-06  Jan Hubicka  <jh@suse.cz>
21400
21401         PR target/38744
21402         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
21403
21404 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
21405
21406         * doc/contrib.texi (Contributors): Slightly adjust the end note.
21407         Add Robert Clark to the list of testers.
21408
21409 2009-01-06  Jan Hubicka  <jh@suse.cz>
21410             Kai Tietz  <kai.tietz@onevision.com>
21411
21412         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
21413         * config/i386/i386.c (ix86_expand_call): Add clobbers.
21414
21415 2009-01-06  Jan Hubicka  <jh@suse.cz>
21416             Kai Tietz  <kai.tietz@onevision.com>
21417
21418         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
21419         for w64 ABI.
21420         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
21421         (ix86_nsaved_regs): Count only general purpose regs.
21422         (ix86_nsaved_sseregs): New.
21423         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
21424         to 16 for w64; compute padding and size of sse reg save area.
21425         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
21426         general purpose regs.
21427         (ix86_emit_save_sse_regs_using_mov): New.
21428         (ix86_expand_prologue): Save SSE regs if needed.
21429         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
21430         (ix86_emit_restore_sse_regs_using_mov): New.
21431         (ix86_expand_epilogue): Save SSE regs if needed.
21432
21433 2009-01-06  Jan Hubicka  <jh@suse.cz>
21434             Kai Tietz  <kai.tietz@onevision.com>
21435
21436         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
21437         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
21438         functions when accumulate outgoing args is off.
21439
21440 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
21441
21442         PR bootstrap/38742
21443         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
21444         before using pseudos_have_intersected_live_ranges_p.
21445
21446         * ira-int.h (ira_assert): Always define.
21447
21448 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
21449
21450         AVX Programming Reference (December, 2008)
21451         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
21452         (_mm256_permute2_pd): Likewise.
21453         (_mm_permute2_ps): Likewise.
21454         (_mm256_permute2_ps): Likewise.
21455         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
21456         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
21457
21458         * config/i386/i386.c (ix86_builtins): Remove
21459         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
21460         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
21461         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
21462         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
21463         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
21464         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
21465         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
21466         __builtin_ia32_vpermil2ps256.
21467         (ix86_init_mmx_sse_builtins): Updated.
21468         (ix86_expand_args_builtin): Likewise.
21469
21470 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21471
21472         * pa.c (output_call): Relocate non-jump insns in the delay slot of
21473         long absolute calls when generating PA 2.0 code.
21474
21475 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
21476
21477         PR rtl-optimization/38583
21478         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
21479
21480         * params.def (ira-max-conflict-table-size): New.
21481
21482         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
21483
21484         * ira.h (ira_conflicts_p): New external definition.
21485
21486         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
21487         table.  Report this.  Return result of building.
21488         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
21489         building conflict table.
21490
21491         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
21492         (ira_color): Use ira_conflicts_p.
21493
21494         * global.c: Include ira.h.
21495         (pseudo_for_reload_consideration_p, build_insn_chain): Use
21496         ira_conflicts_p.
21497
21498         * Makefile.in (global.o): Add ira.h.
21499
21500         * ira-build.c (mark_all_loops_for_removal,
21501         propagate_some_info_from_allocno): New.
21502         (remove_unnecessary_allocnos): Call
21503         propagate_some_info_from_allocno.
21504         (remove_low_level_allocnos): New.
21505         (remove_unnecessary_regions): Add parameter.  Call
21506         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
21507         parameter to remove_unnecessary_regions.
21508         (ira_build): Remove all regions but root if the conflict table was
21509         not built.  Update conflict hard regs for allocnos crossing calls.
21510
21511         * ira.c (ira_conflicts_p): New global.
21512         (ira): Define and use ira_conflicts_p.
21513
21514         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
21515         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
21516         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
21517
21518 2009-01-06  Ben Elliston  <bje@au.ibm.com>
21519
21520         * gengtype-lex.l (YY_NO_INPUT): Define.
21521
21522 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21523
21524         PR c/34911
21525         * c-common.c (handle_vector_size_attribute): Also reject
21526         BOOLEAN_TYPE types.
21527
21528 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
21529
21530         PR tree-optimization/38492
21531         * graphite.c (rename_map_elt, debug_rename_elt,
21532         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
21533         rename_map_elt_info, eq_rename_map_elts,
21534         get_new_name_from_old_name, bb_in_sese_p): Moved around.
21535         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
21536         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
21537         (sese_build_livein_liveouts): New.
21538         (new_sese, free_sese): New.
21539         (new_scop): Call new_sese.
21540         (free_scop): Call free_sese.
21541         (rename_variables_from_edge, rename_phis_end_scop): Removed.
21542         (register_old_new_names): Renamed register_old_and_new_names.
21543         (register_scop_liveout_renames, add_loop_exit_phis,
21544         insert_loop_close_phis, struct igp,
21545         default_liveout_before_guard, add_guard_exit_phis,
21546         insert_guard_phis, copy_renames): New.
21547         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
21548         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
21549         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
21550         (scop_adjust_phis_for_liveouts): New.
21551         (gloog): Call scop_adjust_phis_for_liveouts.
21552
21553         * graphite.h (struct sese): Documented.  Added fields liveout,
21554         num_ver and livein.
21555         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
21556         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
21557         (struct scop): Added field liveout_renames.
21558         (SCOP_LIVEOUT_RENAMES): New.
21559
21560 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
21561
21562         PR tree-optimization/38510
21563         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
21564         (translate_clast): Call recompute_all_dominators before
21565         graphite_verify.
21566         (gloog): Call recompute_all_dominators before graphite_verify.
21567
21568 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
21569             Jan Sjodin  <jan.sjodin@amd.com>
21570
21571         PR tree-optimization/38500
21572         * graphite.c (create_sese_edges): Call fix_loop_structure after
21573         splitting blocks.
21574
21575 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
21576
21577         * config.gcc: Add m32r*-*-rtems*.
21578         * config/m32r/rtems.h: New file.
21579
21580 2009-01-05  Ben Elliston  <bje@au.ibm.com>
21581
21582         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
21583         (.po.pox): Likewise.
21584         (po/gcc.pot): Likewise.
21585
21586 2009-01-04  David S. Miller  <davem@davemloft.net>
21587
21588         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
21589         (STARTING_FRAME_OFFSET): Always set to zero.
21590
21591 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
21592
21593         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
21594         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
21595         fixed-point types, and vectors of the same.
21596
21597 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
21598
21599         * config/mips/sync.md (*mb_barrier): Rename to...
21600         (*memory_barrier): ...this.
21601
21602 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
21603
21604         * doc/extend.texi (Function Attributes): Move @cindex after @item
21605         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
21606         and put in alphabetical order. Fix 'target' name and put in order.
21607         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
21608         typos.
21609
21610 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
21611
21612         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
21613         (memory_barrier): Expand as unspec instead of unspec_volatile.
21614         Remove mem:BLK from insn operands.  Use Pmode scratch register.
21615         (*memory_barrier): Define as unspec instead of unspec_volatile.
21616         Use (match_dup 0) as input operand.
21617
21618         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
21619         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
21620         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
21621         scratch register.  Remove operand 1.
21622         (*stbar): Define as unspec instead of unspec_volatile.
21623         Use (match_dup 0) as input operand, remove (const_int 8).
21624         (*membar): Define as unspec instead of unspec_volatile.
21625         Use (match_dup 0) as input operand, remove input operand 2.
21626
21627         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
21628         (memory_barrier): Expand as unspec instead of unspec_volatile.
21629         Remove mem:BLK from insn operands.  Use Pmode scratch register.
21630         (*memory_barrier): Define as unspec instead of unspec_volatile.
21631         Use (match_dup 0) as input operand.
21632
21633         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
21634         Remove mem:BLK from insn operands.  Use Pmode scratch register.
21635         Set volatile flag on operand 0.
21636         (*memory_barrier): New insn pattern.
21637
21638         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
21639         insn operands.
21640         (*memory_barrier): Use (match_dup 0) as input operand.
21641
21642         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
21643         Remove mem:BLK from insn operands.  Use Pmode scratch register.
21644         Set volatile flag on operand 0.
21645         (*mb_internal): New insn pattern.
21646
21647         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
21648
21649 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
21650
21651         PR middle-end/38586
21652         * function.c (struct temp_slot): Move to the section of the file
21653         that deals with temp slots.  Remove field 'address'.
21654         (temp_slot_address_table): New hash table of address -> temp slot.
21655         (struct temp_slot_address_entry): New struct, items for the table.
21656         (temp_slot_address_compute_hash, temp_slot_address_hash,
21657         temp_slot_address_eq, insert_temp_slot_address): Support functions
21658         for the new table.
21659         (find_temp_slot_from_address): Rewrite to use the new hash table.
21660         (remove_unused_temp_slot_addresses): Remove addresses of temp
21661         slots that have been made available.
21662         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
21663         worker function for remove_unused_temp_slot_addresses.
21664         (assign_stack_temp_for_type): Don't clear the temp slot address list.
21665         Add the temp slot address to the address -> temp slot map.
21666         (update_temp_slot_address): Update via insert_temp_slot_address.
21667         (free_temp_slots): Call remove_unused_temp_slot_addresses.
21668         (pop_temp_slots): Likewise.
21669         (init_temp_slots): Allocate the address -> temp slot map, or empty
21670         the map if it is already allocated.
21671         (prepare_function_start): Initialize temp slot processing.
21672
21673 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
21674
21675         PR middle-end/38584
21676         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
21677         Calculate the size of all stack vars assuming no packing of stack
21678         vars will happen, replacing a quadratic algorithm with a linear one.
21679
21680 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
21681
21682         PR target/38707
21683         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
21684         can't be used.
21685
21686 2009-01-03  Diego Novillo  <dnovillo@google.com>
21687
21688         * doc/contrib.texi: Update contributions.
21689
21690 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
21691
21692         PR c++/38705
21693         * builtins.c (fold_builtin_memory_op): Give up if either operand
21694         is volatile.  Set srctype or desttype to non-qualified version
21695         of the other type.
21696
21697         PR c/38700
21698         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
21699         and FUNCTION_DECLs.
21700
21701 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
21702
21703         PR rtl-optimization/35805
21704         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
21705         problem if fast dce is able to remove any instructions.
21706         * dce.c (dce_process_block): Fix dump message.
21707
21708 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
21709
21710         PR 33649
21711         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
21712
21713 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
21714
21715         PR middle-end/38690
21716         * tree-flow.h (op_code_prio, op_prio): New prototypes.
21717         * tree-pretty-print.c (op_code_prio): New function.
21718         (op_prio): No longer static.  Use op_code_prio.
21719         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
21720         Use op_prio and op_code_prio to determine if () should be
21721         printed around operand(s) or not.
21722
21723         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
21724         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
21725         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
21726         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
21727         pp_character instead of pp_string for single letter printing.
21728
21729 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
21730
21731         * doc/extend.texi: Fix '#pragma GCC option' typo.
21732
21733 2009-01-02  Richard Guenther  <rguenther@suse.de>
21734
21735         * doc/install.texi (--enable-checking): Mention different
21736         default for stage1.
21737         (--enable-stage1-checking): Document.
21738
21739 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
21740
21741         PR middle-end/30142
21742         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
21743         case to be an error.
21744
21745 2009-01-02  Ben Elliston  <bje@au.ibm.com>
21746
21747         * config/fp-bit.h (pack_d): Constify argument.
21748         * config/fp-bit.c (makenan): Constify return type. Remove casts.
21749         (isnan): Constify argument.
21750         (isinf): Likewise.
21751         (iszero): Likewise.
21752         (pack_d): Likewise.
21753         (_fpadd_parts): Constify return type.
21754         (_fpmul_parts): Likewise.
21755         (_fpdiv_parts): Likewise.
21756
21757 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
21758
21759         PR c/36489
21760         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
21761         warn about overwriting initializer with side-effects or
21762         -Woverride-init if !IMPLICIT.
21763         (output_init_element): Likewise.  Pass IMPLICIT down to
21764         add_pending_init.
21765         (process_init_element): Add IMPLICIT argument.  Pass it down
21766         to output_init_element.
21767         (push_init_element, pop_init_level, set_designator): Adjust
21768         process_init_element callers.
21769         (set_nonincremental_init, set_nonincremental_init_from_string):
21770         Adjust add_pending_init callers.
21771         (output_pending_init_elements): Adjust output_init_element callers.
21772         * c-tree.h (process_init_element): Adjust prototype.
21773         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
21774         process_init_element callers.
21775
21776 \f
21777 Copyright (C) 2009 Free Software Foundation, Inc.
21778
21779 Copying and distribution of this file, with or without modification,
21780 are permitted in any medium without royalty provided the copyright
21781 notice and this notice are preserved.