OSDN Git Service

* trans.c (convert_with_check): Update call to real_2expN.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-09-06  Revital Eres  <eres@il.ibm.com>
2
3         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
4         Fix offsettable memory reference for 750CL.
5
6 2007-09-06  Pat Haugen  <pthaugen@us.ibm.com>
7
8         * reload.c (find_reloads_address_1): Try to preserve original
9         base/index regclass of operands.
10         * regrename.c (scan_rtx_address): Likewise.
11         (replace_oldest_value_addr): Likewise.
12
13 2007-09-06  Richard Guenther  <rguenther@suse.de>
14
15         PR tree-optimization/33302
16         * domwalk.c (walk_dominator_tree): The exit block is
17         interesting even if it is not reachable.
18
19 2007-09-06  Richard Sandiford  <richard@codesourcery.com>
20
21         PR middle-end/33306
22         * optabs.c (avoid_expensive_constant): Do nothing if MODE is VOIDmode.
23
24 2007-09-06  Basile Starynkevitch  <basile@starynkevitch.net>
25
26         * cfg.c (dump_bb_info, dump_edge_info): Added cfun test for 
27         robustness.
28
29 2007-09-05  Ian Lance Taylor  <iant@google.com>
30
31         * tree-pretty-print.c (dump_decl_name): Cast LABEL_DECL_UID to int
32         when printing.
33         (dump_generic_node): Likewise.
34         * print-rtl.c (print_decl_name): Likewise.
35         * print-tree.c (print_node_brief): Likewise.
36         (print_node): Likewise.
37         * Makefile.in (RTL_BASE_H): Add alias.h.
38         (TREE_H): Likewise.
39
40 2007-09-06  Jesper Nilsson  <jesper.nilsson@axis.com>
41
42         * longlong.h [__CRIS_arch_version >= 8] (count_trailing_zeros):
43         Defined.
44         * config/cris/cris.md (ctzsi2, cris_swap_bits): Implemented.
45         * config/cris/cris.h (CTZ_DEFINED_VALUE_AT_ZERO): Defined.
46
47 2007-09-06  Jie Zhang  <jie.zhang@analog.com>
48
49         * config.gcc (tm_file): Add linux.h for bfin*-uclinux*.
50         (tm_defines): Define UCLIBC_DEFAULT to 1.
51         (extra_options): Add linux.opt.
52         * config/bfin/linux.h (CPLUSPLUS_CPP_SPEC): Don't define.
53         (CRT_CALL_STATIC_FUNCTION): Likewise.
54         (NO_IMPLICIT_EXTERN_C): Likewise.
55         (TARGET_OS_CPP_BUILTINS): Define as LINUX_TARGET_OS_CPP_BUILTINS.
56         * config/bfin/elf.h (OBJECT_FORMAT_ELF): Don't define.
57         * config/bfin/uclinux.h (CPLUSPLUS_CPP_SPEC): Don't define.
58         (ENDFILE_SPEC): Don't define.
59         (LIB_SPEC): Likewise.
60         (CRT_CALL_STATIC_FUNCTION): Likewise.
61         (NO_IMPLICIT_EXTERN_C): Likewise.
62         (LINUX_TARGET_OS_CPP_BUILTINS): Likewise.
63         (TARGET_OS_CPP_BUILTINS): Define as LINUX_TARGET_OS_CPP_BUILTINS.
64
65 2007-09-06  Jan Hubicka  <jh@suse.cz>
66
67         * i386.c (ix86_expand_lround, ix86_expand_round): Update call of
68         real_2expN.
69
70 2007-09-06  Jan Hubicka  <jh@suse.cz>
71
72         * opts.c (common_handle_option): Enable inlining functions for
73         -fprofile-generate.
74
75 2007-09-06  Jakub Jelinek  <jakub@redhat.com>
76
77         * builtin-attrs.def (ATTR_NONNULL_3): New.
78         (DEF_FORMAT_ATTRIBUTE): Use just ATTR_NONNULL_##FA instead of
79         ATTR_NOTHROW_NONNULL_##FA.
80         (DEF_FORMAT_ATTRIBUTE_NOTHROW, DEF_FORMAT_ATTRIBUTE_BOTH): New macros.
81         (ATTR_FORMAT_PRINTF_NOTHROW_2_0, ATTR_PRINTF_NOTHROW_2_3,
82         ATTR_FORMAT_PRINTF_NOTHROW_3_0, ATTR_FORMAT_PRINTF_NOTHROW_3_4,
83         ATTR_FORMAT_PRINTF_NOTHROW_4_0, ATTR_PRINTF_NOTHROW_4_5,
84         ATTR_FORMAT_PRINTF_NOTHROW_5_0, ATTR_FORMAT_PRINTF_NOTHROW_5_6,
85         ATTR_FORMAT_SCANF_NOTHROW_2_0, ATTR_FORMAT_SCANF_NOTHROW_2_3,
86         ATTR_FORMAT_STRFTIME_NOTHROW_3_0, ATTR_FORMAT_STRFMON_NOTHROW_3_4):
87         New.
88         (ATTR_FORMAT_PRINTF_4_0, ATTR_PRINTF_4_5, ATTR_FORMAT_PRINTF_5_0,
89         ATTR_FORMAT_PRINTF_5_6, ATTR_FORMAT_STRFTIME_3_0,
90         ATTR_FORMAT_NOTHROW_3_4): Remove.
91         * builtins.def (snprintf, sprintf, sscanf, vsnprintf, vsprintf,
92         vsscanf, strfmon, strftime, __snprintf_chk, __sprintf_chk,
93         __vsnprintf_chk, __vsprintf_chk): Use ATTR_FORMAT_*_NOTHROW_*
94         instead of ATTR_FORMAT_*_*.
95
96 2007-09-06  Hans-Peter Nilsson  <hp@axis.com>
97
98         * config/cris/cris.c (cris_emit_movem_store): Call copy_rtx on
99         parts re-used for REG_FRAME_RELATED_EXPR.
100
101 2007-09-05  Janis Johnson  <janis187@us.ibm.com>
102
103         * optabs.c (expand_float): Convert unsigned integer as signed only
104         if it provides sufficient accuracy; add mode argument to real_2expN.
105         (expand_fix): Fix comment typos; extend binary float into mode
106         wider than destination for converion to unsigned integer; add mode
107         argument to real_2expN.
108         * real.c (real_2expN): Add mode argument to special-case decimal
109         float values.
110         * real.h (real_2expN): Ditto.
111         * fixed-value.c (check_real_for_fixed_mode): Add mode argument to
112         real_2expN.
113         (fixed_from_string): Ditto.
114         (fixed_to_decimal): Ditto.
115         (fixed_convert_from_real): Ditto.
116         (real_convert_from_fixed): Ditto.
117         * config/rs6000/rs6000.md (FP): Include DD and TD modes.
118         * config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
119         muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
120         floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
121
122 2007-09-05  Ian Lance Taylor  <iant@google.com>
123
124         * init-regs.c (initialize_uninitialized_regs): Call
125         emit_insn_before rather than add_insn_before.
126
127 2007-09-05  Jakub Jelinek  <jakub@redhat.com>
128
129         * builtins.def (BUILT_IN_VA_ARG_PACK): New built-in.
130         * tree.h (CALL_EXPR_VA_ARG_PACK): Define.
131         * tree-inline.h (copy_body_data): Add call_expr field.
132         * tree-inline.c (expand_call_inline): Initialize call_expr.
133         (copy_bb): Append anonymous inline fn arguments to arguments
134         when inlining a CALL_EXPR_VA_ARG_PACK call.
135         * builtins.c (expand_builtin): Issue an error if
136         BUILT_IN_VA_ARG_PACK is seen during expand.
137         (fold_call_expr, fold_builtin_call_array): Don't fold
138         CALL_EXPR_VA_ARG_PACK CALL_EXPRs or calls with
139         __builtin_va_arg_pack () call as last argument.
140         * gimplify.c (gimplify_call_expr): If last argument to a vararg
141         function is __builtin_va_arg_pack (), decrease number of call
142         arguments and instead set CALL_EXPR_VA_ARG_PACK on the CALL_EXPR.
143         * expr.c (expand_expr_real_1): Issue an error if
144         CALL_EXPR_VA_ARG_PACK CALL_EXPR is seen during expand.
145         * tree-pretty-print.c (dump_generic_node): Handle printing
146         CALL_EXPR_VA_ARG_PACK bit on CALL_EXPRs.
147         * doc/extend.texi (__builtin_va_arg_pack): Document.
148
149 2007-09-05  Adam Nemet  <anemet@caviumnetworks.com>
150
151         PR tree-optimization/21513
152         * builtins.c (build_builtin_expect_predicate): New function.
153         (fold_builtin_expect): Add argument for expected value.
154         Distribute __builtin_expect over short-circuiting operations.
155         Fold nested builtin_expects.
156         (fold_builtin_2): Adjust call to fold_builtin_expect.
157
158 2007-09-05  Rask Ingemann Lambertsen  <rask@sygehus.dk>
159
160         PR web/32965
161         PR tree-optimization/13756
162         * doc/invoke.texi (Options That Control Optimization): Document
163         -ftree-dse.
164
165 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
166
167         * gcc/config/i386/cpuid.h: New file.
168         * gcc/config/i386/driver-i386.c: Include cpuid.h.
169         (describe_cache): Shrink size and line strings to 100 bytes.
170         (detect_caches_amd): Return "" for unsupported max_ext_level.
171         Use __cpuid function.
172         (detect_caches_intel): Return "" for unsupported max_level.
173         Use __cpuid function.
174         (host_detect_local_cpu): Change feature flag variables to
175         unsigned int.  Initialize only extended feature flag variables.
176         Use __get_cpuid_max to determine max supported cpuid level.
177         Use __cpuid function to determine supported features.  Fix
178         calculation of family id.  Remove is_amd and check signature
179         directly.  Check for Geode signature.  Handle family 4 id.
180         [PROCESSOR_GENERIC32]: New default for unknown family id.  Move
181         cpu discovery code to lower part of the function.
182         [PROCESSOR_PENTIUM, PROCESSOR_K6, PROCESSOR_ATHLON]: Do not tune
183         for sub-architecture.
184         [PROCESSOR_PENTIUMPRO]: Simplify cpu discovery code.
185         [PROCESSOR_K8]: Add k8-sse3 architecture.
186         [PROCESSOR_NOCONA]: Remove.
187         [PROCESSOR_GENERIC64]: Ditto.
188         * gcc/config/i386/x-i386 (driver-i386.o): Depend on cpuid.h.
189         * gcc/config/i386/crtfastmath.c: Include cpuid.h.  Use __get_cpuid
190         to check for SSE and FXSAVE support.
191         * gcc/config/i386/t-crtfm (crtfastmath.o): Depend on cpuid.h.
192         Add -minline-all-stringops.
193         * gcc/config.gcc (i[34567]86-*-*): Add cpuid.h to extra_headers.
194         (x86_64-*-*): Ditto.
195
196 2007-09-05  Jie Zhang  <jie.zhang@analog.com>
197
198         * config/bfin/linux-unwind.h: New file.
199         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Define.
200         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Define.
201
202 2007-09-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
203
204         * Makefile.in (stmt.o): Add alloc-pool.h dependency.
205         * stmt.c: Include alloc-pool.h.
206         (struct case_node): Remove GTY marker.
207         (add_case_node): New parameter case_node_pool.  Use it for
208         allocation of r.
209         (expand_case): New allocation pool case_node_pool.  Initialize it,
210         pass to add_case_node and free it.
211
212 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
213             David Ung  <davidu@mips.com>
214             Nigel Stephens <nigel@mips.com>
215
216         Add mips16/nomips16 function attributes and -mflip-mips16 option
217         for testing mixed-mode compilation.
218
219         * config/mips/mips.opt (mflip-mips16): New.
220
221         * config/mips/mips.h (SYMBOL_FLAG_MIPS16_FUNC): Define.
222         (SYMBOL_FLAG_MIPS16_FUNC_P): Define.
223
224         * config/mips/mips.c (mips_base_target_flags): New.
225         (mips_base_mips16): New.
226         (mips_base_schedule_insns): New.
227         (mips_base_reorder_blocks_and_partition): New.
228         (mips_base_align_loops): New.
229         (mips_base_align_jumps): New.
230         (mips_base_align_functions): New.
231         (mips16_flipper): New.
232         (mips_attribute_table): Add "mips16" and "nomips16" entries.
233         (TARGET_SET_CURRENT_FUNCTION): Define.
234         (mips_mips16_type_p, mips_nomips16_type_p): New.
235         (mips_comp_type_attributes): Check mips16/nomips16 attributes.
236         (mips_function_ok_for_sibcall): Make it deal with functions with
237         mips16 attributes.
238         (mips_init_split_addresses): New, split out from override_options.
239         (mips_init_relocs): New, split out from override_options.
240         (was_mips16_p): New.
241         (mips_set_mips16_mode): New, split out from override_options.
242         (mips_set_current_function): New.
243         (override_options): Add sorry for unsupported mips16/pic
244         combination.  Remove error for mips16/dsp combination.  Save
245         base option settings.  
246         (mips_file_start): Move mips16 mode setting output from here....
247         (mips_output_function_prologue): ....to here.
248         (mips_output_mi_thunk): Check for mips16 function.
249         (build_mips16_function_stub): Don't set .mips16 here.
250         (build_mips16_call_stub): Likewise.
251         (mips_expand_builtin): Error in mips16 mode.
252         (mips_use_mips16_mode_p): New.
253         (mips_encode_section_info): Check for mips16 function, and set
254         SYMBOL_REF_FLAGS accordingly.
255
256         * doc/extend.texi (Function Attributes): Document new
257         mips16/nomips16 attributes.
258         * doc/invoke.texi (Option Summary): Add -mflip-mips16.
259         (MIPS Options): Document -mflip-mips16.
260
261 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
262
263         * config/mips/mips.c (mips_legitimize_tls_address): Call sorry
264         if we encounter TLS address in MIPS16 mode.
265         (mips_legitimize_const_move): Check cannot_force_const_mem for
266         the (const (plus symbol offset)) case; this forces invalid TLS
267         address in MIPS16 mode to be caught by the above call to sorry.
268         (override_options): Don't reset targetm.have_tls in MIPS16 mode,
269         because that now enables emutls, which is not ABI compatible
270         with native TLS in non-MIPS16 mode.
271
272 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
273
274         Add target hook invoked when cfun changes.
275
276         * doc/tm.texi (TARGET_SET_CURRENT_FUNCTION): Document.
277         * target.h (struct gcc_target): Add set_current_function.
278         * target-def.h (TARGET_SET_CURRENT_FUNCTION): Define.
279         (TARGET_INITIALIZER): Add initializer for set_current_function.
280         * tree.h (push_struct_function): New.
281         * tree-inline.h (push_cfun, pop_cfun): Move declarations to...
282         * function.h: Here.
283         (set_cfun): Declare.
284         * tree-inline.c (cfun_stack, push_cfun, pop_cfun): Moved to...
285         * function.c: Here.
286         (push_function_context_to): Use allocate_struct_function
287         to create null context, not init_dummy_function_start.  Use set_cfun.
288         (pop_function_context_from): Use set_cfun.
289         (in_dummy_function): New.
290         (invoke_set_current_function_hook): New.
291         (set_cfun): New.
292         (push_cfun, pop_cfun): Use set_cfun.
293         (push_struct_function): New.
294         (allocate_struct_function): Call invoke_set_current_function_hook
295         before returning.
296         (prepare_function_start): Don't set cfun here.  Remove unused
297         argument; fix all callers.
298         (init_dummy_function_start): Fiddle with in_dummy_function.  Call
299         push_struct_function.
300         (init_function_start): Set cfun here.
301         (expand_dummy_function_end): Fiddle with in_dummy_function.  Pop cfun.
302         * omp-low.c (create_omp_child_function): Use push_struct_function
303         and pop_cfun to save/restore state.
304         (expand_omp_parallel): Remove unused saved_cfun variable.
305         * cgraphunit.c (ipa_passes): Use set_cfun.
306         * gimple-low.c (record_vars_into): Use push_cfun/pop_cfun here.
307         * dwarf2out.c (dwarf2out_abstract_function): Likewise.
308         * matrix-reorg.c (transform_allocation_sites): Likewise.
309         (matrix_reorg): Use set_cfun.
310         * gimplify.c (gimplify_function_tree): Use push_cfun/pop_cfun here.
311         * tree-optimize.c (tree_rest_of_compilation): Remove one redundant
312         assignment to cfun; use set_cfun for the other.
313         * tree-cfg.c (move_sese_region_to_fn): Use set_cfun.
314         (dump_function_to_file): Use push_cfun/pop_cfun here.
315         * c-decl.c (finish_function): Use set_cfun.
316
317 2007-09-05  Kenneth Zadeck <zadeck@naturalbridge.com>
318
319         * regrename.c (rerename_optimize): Use deferred rescanning and
320         insert explicit calls to rescan insns when changed.
321         
322 2007-09-05  Jan Hubicka  <jh@suse.cz>
323
324         * optabs.c (libfunc_entry): Change optab to integer.
325         (hash_libfunc, convert_optab_libfunc, optab_libfunc,
326         set_optab_libfunc, set_conv_libfunc): Use optable indexes instead
327         of pointers for hashing.
328
329 2007-09-05  Jan Hubicka  <jh@suse.cz>
330
331         * regrename.c (pass_regrename, pass_cprop_hardreg): Add RTL sharing
332         verifier.
333         * fwprop.c (pass_rtl_fwprop, pass_rtl_fwprop_add): Likewise.
334         * see.c (pass_see): Likewise.
335         * tracer.c (pass_tracer): Likewise.
336         * postreload-gcse.c (pass_gcse2): Likewise.
337         * postreload.c (pass_postreload_cse): Likewise.
338         * mode-switching.c (pass_mode_switching): Likewise.
339         * modulo-sched.c (pass_sms): Likewise.
340         * cse.c (cse_insn): Likewise.
341         * web.c (pass_web): Likweise.
342         * combine-stack-adj.c (pass_stack_adjustments): Likewise.
343         * dce.c (pass_ud_rtl_dce, pass_fast_rtl_dce): Likewise.
344         * loop-init.c (pass_rtl_loop_init): Likewise.
345         (pass_rtl_loop_done, pass_rtl_move_loop_, pass_rtl_unswitch,
346         pass_rtl_unroll_and, pass_rtl_doloop): Likewise.
347         * global.c (pass_global_alloc): Likewise.
348         * ifcvt.c (pass_rtl_ifcvt, pass_if_after_combine,
349         pass_if_after_reload): Likewise.
350         * reload.c (pass_peephole2, pass_split_for_shoren_branches): Likewise.
351         * dse.c (pass_rtl_dse1, pass_rtl_dse2): Likewise.
352         * regmove.c (pass_regmove): Likewise.
353         * function.c (pass_thread_prologugues_epilogues): Likewise.
354         * gcse.c (pass_gcse): Likewise.
355         * rtl-factoring.c (pass_rtl_seqabstr): Likewise.
356         * lower-subreg.c (pass_lower_subreg2): Likewise.
357         * bt-load.c (pass_branch_target_load): Likewise.
358         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
359         * cfgcleanup.c (pass_jump, pass_jump2): Likewise.
360         * combine.c (pass_combine): Likewise.
361         * bb-reorder.c (pass_duplicate_comp, pass_reorder_blocks): Likewise.
362         (pass_partition_blocks): Likewise.
363         * var-tracking.c (pass_variable_track): Likewise.
364         * reg-stack.c (pass_stack_regs_run): Likewise.
365         * sched-rgn.c (pass_sched, pass_sched2): Likewise.
366         * passes.c (pass_postreload): Likewise.
367         (execute_function_todo): Add TODO_verify_rtl_sharing handling code.
368         * tree-pass.h (TODO_verify_rtl_sharing): New.
369         (TODO_update_ssa, TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
370         TODO_update_ssa_only_virtuals, TODO_remove_unused_locals,
371         TODO_set_props, TODO_df_finish, TODO_df_verify,
372         TODO_mark_first_instance, TODO_rebuild_alias): Renumber.
373
374 2007-09-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
375
376         * fold-const.c (all_ones_mask_p, sign_bit_p, simple_operand_p,
377         fold_real_zero_addition_p, reorder_operands_p,
378         div_if_zero_remainder, fold_undefer_overflow_warnings,
379         int_binop_types_match_p, fold_convert_const_int_from_int,
380         fold_convert_const_int_from_real,
381         fold_convert_const_int_from_fixed,
382         fold_convert_const_real_from_real,
383         fold_convert_const_real_from_fixed,
384         fold_convert_const_fixed_from_fixed,
385         fold_convert_const_fixed_from_int,
386         fold_convert_const_fixed_from_real, maybe_lvalue_p,
387         fold_checksum_tree, fold_check_failed, print_fold_checksum,
388         debug_fold_checksum, multiple_of_p): Constify.
389         * tree-flow-inline.h (get_lineno): Likewise.
390         * tree-flow.h (get_lineno): Likewise.
391         * tree-object-size.c (compute_object_offset, addr_object_size,
392         alloc_object_size, pass_through_call): Likewise.
393         * tree-pretty-print.c (op_symbol, print_call_name,
394         print_struct_decl, do_niy): Likewise.
395         * tree.h (fold_undefer_overflow_warnings, multiple_of_p,
396         debug_fold_checksum): Likewise.
397
398 2007-09-04  Steven Bosscher  <steven@gcc.gnu.org>
399
400         PR middle-end/33029
401         * lower-subreg.c (resolve_clobber): If we remove a REG_LIBCALL
402         note, remove the associated REG_RETVAL note.
403
404 2007-09-04  Andrew Pinski  <andrew_pinski@playstation.sony.com>
405
406         * config.gcc (powerpc*-*-*): Install
407         spu2vmx.h, vec_types.h, and si2vmx.h headers.
408         * config/rs6000/spu2vmx.h: New header.
409         * config/rs6000/si2vmx.h: New header.
410         * config/rs6000/vec_types.h: New header.
411
412 2007-09-05  Ben Elliston  <bje@au.ibm.com>
413
414         * varasm.c (initializer_constant_valid_p): Fix comment typo.
415
416 2007-09-05  Ben Elliston  <bje@au.ibm.com>
417
418         * config/rs6000/ppu_intrinsics.h (__ldarx): Use `Z' constraint,
419         not `m' for *ptrp.
420         (__stdcx): Make asm volatile.
421         (__stwcx, __stdcx): Return only 0 or 1.
422
423 2007-09-05  Jan Hubicka  <jh@suse.cz>
424
425         Revert:
426
427         2007-09-04  Jan Hubicka  <jh@suse.cz>
428         * tree-tailcall.c (eliminate_tail_call): Expect unrenamed return value.
429
430         2007-09-04  Richard Guenther  <rguenther@suse.de>
431         * tree-ssa-operands.c (add_virtual_operand): Only mark
432         stores as has_volatile_ops if alias information is not available.
433
434 2007-09-05  Jakub Jelinek  <jakub@redhat.com>
435
436         * config/rs6000/tramp.asm: Include config.h.
437         Check __PIC__ or __pic__ macro instead of SHARED.
438
439         PR rtl-optimization/32300
440         * see.c (see_copy_insn): New function.
441         (see_def_extension_not_merged, see_merge_one_use_extension,
442         see_merge_one_def_extension): Use it.  Avoid changing
443         PREV_INSN/NEXT_INSN chains directly, insted emit insns
444         into sequences.  Call df_insn_delete on temporary insns
445         that won't be emitted into the insn stream.
446         (rest_of_handle_see): Turn off DF_DEFER_INSN_RESCAN
447         and run df_process_deferred_rescans () before run_fast_dce.
448
449         PR tree-optimization/33017
450         * tree-data-ref.c (split_constant_offset) <case SSA_NAME>: Don't
451         recurse for pure or const function calls.
452
453 2007-09-04  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
454
455         * c-format.c: Include alloc-pool.h.
456         (check_format_info_main): New argument fwt_alloc.  Use allocation
457         pool instead of GC.  Remove GC deallocation code.
458         (check_format_arg): Create allocation pool, pass it to
459         check_format_info_main and free it afterwards.
460         * Makefile.in (c-format.o): Add alloc-pool.h dependency.
461
462 2007-09-05  Ben Elliston  <bje@au.ibm.com>
463
464         * config/rs6000/ppu_intrinsics.h (__protected_stream_count):
465         Rename count macro arugment for clarity.
466         (__protected_unlimited_stream_set): Pass UG=1 to __dcbt_TH1000.
467         (__protected_stream_set): Likewise, pass 0.
468
469 2007-09-04  Jan Hubicka  <jh@suse.cz>
470
471         * tree-tailcall.c (eliminate_tail_call): Expect unrenamed return value.
472
473 2007-09-04  Jan Hubicka  <jh@suse.cz>
474
475         * invoke.texi (-finline-small-functions): Document.
476         * ipa-inline.c (cgraph_default_inline_p): Do not use DECL_INLINE
477         when deciding what is inlinable.
478         (cgraph_decide_recursive_inlining): Handle flag_inline_functions.
479         (cgraph_decide_inlining_of_small_function): Handle new flags.
480         (cgraph_decide_inlining_incrementally): Likewise.
481         * opts.c (decode_options): Enable flag_inline_small_functions at -O2
482         * common.opt (finline-small-functions): New.
483         * Makefile.in (build/gengtype.o-warn): Work around PR29478
484
485 2007-09-04  Richard Guenther  <rguenther@suse.de>
486
487         * tree-ssa-operands.c (add_virtual_operand): Only mark
488         stores as has_volatile_ops if alias information is not available.
489
490 2007-09-04  Andrew Haley  <aph@redhat.com>
491
492         * config/arm/libgcc-bpabi.ver: Add _Unwind_Backtrace as GCC_4.3.0.
493
494 2007-09-04  Andrew Haley  <aph@redhat.com>
495
496         * config/arm/libunwind.S (UNWIND_WRAPPER _Unwind_Backtrace): New.
497         * config/arm/unwind-arm.h (__gnu_Unwind_Backtrace): New.
498         * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): New.
499
500 2007-09-04  Emmanuel Thome  <Emmanuel.Thome@inria.fr>
501
502         PR c++/14178
503         * common.opt: Mention ABI version 2 in comment.
504
505 2007-09-04  Jan Hubicka  <jh@suse.cz>
506
507         * optabs.c (debug_optab_libfunc): Update; make available to gdb.
508         (libfunc_entry): New structure.
509         (libfunc_hash): New hashtable.
510         (hash_libfunc): New function.
511         (eq_libfunc): New function.
512         (convert_optab_libfunc): New function.
513         (optab_libfunc): New function.
514         (expand_binop, sign_expand_binop, expand_twoval_binop_libfunc,
515         expand_unop, prepare_cmp_insn, prepare_float_insn, gen_add2_insn,
516         expand_float, expand_fix, new_optab, new_convert_optab):
517          Update for new libfunc API.
518         (init_libfunc, init_integral_libfuncs,
519         init_floating_libfuncs, init_interclass_conv_libfuncs
520         init_intraclass_conv_libfuncs): Remove; reorganize all logic to:
521         (gen_libfunc, gen_int_libfunc, gen_fp_libfunc, gen_int_fp_libfunc,
522         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
523         gen_int_to_fp_conv_libfunc, gen_ufloat_conv_libfunc,
524         gen_int_to_fp_nondecimal_conv_libfunc, gen_fp_to_int_conv_libfunc,
525         gen_intraclass_conv_libfunc, gen_trunc_conv_libfunc,
526         gen_extend_conv_libfunc): New.
527         (init_one_libfunc): Revamp for hashtables.
528         (set_conv_libfunc): Likewise.
529         (init_optabs): Initialize hashtable; use lazy initialization where
530         possible.
531         * optabs.h (optab_handlers): Move out of GGC.
532         (optab, convert_optab): Move out of GGC; add lazy gen info.
533         (code_to_optab, convert_optab_table, optab_table): Move out of GGC.
534         (optab_libfunc, convert_optab_libfunc): New.
535         * builtins.c (expand_builtin_powi): Update for new API.
536         * expr.c (convert_move): Likewise.
537         * expmed.c (expand_divmod): Likewise.
538
539 2007-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
540
541         * config/rs6000/rs6000.c (rs6000_stack_info): Allocate space for the
542         GOT pointer only if there is a constant pool.  Use the allocated space
543         for SPE also.
544
545 2007-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
546
547         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Correct
548         typo for AltiVec.
549
550 2007-09-04  Revital Eres  <eres@il.ibm.com>
551             Richard Guenther  <rguenther@suse.de>
552             R. Clint Whaley  <whaley@cs.utsa.edu>
553
554         * doc/invoke.texi (-fassociative-math, -freciprocal-math):
555         Document new flags.
556         * tree-tailcall.c (process_assignment): Use -fassociative-math
557         when reodering operands of floating-point type.
558         * fold-const.c (fold_comparison, fold_binary): Use
559         -fassociative-math and -freciprocal-math instead of
560         -funsafe-math-optimization flag.
561         * toplev.h (set_unsafe_math_optimizations_flags): Declare function.
562         * tree-ssa-math-opts.c (gate_cse_reciprocals): Use
563         -freciprocal-math instead of -funsafe-math-optimizations.
564         * opts.c (set_fast_math_flags): Set -freciprocal-math and
565         -fassociative-math when -ffast-math is set.
566         (set_unsafe_math_optimizations_flags): New Function
567         to set -freciprocal-math and -fassociative-math when
568         -funsafe-math-optimizations is set.
569         (common_handle_option): Call it.
570         * tree-vectorizer.c (vect_is_simple_reduction): Use
571         -fassociative-math when doing reduction on floats.
572         * loop-unroll.c (analyze_insn_to_expand_var): Use
573         -fassociative-math when expanding an accumulator of type float.
574         * simplify-rtx.c (simplify_binary_operation_1): Use
575         -fassociative-math and -freciprocal-math when reordeing operands
576         of floating-point type.
577         * combine.c (combine_simplify_rtx): Likewise.
578         * tree-ssa-reassoc.c (break_up_subtract_bb, reassociate_bb):
579         Likewise.
580         * common.opt (-fassociative-math, -freciprocal-math): New flags.
581
582 2007-09-04  Paolo Carlini  <pcarlini@suse.de>
583
584         PR c++/18608
585         * doc/install.texi (--enable-__cxa_atexit): Fix typo.
586
587 2007-09-04  Jan Hubicka  <jh@suse.cz>
588
589         * regrename.c(copyprop_hardreg_forward_1): Unshare when doing copyprop.
590
591 2007-09-04  Jan Hubicka  <jh@suse.cz>
592
593         * regrename.c (build_def_use): Don't share RTL between MATCH_OPERATOR
594         and corresponding MATCH_DUP.
595
596 2007-09-04  Uros Bizjak  <ubizjak@gmail.com>
597
598         PR middle-end/33187
599         * combine.c (subst): Do not try to simplify X if it represents load
600         of FP constant from the constant pool via float extension.
601
602 2007-09-04  Ben Elliston  <bje@au.ibm.com>
603
604         * c-opts.c: Include "tm_p.h".
605         * Makefile.in (c-opts.o): Add $(TM_P_H) as a dependency.
606
607 2007-09-04  Richard Guenther  <rguenther@suse.de>
608
609         PR tree-optimization/33291
610         * tree-pretty-print.c (dump_generic_node): Dump all
611         qualifiers for pointer types, not only first.  Dump
612         qualifiers for aggregate types as well.
613         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Always
614         use the canonical type for building ARRAY_REFs.
615         * gimplify.c (canonicalize_addr_expr): Clean up.  The
616         correct validness check is compatibility of the pointer
617         types.  Always use the canonical type for building
618         ARRAY_REFs and ADDR_EXPRs.
619         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Revert
620         change that disabled propagation of ADDR_EXPRs into statements
621         with volatile ops.
622
623 2007-09-03  Zack Weinberg  <zack@codesourcery.com>
624
625         * config/arm/arm.md (mulsidi3, umulsidi3, mulsi3_highpart)
626         (umulsi3_highpart): Make into expanders; existing insns are
627         now named *[insn]_nov6.  Add stars to existing [insn]_v6
628         counterparts' names.
629
630 2007-09-03  Daniel Jacobowitz  <dan@codesourcery.com>
631
632         * Makefile.in (DRIVER_DEFINES, gcc.o, gccspec.o, protoize.o)
633         (unprotoize.o): Remove SHLIB_MULTILIB.
634
635 2007-09-03  Eric Weddington  <eweddington@cso.atmel.com>
636
637         * doc/extend.texi: Document progmem attribute for AVR.
638
639 2007-09-03  Anatoly Sokolov <aesok@post.ru>
640
641         PR target/28902
642         * config/avr/avr.h (TARGET_VTABLE_ENTRY_ALIGN): Define.
643
644 2007-09-03  Zack Weinberg  <zack@codesourcery.com>
645
646         * optabs.c (expand_ffs): Initialize val and defined_at_zero
647         to avoid warnings.
648
649         * optabs.c: Remove unnecessary forward declarations.
650         (expand_unop_direct): New, broken out of expand_unop.
651         (expand_doubleword_clz): New.
652         (expand_ctz): Move above expand_ffs.  Use
653         start_sequence, end_sequence, add_equal_note, and
654         expand_unop_direct.  Add more commentary.
655         (expand_ffs): Try both ctz optab and expand_ctz.
656         Generate a test and branch if the hardware doesn't give us
657         a useful value for input zero.  Style improvements similar to
658         expand_ctz.
659
660         * config/arm/arm.md (ffssi2, ctzsi2): Delete.
661
662 2007-09-03  Zack Weinberg  <zack@codesourcery.com>
663
664         * config.gcc: Delete stanza for arm-semi-aof and
665         armel-semi-aof targets.
666         * config/arm/arm-protos.h
667         * config/arm/arm.c
668         * config/arm/arm.h: Delete all #ifdef AOF_ASSEMBLER blocks;
669         make all #ifndef AOF_ASSEMBLER blocks unconditional.  Also
670         delete aof_pic_label and remove mention of AOF in comments.
671         * config/arm/arm.md: Delete patterns used only for AOF assembly.
672         * config/arm/aof.h
673         * config/arm/semiaof.h
674         * config/arm/t-semi: Delete file.
675
676 2007-09-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
677
678         * system.h (CONST_CAST2, CONST_CAST_TREE, CONST_CAST_RTX,
679         CONST_CAST_BB): New macros for type-specific casts.
680         (CONST_CAST): Add a TYPE parameter and define it in terms of
681         CONST_CAST2.
682
683         * c-decl.c (c_make_fname_decl): Supply a TYPE for CONST_CAST.
684         * c-lex.c (cb_ident, lex_string): Likewise,
685         * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise,
686         * config/i386/i386.c (ix86_function_regparm,
687         ix86_function_sseregparm): Use CONST_CAST_TREE.
688         * config/mmix/mmix.c (mmix_encode_section_info): Supply a TYPE for
689         CONST_CAST.
690         * gcc.c (set_spec, read_specs, for_each_path, execute, do_spec_1,
691         give_switch, set_multilib_dir): Likewise,
692         * gengtype-parse.c (string_seq, typedef_name): Likewise,
693         * gimple-low.c (block_may_fallthru): Use CONST_CAST_TREE.
694         * jump.c (reversed_comparison_code_parts): Use CONST_CAST_RTX.
695         * passes.c (execute_one_pass): Supply a TYPE for CONST_CAST.
696         * prefix.c (update_path): Likewise,
697         * pretty-print.c (pp_base_destroy_prefix): Likewise,
698         * rtlanal.c (keep_with_call_p): Use CONST_CAST_RTX.
699         * tree-cfg.c (tree_can_merge_blocks_p,
700         tree_block_ends_with_condjump_p): Use CONST_CAST_BB.
701         * tree-eh.c (lookup_stmt_eh_region_fn): USe CONST_CAST_TREE.
702         * tree.c (build_string): Supply a TYPE for CONST_CAST.
703         (attribute_list_contained): Use CONST_CAST_TREE.
704
705 2007-09-03  Krister Walfridsson  <cato@df.lth.se>
706
707         * config/netbsd-elf.h (USE_LD_AS_NEEDED): Define.
708
709 2007-09-03  Richard Sandiford  <richard@codesourcery.com>
710
711         PR middle-end/33290
712         * optabs.c (avoid_expensive_constant): Canonicalize CONST_INTs
713         before forcing them into a register.
714
715 2007-09-03  Richard Sandiford  <richard@codesourcery.com>
716
717         * config/mips/mips.md (fetchop_bit): Use define_code_iterator
718         rather than define_code_macro.
719
720 2007-09-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
721
722         * gcc.c (xputenv): New function.
723         (putenv_from_prefixes): Use xputenv instead of putenv.
724         (process_command): Use xputenv instead of putenv.
725         (set_collect_gcc_options): Use xputenv instead of putenv.
726         (main): Use xputenv instead of putenv.
727
728 2007-09-03  Jesper Nilsson  <jesper.nilsson@axis.com>
729
730         * config/cris/cris.h (TARGET_HAS_SWAP): Defined to describe
731         availability of swap instruction.
732         * config/cris/cris.md (bswapsi2): Implement using swap instruction.
733
734 2007-09-03  Revital Eres  <eres@il.ibm.com>
735
736         * doc/invoke.texi (-fmodulo-sched-allow-regmoves): Update
737         Documentation.
738
739 2007-09-03  Vladimir Yanovsky  <yanov@il.ibm.com>
740             Ayal Zaks  <zaks@il.ibm.com>
741             Revital Eres  <eres@il.ibm.com>
742
743         * modulo-sched.c (ps_insert_empty_row, verify_partial_schedule,
744         compute_split_row): New functions.
745         (ps_unschedule_node): Remove.
746         (normalize_sched_times): Iterate over the already scheduled
747         insns instead of the number of nodes.
748         (MAX_SPLIT_NUM): New definition.
749         (sms_schedule_by_order): Change the scheduling heuristic to
750         avoid useless increases of initiation interval ii.
751         (get_sched_window): Add dump printouts.
752
753 2007-09-02  David Daney  <ddaney@avtrex.com>
754
755         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP, UNSPEC_SYNC_OLD_OP,
756         UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE): New define_constants.
757         (optab, insn): Add more attributes.
758         (fetchop_bit): New code macro.
759         (immediate_insn): New code macro attribute.
760         (sync): Change condition to ISA_HAS_SYNC.
761         (rdhwr): Change predicate for operand 0 to register_operand.
762         (memory_barrier): New expand.
763         (sync_compare_and_swap<mode>, sync_add<mode>, sync_sub<mode>,
764         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
765         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
766         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
767         sync_new_nand<mode>, sync_lock_test_and_set<mode>): New insns.
768         * config/mips/mips.h (ISA_HAS_SYNC, ISA_HAS_LL_SC): New ISA predicates.
769         (MIPS_COMPARE_AND_SWAP, MIPS_SYNC_OP, MIPS_SYNC_OLD_OP,
770         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
771         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE): New Macros.
772         
773 2007-09-03  Jesper Nilsson  <jesper.nilsson@axis.com>
774             Hans-Peter Nilsson  <hp@axis.com>
775
776         * config/cris/cris.h (TARGET_HAS_LZ, CLZ_DEFINED_VALUE_AT_ZERO):
777         Defined to describe availability and behavior of CLZ.
778         * config/cris/cris.md (clzsi2): Implement using lz instruction.
779         * config/cris/cris.opt: Tweak comment for "-metrax4".
780         * config/cris/arit.c (LZ): When defined, define as __builtin_clz.
781         * longlong.h [__CRIS__ && __CRIS_arch_version >= 3]
782         (count_leading_zeros): Define.
783
784 2007-09-01  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
785
786         * ggc-page.c (ggc_pch_read): Call validate_free_objects.
787
788 2007-09-02  Joseph Myers  <joseph@codesourcery.com>
789
790         PR middle-end/33272
791         * c-decl.c (grokdeclarator): Apply qualifiers to type of parameter
792         decayed from array.
793
794 2007-09-01  Kazu Hirata  <kazu@codesourcery.com>
795
796         * config/arm/arm.c, config/rs6000/ppu_intrinsics.h,
797         config/spu/spu.c, df-scan.c, fixed-value.c, fold-const.c,
798         ginclude/tgmath.h, haifa-sched.c, optabs.c, recog.c,
799         sched-deps.c, sched-int.h, system.h, target.h,
800         tree-ssa-live.c, tree-vect-transform.c, tree-vectorizer.c,
801         tree.def: Fix comment typos.
802
803 2007-09-01  Kazu Hirata  <kazu@codesourcery.com>
804
805         * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove.
806         (override_options): Turn on -mstrict-align on non-ColdFire
807         targets.
808         * config/m68k/m68k.h (BIGGEST_ALIGNMENT): Update a comment.
809
810 2007-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
811
812         * c-common.c (const_strip_array_types): Delete.
813         * c-common.h (const_strip_array_types): Likewise.
814         * emit-rtl.c (const_next_insn, const_previous_insn,
815         const_next_nonnote_insn, const_prev_nonnote_insn,
816         const_next_real_insn, const_prev_real_insn,
817         const_next_active_insn, const_prev_active_insn, const_next_label,
818         const_prev_label): Delete.
819         * gimple-low.c (block_may_fallthru): Use expr_last.
820         * jump.c (reversed_comparison_code_parts): Use prev_nonnote_insn.
821         * rtl.h (const_previous_insn, const_next_insn,
822         const_prev_nonnote_insn, const_next_nonnote_insn,
823         const_prev_real_insn, const_next_real_insn,
824         const_prev_active_insn, const_next_active_insn, const_prev_label,
825         const_next_label): Delete.
826         * rtlanal.c (keep_with_call_p): Use next_nonnote_insn.
827         * system.h (CONST_CAST): Update comment.
828         * tree-cfg.c (tree_can_merge_blocks_p): Use last_stmt.
829         (const_first_stmt, const_last_stmt): Delete.
830         (tree_block_ends_with_condjump_p): Use last_stmt.
831         * tree-flow.h (const_first_stmt, const_last_stmt): Delete.
832         * tree-iterator.c (const_expr_first, const_expr_last,
833         const_expr_only): Delete.
834         * tree.c (const_lookup_attribute): Likewise.
835         (attribute_list_contained): Use lookup_attribute.
836         * tree.h (const_lookup_attribute, const_expr_first,
837         const_expr_last, const_expr_only): Delete.
838
839 2007-09-01  Richard Guenther  <rguenther@suse.de>
840
841         * tree-ssa-alias.c (create_name_tags): Use TYPE_VOLATILE
842         instead of TREE_THIS_VOLATILE.
843         * tree-ssa-operands.c (add_virtual_operand): Do not set
844         has_volatile_ops.  Do not check s_ann for NULL.
845         (get_indirect_ref_operands): Likewise.
846         (get_expr_operands): Likewise.  For all reference trees
847         set has_volatile_ops based on TREE_THIS_VOLATILE.  Also
848         check base of reference for TREE_THIS_VOLATILE.
849
850 2007-09-01  Richard Guenther  <rguenther@suse.de>
851
852         * tree-cfg.c (verify_gimple_expr): Fix check for conversions
853         between integral types.  Also allow conversions between
854         pointer types.
855
856 2007-08-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
857
858         * optabs.c (prepare_float_lib_cmp): Use
859         libgcc_cmp_return_mode instead of word_mode.
860         * config/dfp-bit.h: Likewise.
861         * config/fp-bit.h: Likewise.
862         * config/spu/spu.c (spu_libgcc_cmp_return_mode):
863         New function.
864         (spu_libgcc_shift_count_mode): New function.
865         (TARGET_LIBGCC_CMP_RETURN_MODE): Define.
866         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Define.
867
868 2007-08-31  Joseph Myers  <joseph@codesourcery.com>
869
870         * tree-pretty-print.c: Include output.h.
871         (dump_decl_name, dump_generic_node): Use %wd with pp_printf, not
872         HOST_WIDE_INT_PRINT_DEC.
873         * Makefile.in (tree-pretty-print.o): Add dependency on output.h.
874
875 2007-08-31  Zdenek Dvorak  <ook@ucw.cz>
876
877         PR rtl-optimization/33224
878         * loop-iv.c (latch_dominating_def): Check that the definition belongs
879         to the analysed region.
880
881 2007-08-31  Richard Guenther  <rguenther@suse.de>
882
883         * function.c (allocate_struct_function): Do not set
884         current_function_returns_pointer.
885         * function.h (struct var_refs_queue): Remove.
886         (struct simple_obstack_stack): Likewise.
887         (struct function): Remove fixup_var_refs_queue member.
888         Remove returns_pointer flag.
889         (current_function_returns_pointer): Remove define.
890
891 2007-08-31  Nick Clifton  <nickc@redhat.com>
892
893         * tree-ssa-coalesce.c (compare_pairs): Use the elements as
894         secondary keys in order to obtain a stable sort.
895
896 2007-08-31  Nick Clifton  <nickc@redhat.com>
897
898         PR target/33132
899         * config/m32r/constraints.md: Add W constraint for integer zero.
900         * config/m32r/m32r.md (get_pc): Use W and i constraints.
901         Fix length calculation by using alternatives.
902
903 2007-08-31  Richard Sandiford  <richard@codesourcery.com>
904
905         * optabs.c (shift_optab_p, commutative_optab_p): New functions,
906         split out from expand_binop.
907         (avoid_expensive_constant): New function.
908         (expand_binop_directly): Remove commutative_op argument and
909         (expand_binop_directly): Remove commutative_op argument and
910         call cummutative_optab_p instead.  Do not change op0 or op1
911         when swapping xop0 and xop1.  Apply avoid_expensive_constant
912         to each argument after potential swapping.  Enforce the
913         canonical order of commutative operands.
914         (expand_binop): Use shift_optab_p and commutative_optab_p.
915         Update the calls to expand_binop_directly.  Only force constants
916         into registers when widening an operation.  Only swap operands
917         once a direct expansion has been rejected.
918         (expand_twoval_binop): Only force constants into registers when
919         using a direct expansion.
920
921 2007-08-31  Maxim Kuvyrkov  <maxim@codesourcery.com>
922
923         * sched-deps.c (update_dep): Mark arguments with ATTRIBUTE_UNUSED.
924         (sched_analyze_insn): Don't postprocess speculative dependencies when
925         target has no scheduling.
926         * tree-vect-transform.c (vect_estimate_min_profitable_iters): Fix
927         'uninitialized' warning.
928
929 2007-08-31  Richard Guenther  <rguenther@suse.de>
930
931         * tree.c (build_complex_type): Always set TYPE_NAME for
932         comples types.
933
934 2007-08-31  Olivier Hainque  <hainque@adacore.com>
935
936         * config/rs6000/xcoff.h (XCOFF_CSECT_DEFAULT_ALIGNMENT_STR): New
937         internal macro. Default alignment factor for csect directives, chosen
938         to match what BIGGEST_ALIGNMENT allows.
939         (DATA_SECTION_ASM_OP): Use it.
940         * config/rs6000/rs6000.c
941         (rs6000_xcoff_output_readonly_section_asm_op):
942         Use XCOFF_CSECT_DEFAULT_ALIGNMENT_STR.
943         (rs6000_xcoff_output_readwrite_section_asm_op): Likewise.
944         
945 2007-08-31  Olivier Hainque  <hainque@adacore.com>
946
947         * dbxout.c (dbxout_block): Move declaration within the first
948         #if defined (DBX_DEBUGGING_INFO) block.  Rearrange another such
949         block to include the definition, together with the associated
950         helpers.
951
952 2007-08-31  David Edelsohn  <edelsohn@gnu.org>
953             Revital Eres  <eres@il.ibm.com>
954
955         * doc/invoke.texi (-mpaired): Document flag.
956         * config.gcc: Include paired.h in powerpc extra_headers and
957         750cl.h in powerpc-*-linux*paired*.
958         * config/rs6000/rs6000.opt (-mpaired): New flag.
959         * config/rs6000/rs6000.c (paired_init_builtins,
960         paired_expand_builtin, paired_expand_lv_builtin,
961         paired_expand_stv_builtin, paired_expand_predicate_builtin):
962         New functions to support the paired single builtin functions.
963         (rs6000_hard_regno_mode_ok): Handle PAIRED_VECTOR_MODE.
964         (def_builtin, bdesc_3arg, bdesc_2arg, bdesc_1arg): Add paired
965         single builtins.
966         (bdesc_paired_preds): New structure for paired predicate
967         instructions.
968         (rs6000_expand_builtin): Expand paired single builtins.
969         (rs6000_init_builtins): Init paired single builtins.
970         (rs6000_common_init_builtins): Add v2sf_ftype_v2sf_v2sf_v2sf.
971         Rename v2sf_ftype_v2sf_v2sf to v2sf_ftype_v2sf_v2sf_spe
972         and v2sf_ftype_v2sf_spe to v2sf_ftype_v2sf.  Add new types
973         v2sf_ftype_v2sf_v2sf and v2sf_ftype_v2sf.
974         (rs6000_vector_mode_supported_p): Support paired vector mode.
975         * config/rs6000/rs6000.h: (UNITS_PER_PAIRED_WORD,
976         PAIRED_VECTOR_MODE, PAIRED_SIMD_REGNO_P, TARGET_PAIRED_FLOAT):
977         New.
978         (LOCAL_ALIGNMENT): Handle PAIRED_VECTOR_MODE.
979         (DATA_ALIGNMENT): Likewise.
980         (UNITS_PER_SIMD_WORD): Handle PAIRED_VECTOR_MODE.
981         (rs6000_builtins): Add PAIRED builtins.
982         * config/rs6000/rs6000.md: Include paired.md.
983         * config/rs6000/paired.h: New.
984         * config/rs6000/paired.md: New.
985         * config/rs6000/750cl.h: New.
986         * config/rs6000/spe.md: Recognize movv2sf instruction for 750cl.
987
988 2007-08-30  Ollie Wild  <aaw@google.com>
989
990         * c-opts.c (c_common_handle_option): Support -fno-directives-only.
991         * gcc.c (default_compilers): Add -fno-directives-only to
992         @assembler-with-cpp.
993
994 2007-08-30  Sandra Loosemore  <sandra@codesourcery.com>
995
996         PR middle-end/33211
997
998         * regclass.c (initial_fixed_regs): Revert previous change and make
999         it const again.
1000         (initial_call_used_regs): Likewise.
1001         (initial_call_really_used_regs): Delete, reverting previous addition.
1002         (initial_reg_names): Likewise.
1003         (init_reg_sets): Revert previous change.
1004         (saved_fixed_regs): New.
1005         (saved_call_used_regs): New.
1006         (saved_call_really_used_regs): New.
1007         (saved_reg_names): New.
1008         (save_register_info): New.
1009         (restore_register_info): New.
1010         (init_reg_sets_1): Replace reset of register info with call to
1011         restore_register_info.
1012         * rtl.h (save_register_info): Declare.
1013         * toplev.c (backend_init): Call save_register_info.
1014
1015 2007-08-30  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1016
1017         * tree-ssa-propagate.c (set_rhs): Remove the copied annotation
1018         from the original statement.
1019
1020 2007-08-30  Chao-ying Fu  <fu@mips.com>
1021
1022         * c-lex.c (interpret_fixed): Declare.
1023         (interpret_float): Process _Fract and _Accum.
1024         (interpret_fixed): New function.
1025         * final.c (output_addr_const): Process CONST_FIXED.
1026         * simplify-rtx.c (simplify_const_unary_operation): Handle US_NEG.
1027         (simplify_binary_operation_1): Handle US_ASHIFT, SS_MULT, US_MULT,
1028         SS_DIV, US_DIV.
1029         (simplify_const_binary_operation): Handle SS_MULT, US_MULT, SS_DIV,
1030         US_DIV, US_ASHIFT.
1031         (simplify_immed_subreg): Support CONST_FIXED.
1032         Process MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
1033         (simplify_subreg): Support CONST_FIXED.
1034
1035 2007-08-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1036
1037         * config/rs6000/ppu_intrinsics.h: New file.
1038         * config.gcc (powerpc*-*-* <extra_headers>): Install
1039         ppu_intrinsics.h.
1040
1041 2007-08-30  Kenneth Zadeck <zadeck@naturalbridge.com>
1042
1043         * cfg.c (dump_flow_info): Change to also print entry and exit
1044         block info.
1045         * print-rtl.c (print_rtl_single): Allow to print rtl with
1046         -fdump-unnumbered.
1047         
1048 2007-08-30  Kenneth Zadeck <zadeck@naturalbridge.com>
1049
1050         * df-core.h (df_dump_region): New function.
1051         * df.h (df_dump_region): New function.
1052         * loop-invariant.c (find_defs): Add call to df_dump_region.
1053         * loop-iv.c (iv_analysis_loop_init): Changed call from df_dump to
1054         df_dump_region.
1055         
1056 2007-08-30  Jakub Jelinek  <jakub@redhat.com>
1057
1058         PR target/33168
1059         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Return
1060         true if any of the compare_section_name calls returned true,
1061         rather than if any returned false.
1062
1063 2007-08-30  Richard Guenther  <rguenther@suse.de>
1064
1065         PR tree-optimization/33199
1066         * tree-ssa-structalias.c (handle_lhs_call): New function.
1067         (find_func_aliases): In non-IPA mode make sure that for
1068         calls that return a pointer we add a constraint for the
1069         result to point to anything.
1070
1071 2007-08-30  Richard Guenther  <rguenther@suse.de>
1072
1073         * doc/invoke.texi (-mveclibabi): Document new target option.
1074         * config/i386/i386.opt (-mveclibabi): New target option.
1075         * config/i386/i386.c (ix86_veclib_handler): Handler for
1076         vectorization library support.
1077         (override_options): Handle the -mveclibabi option, initialize
1078         the vectorization library handler.
1079         (ix86_builtin_vectorized_function): As fallback call the
1080         vectorization library handler, if set.
1081         (ix86_veclibabi_acml): New static function for ACML ABI style
1082         vectorization support.
1083
1084 2007-08-30  Jakub Jelinek  <jakub@redhat.com>
1085
1086         * config/rs6000/rs6000.c (rs6000_emit_sync): For QI or HI mode
1087         used_m, even if it is 32-bit aligned, adjust used_m MEM to have
1088         SImode and update m.  Don't run gen_lowpart_common on arbitrary
1089         memory address, force it to register first.
1090
1091         PR middle-end/32758
1092         * dce.c (dce_process_block): Don't delete setters of
1093         artificially used registers.
1094
1095 2007-08-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1096
1097         * config/s390/s390.md ("*add<mode>3_alc_carry1_cc",
1098         "*add<mode>3_alc_carry1_cconly", "*add<mode>3_alc_carry2_cc",
1099         "*add<mode>3_alc_carry2_cconly"): New insn definitions.
1100
1101 2007-08-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1102
1103         * config/s390/s390.c (s390_expand_addcc): Emit canonical alc
1104         pattern.
1105         * config/s390/s390.md ("*add<mode>3_alc_cc", "*add<mode>3_alc",
1106         "addti3", "*adddi3_31z", "*scond<mode>"): Make alc pattern canonical.
1107
1108 2007-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1109
1110         * system.h: Activate -Wcast-qual as warning-only.
1111
1112 2007-08-29  Paolo Bonzini  <bonzini@gnu.org>
1113
1114         PR target/33168
1115         * config/rs6000/rs6000.c (compare_section_name): New function.
1116         (rs6000_elf_in_small_data_p): Compare section prefixes instead
1117         of full name.
1118
1119 2007-08-29  Olivier Hainque  <hainque@adacore.com>
1120
1121         * xcoffout.c: #include debug.h.
1122         * Makefile.in (xcoffout.o): Add debug.h dependency.
1123
1124 2007-08-29  Uros Bizjak  <ubizjak@gmail.com>
1125
1126         * simplify-rtx.c (simplify_binary_operation_1) [VEC_SELECT]:
1127         Change CONST_VECTOR_ELT to XVECEXP in elem calculation.
1128
1129 2007-08-29  Richard Guenther  <rguenther@suse.de>
1130
1131         * tree-pretty-print.c (dump_generic_node): Print
1132         label DECL_UID as D.%u.
1133         * tree-dfa.c (dump_variable): Print DECL_UID as D.%u.
1134
1135 2007-08-29  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1136
1137         * gcc/builtin-types.def (BT_FN_PTR_PTR_SIZE): New type.
1138         * gcc/builtins.def (BUILT_IN_REALLOC): New builtin.
1139
1140 2007-08-29  Douglas Gregor  <doug.gregor@gmail.com>
1141
1142         PR c++/33194
1143         * tree.c (build_type_attribute_qual_variant): Set canonical types
1144         on the final, unqualified attribute variant before building the
1145         qualified version.
1146
1147 2007-08-29  Jie Zhang  <jie.zhang@analog.com>
1148
1149         * config/bfin/bfin.c (bfin_expand_builtin): Fix the argument
1150         order of __builtin_bfin_cmplx_mac and __builtin_bfin_cmplx_msu.
1151
1152 2007-08-29  Jie Zhang  <jie.zhang@analog.com>
1153
1154         Revert
1155         2007-08-29  Jie Zhang  <jie.zhang@analog.com>
1156         * config/bfin/bfin.md (composev2hi): Put operands into vector
1157         with correct order.
1158
1159 2007-08-29  Jie Zhang  <jie.zhang@analog.com>
1160
1161         * config/bfin/bfin.md (composev2hi): Put operands into vector
1162         with correct order.
1163
1164 2007-08-29  Jie Zhang  <jie.zhang@analog.com>
1165
1166         * config/bfin/bfin.c (bfin_expand_call): Inline PLT with l1_text
1167         attribute when appropriate.
1168         (bfin_handle_l1_text_attribute): New.
1169         (bfin_handle_l1_data_attribute): New.
1170         (bfin_attribute_table): Add attributes: l1_text, l1_data,
1171         l1_data_A and l1_data_B.
1172         * doc/extend.texi (node Function Attributes): Document l1_text
1173         function attribute.
1174         (Variable Attributes): Add Blackfin subsection. Document l1_data,
1175         l1_data_A and l1_data_B variable attributes.
1176
1177 2007-08-28  Jie Zhang  <jie.zhang@analog.com>
1178
1179         * config/bfin/bfin.opt (minline-plt): Add.
1180         * config/bfin/bfin.c (bfin_expand_call): Inline PLT when emit
1181         call to global functions.
1182         * doc/invoke.texi (Option Summary): Mention -minline-plt.
1183         (Blackfin Options): Document -minline-plt.
1184
1185 2007-08-28  Nathan Sidwell  <nathan@codesourcery.com>
1186
1187         * config/m68k/m68k.c (m68k_get_function_kind): Assert we're never
1188         given a non-function.
1189         (m68k_ok_for_sibcall_p): Only sibcall functions of the same kind.
1190
1191 2007-08-28  DJ Delorie  <dj@redhat.com>
1192
1193         * config/sh/sh.c (sh_gimplify_va_arg_expr): Fix sh2a support.
1194
1195 2007-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1196
1197         * system.h (CONST_CAST): Avoid union for gcc-4.0.x.
1198
1199 2007-08-28  Richard Guenther  <rguenther@suse.de>
1200
1201         * tree.h (struct tree_function_decl): Increase size of
1202         function_code bitfield.
1203
1204 2007-08-28  Nathan Sidwell  <nathan@codesourcery.com>
1205             Kazu Hirata  <kazu@codesourcery.com>
1206
1207         * gcc/config/m68k/linux.h
1208         (M68K_HONOR_TARGET_STRICT_ALIGNMENT): Redefine as 0.
1209         * config/m68k/m68k.c (TARGET_RETURN_IN_MEMORY): New.
1210         (m68k_return_in_memory): New.
1211         * gcc/config/m68k/m68k.h (M68K_HONOR_TARGET_STRICT_ALIGNMENT):
1212         New.
1213
1214 2007-08-28  Uros Bizjak  <ubizjak@gmail.com>
1215
1216         PR target/32661
1217         * simplify-rtx.c (simplify_binary_operation_1) [VEC_SELECT]:
1218         Simplify nested VEC_SELECT (with optional VEC_CONCAT operator as
1219         operand) when top VEC_SELECT extracts scalar element.
1220         * config/i386/sse.md (*vec_extract_v4si_mem): New pattern.
1221         (*vec_extract_v4sf_mem): Ditto.
1222
1223 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
1224
1225         PR middle-end/32370
1226         * passes.c (init_optimization_passes): Move pass_df_finish
1227         after pass_postreload sublist.
1228
1229         PR rtl-optimization/33148
1230         * simplify-rtx.c (simplify_unary_operation_1): Only optimize
1231         (neg (lt X 0)) if X has scalar int mode.
1232
1233         PR debug/32914
1234         * dwarf2out.c (rtl_for_decl_init): If vector decl has CONSTRUCTOR
1235         initializer, use build_vector_from_ctor if possible to create
1236         VECTOR_CST out of it.  If vector initializer is not VECTOR_CST
1237         even after this, return NULL.
1238
1239 2007-08-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1240
1241         * c-pretty-print.c (pp_c_constant): Handle COMPLEX_CST.
1242
1243 2007-08-28  Richard Guenther  <rguenther@suse.de>
1244
1245         * tree.h (DECL_DISREGARD_INLINE_LIMITS): New.
1246         (struct tree_function_decl): Make function_code a bitfield.
1247         Add disregard_inline_limits flag.
1248         * cgraphunit.c (cgraph_process_new_functions): Check
1249         DECL_DISREGARD_INLINE_LIMITS instead of disregard_inline_limits_p.
1250         (cgraph_preserve_function_body_p): Likewise.
1251         * ipa-inline.c (compute_inline_parameters): Likewise.
1252         * c-decl.c (finish_function): Set DECL_DISREGARD_INLINE_LIMITS
1253         for GNU C extern inline functions.
1254         (merge_decls): Merge DECL_DISREGARD_INLINE_LIMITS.
1255         * tree-inline.c (disregard_inline_limits_p): Remove.
1256         * tree-inline.h (disregard_inline_limits_p): Likewise.
1257         * c-common.c (handle_always_inline_attribute): Set
1258         DECL_DISREGARD_INLINE_LIMITS.
1259         * langhooks.c (add_builtin_function): Verify the function code
1260         fits in the bitfield.
1261
1262 2007-08-28  Mircea Namolaru  <namolaru@il.ibm.com>
1263             Vladimir Yanovsky  <yanov@il.ibm.com>
1264             Revital Eres  <eres@il.ibm.com>
1265             Andrey Belevantsev  <abel@ispras.ru>
1266
1267         * config/spu/spu.md: Recognize doloop pattern when -fmodulo-sched
1268         is set.
1269         * modulo-sched.c: Add documentation regarding do-loop.
1270         (doloop_register_get): Change number of arguments to support
1271         the new do-loop pattern and check whether COUNT_REG has no other
1272         occurences in the loop besides in the control part.
1273         (duplicate_insns_of_cycles): Do not duplicate the insn which
1274         changes count_reg as it is already adjusted.
1275         (generate_prolog_epilog): New argument to support the new
1276         do-loop pattern.  Change the subtract instruction to use
1277         expand_simple_binop.  Call duplicate_insns_of_cycles with new
1278         argument.
1279         (sms_schedule): Call doloop_register_get and
1280         generate_prolog_epilog with new argument.  Do not handle loops
1281         with single sets insns with subreg in their lhs.
1282         * loop-doloop.c (doloop_optimize): Support for another do-loop
1283         pattern.
1284         (doloop_condition_get): Gets an instruction instead of a pattern
1285         and change the return condition when the do-loop pattern is
1286         not parallel.
1287         * ddg.c (create_ddg_dep_from_intra_loop_link): Handle only reg
1288         deps when considering to not create edges.
1289
1290 2007-08-27  Alexandre Oliva  <aoliva@redhat.com>
1291
1292         * doc/extend.texi (gnu_inline funtion attribute): Document C++
1293         behavior.
1294
1295 2007-08-27  Jason Merrill  <jason@redhat.com>
1296
1297         PR c++/31337
1298         * gimplify.c (gimplify_modify_expr): Discard the assignment of 
1299         zero-sized types after calling gimplify_modify_expr_rhs.
1300
1301 2007-08-27  Sandra Loosemore  <sandra@codesourcery.com>
1302
1303         * regclass.c (init_reg_autoinc): Fix typo.
1304
1305 2007-08-27  Daniel Berlin  <dberlin@dberlin.org>
1306         
1307         Fix PR tree-optimization/33173
1308         * tree-ssa-alias.c (find_used_portions): Fix reversed test.
1309
1310 2007-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1311
1312         PR target/31385
1313         * config/i386/i386.h (VALID_DFP_MODE_P): New.
1314         * config/i386/i386.c (ix86_hard_regno_mode_ok): Allow DFP in
1315         GPR.
1316
1317 2007-08-27  Sandra Loosemore  <sandra@codesourcery.com>
1318             David Ung  <davidu@mips.com>
1319             Nigel Stephens <nigel@mips.com>
1320
1321         Separate target-specific initialization from general
1322         back-end initialization.
1323
1324         * toplev.c (init_alignments): New, split out from...
1325         (process_options): ...here.
1326         (backend_init_target): New, split out from...
1327         (backend_init): ...here.
1328         (lang_dependent_init_target): New, split out from...
1329         (lang_dependent_init): ...here.
1330         (target_reinit): New.
1331         * toplev.h (target_reinit): Declare.
1332         * expr.c (init_expr_target): Renamed from init_expr_once, since it
1333         now can be called more than once.  Update comments.
1334         * expr.h (init_expr_target): Likewise.
1335         * alias.c (init_alias_target): Renamed from init_alias_once, since it
1336         now can be called more than once.  Explicitly zero
1337         static_reg_base_value.
1338         * emit-rtl.c (init_emit_regs): New, split out from...
1339         (init_emit_once): Here.
1340         * regclass.c (initial_fixed_regs, initial_call_used_regs): Make
1341         non-const, so that changes from command-line arguments can overwrite
1342         values provided by the static initializers.
1343         (initial_call_really_used_regs): New, used similarly to the above.
1344         (initial_reg_names): Likewise.
1345         (last_mode_for_init_move_cost): Promoted function-local static to
1346         file-scope static to make it accessible outside init_move_cost.
1347         (init_reg_sets): Do not initialize fixed_regs and call_used_regs yet.
1348         Do not initialize inv_reg_alloc_order yet, either.  Do initialize
1349         reg_names since it is needed for parsing command-line options.
1350         (init_move_cost): Use last_mode_for_init_move_cost instead of
1351         function-local static.
1352         (init_reg_sets_1): Initialize fixed_regs, call_used_regs, and
1353         call_really_used_regs now.  Reinitialize reg_names.  Also
1354         initialize inv_reg_alloc_order.  Zero reg_class_subunion and
1355         reg_class_superunion.  Clear losing_caller_save_reg_set.
1356         Preserve global registers if called more than once.  Reset
1357         move cost, may_move_in_cost, may_move_out_cost, and
1358         last_mode_for_init_move_cost.
1359         (init_reg_modes_target): Renamed from init_reg_modes_once, since it
1360         can now be invoked more than once.  Update comments.
1361         (init_regs): Update comments.
1362         (fix_register): Update initial_fixed_regs, initial_call_used_regs,
1363         and initial_call_really_used_regs, instead of the non-initial 
1364         variables.  This allows us to save the command-line register settings
1365         after target reinitialization.
1366         (init_reg_autoinc): Zero forbidden_inc_dec_classes.
1367         * rtl.h (init_emit_regs): Declare.
1368         (init_reg_modes_target, init_alias_target): Renamed as described
1369         above.
1370         * reload1.c (init_reload): Update comments.
1371         * optabs.c (init_optabs): Likewise.
1372         * cfgloopanal.c (init_set_costs): Explicitly zero target_avail_regs.
1373         
1374 2007-08-26  Chao-ying Fu  <fu@mips.com>
1375
1376         * rtl.h (XCNMPFV): Preserve const-ness of parameters through use of
1377         __typeof().
1378
1379 2007-08-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1380
1381         * alias.c (memory_modified_1, memory_modified_in_insn_p):
1382         Constify.
1383         * basic-block.h (tree_predicted_by_p, rtl_predicted_by_p):
1384         Likewise.
1385         * bb-reorder.c (copy_bb_p): Likewise.
1386         * cfghooks.c (can_remove_branch_p, can_merge_blocks_p,
1387         predicted_by_p, can_duplicate_block_p, block_ends_with_call_p,
1388         block_ends_with_condjump_p): Likewise.
1389         * cfghooks.h (can_remove_branch_p, can_merge_blocks_p,
1390         predicted_by_p, can_duplicate_block_p, block_ends_with_call_p,
1391         block_ends_with_condjump_p): Likewise.
1392         * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
1393         * cfgrtl.c (can_delete_note_p, can_delete_label_p,
1394         rtl_can_merge_blocks, cfg_layout_can_merge_blocks_p,
1395         rtl_block_ends_with_call_p, rtl_block_ends_with_condjump_p,
1396         need_fake_edge_p, rtl_can_remove_branch_p): Likewise.
1397         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Use
1398         debug_true_const_tree instad of debug_true_tree.
1399         * debug.c (do_nothing_debug_hooks): Likewise.
1400         * debug.h (ignore_block, debug_true_const_tree): Constify.
1401         * dwarf2out.c (stack_adjust_offset, clobbers_queued_reg_save,
1402         dwarf2out_ignore_block, is_pseudo_reg, is_tagged_type,
1403         decl_ultimate_origin, block_ultimate_origin, lookup_decl_loc,
1404         same_dw_val_p, add_ranges, is_subrange_type, type_is_enum,
1405         dbx_reg_number, is_based_loc, field_type,
1406         simple_type_align_in_bits, simple_decl_align_in_bits,
1407         simple_type_size_in_bits, field_byte_offset, insert_float,
1408         type_tag, member_declared_type, is_redundant_typedef,
1409         secname_for_decl, is_inlined_entry_point): Likewise.
1410         * emit-rtl.c (const_next_insn, const_previous_insn,
1411         const_next_nonnote_insn, const_prev_nonnote_insn,
1412         const_next_real_insn, const_prev_real_insn,
1413         const_next_active_insn, const_prev_active_insn, const_next_label,
1414         const_prev_label): Likewise.
1415         * except.h (lookup_stmt_eh_region_fn, lookup_stmt_eh_region):
1416         Likewise.
1417         * haifa-sched.c (may_trap_exp, haifa_classify_insn,
1418         find_set_reg_weight, no_real_insns_p, find_set_reg_weight,
1419         sched_insn_is_legitimate_for_speculation_p): Likewise.
1420         * jump.c (reversed_comparison_code_parts,
1421         reversed_comparison_code, reversed_comparison, condjump_label):
1422         Likewise.
1423         * predict.c (rtl_predicted_by_p, tree_predicted_by_p): Likewise.
1424         * reg-stack.c (stack_regs_mentioned_p, stack_regs_mentioned):
1425         Likewise.
1426         * rtl.h (const_previous_insn, const_next_insn,
1427         const_prev_nonnote_insn, const_next_nonnote_insn,
1428         const_prev_real_insn, const_next_real_insn,
1429         const_prev_active_insn, const_next_active_insn, const_prev_label,
1430         const_next_label, modified_between_p, modified_in_p,
1431         const_note_storeskeep_with_call_p, condjump_label,
1432         reversed_comparison, reversed_comparison_code,
1433         reversed_comparison_code_parts, memory_modified_in_insn_p,
1434         stack_regs_mentioned): Likewise.
1435         * rtlanal.c (modified_between_p, modified_in_p, const_note_stores,
1436         keep_with_call_p): Likewise.
1437         * sched-deps.c (deps_may_trap_p, sched_get_condition,
1438         conditions_mutex_p, sched_insns_conditions_mutex_psd_next_list,
1439         sd_lists_size, sd_lists_empty_p): Likewise.
1440         * sched-int.h (sched_insns_conditions_mutex_p,
1441         haifa_classify_insn, no_real_insns_p,
1442         sched_insn_is_legitimate_for_speculation_p, sd_next_list,
1443         sd_lists_size, sd_lists_empty_p): Likewise.
1444         * sdbout.c (sdb_debug_hooks): Likewise.
1445         * tree-cfg.c (tree_can_merge_blocks_p, is_ctrl_altering_stmt,
1446         stmt_ends_bb_p, tree_can_remove_branch_p, tree_can_duplicate_bb_p,
1447         -tree_block_ends_with_call_p, tree_block_ends_with_condjump_p):
1448         Likewise.
1449         * tree-eh.c (lookup_stmt_eh_region_fn, lookup_stmt_eh_region,
1450         tree_can_throw_internal): Likewise.
1451         * tree-flow-inline.h (phi_nodes): Likewise.
1452         * tree-flow.h (phi_nodesstmt_ends_bb_p, is_ctrl_altering_stmt,
1453         tree_can_throw_internal, lookup_stmt_eh_region): Likewise.
1454         * tree-gimple.c (const_get_call_expr_in): Likewise.
1455         * tree-gimple.h (const_get_call_expr_in): Likewise.
1456         * tree.c (const_lookup_attribute, attribute_list_equal,
1457         attribute_list_contained): Likewise.
1458         * tree.h (attribute_list_equal, attribute_list_contained,
1459         const_lookup_attribute): Likewise.
1460         * vmsdbgout.c (vmsdbgout_ignore_block): Likewise.
1461
1462 2007-08-26  Bernhard Fischer  <aldot@gcc.gnu.org>
1463
1464         * tree-ssa-sccvn.c, tree-ssa-sccvn.h, tree-vn.c,
1465         tree-ssa-pre.c: Remove unnecessary trailing whitespace.
1466
1467 2007-08-26  H.J. Lu  <hongjiu.lu@intel.com>
1468
1469         PR target/32991
1470         * config/alpha/constraints.md: Delete "svn:mime-type" property
1471         with svn propdel "svn:mime-type".
1472
1473 2007-08-26  H.J. Lu  <hongjiu.lu@intel.com>
1474
1475         PR middle-end/33181
1476         * ifcvt.c (noce_get_alt_condition): Make sure that the previous
1477         non NOTE insn doesn't cross basic block.
1478         (noce_try_abs): Likewise.
1479         (noce_process_if_block): Likewise.
1480
1481 2007-08-26  David Edelsohn  <edelsohn@gnu.org>
1482
1483         PR target/33151
1484         * config/rs6000/predicates.md (offsettable_mem_operand): Memory
1485         operand without auto-inc-dec.
1486         * config/rs6000/rs6000.md (floatsidf2_internal): Use
1487         offsettable_mem_operand.
1488         (floatunssidf2_internal): Same.
1489         (fix_truncdfsi2_internal): Same.
1490         (floatsidf_ppc64): Same.
1491         (floatunssidf_ppc64): Same.
1492         (fix_trunctfsi2_internal): Same.
1493
1494 2007-08-26  Bernhard Fischer  <aldot@gcc.gnu.org>
1495
1496         PR bootstrap/30620
1497         * Makefile.in (libbackend.o): Add gcov-iov.h dependency and
1498         pass defines needed for version.c.
1499
1500 2007-08-25  Joseph Myers  <joseph@codesourcery.com>
1501
1502         * configure.ac (--debug-prefix-map check): Change assembler
1503         version presumed to have feature to 2.18.
1504         * configure: Regenerate.
1505
1506 2007-08-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1507
1508         * c-common.c (vector_types_convertible_p,
1509         decl_with_nonnull_addr_p, c_promoting_integer_type_p,
1510         self_promoting_args_p): Constify.
1511         * c-common.h (has_c_linkage, decl_with_nonnull_addr_p,
1512         c_promoting_integer_type_p, self_promoting_args_p,
1513         anon_aggr_type_p, vector_types_convertible_p): Likewise.
1514         * c-decl.c (anon_aggr_type_p): Likewise.
1515         * * c-dump.c (dump_stmt): Likewise.
1516         * c-objc-common.c (has_c_linkage): Likewise.
1517         * c-tree.h (same_translation_unit_p): Likewise.
1518         * c-typeck.c (null_pointer_constant_p,
1519         tagged_types_tu_compatible_p, function_types_compatible_p,
1520         type_lists_compatible_p, lvalue_or_else, lvalue_p,
1521         comptypes_internal, struct tagged_tu_seen_cache,
1522         same_translation_unit_p, alloc_tagged_tu_seen_cache,
1523         c_size_in_bytes): Likewise.
1524         * ggc-common.c (compare_ptr_data, hash_descriptor, eq_descriptor,
1525         hash_ptr, eq_ptr): Likewise.
1526         * langhooks-def.h (lhd_decl_ok_for_sibcall,
1527         LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE): Likewise.
1528         * langhooks.c (lhd_decl_ok_for_sibcall): Likewise.
1529         * langhooks.h (ok_for_sibcall, omp_privatize_by_reference):
1530         Likewise.
1531         * optabs.c (optab_for_tree_code): Likewise.
1532         * optabs.h (optab_for_tree_code): Likewise.
1533         * rtl.h (simplify_rtx): Likewise.
1534         * simplify-rtx.c (simplify_rtx): Likewise.
1535         * tree-dump.c (queue, queue_and_dump_index, queue_and_dump_type,
1536         dump_flag, dump_node): Likewise.
1537         * tree-dump.h (struct dump_info, dump_stmt, queue_and_dump_index,
1538         queue_and_dump_type, dump_flag): Likewise.
1539         * tree-flow.h (vect_can_force_dr_alignment_p): Likewise.
1540         * tree-pass.h (dump_node): Likewise.
1541         * tree-vectorizer.c (vect_can_force_dr_alignment_p,
1542         supportable_narrowing_operation): Likewise.
1543         * tree-vectorizer.h (vect_can_force_dr_alignment_p,
1544         supportable_narrowing_operation): Likewise.
1545         * tree-vrp.c (needs_overflow_infinity, supports_overflow_infinity,
1546         is_negative_overflow_infinity, is_positive_overflow_infinity,
1547         is_overflow_infinity, vrp_val_is_max, vrp_val_is_min,
1548         nonnull_arg_p, get_value_range, vrp_operand_equal_p,
1549         update_value_range, add_equivalence, ssa_name_nonnegative_p,
1550         ssa_name_nonzero_p, fp_predicate): Likewise.
1551         * tree.c (auto_var_in_fn_p, empty_body_p): Likewise.
1552         * tree.h (empty_body_p, auto_var_in_fn_p, ssa_name_nonzero_p,
1553         ssa_name_nonnegative_p): Likewise.
1554
1555 2007-08-25  Hans Kester  <hans.kester@ellips.nl>
1556
1557         * config.gcc : Add x86_64-elf target.
1558
1559 2007-08-25  Jakub Jelinek  <jakub@redhat.com>
1560
1561         * expr.c (store_expr): Fix order of store_by_pieces arguments.
1562
1563 2007-08-24  Sandra Loosemore  <sandra@codesourcery.com>
1564             Nigel Stephens <nigel@mips.com>
1565
1566         PR target/11787
1567
1568         * doc/tm.texi (SET_RATIO, SET_BY_PIECES_P): Document new macros.
1569         (STORE_BY_PIECES_P): No longer applies to __builtin_memset.
1570         * expr.c (SET_BY_PIECES_P): Define.
1571         (can_store_by_pieces, store_by_pieces): Add MEMSETP argument; use
1572         it to decide whether to use SET_BY_PIECES_P or STORE_BY_PIECES_P.
1573         (store_expr): Pass MEMSETP argument to can_store_by_pieces and
1574         store_by_pieces.
1575         * expr.h (SET_RATIO): Define.
1576         (can_store_by_pieces, store_by_pieces): Update prototypes.
1577         * builtins.c (expand_builtin_memcpy): Pass MEMSETP argument to
1578         can_store_by_pieces/store_by_pieces.
1579         (expand_builtin_memcpy_args): Likewise.
1580         (expand_builtin_strncpy): Likewise.
1581         (expand_builtin_memset_args): Likewise.  Also remove special case
1582         for optimize_size so that can_store_by_pieces/SET_BY_PIECES_P can
1583         decide what to do instead.
1584         * value-prof.c (tree_stringops_transform): Pass MEMSETP argument
1585         to can_store_by_pieces.
1586
1587         * config/sh/sh.h (SET_BY_PIECES_P): Clone from STORE_BY_PIECES_P.
1588         * config/s390/s390.h (SET_BY_PIECES_P): Likewise.
1589
1590         * config/mips/mips.opt (mmemcpy): Change from Var to Mask.
1591         * config/mips/mips.c (override_options): Make -Os default to -mmemcpy.
1592         * config/mips/mips.h (MIPS_CALL_RATIO): Define.
1593         (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Define.
1594         (STORE_BY_PIECES_P): Define.
1595
1596 2007-08-24  Tom Tromey  <tromey@redhat.com>
1597
1598         * varpool.c (varpool_last_needed_node): Fix comment typo.
1599         * c-decl.c (duplicate_decls): Fix comment typo.
1600         (clone_underlying_type): Update comment.
1601
1602 2007-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1603
1604         * config/alpha/alpha.c (alpha_mangle_type, decl_has_samegp,
1605         alpha_in_small_data_p, alpha_split_complex_arg,
1606         alpha_stdarg_optimize_hook, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
1607         Constify.
1608         * config/arm/arm-protos.h (arm_mangle_type): Likewise.
1609         * config/arm/arm.c (arm_comp_type_attributes, arm_mangle_type):
1610         Likewise.
1611         * config/bfin/bfin.c (funkind, bfin_comp_type_attributes,
1612         TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1613         * config/darwin-protos.h (darwin_binds_local_p): Likewise.
1614         * config/darwin.c (darwin_binds_local_p): Likewise.
1615         * config/frv/frv.c (frv_string_begins_with, frv_in_small_data_p):
1616         Likewise.
1617         * config/i386/i386-protos.h (i386_pe_binds_local_p,
1618         i386_pe_valid_dllimport_attribute_p): Likewise.
1619         * config/i386/i386.c (ix86_function_regparm,
1620         ix86_comp_type_attributes, ix86_ms_bitfield_layout_p,
1621         x86_can_output_mi_thunk, ix86_mangle_type,
1622         TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
1623         * config/i386/winnt.c (i386_pe_valid_dllimport_attribute_p,
1624         i386_pe_binds_local_p): Likewise.
1625         * config/ia64/ia64.c
1626         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec,
1627         ia64_needs_block_p, ia64_in_small_data_p, ia64_mangle_type,
1628         ia64_invalid_conversion, ia64_invalid_unary_op,
1629         ia64_invalid_binary_op, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
1630         Likewise.
1631         * config/m32c/m32c.c (m32c_comp_type_attributes): Likewise.
1632         * config/m32r/m32r.c (m32r_in_small_data_p): Likewise.
1633         * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1634         * config/mips/mips.c (mips_use_blocks_for_constant_p,
1635         mips_in_small_data_p, mips_use_anchors_for_symbol_p,
1636         mips_comp_type_attributes, TARGET_ASM_CAN_OUTPUT_MI_THUNK,
1637         mips_near_type_p, mips_far_type_p, mips_global_symbol_p,
1638         mips_symbol_binds_local_p, mips_classify_symbol): Likewise.
1639         * config/pa/pa.c (pa_commutative_p): Likewise.
1640         * config/rs6000/rs6000-protos.h (rs6000_elf_in_small_data_p):
1641         Likewise.
1642         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop,
1643         rs6000_ms_bitfield_layout_p, rs6000_mangle_type,
1644         rs6000_use_blocks_for_constant_p,
1645         rs6000_vector_alignment_reachable, rs6000_is_opaque_type,
1646         invalid_arg_for_unprototyped_fn, TARGET_ASM_CAN_OUTPUT_MI_THUNK,
1647         TARGET_SPLIT_COMPLEX_ARG, rs6000_elf_in_small_data_p): Likewise.
1648         * config/s390/s390.c (s390_mangle_type,
1649         TARGET_ASM_CAN_OUTPUT_MI_THUNK, TARGET_INVALID_WITHIN_DOLOOP):
1650         Likewise.
1651         * config/score/score.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK,
1652         th_in_small_data_p): Likewise.
1653         * config/sh/sh.c (sh_ms_bitfield_layout_p,
1654         sh_dwarf_calling_convention, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
1655         Likewise.
1656         * config/sparc/sparc.c (sparc_can_output_mi_thunk,
1657         sparc_mangle_type): Likewise.
1658         * config/spu/spu.c (spu_vector_alignment_reachable): Likewise.
1659         * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): Likewise.
1660         * emit-rtl.c (const_fixed_htab_hash, const_fixed_htab_eq):
1661         Likewise.
1662         * hooks.c (hook_bool_mode_const_rtx_false,
1663         hook_bool_mode_const_rtx_true,
1664         hook_bool_const_tree_hwi_hwi_const_tree_false,
1665         hook_bool_const_tree_hwi_hwi_const_tree_true,
1666         hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
1667         hook_constcharptr_const_tree_null,
1668         hook_constcharptr_const_rtx_null,
1669         hook_constcharptr_const_tree_const_tree_null,
1670         hook_constcharptr_int_const_tree_null,
1671         hook_constcharptr_int_const_tree_const_tree_null): New.
1672         (hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
1673         hook_bool_tree_hwi_hwi_tree_false,
1674         hook_bool_tree_hwi_hwi_tree_true, hook_int_tree_0,
1675         hook_int_tree_tree_1, hook_constcharptr_tree_null,
1676         hook_constcharptr_rtx_null, hook_constcharptr_tree_tree_null,
1677         hook_constcharptr_int_tree_null,
1678         hook_constcharptr_int_tree_tree_null): Delete.
1679         (default_can_output_mi_thunk_no_vcall): Constify.
1680         * hooks.h (hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
1681         hook_bool_tree_hwi_hwi_tree_false,
1682         hook_bool_tree_hwi_hwi_tree_true, hook_int_tree_0,
1683         hook_int_tree_tree_1, hook_constcharptr_tree_null,
1684         hook_constcharptr_rtx_null, hook_constcharptr_tree_tree_null,
1685         hook_constcharptr_int_tree_null,
1686         hook_constcharptr_int_tree_tree_null): Delete.
1687         (hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
1688         hook_bool_const_tree_hwi_hwi_const_tree_false,
1689         hook_bool_const_tree_hwi_hwi_const_tree_true,
1690         hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
1691         hook_constcharptr_const_tree_null,
1692         hook_constcharptr_const_rtx_null,
1693         hook_constcharptr_const_tree_const_tree_null,
1694         hook_constcharptr_int_const_tree_null,
1695         hook_constcharptr_int_const_tree_const_tree_null): New.
1696         (default_can_output_mi_thunk_no_vcall): Constify.
1697         * integrate.c (function_attribute_inlinable_p): Likewise.
1698         * integrate.h (function_attribute_inlinable_p): Likewise.
1699         * jump.c (rtx_renumbered_equal_p): Likewise.
1700         * output.h (decl_readonly_section, categorize_decl_for_section,
1701         default_use_anchors_for_symbol_p, default_binds_local_p,
1702         default_binds_local_p_1): Likewise.
1703         * rtl.h (rtx_renumbered_equal_p, decl_default_tls_model):
1704         Likewise.
1705         * target-def.h (TARGET_ASM_CAN_OUTPUT_MI_THUNK,
1706         TARGET_VALID_DLLIMPORT_ATTRIBUTE_P, TARGET_VECTOR_OPAQUE_P,
1707         TARGET_COMMUTATIVE_P, TARGET_USE_BLOCKS_FOR_CONSTANT_P,
1708         TARGET_COMP_TYPE_ATTRIBUTES,
1709         TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P,
1710         TARGET_MS_BITFIELD_LAYOUT_P, TARGET_MANGLE_TYPE,
1711         TARGET_IN_SMALL_DATA_P, TARGET_INVALID_CONVERSION,
1712         TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP,
1713         TARGET_DWARF_CALLING_CONVENTION): Likewise.
1714         * target.h (can_output_mi_thunk, needs_block_p,
1715         first_cycle_multipass_dfa_lookahead_guard_spec,
1716         vector_alignment_reachable, comp_type_attributes,
1717         function_attribute_inlinable_p, ms_bitfield_layout_p, mangle_type,
1718         commutative_p, use_blocks_for_constant_p,
1719         use_anchors_for_symbol_p, in_small_data_p, binds_local_p,
1720         vector_opaque_p, dwarf_calling_convention, stdarg_optimize_hook,
1721         invalid_within_doloop, valid_dllimport_attribute_p,
1722         split_complex_arg, invalid_arg_for_unprototyped_fn,
1723         invalid_conversion, invalid_unary_op, invalid_binary_op):
1724         Likewise.
1725         * targhooks.c (default_invalid_within_doloop,
1726         hook_invalid_arg_for_unprototyped_fn,
1727         default_builtin_vector_alignment_reachable): Likewise.
1728         (hook_bool_rtx_commutative_p): Delete.
1729         (hook_bool_const_rtx_commutative_p): New.
1730         * targhooks.h (default_invalid_within_doloop,
1731         default_builtin_vector_alignment_reachable,
1732         hook_invalid_arg_for_unprototyped_fn): Constify.
1733         (hook_bool_rtx_commutative_p): Delete.
1734         (hook_bool_const_rtx_commutative_p): New.
1735         * varasm.c (bss_initializer_p, decl_default_tls_model,
1736         categorize_decl_for_section, decl_readonly_section,
1737         default_use_anchors_for_symbol_p, default_binds_local_p,
1738         default_binds_local_p_1): Constify.
1739
1740 2007-08-24  Jie Zhang  <jie.zhang@analog.com>
1741
1742         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1743         __NO_BUILTIN if -fno-builtin.
1744
1745 2007-08-24  Jie Zhang  <jie.zhang@analog.com>
1746
1747         * config/bfin/bfin.c (print_operand): Report error instead of
1748         ICE for wrong operand.
1749
1750 2007-08-24  Michael Matz  <matz@suse.de>
1751
1752         * Makefile.in (GTFILES_H): Use $(patsubst) instead of $(subst).
1753
1754 2007-08-24  Richard Guenther  <rguenther@suse.de>
1755
1756         PR middle-end/33166
1757         * tree-ssa.c (useless_type_conversion_p): Split into a
1758         recursive and a non-recursive part.
1759         (useless_type_conversion_p_1): New function.
1760         * tree-ssa-ccp.c (fold_stmt_r): Make sure that the result
1761         from maybe_fold_offset_to_reference is trivially convertible
1762         to the desired type before doing the simplification.
1763
1764 2007-08-24  Jakub Jelinek  <jakub@redhat.com>
1765
1766         * expr.c (store_expr): Optimize initialization of an array
1767         with STRING_CST.
1768         * expr.h (builtin_strncpy_read_str): New prototype.
1769         * builtins.c (builtin_strncpy_read_str): Remove prototype.
1770         No longer static.
1771
1772 2007-08-24  Uros Bizjak  <ubizjak@gmail.com>
1773
1774         PR middle-end/33157
1775         * ifcvt.c (noce_find_if_block): Do not clear if_info.cond_earliest
1776         field when initializing if_info structure.
1777
1778 2007-08-24  Richard Guenther  <rguenther@suse.de>
1779
1780         * Makefile.in (tree-inline.o): Add $(TARGET_H) and $(INTEGRATE_H)
1781         dependencies.
1782         * c-objc-common.c (c_cannot_inline_tree_fn): Remove.
1783         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Likewise.
1784         * tree-inline.c (inlinable_function_p): Fold in common parts of
1785         the cannot_inline_tree_fn langhook.
1786         * langhooks-def.h (lhd_tree_inlining_cannot_inline_tree_fn): Remove.
1787         (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN): Likewise.
1788         (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
1789         cannot_inline_tree_fn langhook.
1790         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
1791         cannot_inline_tree_fn member.
1792
1793 2007-08-24  Richard Guenther  <rguenther@suse.de>
1794
1795         * expr.c (get_inner_reference): Do computation of bitoffset
1796         from offset in a way we can detect overflow reliably.
1797
1798 2007-08-24  Jie Zhang  <jie.zhang@analog.com>
1799
1800         * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define for uClibc.
1801
1802 2007-08-24  Jie Zhang  <jie.zhang@analog.com>
1803
1804         * config/bfin/bfin.opt (mfast-fp): Add.
1805         * config/bfin/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Let
1806         libbffastfp override libgcc if -mfast-fp.
1807         * config/bfin/bfin.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
1808         * doc/invoke.texi (Option Summary): Mention -mfast-fp.
1809         (Blackfin Options): Document -mfast-fp.
1810
1811 2007-08-24  Jakub Jelinek  <jakub@redhat.com>
1812
1813         PR tree-optimization/32573
1814         PR middle-end/32946
1815         * tree-data-ref.c (initialize_data_dependence_relation): Clear
1816         DDR_SUBSCRIPTS, DDR_DIR_VECTS and DDR_DIST_VECTS at the beginning.
1817         (finalize_ddr_dependent): Clear DDR_SUBSCRIPTS after freeing it.
1818         (build_classic_dist_vector): Return false rather than true if
1819         DDR_ARE_DEPENDENT is non-NULL at the beginning.  Return false
1820         if either subscript_dependence_tester_1 or build_classic_dist_vector_1
1821         returned false.  Don't call save_dist_v before calling
1822         build_classic_dist_vector_1.
1823         (free_dependence_relation): Don't guard freeing DDR_SUBSCRIPTS
1824         with NULL DDR_ARE_DEPENDENT.  Also free DDR_DIST_VECTS and/or
1825         DDR_DIR_VECTS vectors.
1826
1827 2007-08-23  Brian Sidebotham  <brian.sidebotham@gmail.com>
1828
1829         * configure.ac (leb128): Modify sed statement to work with any
1830         binutils version string.
1831         * configure: Regenerate
1832
1833 2007-08-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1834
1835         * config/arc/arc-protos.h arc_select_cc_mode, gen_compare_reg):
1836         Wrap in RTX_CODE macro guard.
1837         * config/arm/pe.c (arm_dllexport_p, arm_dllimport_p,
1838         arm_dllexport_name_p, arm_dllimport_name_p, arm_mark_dllexport,
1839         arm_mark_dllimport, arm_pe_encode_section_info,
1840         arm_pe_unique_section): Use ISO-C function declarations.
1841         * config/c4x/c4x-c.c (c4x_parse_pragma, c4x_pr_CODE_SECTION,
1842         c4x_pr_DATA_SECTION, c4x_pr_FUNC_IS_PURE,
1843         c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT, c4x_pr_ignored):
1844         Likewise.
1845         * config/iq2000/iq2000.h (ASM_OUTPUT_SKIP): Fix format warning.
1846         * config/m68hc11/m68hc11.h (ASM_OUTPUT_EXTERNAL): Undef before
1847         defining.
1848         * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Fix format
1849         warnings.
1850         * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Likewise.
1851         * config/pdp11/pdp11.c (pdp11_output_function_epilogue): Likewise.
1852         (register_move_cost): Use ISO-C function declarations.
1853         * config/pdp11/pdp11.h (PRINT_OPERAND): Fix format warnings.
1854         * config/score/score-protos.h (score_declare_object): Add
1855         ATTRIBUTE_PRINTF_4.
1856         * config/score/score.h (ASM_DECLARE_OBJECT_NAME): Fix format
1857         warnings.
1858         * final.c (profile_function): Avoid empty if-bodies.
1859         
1860         
1861         * calls.c (must_pass_in_stack_var_size,
1862         must_pass_in_stack_var_size_or_pad): Constify.
1863         * config/alpha/alpha-protos.h (function_value): Likewise.
1864         * config/alpha/alpha.c (alpha_return_in_memory,
1865         alpha_pass_by_reference, function_value,
1866         unicosmk_must_pass_in_stack, TARGET_PROMOTE_FUNCTION_ARGS,
1867         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
1868         Likewise.
1869         * config/arc/arc.c (arc_return_in_memory, arc_pass_by_reference,
1870         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
1871         TARGET_PROMOTE_PROTOTYPES): Likewise.
1872         * config/arm/arm-protos.h (arm_return_in_memory,
1873         arm_pad_arg_upward, arm_function_value): Likewise.
1874         * config/arm/arm.c (arm_pass_by_reference,
1875         arm_promote_prototypes, arm_return_in_msb, arm_must_pass_in_stack,
1876         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
1877         arm_function_value, arm_return_in_memory, arm_pad_arg_upward):
1878         Likewise.
1879         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
1880         * config/avr/avr-protos.h (avr_function_value): Likewise.
1881         * config/avr/avr.c (avr_return_in_memory,
1882         gas_output_limited_string, gas_output_ascii, avr_function_value,
1883         avr_return_in_memory): Likewise.
1884         * config/bfin/bfin-protos.h (bfin_return_in_memory): Likewise.
1885         * config/bfin/bfin.c (bfin_pass_by_reference,
1886         bfin_return_in_memory, TARGET_PROMOTE_PROTOTYPES,
1887         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN):
1888         Likewise.
1889         * config/cris/cris.c (cris_pass_by_reference,
1890         TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
1891         * config/crx/crx.c (crx_return_in_memory): Likewise.
1892         * config/darwin.c (function_base, machopic_function_base_name):
1893         Likewise.
1894         * config/fr30/fr30.c (fr30_must_pass_in_stack,
1895         TARGET_PROMOTE_PROTOTYPES): Likewise.
1896         * config/frv/frv.c (frv_must_pass_in_stack): Likewise.
1897         * config/h8300/h8300.c (h8300_return_in_memory): Likewise.
1898         * config/i386/i386-protos.h (ix86_return_in_memory,
1899         ix86_sol10_return_in_memory): Likewise.
1900         * config/i386/i386.c (ix86_function_value,
1901         ix86_function_sseregparm, ix86_must_pass_in_stack,
1902         type_natural_mode, classify_argument, examine_argument,
1903         construct_container, ix86_pass_by_reference, function_value_32,
1904         function_value_64, ix86_function_value_1, return_in_memory_32,
1905         return_in_memory_64, return_in_memory_ms_64,
1906         ix86_return_in_memory, ix86_sol10_return_in_memory,
1907         TARGET_PROMOTE_PROTOTYPES): Likewise.
1908         * config/ia64/ia64-protos.h (ia64_function_value,
1909         ia64_hpux_function_arg_padding): Likewise.
1910         * config/ia64/ia64.c (hfa_element_mode, ia64_return_in_memory,
1911         ia64_function_value, bundle_state_hash, bundle_state_eq_p,
1912         ia64_hpux_function_arg_padding): Likewise.
1913         * config/iq2000/iq2000-protos.h (function_arg,
1914         iq2000_function_value): Likewise.
1915         * config/iq2000/iq2000.c (iq2000_return_in_memory,
1916         iq2000_pass_by_reference, TARGET_PROMOTE_FUNCTION_ARGS,
1917         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
1918         function_arg, iq2000_function_value): Likewise.
1919         * config/m32c/m32c-protos.h (m32c_function_value,
1920         m32c_promote_function_return): Likewise.
1921         * config/m32c/m32c.c (m32c_pass_by_reference,
1922         m32c_promote_prototypes, m32c_promote_function_return,
1923         m32c_function_value): Likewise.
1924         * config/m32r/m32r.c (m32r_return_in_memory,
1925         m32r_pass_by_reference, TARGET_PROMOTE_PROTOTYPES,
1926         m32r_in_small_data_p): Likewise.
1927         * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg_padding):
1928         Likewise.
1929         * config/m68hc11/m68hc11.c (m68hc11_return_in_memory,
1930         m68hc11_function_arg_padding): Likewise.
1931         * config/m68k/m68k-protos.h (m68k_function_value): Likewise.
1932         * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES,
1933         m68k_function_value): Likewise.
1934         * config/mcore/mcore-protos.h (mcore_num_arg_regs,
1935         mcore_function_value): Likewise.
1936         * config/mcore/mcore.c (handle_structs_in_regs,
1937         mcore_return_in_memory, TARGET_PROMOTE_FUNCTION_ARGS,
1938         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
1939         mcore_num_arg_regs, mcore_function_value): Likewise.
1940         * config/mips/mips-protos.h (mips_pad_arg_upward,
1941         mips_function_value): Likewise.
1942         * config/mips/mips.c (mips_fpr_return_fields, mips_return_in_msb,
1943         mips_return_in_memory, mips_pass_by_reference, mips_callee_copies,
1944         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
1945         TARGET_PROMOTE_PROTOTYPES, mips_pad_arg_upward,
1946         mips_function_value): Likewise.
1947         * config/mmix/mmix-protos.h (mmix_function_outgoing_value):
1948         Likewise.
1949         * config/mmix/mmix.c (mmix_pass_by_reference,
1950         TARGET_PROMOTE_FUNCTION_ARGS, mmix_function_outgoing_value,
1951         mmix_encode_section_info): Likewise.
1952         * config/mn10300/mn10300-protos.h (mn10300_function_value):
1953         Likewise.
1954         * config/mn10300/mn10300.c (mn10300_return_in_memory,
1955         mn10300_pass_by_reference, TARGET_PROMOTE_PROTOTYPES,
1956         mn10300_function_value): Likewise.
1957         * config/mt/mt-protos.h (mt_function_value): Likewise.
1958         * config/mt/mt.c (mt_pass_by_reference, mt_function_value,
1959         mt_pass_in_stack, TARGET_PROMOTE_PROTOTYPES): Likewise.
1960         * config/pa/pa-protos.h (function_arg_padding, function_value,
1961         pa_return_in_memory): Likewise.
1962         * config/pa/pa.c (pa_pass_by_reference,
1963         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
1964         function_arg_padding, function_value, pa_return_in_memory):
1965         Likewise.
1966         * config/pdp11/pdp11.c (pdp11_return_in_memory): Likewise.
1967         * config/rs6000/rs6000-protos.h (rs6000_function_value,
1968         function_arg_padding): Likewise.
1969         * config/rs6000/rs6000.c (rs6000_return_in_memory,
1970         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
1971         rs6000_pass_by_reference, rs6000_must_pass_in_stack,
1972         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
1973         function_arg_padding, altivec_expand_dst_builtin,
1974         altivec_expand_builtin, rs6000_expand_builtin, spe_init_builtins,
1975         altivec_init_builtins, rs6000_common_init_builtins,
1976         rs6000_function_value): Likewise.
1977         * s390/s390-protos.h (s390_function_value): Likewise.
1978         * config/s390/s390.c (s390_function_arg_size,
1979         s390_pass_by_reference, s390_return_in_memory,
1980         s390_function_value, TARGET_PROMOTE_FUNCTION_ARGS,
1981         TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
1982         * config/score/score-protos.h (score_function_value): Likewise.
1983         * config/score/score.c (score_arg_partial_bytes,
1984         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
1985         TARGET_PROMOTE_PROTOTYPES, score_return_in_memory,
1986         score_pass_by_reference, score_add_offset, score_function_value):
1987         Likewise.
1988         * config/sh/sh-protos.h (sh_attr_renesas_p,
1989         sh_promote_prototypes): Likewise.
1990         * config/sh/sh.c (sh_return_in_memory, sh_pass_by_reference,
1991         sh_callee_copies, sh_promote_prototypes, shcompact_byref,
1992         sh_attr_renesas_p): Likewise.
1993         * config/sparc/sparc-protos.h (function_value,
1994         function_arg_padding): Likewise.
1995         * config/sparc/sparc.c (sparc_promote_prototypes,
1996         sparc_return_in_memory, sparc_pass_by_reference,
1997         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
1998         function_arg_record_value_2, function_arg_record_value_1,
1999         function_arg_record_value, function_arg_record_value,
2000         function_arg_padding, function_value): Likewise.
2001         * config/spu/spu-protos.h (spu_function_value): Likewise.
2002         * config/spu/spu.c (spu_pass_by_reference, spu_return_in_memory,
2003         spu_function_value): Likewise.
2004         * config/stormy16/stormy16-protos.h (xstormy16_function_value):
2005         Likewise.
2006         * config/stormy16/stormy16.c (xstormy16_return_in_memory,
2007         xstormy16_function_value, TARGET_PROMOTE_FUNCTION_ARGS,
2008         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
2009         Likewise.
2010         * config/v850/v850.c (v850_return_in_memory,
2011         v850_pass_by_reference, TARGET_PROMOTE_PROTOTYPES): Likewise.
2012         * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): Likewise.
2013         * config/xtensa/xtensa.c (xtensa_return_in_msb,
2014         xtensa_return_in_memory, TARGET_PROMOTE_FUNCTION_ARGS,
2015         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
2016         Likewise.
2017         * explow.c (promote_mode, hard_function_value): Likewise.
2018         * expr.h (hard_function_value, promote_mode): Likewise.
2019         * function.c (aggregate_value_p): Likewise.
2020         * hooks.c (hook_bool_const_tree_true): New.
2021         * hooks.h (hook_bool_const_tree_true): New.
2022         * sdbout.c (SET_KNOWN_TYPE_TAG, plain_type_1): Constify.
2023         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
2024         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
2025         TARGET_RETURN_IN_MSB): Likewise.
2026         * target.h (promote_function_args, promote_function_return,
2027         promote_prototypes, return_in_memory, return_in_msb,
2028         pass_by_reference, must_pass_in_stack, callee_copies,
2029         function_value): Likewise.
2030         * targhooks.c (default_return_in_memory,
2031         hook_pass_by_reference_must_pass_in_stack,
2032         hook_callee_copies_named,
2033         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false,
2034         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true,
2035         default_function_value): Likewise. 
2036         * targhooks.h (default_return_in_memory,
2037         hook_pass_by_reference_must_pass_in_stack,
2038         hook_callee_copies_named,
2039         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false,
2040         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true,
2041         default_function_value): Likewise.
2042         * tree-ssa-structalias.c (const_equiv_class_label_t): New.
2043         (equiv_class_label_hash, equiv_class_label_eq): Constify.
2044         * tree-vectorizer.c (bb_in_loop_p): Likewise.
2045         * tree.c (needs_to_live_in_memory): Likewise.
2046         * tree.h (struct tree_type, needs_to_live_in_memory,
2047         aggregate_value_p, must_pass_in_stack_var_size,
2048         must_pass_in_stack_var_size_or_pad): Likewise.
2049         * vmsdbgout.c (write_debug_addr, write_debug_delta4,
2050         write_debug_string, ASM_OUTPUT_DEBUG_STRING, write_rtnbeg,
2051         lookup_filename): Likewise.
2052
2053 2007-08-23  Uros Bizjak  <ubizjak@gmail.com>
2054
2055         PR target/17390
2056         * config/i386/i386.c (ix86_expand_fp_compare): Expand fp comparison to
2057         fake fcomi i387 instruction for !TARGET_CMOVE.
2058         (ix86_expand_branch): Expand natural sequence with one jump for
2059         all targets, not only TARGET_CMOVE.
2060         * config/i386/i386.md (*cmpfp_0_cc): New define_insn_and_split
2061         pattern to implement fake fcomi sequence.  Split instruction after
2062         reload to correct compare sequences.
2063         (*cmpfp_xf_cc): Ditto.
2064         (*cmpfp_<mode>_cc): Ditto.
2065         (*cmpfp_u_cc): Ditto.
2066         (*cmpfp_<mode>_cc): Ditto.
2067
2068 2007-08-23  Richard Guenther  <rguenther@suse.de>
2069
2070         * tree-pretty-print.c (dump_generic_node): Annotate
2071         GIMPLE_MODIFY_STMTs with volatile ops with "{v}".
2072
2073 2007-08-23  Richard Guenther  <rguenther@suse.de>
2074
2075         * builtins.c (expand_builtin_mathfn): Wrap argument in
2076         save_expr directly instead of re-building the call.
2077         (expand_builtin_mathfn_2): Likewise.
2078         (expand_builtin_mathfn_3): Likewise.
2079         (expand_builtin_interclass_mathfn): Likewise.
2080         (expand_builtin_int_roundingfn): Set arg.
2081         (expand_builtin_int_roundingfn_2): Likewise.
2082
2083 2007-08-23  Paolo Bonzini  <bonzini@gnu.org>
2084
2085         * config/i386/sse.md (*sse_and<mode>3, *sse_ior<mode>3,
2086         *sse_nand<mode>3, *sse_xor<mode>3): New.
2087
2088 2007-08-23  Uros Bizjak  <ubizjak@gmail.com>
2089
2090         * config/i386/i386.h (PRINT_OPERAND_PUNCT_VALID_P): Add ';' code.
2091         * config/i386/i386.c (print_operand): Handle ';' code.  Output
2092         semicolon for TARGET_MACHO.
2093         * config/i386/sync.md (*sync_compare_and_swap<mode>): Use '%;' to
2094         emit semicolon after 'lock' prefix.
2095         (sync_double_compare_and_swap<mode>): Ditto.
2096         (*sync_double_compare_and_swapdi_pic): Ditto.
2097         (*sync_compare_and_swap_cc<mode>): Ditto.
2098         (sync_double_compare_and_swap_cc<mode>): Ditto.
2099         (*sync_double_compare_and_swap_ccdi_pic): Ditto.
2100         (sync_old_add<mode>): Ditto.
2101         (sync_add<mode>): Ditto.
2102         (sync_sub<mode>): Ditto.
2103         (sync_ior<mode>): Ditto.
2104         (sync_and<mode>): Ditto.
2105         (sync_xor<mode>): Ditto.
2106
2107 2007-08-22  Chao-ying Fu  <fu@mips.com>
2108
2109         * rtl.c (rtx_code_size): Check CONST_FIXED to calcualte correct sizes
2110         in DEF_RTL_EXPR.
2111         (copy_rtx): Handle CONST_FIXED.
2112         (rtx_equal_p): Likewise.
2113         * rtl.h (fixed_value.h): New include.
2114         (rtx_def): Add a new field of fixed_value to u.
2115         (XCNMPFV): Define for accessing fixed_value.
2116         (CONST_FIXED_VALUE, CONST_FIXED_VALUE_HIGH, CONST_FIXED_VALUE_LOW):
2117         Define.
2118         * rtl.def (CONST_FIXED): New constant.
2119         (SS_MULT, US_MULT, SS_DIV, US_DIV, FRACT_CONVERT,
2120         UNSIGNED_FRACT_CONVERT, SAT_FRACT, UNSIGNED_SAT_FRACT, US_NEG,
2121         US_ASHIFT): New codes.
2122         * doc/rtl.texi (Expressions): Document const_fixed, us_neg, ss_mult,
2123         us_mult, ss_div, us_div, us_ashift, fract_convert, sat_fract,
2124         unsigned_fract_convert, unsigned_sat_fract): Document them.
2125         * varasm.c (assemble_integer): Extend to support fixed-point constants
2126         by using different machine classes.
2127         (decode_addr_const): Handle FIXED_CST.
2128         (const_hash_1): Likewise.
2129         (compare_constant): Likewise.
2130         (copy_constant): Likewise.
2131         (const_rtx_hash_1): Handle CONST_FIXED.
2132         (output_constant_pool_2): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
2133         MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
2134         MODE_VECTOR_UACCUM.
2135         (initializer_constant_valid_p): Handle FIXED_CST.
2136         (output_constant): Support FIXED_POINT_TYPE.
2137         * gengenrtl.c (excluded_rtx): Check CONST_FIXED to exclude.
2138         * cse.c (hash_rtx): Support CONST_FIXED.
2139         (exp_equiv_p): Likewise.
2140         (cannon_reg): Likewise.
2141         (fold_rtx): Likewise.
2142         (equiv_constant): Likewise.
2143         (cse_process_notes_1): Likewise.
2144         (count_reg_usage): Likewise.
2145         * cselib.c (entry_and_rtx_equal_p): Check CONST_FIXED.
2146         (rtx_equal_for_cselib_p): Handle CONST_FIXED.
2147         (wrap_constant): Check CONST_FIXED.
2148         (cselib_hash_rtx): Support CONST_FIXED.
2149         (cselib_subst_to_values): Likewise.
2150         * df-scan.c (df_uses_record): Likewise.
2151         * gcse.c (want_to_gcse_p): Likewise.
2152         (oprs_unchanged_p): Likewise.
2153         (oprs_not_set_p): Likewise.
2154         (compute_transp): Likewise.
2155         (extract_mentioned_regs_helper): Likewise.
2156         * genemit.c (gen_exp): Likewise.
2157         * local-alloc.c (equiv_init_varies_p): Likewise.
2158         (contains_replace_regs): Likewise.
2159         (memref_referenced_p): Likewise.
2160         * loop-invariant.c (check_maybe_invariant): Likewise.
2161         (hash_invariant_expr_1): Likewise.
2162         (invariant_expr_equal_p): Likewise.
2163         * postreload-gcse.c (oprs_unchanged_p): Likewise.
2164         * regclass.c (reg_scan_mark_refs): Likewise.
2165         * regrename.c (scan_rtx): Likewise.
2166         * resource.c (mark_referenced_resources): Likewise.
2167         (mark_set_resources): Likewise.
2168         * rtlanal.c (rtx_unstable_p): Likewise.
2169         (rtx_varies_p): Likewise.
2170         (count_occurrences): Likewise.
2171         (reg_mentioned_p): Likewise.
2172         (modified_between_p): Likewise.
2173         (modified_in_p): Likewise.
2174         (volatile_insn_p): Likewise.
2175         (volatile_refs_p): Likewise.
2176         (side_effects_p): Likewise.
2177         (may_trap_p_1): Likewise.
2178         (inequality_comparisons_p): Likewise.
2179         (computed_jump_p_1): Likewise.
2180         (commutative_operand_precedence): Likewise.
2181         * sched-deps.c (sched_analyze_2): Likewise.
2182         * sched-vis.c (print_value): Likewise.
2183         * reload.c (operands_match_p): Likewise.
2184         (subst_reg_equivs): Likewise.
2185         * reload1.c (eliminate_regs_1): Likewise.
2186         (elimination_effects): Likewise.
2187         (scan_paradoxical_subregs): Likewise.
2188         * alias.c (rtx_equal_for_memref_p): Likewise.
2189         * Makefile.in (RTL_BASE_H): Add fixed-value.h.
2190         * emit-rtl.c (const_fixed_htab): New hash table.
2191         (const_fixed_htab_hash, const_fixed_htab_eq, lookup_const_fixed):
2192         Declare.
2193         (const_fixed_htab_hash, const_fixed_htab_eq, lookup_const_fixed,
2194         const_fixed_from_fixed_value): New functions.
2195         (verify_rtx_sharing): Handle CONST_FIXED.
2196         (copy_rtx_if_shared_1): Likewise.
2197         (reset_used_flags): Likewise.
2198         (set_used_flags): Likewise.
2199         (copy_insn_1): Likewise.
2200         (init_emit_once): Create const_fixed_htab.
2201         Store fixed-point scalar and vector zero and one to const_tiny_rtx.
2202
2203 2007-08-22  Zdenek Dvorak  <ook@ucw.cz>
2204
2205         PR tree-optimization/32949
2206         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Test nowrap_type_p
2207         before failing for ivs with non-constant step.
2208
2209 2007-08-22  Hans-Peter Nilsson  <hp@axis.com>
2210
2211         * doc/md.texi (Iterators): Renamed from Macros.  All contents
2212         changed to reflect rename of respectively define_code_macro and
2213         define_mode_macro to define_code_iterator and define_mode_iterator.
2214         (Mode Iterators, Code Iterators): Similar.
2215         * read-rtl.c (struct iterator_group, struct iterator_traverse_data)
2216         (uses_mode_iterator_p, apply_mode_iterator, uses_code_iterator_p)
2217         (apply_iterator_to_string, uses_iterator_p, apply_iterator_traverse)
2218         (initialize_iterators, find_iterator, check_code_iterator)
2219         (map_attr_string, apply_mode_maps, apply_iterator_to_rtx, add_mapping)
2220         (read_mapping, read_rtx_1): Similar.
2221         * config/alpha/sync.md, config/alpha/alpha.md, config/frv/frv.md,
2222         config/s390/s390.md, config/m32c/blkmov.md, config/m32c/m32c.md,
2223         config/spu/spu.md, config/sparc/sparc.md, config/sparc/sync.md,
2224         config/i386/i386.md, config/i386/mmx.md, config/i386/sse.md,
2225         config/i386/sync.md, config/crx/crx.md, config/xtensa/xtensa.md,
2226         config/cris/cris.c, config/cris/cris.md, config/ia64/sync.md,
2227         config/ia64/div.md, config/ia64/vect.md, config/ia64/ia64.md,
2228         config/m68k/m68k.md, config/rs6000/spe.md, config/rs6000/altivec.md,
2229         config/rs6000/sync.md, config/rs6000/rs6000.md,
2230         config/arm/vec-common.md, config/arm/neon.md, config/arm/iwmmxt.md,
2231         config/arm/arm.md, config/mips/mips-dsp.md, config/mips/mips.md,
2232         config/vax/vax.md, config/bfin/bfin.md: Similar.
2233
2234 2007-08-22  David Daney  <ddaney@avtrex.com>
2235
2236         * doc/install.texi (Testing): Mention testing on a simulator.
2237
2238 2007-08-22  Janis Johnson  <janis187@us.ibm.com>
2239
2240         * config/dfp-bit.c (DFP_TO_DFP): Check for overflow.
2241
2242         * doc/libgcc.texi (Decimal float library routines): Fix formatting
2243         and rearrange floating point conversion functions into different
2244         categories.
2245
2246 2007-08-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
2247
2248         * target.h (struct gcc_target.sched: dfa_pre_advance_cycle,
2249         dfa_post_advance_cycle): New scheduler hooks.
2250         * target-def.h (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE,
2251         TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): New macros to initialize
2252         new hooks.
2253         (TARGET_SCHED): Use them.
2254         * doc/tm.texi (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE,
2255         TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Document new hooks.
2256         * haifa-sched.c (advance_one_cycle): Invoke new hooks.
2257
2258         * genautomata.c (insn_has_dfa_reservation_p): New DFA interface
2259         function to facilitate debugging.
2260         (INSN_HAS_DFA_RESERVATION_P_FUNC_NAME): New macro.
2261         (output_insn_has_dfa_reservation_p): New static function to output
2262         insn_has_dfa_reservation_p ().
2263         (write_automata): Use it.
2264         * genattr.c (main): Output declaration for
2265         insn_has_dfa_reservation_p ().
2266
2267 2007-08-22  Christian Bruel  <christian.bruel@st.com>   
2268             Richard Guenther <rguenther@suse.de>
2269         
2270         * fold-const.c (fold_binary): Optimize A-A if -ffinite-math-only.
2271         * simplify_rtx (simplify_binary_operation_1): Likewise.
2272                 
2273 2007-08-22  Rask Ingemann Lambertsen  <rask@sygehus.dk>
2274
2275         PR rtl-optimization/32557
2276         * df-problems.c (df_note_bb_compute): Use mws->start_regno instead
2277         of REGNO (mws->mw_reg).
2278
2279 2007-08-22  Richard Guenther  <rguenther@suse.de>
2280
2281         PR middle-end/33007
2282         * builtins.c (expand_builtin_int_roundingfn): Replace call
2283         argument wrapped with SAVE_EXPR directly.
2284         (expand_builtin_int_roundingfn_2): Likewise.
2285
2286 2007-08-22  Richard Guenther  <rguenther@suse.de>
2287
2288         * tree-inline.c (inlinable_function_p): Restore disregarding
2289         inline limits for GNU extern inline functions.
2290
2291 2007-08-22  Richard Guenther  <rguenther@suse.de>
2292
2293         PR middle-end/32563
2294         * tree.c (host_integerp): Treat sizetype as signed as it is
2295         sign-extended.
2296
2297 2007-08-21  Ian Lance Taylor  <iant@google.com>
2298
2299         PR tree-optimization/33134
2300         * tree-vrp.c (adjust_range_with_scev): Call
2301         set_value_range_to_value.
2302
2303 2007-08-21  Aldy Hernandez  <aldyh@redhat.com>
2304
2305         * value-prof.h (gimple_remove_histogram_value): Remove duplicate
2306         prototype.
2307         
2308 2007-08-21  Aldy Hernandez  <aldyh@redhat.com>
2309
2310         * tree-flow-inline.h (next_imm_use_stmt): Remove unecessary
2311         whitespace.
2312
2313 2007-08-21  Nathan Froyd  <froydnj@codesourcery.com>
2314
2315         * config/rs6000/rs6000.c (expand_block_clear): Add TARGET_SPE
2316         cases to set eight bytes at a time.
2317         (expand_block_move): Likewise.
2318         
2319 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
2320
2321         PR debug/32610
2322         * dwarf2out.c (gen_decl_die): Don't call
2323         gen_tagged_type_instantiation_die if decl doesn't have tagged type.
2324
2325 2007-08-21  Paul Brook  <paul@codesourcery.com>
2326             Nathan Sidwell  <nathan@codesourcery.com>
2327             Mark Mitchell  <mark@codesourcery.com>
2328             Joseph Myers  <joseph@codesourcery.com>
2329
2330         * configure.ac: Add --with-pkgversion and --with-bugurl.
2331         * configure: Regenerate.
2332         * doc/install.texi: Document them.
2333         * version.c (version_string): Remove VERSUFFIX.
2334         (VERSUFFIX): Remove.
2335         (pkgversion_string): New.
2336         (bug_report_url): Do not hard-code initializer.
2337         * version.h (pkgversion_string): Declare.
2338         * Makefile.in (PKGVERSION_s, BUGURL_s, PKGVERSION, BUGURL_TEXI):
2339         Define.
2340         (version.o): Define PKGVERSION and BUGURL.
2341         (gcc-vers.texi): Define VERSION_PACKAGE and BUGURL.
2342         (%.pod): Define BUGURL.
2343         * gcc.c (process_command, main): Use pkgversion_string.
2344         * toplev.c (compile_file, print_version): Likewise.
2345         * protoize.c (main): Likewise.
2346         * gcov.c (print_version): Likewise.  Update copyright date.
2347         * gcov-dump.c (print_version): Likewise.  Update copyright date.
2348         * mips-tdump.c (main): Likewise.  Update copyright date.
2349         * mips-tfile.c (main): Likewise.  Update copyright date.
2350         * doc/include/gcc-common.texi: Include VERSION_PACKAGE as subtitle.
2351         * doc/bugreport.texi: Use BUGURL for bug-reporting instructions;
2352         shorten description.
2353         * doc/gcc.texi: Include VERSION_PACKAGE in version description.
2354         * doc/gccint.texi: Likewise.
2355         * doc/invoke.texi: Use BUGURL for bug-reporting instructions.
2356         Update copyright date.
2357
2358 2007-08-21  Uros Bizjak  <ubizjak@gmail.com>
2359
2360         * config/i386/i386.c (ix86_expand_clear): Use FLAGS_REG.
2361         (ix86_expand_strlensi_unroll_1): Ditto.
2362         (ix86_expand_branch): Use FLAGS_REG and FPSR_REG.
2363         (ix86_expand_carry_flag_compare): Update comment.
2364
2365 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
2366
2367         PR middle-end/32912
2368         * fold-const.c (fold_unary): Optimize BIT_NOT_EXPR of VECTOR_CST.
2369         (fold_binary): Handle vectors in X | ~X and X ^ ~X optimizations.
2370
2371 2007-08-21  Richard Guenther  <rguenther@suse.de>
2372
2373         * fold-const.c (fold_binary): Revert removing of index +p PTR folding.
2374
2375 2007-08-21  Richard Guenther  <rguenther@suse.de>
2376
2377         PR middle-end/33122
2378         * fold-const.c (fold_binary): Remove index +p PTR folding.
2379         Fix types of POINTER_PLUS_EXPR generated by folding of
2380         (PTR +p B) +p A.
2381
2382 2007-08-20  Chao-ying Fu  <fu@mips.com>
2383
2384         * c-common.h (enum rid): Add new enumeration values of RID_SAT,
2385         RID_FRACT, and RID_ACCUM.  RID_SAT needs to be inserted before
2386         RID_ONEWAY, so that it can be checked in declspecs_add_type.
2387         (c_common_fixed_point_type_for_size): Declare.
2388         * c-parser.c (reswords): Add _Fract, _Accum, and _Sat.
2389         (c_token_starts_typename): Handle RID_FRACT, RID_ACCUM, and RID_SAT.
2390         (c_token_starts_declspecs): Likewise.
2391         (c_parser_declspecs): Likewise.
2392         (c_parser_attributes): Likewise.
2393         * c-tree.h (enum c_typespec_keyword): Add cts_fract and cts_accum.
2394         (c_declspecs): Add saturating_p.
2395         * c-decl.c (build_null_declspecs): Initialize saturating_p.
2396         (declspecs_add_type): Avoid using complex with _Fract, _Accum, or
2397         _Sat.  Handle RID_SAT.
2398         Avoid using void, bool, char, int, float, double, _Decimal32,
2399         _Decimal64, _Decimal128, and complex with _Sat.
2400         Handle RID_FRACT and RID_ACCUM.
2401         Make sure _Sat is used with _Fract or _Accum.
2402         (finish_declspecs): Handle cts_fract and cts_accum.
2403         * c-common.c (fixed-value.h): New include.
2404         (constant_expression_warning): Handle FIXED_CST.
2405         (overflow_warning): Likewise.
2406         (warnings_for_convert_and_check): Likewise.
2407         (c_common_fixed_point_type_for_size): New.
2408         (c_common_type_for_mode): Handle fixed-point modes to
2409         return various saturating/non-saturating, signed/unsigned types.
2410         (c_common_signed_or_unsigned_type): Support fixed-point types.
2411         (shorten_compare): Check fixed-point zero.
2412         Handle FIXED_POINT_TYPE.
2413         (c_common_truthvalue_conversion): Handle FIXED_CST.
2414         Handle FIXED_POINT_TYPE.
2415         (c_common_nodes_and_builtins): Record builtin types for fixed-point
2416         types.
2417         (handle_mode_attribute): Handle fixed-point modes.  Need to check
2418         if the signness of base type and fixed-point modes are consistent.
2419         (handle_vector_size_attribute): Handle fixed-point modes.
2420         (same_scalar_type_ignoring_signedness): Handle FIXED_POINT_TYPE.
2421         (warn_for_div_by_zero): Check fixed-point zero.
2422         * c-typeck.c (c_common_type): Check FIXED_POINT_TYPE.  Build
2423         a common fixed-point type based on fbit, ibit, sign, and saturation.
2424         (build_unary_op): Allow FIXED_POINT_TYPE for CONVERT_EXPR,
2425         NEGATE_EXPR, TRUTH_NOT_EXPR, PREINCREMENT_EXPR, POSTINCREMENT_EXPR,
2426         PREDECREMENT_EXPR, and POSTDECREMENT_EXPR.
2427         (convert_for_assignment): Support FIXED_POINT_TYPE.
2428         (digest_init): Handle FIXED_POINT_TYPE.
2429         (build_binary_op): Support FIXED_POINT_TYPE in *_DIV_EXPR,
2430         TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
2431         TRUTH_XOR_EXPR, RSHIFT_EXPR, LSHIFT_EXPR, EQ_EXPR, NE_EXPR, LE_EXPR,
2432         GE_EXPR, LT_EXPR, GT_EXPR.
2433         * target-def.h (TARGET_FIXED_POINT_SUPPORTED_P): New.
2434         (TARGET_INITIALIZER): Add TARGET_FIXED_POINT_SUPPORTED_P.
2435         * target.h (gcc_target): Add fixed_point_supported_p.
2436         * targhooks.c (default_scalar_mode_supported_p): Handle MODE_FRACT,
2437         MODE_UFRACT, MODE_ACCUM, and MODE_UACCUM.
2438         (default_fixed_point_supported_p): Define.
2439         * targhooks.h (default_fixed_point_supported_p): Declare.
2440         * doc/tm.texi (TARGET_FIXED_POINT_SUPPORTED_P): Add.
2441         * doc/install.texi (Configuration): Add --enable-fixed-point.
2442         * configure.ac (--enable-fixed-point): New to enable fixed-point
2443         arithmetic extension to C.  For mips targets, we enable it by default.
2444         * configure, config.in: Regenerate.
2445
2446 2007-08-20  Pawel Sikora  <pluto@pld-linux.org>
2447
2448         * doc/invoke.texi (-Wnon-virtual-dtor): Update documentation.
2449
2450 2007-08-20  David Edelsohn  <edelsohn@gnu.org>
2451
2452         * dwarf2out.c (text_section_used): Move declaration outside ifdef
2453         DWARF2_DEBUGGING_INFO.
2454         (cold_text_section_used): Same.
2455         (cold_text_section): Same.
2456
2457 2007-08-20  Richard Guenther  <rguenther@suse.de>
2458
2459         * c-typeck.c (convert_for_assignment): Use the type of
2460         the member for the initialization.
2461
2462 2007-08-20  Richard Guenther  <rguenther@suse.de>
2463
2464         * c-objc-common.c (c_disregard_inline_limits): Remove.
2465         * c-objc-common.h (c_disregard_inline_limits): Likewise.
2466         * cgraphunit.c (cgraph_process_new_functions): Call
2467         disregard_inline_limits_p.
2468         (cgraph_preserve_function_body_p): Likewise.
2469         * ipa-inline.c (compute_inline_parameters): Likewise.
2470         * langhooks-def.h (lhd_tree_inlining_disregard_inline_limits):
2471         Remove.
2472         (LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS): Remove.
2473         (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
2474         disregard_inline_limits langhook.
2475         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
2476         Remove.
2477         * langhooks.h (lang_hooks_for_tree_inlining): Remove
2478         disregard_inline_limits langhook.
2479         * tree-inline.c (disregard_inline_limits_p): New function.
2480         * tree-inline.h (disregard_inline_limits_p): Declare.
2481
2482 2007-08-20  Richard Guenther  <rguenther@suse.de>
2483
2484         * langhooks-def.h (lhd_tree_inlining_auto_var_in_fn_p): Remove.
2485         (LANG_HOOKS_TREE_INLINING_AUTO_VAR_IN_FN_P): Likewise.
2486         (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
2487         auto_var_in_fn_p langhook.
2488         * langhooks.c (lhd_tree_inlining_auto_var_in_fn_p): Rename and
2489         move ...
2490         * tree.c (auto_var_in_fn_p): ... here.
2491         (find_var_from_fn): Call auto_var_in_fn_p directly.
2492         * langhooks.h (lang_hooks_for_tree_inlining): Remove
2493         auto_var_in_fn_p langhook.
2494         * tree-inline.c (remap_decls): Call auto_var_in_fn_p directly.
2495         (copy_body_r): Likewise.
2496         (self_inlining_addr_expr): Likewise.
2497         * tree.h (auto_var_in_fn_p): Declare.
2498
2499 2007-08-20  Richard Guenther  <rguenther@suse.de>
2500
2501         * tree.c (WALK_SUBTREE): Call walk_tree_1.
2502         (walk_type_fields): Take lh parameter.
2503         (walk_tree): Rename to ...
2504         (walk_tree_1): ... this.  Do not call the walk_subtrees
2505         langhook but the now passed callback.  Pass lh on recursion.
2506         (walk_tree_without_duplicates): Rename to ...
2507         (walk_tree_without_duplicates_1): ... this.  Take lh parameter
2508         and call walk_tree_1.
2509         * tree.h (walk_tree_lh): New typedef.
2510         (walk_tree_1): Declare.
2511         (walk_tree_without_duplicates_1): Likewise.
2512         (walk_tree): New define to walk_tree_1 with NULL lh parameter.
2513         (walk_tree_without_duplicates): New define to
2514         walk_tree_without_duplicates_1 with NULL lh parameter.
2515         * langhooks.c (lhd_tree_inlining_walk_subtrees): Remove.
2516         * langhooks.h (lang_hooks_for_tree_inlining): Remove walk_subtrees
2517         langhook.
2518         * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Remove.
2519         (LANG_HOOKS_TREE_INLINING_WALK_SUBTREES): Likewise.
2520         (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove walk_subtrees
2521         initializer.
2522
2523 2007-08-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2524
2525         PR middle-end/30564
2526         * tree-inline.c (optimize_inline_calls): Move the cgraph checking
2527         code in front of the compacting of basic blocks.
2528         Move the folding of statements inbetween the cgraph checking
2529         and compacting of basic blocks.
2530
2531 2007-08-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2532            Serge Belyshev  <belyshev@depni.sinp.msu.ru>
2533
2534         PR target/32522
2535         * config/alpha/alpha.c (va_list_skip_additions): Check for
2536         POINTER_PLUS_EXPR in addition to PLUS_EXPR.
2537         (alpha_stdarg_optimize_hook): Look for POINTER_PLUS_EXPR instead of
2538         PLUS_EXPR when checking ap.__base.
2539         (alpha_va_start): Create POINTER_PLUS_EXPR instead of PLUS_EXPR
2540         when doing addition on pointer types.  Use size_int instead of
2541         build_int_cst.
2542         (alpha_gimplify_va_arg_1): Likewise, but use sizetype instead of
2543         ptr_type in the second operand.
2544
2545 2007-08-19  Andrew Pinski  <pinskia@gmail.com>
2546
2547         PR target/33115
2548         * config/i386/darwin.h (CC1_SPEC): Add %(cc1_cpu) in front.
2549
2550 2007-08-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2551
2552         PR middle-end/32940
2553         * cfgexpand.c  (expand_one_register_var): Mark pointer
2554         DECL_ARTIFICIAL as REG_POINTER also.
2555         * stmt.c (expand_decl): Likewise.
2556
2557 2007-08-19  Daniel Berlin  <dberlin@dberlin.org>
2558
2559         Fix PR 32772
2560         Fix PR 32716
2561         Fix PR 32328
2562         Fix PR 32303
2563
2564         * tree-flow.h (struct stmt_ann_d): Remove makes_clobbering_call.
2565         * tree-ssa-alias.c (init_transitive_clobber_worklist): Add
2566         on_worklist argument and avoid adding things to worklist multiple
2567         times.
2568         (add_to_worklist): Ditto.
2569         (mark_aliases_call_clobbered): Mark entire structure clobbered if
2570         single SFT is clobbered.
2571         (set_initial_properties): Ditto.
2572         (compute_call_clobbered): Update for changes to function
2573         arguments.
2574         (create_overlap_variables_for): Always create SFT for offset 0.
2575         (create_structure_vars): Handle PHI's, since we are in SSA form at
2576         this point.
2577         * tree-ssa-loop-ivopts.c (get_ref_tag): Don't return subvars.
2578         * tree-ssa-operands.c (access_can_touch_variable): Don't handle
2579         TARGET_MEM_REF.
2580         (add_vars_for_offset): Figure out aliases from access + points-to.
2581         (add_virtual_operand): Use add_vars-for_offset.
2582         (get_tmr_operands): Update for NMT changes, rewrite to be correct.
2583         (add_call_clobber_ops): Remove makes_clobbering_call set.
2584         (get_expr_operands): Always pass through the INDIRECT_REF
2585         reference.
2586         * tree-ssa-structalias.c (struct constraint_graph): Remove
2587         variables member.
2588         Add pe, pe_rep, pointer_label, loc_label, pointed_by, points_to,
2589         address_taken, pt_used, number_incoming.
2590         (FIRST_ADDR_NODE): Removed.
2591         (merge_graph_nodes): Remove broken code for the moment.
2592         (init_graph): New function.
2593         (build_pred_graph): Remove code to init_graph.
2594         Add location equivalence support.
2595         (struct scc_info): Rename roots to deleted.
2596         (scc_visit): Ditto.
2597         (init_scc_info): Ditto
2598         (init_topo_info): Use graph->size.
2599         (compute_topo_order): Ditto.
2600         (do_da_constraint): Removed.
2601         (do_sd_constraint): Remove calls to find().
2602         set_union_with_increment should always get 0 as last arg here.
2603         (do_complex_constraint): Replace do_da_constraint with assert.
2604         Stop calling find.
2605         (struct equiv_class_label): New.
2606         (pointer_equiv_class_table): Ditto.
2607         (location_equiv_class_table): Ditto.
2608         (equiv_class_label_hash): Ditto.
2609         (equiv_class_label_eq): Ditto
2610         (equiv_class_lookup): Ditto.
2611         (equiv_class_ladd): Ditto.
2612         (pointer_equiv_class): Ditto.
2613         (location_equiv_class): Ditto.
2614         (condense_visit): Rename and rewrite from label_visit to do only
2615         SCC related stuff for HU.
2616         (label_visit): Do HU work for HU.
2617         (perform_var_substitution): Update to do HU and location
2618         equivalence.
2619         (free_var_substitution_info): Update to free HU and location
2620         equivalence structures.  */
2621         (find_equivalent_node): Update for pointer but not location
2622         equivalence.
2623         (unite_pointer_equivalences): New function.
2624         (move_complex_constraints): Rewrite to only do moving.
2625         (rewrite_constraints): Split out of move_complex_constraints.
2626         (solve_graph): Use graph->size.
2627         (process_constraint_1): Add from_call argument, use it.
2628         Split *a = &b into two constraints.
2629         (process_constraint): Use new process_constraint_1.
2630         (get_constraint_for_component_ref): Handle bitmaxsize == -1 case.
2631         (get_constraint_for): Handle non-pointer integers properly.
2632         Remove code that used to handle structures.
2633         (handle_ptr_arith): Fix a few bugs in pointer arithmetic handling
2634         with unknown addends.
2635         (handle_rhs_call): New function.
2636         (find_func_aliases): Use handle_rhs_call.
2637         (set_uids_in_ptset): Add an assert.
2638         (set_used_smts): Fix bug in not considering unified vars.
2639         (compute_tbaa_pruning): Stop initing useless iteration_obstack.
2640         (compute_points_to_sets): Update for other function changes.
2641         (delete_points_to_sets): Ditto.
2642         (ipa_pta_execute): Ditto.
2643         (pass_ipa_pta): We need to update SSA after ipa_pta.
2644         
2645 2007-08-19  Jan Hubicka  <jh@suse.cz>
2646
2647         * i386.md: Replace "rim" and "mri" constraints by "g".
2648
2649 2007-08-19  Joseph Myers  <joseph@codesourcery.com>
2650
2651         * dwarf2out.c (text_section_used, cold_text_section_used,
2652         cold_text_section, dwarf2out_note_section_used): New.
2653         (dwarf2out_init): Initialize cold_text_section.
2654         (dwarf2out_switch_text_section, dwarf2out_begin_function): Call
2655         dwarf2out_note_section_used.
2656         (size_of_aranges): Only count entry for text section if it was
2657         used.  Count entry for cold text section if it was used.
2658         (output_aranges): Only output entries for text section and cold
2659         text section if they were used.
2660
2661 2007-08-19  Andrew Pinski  <pinskia@gmail.com>
2662
2663         * tree-pretty-print.c (debug_generic_expr): Add a comment about
2664         the function.
2665         (debug_generic_stmt): Likewise.
2666         (debug_tree_chain): Likewise.
2667
2668 2007-08-19  Dorit Nuzman  <dorit@il.ibm.com>
2669
2670         * tree-data-refs.c (split_constant_offset): Expose.
2671         * tree-data-refs.h (split_constant_offset): Add declaration.
2672
2673         * tree-vectorizer.h (dr_alignment_support): Renamed
2674         dr_unaligned_software_pipeline to dr_explicit_realign_optimized.
2675         Added a new value dr_explicit_realign.
2676         (_stmt_vec_info): Added new fields: dr_base_address, dr_init,
2677         dr_offset, dr_step, and dr_aligned_to, along with new access
2678         functions for these fields: STMT_VINFO_DR_BASE_ADDRESS,
2679         STMT_VINFO_DR_INIT, STMT_VINFO_DR_OFFSET, STMT_VINFO_DR_STEP, and
2680         STMT_VINFO_DR_ALIGNED_TO.
2681
2682         * tree-vectorizer.c (vect_supportable_dr_alignment): Add
2683         documentation.
2684         In case of outer-loop vectorization with non-fixed misalignment - use
2685         the dr_explicit_realign scheme instead of the optimized realignment
2686         scheme.
2687         (new_stmt_vec_info): Initialize new fields.
2688
2689         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Handle the
2690         'nested_in_vect_loop' case. Change verbosity level.
2691         (vect_analyze_data_ref_access): Handle the 'nested_in_vect_loop' case.
2692         Don't fail on zero step in the outer-loop for loads.
2693         (vect_analyze_data_refs): Call split_constant_offset to calculate
2694         base, offset and init relative to the outer-loop.
2695
2696         * tree-vect-transform.c (vect_create_data_ref_ptr): Replace the unused
2697         BSI function argument with a new function argument - at_loop.
2698         Simplify the condition that determines STEP. Takes additional argument
2699         INV_P. Support outer-loop vectorization (handle the
2700         nested_in_vect_loop case), including zero step in the outer-loop. Call
2701         vect_create_addr_base_for_vector_ref with additional argument.
2702         (vect_create_addr_base_for_vector_ref): Takes additional argument LOOP.
2703         Updated function documentation. Handle the 'nested_in_vect_loop' case.
2704         Fixed and simplified calculation of step.
2705         (vectorizable_store): Call vect_create_data_ref_ptr with loop instead
2706         of bsi, and with additional argument. Call bump_vector_ptr with
2707         additional argument. Fix typos. Handle the 'nested_in_vect_loop' case.
2708         (vect_setup_realignment): Takes additional arguments INIT_ADDR and
2709         DR_ALIGNMENT_SUPPORT. Returns another value AT_LOOP. Handle the case
2710         when the realignment setup needs to take place inside the loop.
2711         Support the dr_explicit_realign scheme. Allow generating the optimized
2712         realignment scheme for outer-loop vectorization. Added documentation.
2713         (vectorizable_load): Support the dr_explicit_realign scheme. Handle
2714         the 'nested_in_vect_loop' case, including loads that are invariant in
2715         the outer-loop and the realignment schemes. Handle the case when the
2716         realignment setup needs to take place inside the loop. Call
2717         vect_setup_realignment with additional arguments.  Call
2718         vect_create_data_ref_ptr with additional argument and with loop instead
2719         of bsi. Fix 80-column overflow. Fix typos. Rename PHI_STMT to PHI.
2720         (vect_gen_niters_for_prolog_loop): Call
2721         vect_create_addr_base_for_vector_ref with additional arguments.
2722         (vect_create_cond_for_align_checks): Likewise.
2723         (bump_vector_ptr): Updated to support the new dr_explicit_realign
2724         scheme: takes additional argument bump; argument ptr_incr is now
2725         optional; updated documentation.
2726         (vect_init_vector): Takes additional argument (bsi). Use it, if
2727         available, to insert the vector initialization.
2728         (get_initial_def_for_induction): Pass additional argument in call to
2729         vect_init_vector.
2730         (vect_get_vec_def_for_operand): Likewise.
2731         (vect_setup_realignment): Likewise.
2732         (vectorizable_load): Likewise.
2733
2734 2007-08-19  Dorit Nuzman  <dorit@il.ibm.com>
2735
2736         * tree-vectorizer.h (vect_is_simple_reduction): Takes a loop_vec_info
2737         as argument instead of struct loop.
2738         (nested_in_vect_loop_p): New function.
2739         (vect_relevant): Add enum values vect_used_in_outer_by_reduction and
2740         vect_used_in_outer.
2741         (is_loop_header_bb_p): New. Used to differentiate loop-header phis
2742         from other phis in the loop.
2743         (destroy_loop_vec_info): Add additional argument to declaration.
2744
2745         * tree-vectorizer.c (supportable_widening_operation): Also check if
2746         nested_in_vect_loop_p (don't allow changing the order in this case).
2747         (vect_is_simple_reduction): Takes a loop_vec_info as argument instead
2748         of struct loop. Call nested_in_vect_loop_p and don't require
2749         flag_unsafe_math_optimizations if it returns true.
2750         (new_stmt_vec_info): When setting def_type for phis differentiate 
2751         loop-header phis from other phis.
2752         (bb_in_loop_p): New function.
2753         (new_loop_vec_info): Inner-loop phis already have a stmt_vinfo, so
2754         just update their loop_vinfo.  Order of BB traversal now matters -
2755         call dfs_enumerate_from with bb_in_loop_p.
2756         (destroy_loop_vec_info): Takes additional argument to control whether
2757         stmt_vinfo of the loop stmts should be destroyed as well.
2758         (vect_is_simple_reduction): Allow the "non-reduction" use of a
2759         reduction stmt to be defines by a non loop-header phi.
2760         (vectorize_loops): Call destroy_loop_vec_info with additional argument.
2761
2762         * tree-vect-transform.c (vectorizable_reduction): Call
2763         nested_in_vect_loop_p. Check for multitypes in the inner-loop.
2764         (vectorizable_call): Likewise.
2765         (vectorizable_conversion): Likewise.
2766         (vectorizable_operation): Likewise.
2767         (vectorizable_type_promotion): Likewise.
2768         (vectorizable_type_demotion): Likewise.
2769         (vectorizable_store): Likewise.
2770         (vectorizable_live_operation): Likewise.
2771         (vectorizable_reduction): Likewise. Also pass loop_info to
2772         vect_is_simple_reduction instead of loop.
2773         (vect_init_vector): Call nested_in_vect_loop_p.
2774         (get_initial_def_for_reduction): Likewise.
2775         (vect_create_epilog_for_reduction): Likewise.
2776         (vect_init_vector): Check which loop to work with, in case there's an
2777         inner-loop.
2778         (get_initial_def_for_inducion): Extend to handle outer-loop
2779         vectorization. Fix indentation.
2780         (vect_get_vec_def_for_operand): Support phis in the case vect_loop_def.
2781         In the case vect_induction_def get the vector def from the induction
2782         phi node, instead of calling get_initial_def_for_inducion.
2783         (get_initial_def_for_reduction): Extend to handle outer-loop 
2784         vectorization.
2785         (vect_create_epilog_for_reduction): Extend to handle outer-loop
2786         vectorization.
2787         (vect_transform_loop): Change assert to just skip this case.  Add a
2788         dump printout.
2789         (vect_finish_stmt_generation): Add a couple asserts.
2790
2791         (vect_estimate_min_profitable_iters): Multiply
2792         cost of inner-loop stmts (in outer-loop vectorization) by estimated
2793         inner-loop bound.
2794         (vect_model_reduction_cost): Don't add reduction epilogue cost in case
2795         this is an inner-loop reduction in outer-loop vectorization.
2796
2797         * tree-vect-analyze.c (vect_analyze_scalar_cycles_1): New function.
2798         Same code as what used to be vect_analyze_scalar_cycles, only with
2799         additional argument loop, and loop_info passed to
2800         vect_is_simple_reduction instead of loop.
2801         (vect_analyze_scalar_cycles): Code factored out into
2802         vect_analyze_scalar_cycles_1. Call it for each relevant loop-nest.
2803         Updated documentation.
2804         (analyze_operations): Check for inner-loop loop-closed exit-phis during
2805         outer-loop vectorization that are live or not used in the outerloop,
2806         cause this requires special handling.
2807         (vect_enhance_data_refs_alignment): Don't consider versioning for
2808         nested-loops.
2809         (vect_analyze_data_refs): Check that there are no datarefs in the
2810         inner-loop.
2811         (vect_mark_stmts_to_be_vectorized): Also consider vect_used_in_outer
2812         and vect_used_in_outer_by_reduction cases.
2813         (process_use): Also consider the case of outer-loop stmt defining an
2814         inner-loop stmt and vice versa.
2815         (vect_analyze_loop_1): New function.
2816         (vect_analyze_loop_form): Extend, to allow a restricted form of nested
2817         loops.  Call vect_analyze_loop_1.
2818         (vect_analyze_loop): Skip (inner-)loops within outer-loops that have
2819         been vectorized.  Call destroy_loop_vec_info with additional argument.
2820
2821         * tree-vect-patterns.c (vect_recog_widen_sum_pattern): Don't allow
2822         in the inner-loop when doing outer-loop vectorization. Add
2823         documentation and printout.
2824         (vect_recog_dot_prod_pattern): Likewise. Also add check for
2825         GIMPLE_MODIFY_STMT (in case we encounter a phi in the loop).
2826
2827 2007-08-18  Andrew Pinski  <pinskia@gmail.com>
2828
2829         * tree-affine.h (print_aff): New prototype.
2830         (debug_aff): Likewise.
2831         * tree-affine.c (print_aff): New function.
2832         (debug_aff): Likewise.
2833
2834 2007-08-18  Paul Brook  <paul@codesourcery.com>
2835             Joseph Myers  <joseph@codesourcery.com>
2836
2837         * common.opt (-fdebug-prefix-map=): New option.
2838         * opts.c: Include debug.h.
2839         (common_handle_option): Handle -fdebug-prefix-map.
2840         * final.c: Include ggc.h.
2841         (struct debug_prefix_map, debug_prefix_maps, add_debug_prefix_map,
2842         remap_debug_filename): New.
2843         * Makefile.in (final.o, opts.o): Update dependencies.
2844         * debug.h (remap_debug_filename, add_debug_prefix_map): Declare.
2845         * configure.ac: Check for assembler --debug-prefix-map support.
2846         * configure, config.in: Regenerate.
2847         * gcc.c (ASM_MAP): Define conditional on HAVE_AS_DEBUG_PREFIX_MAP.
2848         (ASM_DEBUG_SPEC): Include ASM_MAP.
2849         * doc/install.texi (--with-debug-prefix-map): Document.
2850         * doc/invoke.texi (-fdebug-prefix-map): Document.
2851         * dbxout.c (dbxout_init, dbxout_start_source_file,
2852         dbxout_source_file): Call remap_debug_filename.
2853         * dwarf2out.c (add_comp_dir_attribute, maybe_emit_file,
2854         dwarf2out_start_source_file, dwarf2out_finish): Call
2855         remap_debug_filename.
2856         (file_table_relative_p): Do not check d->emitted_number.
2857         * toplev.c (output_file_directive): Call remap_debug_filename.
2858         * vmsdbgout.c (write_srccorr): Call remap_debug_filename.
2859         * xcoffout.c (xcoffout_source_file): Call remap_debug_filename.
2860
2861 2007-08-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2862
2863         * loop-invariant.c (find_invariants_to_move): Add missing macro
2864         argument.
2865
2866 2007-08-17  Tom Tromey  <tromey@redhat.com>
2867
2868         * tree.h (struct tree_label_decl): Removed old "java" fields.
2869
2870 2007-08-17  Richard Sandiford  <richard@codesourcery.com>
2871             Nigel Stephens  <nigel@mips.com>
2872
2873         * config/mips/sde.h (DRIVER_SELF_SPECS): Add commas.
2874         Treat -mno-data-in-code and -mcode-xonly as aliases for
2875         -mcode-readable=no and -mcode-readable=pcrel respectively.
2876         * config/mips/t-sde (TARGET_LIBGCC2_CFLAGS): Add -mcode-xonly.
2877         (MULTILIB_OPTIONS): Add -mcode-readable=no multilibs.
2878         (MULTILIB_DIRNAMES): Update accordingly.
2879
2880 2007-08-17  H.J. Lu  <hongjiu.lu@intel.com>
2881
2882         * Makefile.in (version.o): Depend on $(REVISION) only if
2883         REVISION_s is defined.
2884
2885 2007-08-17  Sa Liu  <saliu@de.ibm.com>
2886             Ulrich Weigand  <uweigand@de.ibm.com>
2887
2888         PR middle-end/32970
2889         * tree.c (reconstruct_complex_type): For a pointer to a vector,
2890         use build_qualified_type to retain qualifiers of the base type.
2891
2892 2007-08-17  Chen Liqin  <liqin@sunnorth.com.cn>
2893
2894         * config/score/score.md : Update pattern tablejump.
2895         * config/score/score.c : Update score_initialize_trampoline 
2896         function.
2897         * config/score/score.h (TRAMPOLINE_TEMPLATE): Added macro.
2898         (TRAMPOLINE_INSNS, TRAMPOLINE_SIZE) Update macro.
2899         * doc/contrib.texi: Add my entry.
2900
2901 2007-08-16  H.J. Lu  <hongjiu.lu@intel.com>
2902
2903         * Makefile.in (REVISION): New.
2904         (REVISION_c): New.
2905         (REVISION_s): New.
2906         (version.o): Also depend on $(REVISION). Add
2907         -DREVISION=$(REVISION_s).
2908
2909         * version.c (version_string): Add REVISION.
2910
2911 2007-08-16  Seongbae Park <seongbae.park@gmail.com>
2912
2913         * tree-eh.c (lower_try_finally_onedest): Reset the locus
2914         of GOTO that's relocated to a different block.
2915
2916 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2917
2918         * c-common.c (const_strip_array_types): New.
2919         * c-common.h (lang_missing_noreturn_ok_p): Delete.
2920         (const_strip_array_types): New.
2921         * c-objc-common.c (c_disregard_inline_limits,
2922         c_warn_unused_global_decl): Constify.
2923         * c-tree.h (c_disregard_inline_limits, c_warn_unused_global_decl,
2924         c_vla_type_p, c_incomplete_type_error): Likewise.
2925         * c-typeck.c (c_incomplete_type_error, c_vla_type_p): Likewise.
2926         * hooks.c (hook_bool_const_tree_false): New.
2927         * hooks.h (hook_bool_const_tree_false): Likewise.
2928         * langhooks-def.h (lhd_warn_unused_global_decl,
2929         lhd_incomplete_type_error, lhd_expr_size,
2930         lhd_tree_inlining_disregard_inline_limits,
2931         lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
2932         LANG_HOOKS_GENERIC_TYPE_P, LANG_HOOKS_TYPE_MAX_SIZE): Constify.
2933         * langhooks.c (lhd_warn_unused_global_decl,
2934         lhd_incomplete_type_error,
2935         lhd_tree_inlining_disregard_inline_limits,
2936         lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
2937         lhd_expr_size): Likewise.
2938         * langhooks.h (lang_hooks_for_tree_inlining,
2939         lang_hooks_for_tree_dump, lang_hooks_for_types,
2940         lang_hooks_for_decls, lang_hooks): Likewise.
2941         * pointer-set.c (pointer_set_t, pointer_set_create,
2942         pointer_set_contains, insert_aux, pointer_set_insert,
2943         pointer_set_traverse, pointer_map_t, pointer_map_create,
2944         pointer_map_contains, pointer_map_insert, pointer_map_traverse):
2945         Likewise.
2946         * pointer-set.h (pointer_set_contains, pointer_set_insert,
2947         pointer_set_traverse, pointer_map_contains, pointer_map_insert,
2948         pointer_map_traverse): Likewise.
2949         * predict.c (assert_is_empty): Likewise.
2950         * tree-affine.c (free_name_expansion): Likewise.
2951         * tree-cfg.c (edge_to_cases_cleanup): Likewise.
2952         * tree.c (size_in_bytes, max_int_size_in_bytes): Likewise.
2953         * tree.h (size_in_bytes, max_int_size_in_bytes): Likewise.
2954
2955 2007-08-16  Victor Kaplansky <victork@il.ibm.com>
2956
2957         * tree-vectorizer.c (new_loop_vec_info): Initialize new 
2958         field.
2959         (destroy_loop_vec_info): Add call to VEC_free.
2960         * tree-vectorizer.h (may_alias_ddrs): Define.
2961         (LOOP_VINFO_MAY_ALIAS_DDRS): Define.
2962         * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
2963         Change reporting to dump.
2964         (vect_is_duplicate_ddr): New.
2965         (vect_mark_for_runtime_alias_test): New.
2966         (vect_analyze_data_ref_dependences) Add call to
2967         vect_mark_for_runtime_alias_test.
2968         (vect_enhance_data_refs_alignment): Define local variable
2969         vect_versioning_for_alias_required, don't perform
2970         peeling for alignment if versioning for alias is
2971         required.
2972         (vect_enhance_data_refs_alignment): Use
2973         PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS instead of
2974         PARAM_VECT_MAX_VERSION_CHECKS.
2975         * tree-vect-transform.c
2976         (vect_create_cond_for_alias_checks): New.
2977         (vect_transform_loop): Add call to
2978         vect_create_cond_for_alias_checks.
2979         (vect_vfa_segment_size): New.
2980         * params.def (PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS):
2981         Rename.
2982         (PARAM_VECT_MAX_VERSION_FOR_ALIAS_CHECKS): Define.
2983         * gcc/doc/invoke.texi
2984         (vect-max-version-for-alignment-checks): Document.
2985         (vect-max-version-for-alias-checks): Document.
2986         (vect-max-version-checks): Remove.
2987      
2988 2007-08-16  Uros Bizjak  <ubizjak@gmail.com>
2989
2990         * config/i386/i386.md (*rep_movdi_rex64): Emit "rep" prefix on
2991         the same line as the instruction for all asm dialects.
2992         (*rep_movsi): Ditto.
2993         (*rep_movsi_rex64): Ditto.
2994         (*rep_movqi): Ditto.
2995         (*rep_movqi_rex64): Ditto.
2996         (*rep_stosdi_rex64): Ditto.
2997         (*rep_stossi): Ditto.
2998         (*rep_stossi_rex64): Ditto.
2999         (*rep_stosqi): Ditto.
3000         (*rep_stosqi_rex64): Ditto.
3001         (*cmpstrnqi_nz_1): Ditto.
3002         (*cmpstrnqi_nz_rex_1): Ditto.
3003         (*cmpstrnqi_1): Ditto.
3004         (*cmpstrnqi_rex_1): Ditto.
3005         (*strlenqi_1): Ditto.
3006         (*strlenqi_rex_1): Ditto.
3007         * config/i386/sync.md (*sync_compare_and_swap<mode>): Emit "lock"
3008         prefix on the same line as the instruction for all asm dialects.
3009         (sync_double_compare_and_swap<mode>): Ditto.
3010         (*sync_double_compare_and_swapdi_pic): Ditto.
3011         (*sync_compare_and_swap_cc<mode>): Ditto.
3012         (sync_double_compare_and_swap_cc<mode>): Ditto.
3013         (*sync_double_compare_and_swap_ccdi_pic): Ditto.
3014         (sync_old_add<mode>): Ditto.
3015         (sync_add<mode>): Ditto.
3016         (sync_sub<mode>): Ditto.
3017         (sync_ior<mode>): Ditto.
3018         (sync_and<mode>): Ditto.
3019         (sync_xor<mode>): Ditto.
3020
3021 2007-08-16  Richard Sandiford  <richard@codesourcery.com>
3022
3023         PR middle-end/32897
3024         * reload.c (find_reloads): Check that the memory returned by
3025         find_reloads_toplev was not the result of forcing a constant
3026         to memory.
3027         (find_reloads_toplev): Always use simplify_gen_subreg to get
3028         the subreg of a constant.  If the result is also a constant,
3029         but not a legitimate one, force it into the constant pool
3030         and reload its address.
3031
3032 2007-08-15  David Edelsohn  <edelsohn@gnu.org>
3033
3034         * config/rs6000/rs6000.c (rs6000_rtx_costs): Add CLZ, CTZ, and
3035         POPCOUNT.
3036
3037 2007-08-15  Daniel Jacobowitz  <dan@codesourcery.com>
3038
3039         * config/rs6000/rs6000.c (rs6000_file_start): Output a .gnu_attribute
3040         directive for the current vector ABI.
3041
3042 2007-08-15  Steve Ellcey  <sje@cup.hp.com>
3043
3044         PR target/32963
3045         * caller-save.c (reg_save_code): Set invalide status on restore code.
3046         
3047 2007-08-15  Diego Novillo  <dnovillo@google.com>
3048
3049         * tree-ssa-alias.c (compute_memory_partitions): Use
3050         alias_bitmap_obstack to allocate bitmaps.
3051         (reset_alias_info): Factor out of init_alias_info.
3052         Mark all name tags not associated to an SSA name for renaming.
3053         (init_alias_info): Call it.
3054         (create_name_tags): Tidy.  Add comments.
3055         (dump_points_to_info_for): Do not call get_mem_sym_stats_for.
3056
3057 2007-08-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3058
3059         * config/mips/mips.c (vr4130_swap_insns_p): Use new interface to
3060         scheduler dependencies.
3061
3062 2007-08-15  Rask Ingemann Lambertsen  <rask@sygehus.dk>
3063
3064         * config/i386/i386.md (subsi3_carry_zext): Remove "m" constraint for
3065         "register_operand".
3066         (*iorsi_1_zext): Likewise.
3067         (*iorsi_1_zext_imm): Likewise.
3068         * config/i386/sse.md: (*sse4_1_extractps): Use "nonimmediate_operand"
3069         with "rm"/"xm" constraint.
3070         (sse2_vmsqrtv2df2): Likewise.
3071
3072 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
3073
3074         PR middle-end/33074
3075         * emit-rtl.c (try_split): Use INSN_LIST instead of EXPR_LIST for
3076         REG_LIBCALL note.
3077
3078 2007-08-14  Daniel Berlin  <dberlin@dberlin.org>
3079
3080         * tree-pass.h (PROP_pta): Removed.
3081         (TODO_rebuild_alias): New.
3082         (pass_may_alias): Removed.
3083         * tree-ssa-ccp.c (execute_fold_all_builtins): Only rebuild
3084         aliasing if we changed something.
3085         * tree-ssa-alias.c (compute_may_aliases): Make non-static.  Update
3086         SSA internally.
3087         (pass_may_alias): Removed.
3088         (create_structure_vars): Return TODO_rebuild_alias.
3089         * tree-ssa-pre.c (do_pre): Return TODO_rebuild_alias.
3090         * tree-sra.c (tree_sra): Only rebuild aliasing if something
3091         changed.
3092         (tree_sra_early): We never affect aliasing right now.
3093         * tree-flow.h (compute_may_aliases): New prototype.
3094         * passes.c: Remove pass_may_alias from the passes.
3095         (execute_function_todo): Support TODO_rebuild_alias.    
3096
3097 2007-08-14  Kai Tietz  <kai.tietz@onevision.com>
3098
3099         * i386.c: (legitimize_address): Move dllimported variable check
3100         infront of legitimizing pic address of CONST symbols.
3101
3102 2007-08-14  Steve Ellcey  <sje@cup.hp.com>
3103
3104         PR tree-optimization/32941
3105         * tree-eh.c (struct leh_tf_state): Add goto_queue_map field.
3106         (goto_queue_cmp): Remove.
3107         (find_goto_replacement): Change search method.
3108         (maybe_record_in_goto_queue): Add assert.
3109         (lower_try_finally): Remove qsort call, add pointer_map_destroy call.
3110         * Makefile.in (tree-eh.o): Add pointer-set.h dependency.
3111
3112 2007-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3113
3114         * alias.c (component_uses_parent_alias_set): Constify.
3115         * alias.h (component_uses_parent_alias_set): Likewise.
3116         * cfgrtl.c (print_rtl_with_bb): Likewise.
3117         * double-int.c (tree_to_double_int, double_int_fits_to_tree_p,
3118         mpz_get_double_int): Likewise.
3119         * double-int.h (double_int_fits_to_tree_p, tree_to_double_int,
3120         mpz_get_double_int): Likewise.
3121         * expr.c (is_aligning_offset, undefined_operand_subword_p,
3122         mostly_zeros_p, all_zeros_p, safe_from_p, is_aligning_offset):
3123         Likewise.
3124         * expr.h (safe_from_p): Likewise.
3125         * gimple-low.c (try_catch_may_fallthru, block_may_fallthru):
3126         Likewise.
3127         * gimplify.c (should_carry_locus_p, zero_sized_field_decl,
3128         zero_sized_type, goa_lhs_expr_p): Likewise.
3129         * omp-low.c (is_variable_sized, use_pointer_for_field): Likewise.
3130         * rtl.h (print_rtl_with_bb): Likewise.
3131         * sched-vis.c (print_exp, print_value, print_pattern): Likewise.
3132         * tree-cfg.c (const_first_stmt, const_last_stmt): New.
3133         * tree-flow-inline.h (bb_stmt_list): Constify.
3134         (cbsi_start, cbsi_last, cbsi_end_p, cbsi_next, cbsi_prev,
3135         cbsi_stmt): New.
3136         * tree-flow.h (const_block_stmt_iterator, cbsi_start, cbsi_last,
3137         const_first_stmt, const_last_stmt): New.
3138         (block_may_fallthru, empty_block_p): Constify.
3139         * tree-iterator.c (EXPR_FIRST_BODY, EXPR_LAST_BODY,
3140         EXPR_ONLY_BODY): New.
3141         (expr_first, expr_last, expr_only): Use macro for body.
3142         (const_expr_first, const_expr_last, const_expr_only): New.
3143         * tree-iterator.h (const_tree_stmt_iterator, ctsi_start,
3144         ctsi_last, ctsi_end_p, ctsi_one_before_end_p, ctsi_next,
3145         ctsi_prev, ctsi_stmt): New.
3146         * tree-scalar-evolution.c (get_loop_exit_condition): Constify.
3147         * tree-scalar-evolution.h (get_loop_exit_condition): Likewise.
3148         * tree-ssa-loop-niter.c (loop_only_exit_p,
3149         derive_constant_upper_bound): Likewise.
3150         * tree-ssa-phiopt.c (empty_block_p): Likewise.
3151         * tree-ssa-threadupdate.c (redirection_block_p): Likewise.
3152         * tree-vectorizer.c (slpeel_can_duplicate_loop_p): Likewise.
3153         * tree-vectorizer.h (slpeel_can_duplicate_loop_p): Likewise.
3154         * tree-vrp.c (vrp_bitmap_equal_p): Likewise.
3155         * tree.c (get_type_static_bounds): Likewise.
3156         * tree.h (const_expr_first, const_expr_last, const_expr_only): New.
3157         (get_type_static_bounds): Constify.
3158
3159 2007-08-14  Rask Ingemann Lambertsen  <rask@sygehus.dk>
3160
3161         PR target/30315
3162         * config/i386/i386.h (CANONICALIZE_COMPARISON): New.
3163         * config/i386/i386.md (plusminus)(addsub)(SWI): New.
3164         (*<addsub><mode>3_cc_overflow): New.
3165         (*add<mode>3_cconly_overflow): New.
3166         (*sub<mode>3_cconly_overflow): New.
3167         (*<addsub>si3_zext_cc_overflow): New.
3168         * config/i386/predicates.md (fcmov_comparison_operator): Accept
3169         CCCmode for LTU, GTU, LEU and GEU.
3170         (ix86_comparison_operator): Likewise.
3171         (ix86_carry_flag_operator): Carry flag is set if LTU or GTU in CCCmode.
3172         * config/i386/i386.c (put_condition_code): Support CCCmode.
3173         (ix86_cc_mode): Use CCCmode when testing for overflow of PLUS
3174         or MINUS expressions.
3175
3176 2007-08-14  Andrew Pinski  <pinskia@gmail.com>
3177
3178         PR c/30428
3179         * c-typeck.c (build_binary_op): Disallow vector float types with
3180         BIT_IOR_EXPR, BIT_AND_EXPR, and BIT_XOR_EXPR.
3181
3182 2007-08-14  Maxim Kuvyrkov  <maxim@codesourcery.com>
3183
3184         * sched-int.h (struct _dep): Rename field 'kind' to 'type'.
3185         (DEP_KIND): Rename to DEP_TYPE.  Update all uses.
3186         (dep_def): New typedef.
3187         (init_dep_1, sd_debug_dep): Declare functions.
3188         (DEP_LINK_KIND): Rename to DEP_LINK_TYPE.
3189         (debug_dep_links): Remove.
3190         (struct _deps_list): New field 'n_links'.
3191         (DEPS_LIST_N_LINKS): New macro.
3192         (FOR_EACH_DEP_LINK): Remove.
3193         (create_deps_list, free_deps_list, delete_deps_list): Remove
3194         declaration.
3195         (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
3196         (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
3197         (copy_deps_list_change_con, move_dep_link): Ditto.
3198         (struct haifa_insn_data): Split field 'back_deps' into 'hard_back_deps'
3199         and 'spec_back_deps'.  New field 'resolved_forw_deps'.  Remove field
3200         'dep_count'.
3201         (INSN_BACK_DEPS): Remove.
3202         (INSN_HARD_BACK_DEPS, INSN_SPEC_BACK_DEPS, INSN_RESOLVED_FORW_DEPS):
3203         New macros.
3204         (INSN_DEP_COUNT): Remove.
3205         (enum DEPS_ADJUST_RESULT): Add new constant DEP_NODEP.  Fix comments.
3206         (spec_info, haifa_recovery_block_was_added_during_scheduling_p):
3207         Declare global variables.
3208         (deps_pools_are_empty_p, sched_free_deps): Declare functions.
3209         (add_forw_dep, compute_forward_dependences): Remove declarations.
3210         (add_or_update_back_dep, add_or_update_back_forw_dep): Ditto.
3211         (add_back_forw_dep, delete_back_forw_dep): Ditto.
3212         (debug_ds, sched_insn_is_legitimate_for_speculation_p): Declare
3213         functions.
3214         (SD_LIST_NONE, SD_LIST_HARD_BACK, SD_LIST_SPEC_BACK, SD_LIST_FORW):
3215         New constants.
3216         (SD_LIST_RES_BACK, SD_LIST_RES_FORW, SD_LIST_BACK): Ditto.
3217         (sd_list_types_def): New typedef.
3218         (sd_next_list): Declare function.
3219         (struct _sd_iterator): New type.
3220         (sd_iterator_def): New typedef.
3221         (sd_iterator_start, sd_iterator_cond, sd_iterator_next): New inline
3222         functions.
3223         (FOR_EACH_DEP): New cycle wrapper.
3224         (sd_lists_size, sd_lists_empty_p, sd_init_insn, sd_finish_insn):
3225         Declare functions.
3226         (sd_find_dep_between, sd_add_dep, sd_add_or_update_dep): Ditto.
3227         (sd_resolve_dep, sd_copy_back_deps, sd_delete_dep, sd_debug_lists):
3228         Ditto.
3229
3230         * sched-deps.c (init_dep_1): Make global.
3231         (DUMP_DEP_PRO, DUMP_DEP_CON, DUMP_DEP_STATUS, DUMP_DEP_ALL): New
3232         constants.
3233         (dump_dep): New static function.
3234         (dump_dep_flags): New static variable.
3235         (sd_debug_dep): New function.
3236         (add_to_deps_list, remove_from_deps_list): Update 'n_links' field of
3237         the list.
3238         (move_dep_link): Use remove_from_deps_list (), instead of
3239         detach_dep_link ().
3240         (dep_links_consistent_p, dump_dep_links, debug_dep_links): Remove.
3241         (dep_link_is_detached_p): New static function.
3242         (deps_obstack, dl_obstack, dn_obstack): Remove.  Use dn_pool, dl_pool
3243         instead.
3244         (dn_pool, dl_pool): New alloc_pools.
3245         (dn_pool_diff, dl_pool_diff): New static variables.
3246         (create_dep_node, delete_dep_node): New static function.
3247         (create_deps_list): Make it static.  Use alloc_pool 'dl_pool'.
3248         (deps_list_empty_p): Make it static.  Use 'n_links' field.
3249         (deps_pools_are_empty_p): New static function.
3250         (alloc_deps_list, delete_deps_list): Remove.
3251         (dump_deps_list, debug_deps_list, add_back_dep_to_deps_list): Remove.
3252         (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
3253         (copy_deps_list_change_con): Remove.  Use sd_copy_back_deps () instead.
3254         (forward_dependency_cache): Remove.
3255         (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Remove
3256         'back' from the names.  Change signature to use dep_t instead of
3257         equivalent quad.
3258         (add_back_dep): Ditto.  Make global.
3259         (check_dep_status): Rename to check_dep ().
3260         (sd_next_list, sd_lists_size, sd_lists_empty_p, sd_init_insn):
3261         New functions.
3262         (sd_finish_insn): Ditto.
3263         (sd_find_dep_between_no_cache): New static function.
3264         (sd_find_dep_between): New function.
3265         (ask_dependency_caches, set_dependency_caches): New static functions.
3266         (update_dependency_caches, change_spec_dep_to_hard, update_dep): Ditto.
3267         (add_or_update_dep_1): Separate pieces of functionality into
3268         ask_dependency_caches (), update_dependency_caches (),
3269         change_spec_dep_to_hard (), update_dep ().
3270         (get_back_and_forw_lists): New static function.
3271         (sd_add_dep): Separate setting of dependency caches into
3272         set_dependency_caches ().
3273         (sd_add_or_update_dep, sd_resolve_dep, sd_copy_back_deps):
3274         New functions.
3275         (sd_delete_dep): Ditto.
3276         (DUMP_LISTS_SIZE, DUMP_LISTS_DEPS, DUMP_LISTS_ALL): New constants.
3277         (dump_lists): New static function.
3278         (sd_debug_lists): New debug function.
3279         (delete_all_dependences, fixup_sched_groups): Update to use
3280         sd_* infrastructure.
3281         (sched_analyze_2): Create data-speculative dependency only if
3282         data-speculation is enabled.
3283         (sched_analyze_insn): If insn cannot be speculative, make all its
3284         dependencies non-speculative.
3285         (sched_analyze): Use sd_init_insn ().
3286         (add_forw_dep, compute_forward_dependencies): Remove.
3287         (delete_dep_nodes_in_back_deps): New static function.
3288         (sched_free_deps): New function.
3289         (init_dependency_caches): Init alloc_pools.
3290         (extend_depedency_caches): Update after removing of
3291         forward_dependency_cache.
3292         (free_dependency_caches): Ditto.  Free alloc_pools.
3293         (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Remove.
3294         (delete_forw_dep, add_or_update_back_dep, add_or_update_back_forw_dep):
3295         Ditto.
3296         (add_back_forw_dep, delete_back_forw_dep): Ditto.
3297         (add_dependence): Use init_dep ().
3298         (get_dep_weak_1): New static function.
3299         (get_dep_weak): Move logic to get_dep_weak_1 ().
3300         (dump_ds): New static function moved from haifa-sched.c:
3301         debug_spec_status ().
3302         (debug_ds): New debug function.
3303         (check_dep_status): Rename to check_dep ().  Update to check whole
3304         dependencies.
3305
3306         * haifa-sched.c (spec_info): Make global.
3307         (added_recovery_block_p): Rename to
3308         'haifa_recovery_block_was_added_during_current_schedule_block_p'.
3309         (haifa_recovery_block_was_added_during_scheduling_p): New variable.
3310         (dep_cost, priority, rank_for_schedule, schedule_insn): Update
3311         to use new interfaces.
3312         (ok_for_early_queue_removal): Ditto.
3313         (schedule_block): Initialize logical uids of insns emitted by the
3314         target.
3315         (sched_init): Initialize new variable.
3316         (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
3317         interfaces.
3318         (extend_global): Initialize insn data.
3319         (init_h_i_d): Remove code that is now handled in sd_init_insn ().
3320         (process_insn_forw_deps_be_in_spec): Change signature.  Update to use
3321         new interfaces.
3322         (add_to_speculative_block): Update to use new interfaces.
3323         (create_recovery_block): Set new variables.
3324         (create_check_block_twin, fix_recovery_deps): Update to use new
3325         interfaces.
3326         (sched_insn_is_legitimate_for_speculation_p): New function.
3327         (speculate_insn): Move checking logic to
3328         sched_insn_is_legitimate_for_speculation_p ().
3329         (sched_remove_insn): Finalize sched-deps information of instruction.
3330         (clear_priorities, add_jump_dependencies): Update to use new
3331         interfaces.
3332         (debug_spec_status): Rename to dump_ds () and move to sched-deps.c.
3333         
3334         * sched-rgn.c (set_spec_fed, find_conditional_protection): Update
3335         to use new interfaces.
3336         (is_conditionally_protected, is_pfree, is_prisky) Ditto.
3337         (new_ready): Try to use control speculation only if it is available.
3338         (add_branch_dependences): Update to use new interfaces.
3339         (compute_block_backward_dependences): Rename to
3340         compute_block_dependences ().  Call
3341         targetm.sched.dependencies_evaluation_hook ().
3342         (free_block_dependencies): New static function.
3343         (debug_dependencies): Update to use new interfaces.
3344         (schedule_region): Remove separate computation of forward dependencies.
3345         Move call of targetm.sched.dependencies_evaluation_hook () to
3346         compute_block_dependences ().  Free dependencies at the end of
3347         scheduling the region.
3348
3349         * sched-ebb.c (earliest_block_with_similiar_load): Update to use
3350         new interfaces.
3351         (add_deps_for_risky_insns): Ditto.
3352         (schedule_ebb): Remove separate computation of forward dependencies.
3353         Free dependencies at the end of scheduling the ebb.
3354
3355         * ddg.c (create_ddg_dependence): Update to use new interfaces.
3356         (build_intra_loop_deps): Ditto.  Remove separate computation of
3357         forward dependencies.  Free sched-deps dependencies.
3358
3359         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Update
3360         to use new interfaces.
3361         (ia64_dfa_new_cycle, ia64_gen_check): Ditto.
3362
3363         * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Update to use
3364         new interfaces.
3365         (is_costly_group): Ditto.
3366
3367 2007-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3368
3369         * alias.c (rtx_equal_for_memref_p): Constify.
3370         * basic-block.h (const_edge, const_basic_block): New.
3371         (reg_set_to_hard_reg_set, dfs_enumerate_from, single_succ_p,
3372         single_pred_p, single_succ_edge, single_pred_edge, single_succ,
3373         single_pred, maybe_hot_bb_p, probably_cold_bb_p,
3374         probably_never_executed_bb_p, edge_probability_reliable_p,
3375         br_prob_note_reliable_p, forwarder_block_p, flow_nodes_print,
3376         inside_basic_block_p, control_flow_insn_p, dominated_by_p):
3377         Likewise.
3378         * bb-reorder.c (better_edge_p, push_to_next_round_p): Likewise.
3379         * bt-load.c (basic_block_freq, insn_sets_btr_p, can_move_up):
3380         Likewise.
3381         * cfganal.c (flow_active_insn_p, forwarder_block_p,
3382         flow_nodes_print, dfs_enumerate_from): Likewise.
3383         * cfgbuild.c (count_basic_blocks, inside_basic_block_p,
3384         control_flow_insn_p, count_basic_blocks): Likewise.
3385         * cfgloop.c (flow_bb_inside_loop_p, glb_enum_p,
3386         get_loop_body_with_size, loop_exit_edge_p): Likewise.
3387         * cfgloop.h (flow_bb_inside_loop_p, num_loop_insns,
3388         average_num_loop_insns, loop_exit_edge_p,
3389         just_once_each_iteration_p, can_duplicate_loop_p): Likewise.
3390         * cfgloopanal.c (just_once_each_iteration_p, num_loop_insns,
3391         average_num_loop_insns, seq_cost): Likewise.
3392         * cfgloopmanip.c (rpe_enum_p, can_duplicate_loop_p): Likewise.
3393         * dominance.c (dominated_by_p): Likewise.
3394         * emit-rtl.c (validate_subreg): Likewise.
3395         * except.c (can_throw_internal, can_throw_external): Likewise.
3396         * except.h (can_throw_internal, can_throw_external): Likewise.
3397         * gcse.c (gcse_constant_p, oprs_unchanged_p, oprs_anticipatable_p,
3398         oprs_available_p, hash_expr, expr_equiv_p, oprs_not_set_p,
3399         compute_transp, load_killed_in_block_p, reg_killed_on_edge,
3400         simple_mem, store_ops_ok, load_kills_store, find_loads,
3401         store_killed_in_insn, store_killed_after, store_killed_before,
3402         gcse_mem_operand, implicit_set_cond_p, store_killed_in_pat):
3403         Likewise.
3404         * ifcvt.c (count_bb_insns, cheap_bb_rtx_cost_p, noce_operand_ok,
3405         noce_mem_write_may_trap_or_fault_p): Likewise.
3406         * pointer-set.c (pointer_set_contains, pointer_map_contains):
3407         Likewise.
3408         * pointer-set.h (pointer_set_contains, pointer_map_contains):
3409         Likewise.
3410         * predict.c (can_predict_insn_p, maybe_hot_bb_p,
3411         probably_cold_bb_p, probably_never_executed_bb_p,
3412         edge_probability_reliable_p, br_prob_note_reliable_p,
3413         can_predict_insn_p): Likewise.
3414         * regclass.c (reg_set_to_hard_reg_set): Likewise.
3415         * resource.c (return_insn_p): Likewise.
3416         * rtl.h (reg_set_between_p, reg_set_p, validate_subreg):
3417         Likewise.
3418         * rtlanal.c (reg_set_between_p, reg_set_p): Likewise.
3419         * tracer.c (count_insns, ignore_bb_p, better_p): Likewise.
3420         * tree-cfg.c (verify_gimple_unary_expr, verify_gimple_binary_expr,
3421         verify_gimple_modify_stmt): Likewise.
3422         * tree-chrec.c (is_not_constant_evolution,
3423         is_multivariate_chrec_rec, is_multivariate_chrec,
3424         chrec_contains_symbols, chrec_contains_undetermined,
3425         tree_contains_chrecs, evolution_function_is_affine_multivariate_p,
3426         evolution_function_is_univariate_p, avoid_arithmetics_in_type_p,
3427         eq_evolutions_p, scev_direction): Likewise.
3428         * tree-chrec.h (automatically_generated_chrec_p, tree_is_chrec,
3429         eq_evolutions_p, is_multivariate_chrec, chrec_contains_symbols,
3430         chrec_contains_symbols_defined_in_loop,
3431         chrec_contains_undetermined, tree_contains_chrecs,
3432         evolution_function_is_affine_multivariate_p,
3433         evolution_function_is_univariate_p, chrec_zerop,
3434         evolution_function_is_constant_p, evolution_function_is_affine_p,
3435         evolution_function_is_affine_or_constant_p,
3436         tree_does_not_contain_chrecs, chrec_type): Likewise.
3437         * tree-data-ref.c (tree_fold_divides_p,
3438         object_address_invariant_in_loop_p, dr_may_alias_p,
3439         ziv_subscript_p, siv_subscript_p, gcd_of_steps_may_divide_p,
3440         same_access_functions, constant_access_functions,
3441         access_functions_are_affine_or_constant_p, find_vertex_for_stmt):
3442         Likewise.
3443         * tree-flow.h (scev_direction): Likewise.
3444         * tree-gimple.c (is_gimple_stmt): Likewise.
3445         * tree-outof-ssa.c (identical_copies_p, identical_stmt_lists_p):
3446         Likewise.
3447         * tree-pretty-print.c (op_prio): Likewise.
3448         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop,
3449         analyzable_condition, backedge_phi_arg_p): Likewise.
3450         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
3451         * tree-ssa-operands.c (get_name_decl, operand_build_cmp): Likewise.
3452         * tree-ssa-threadupdate.c (dbds_continue_enumeration_p):
3453         Likewise.
3454
3455 2007-08-13  Dan Hipschman  <dsh@google.com>
3456
3457         PR c/32953
3458         * c-format.c (check_format_arg): Move check for zero-length
3459         format strings below the check for unterminated strings.
3460
3461 2007-08-13  Andrew Pinski  <pinskia@gmail.com>
3462
3463         PR C/30427
3464         * c-typeck.c (build_unary_op <case BIT_NOT_EXPR>): Reject vector float
3465         types.
3466
3467 2007-08-13  Nick Clifton  <nickc@redhat.com>
3468
3469         * config/arm/arm_neon.h: Revert GPLv3 patch to this file.
3470
3471 2007-08-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3472
3473         PR fortran/32860
3474         * c-format.c (gcc_gfc_length_specs): New array.
3475         (gcc_gfc_char_table): Add unsigned specifier, and references to
3476         the l length modifier.
3477         (format_types_orig): Use the new gcc_gfc_length_specs.
3478
3479 2007-08-12  Sa Liu  <saliu@de.ibm.com>
3480
3481         * emit-rtl.c (try_split): Relink the insns with REG_LIBCALL note
3482         and with REG_RETVAL note after split.
3483
3484 2007-08-11  David Daney  <ddaney@avtrex.com>
3485
3486         * config/mips/mips.c (mips_sched_reorder): Mark cycle parameter
3487         as ATTRIBUTE_UNUSED.
3488
3489 2007-08-11  David Edelsohn  <edelsohn@gnu.org>
3490             Segher Boessenkool  <segher@kernel.crashing.org>
3491
3492         * config/rs6000/rs6000.h (CC1_CPU_SPEC): Define as empty string if
3493         HAVE_LOCAL_CPU_DETECT not defined.
3494
3495 2007-08-11  Jan Hubicka  <jh@suse.cz>
3496
3497         * cgraphunit.c (record_cdtor_fn): Declare all cdtors always inlined.
3498         (cgraph_process_new_functions): Honor previous value of
3499         disregard_inline_limits.
3500         * ipa-inline.c (compute_inline_parameters): Likewise.
3501
3502 2007-08-11  Ian Lance Taylor  <iant@google.com>
3503
3504         * alias.h (alias_set_type): Define new type.
3505         (ALIAS_SET_MEMORY_BARRIER): Use it.
3506         * rtl.h: Include alias.h.
3507         (struct mem_attrs): Use alias_set_type.
3508         * tree.h: Include alias.h
3509         (struct tree_type): Use alias_set_type.
3510         (struct tree_struct_field_tag): Likewise.
3511         (struct tree_decl_common): Likewise.
3512         * alias.c (struct alias_set_entry): Use alias_set_type.
3513         (get_alias_set_entry, alias_set_subset_of): Likewise.
3514         (alias_sets_conflict_p): Likewise.
3515         (alias_sets_must_conflict_p): Likewise.
3516         (objects_must_conflict_p): Likewise.
3517         (get_alias_set, new_alias_set): Likewise.
3518         (record_alias_subset, record_component_aliases): Likewise.
3519         (varargs_set, frame_set): Change to alias_set_type.
3520         (get_varargs_alias_set): Use alias_set_type.
3521         (get_frame_alias_set): Likewise.
3522         * builtins.c (setjmp_alias_set): Change to alias_set_type.
3523         * dse.c (struct store_info): Use alias_set_type.
3524         (struct read_info, struct clear_alias_mode_holder): Likewise.
3525         (clear_alias_set_lookup, canon_address): Likewise.
3526         (record_store, check_mem_read_rtx): Likewise.
3527         (dse_record_singleton_alias_set): Likewise.
3528         (dse_invalidate_singleton_alias_set): Likewise.
3529         * emit-rtl.c (get_mem_attrs): Likewise.
3530         (set_mem_attributes_minus_bitpos): Likewise.
3531         (set_mem_alias_set): Likewise.
3532         * expr.c (store_constructor_field, store_field): Likewise.
3533         * gimplify.c (struct gimplify_init_ctor_preeval_data): Likewise.
3534         * langhooks.c (lhd_get_alias_set): Likewise.
3535         * langhooks-def.h (lhd_get_alias_set): Likewise.
3536         * reload1.c (alter_reg): Likewise.
3537         * tree-flow.h (struct fieldoff): Likewise.
3538         * tree-ssa-alias.c (struct alias_map_d): Likewise.
3539         (may_alias_p, get_smt_for, create_sft): Likewise.
3540         * tree-ssa-alias-warnings.c (nonstandard_alias_types_p): Likewise.
3541         * tree-ssa-structalias.c (set_uids_in_ptset): Likewise.
3542         (merge_smts_into): Likewise.
3543         * varasm.c (const_alias_set): Likewise.
3544         * c-common.c (strict_aliasing_warning): Likewise.
3545         (c_common_get_alias_set): Likewise.
3546         * dse.h (dse_record_singleton_alias_set): Update declaration.
3547         (dse_invalidate_singleton_alias_set): Likewise.
3548         * emit-rtl.h (set_mem_alias_set): Likewise.
3549         * c-common.h (c_common_get_alias_set): Likewise.
3550         * print-rtl.c (print_rtx): Cast MEM_ALIAS_SET when printing it.
3551         * print-tree.c (print_node): Likewise.
3552         * config/alpha/alpha.c (alpha_sr_alias_set): Change to
3553         alias_set_type.
3554         (alpha_setup_incoming_varargs): Use alias_set_type.
3555         * config/i386/i386.c (setup_incoming_varargs_64): Use
3556         alias_set_type.
3557         (setup_incoming_varargs_ms_64): Likewise.
3558         (ix86_GOT_alias_set): Likewise.
3559         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
3560         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
3561         (set): Change to alias_set_type.
3562         (get_TOC_alias_set): Use alias_set_type.
3563         * config/rs6000/rs6000-protos.h (get_TOC_alias_set): Update
3564         declaration.
3565         * config/sh/sh.c (sh_builtin_saveregs): Use alias_set_type.
3566         * config/sparc/sparc.c (sparc_sr_alias_set): Change to
3567         alias_set_type.
3568         (struct_value_alias_set): Likewise.
3569         * Makefile.in (GTFILES): Add $(srcdir)/alias.h.
3570
3571 2007-08-11  Richard Sandiford  <richard@codesourcery.com>
3572
3573         * config/vxworks-dummy.h (TARGET_VXWORKS): Define.
3574         * config/vxworks.h (TARGET_VXWORKS): Override.
3575         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define
3576         "mips" if TARGET_VXWORKS.
3577
3578 2007-08-11  Richard Sandiford  <richard@codesourcery.com>
3579
3580         * calls.c (avoid_likely_spilled_reg): New function.
3581         (expand_call): Use it.
3582
3583 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3584
3585         * c-typeck.c (build_c_cast): Add OPT_Wcast_qual to warnings.
3586
3587 2007-08-10  Adam Nemet  <anemet@caviumnetworks.com>
3588
3589         * config/mips/predicates.md (const_call_insn_operand): Invoke
3590         SYMBOL_REF_LONG_CALL_P only on SYMBOL_REFs.
3591
3592 2007-08-10  David Edelsohn  <edelsohn@gnu.org>
3593
3594         PR target/33042
3595         * config/rs6000/driver-rs6000.c: Include link.h.
3596         Use ElfW instead of wordsize-specif typedef.
3597
3598 2007-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3599
3600         * system.h (CONST_CAST): New.
3601         * c-decl.c (c_make_fname_decl): Use it.
3602         * c-lex.c (cb_ident, lex_string): Likewise.
3603         * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
3604         * gcc.c (set_spec, read_specs, for_each_path, execute, do_spec_1,
3605         give_switch, set_multilib_dir): Likewise.
3606         * gengtype-parse.c (string_seq, typedef_name): Likewise.
3607         * passes.c (execute_one_pass): Likewise.
3608         * prefix.c (update_path): Likewise.
3609         * pretty-print.c (pp_base_destroy_prefix): Likewise.
3610         * tree.c (build_string): Likewise.
3611
3612 2007-08-10  Aldy Hernandez  <aldyh@redhat.com>
3613
3614         * tree-flow-inline.h (is_exec_stmt): Remove.
3615         (is_label_stmt): Remove.
3616         * tree-flow.h: Remove prototypes for is_exec_stmt, get_filename, and
3617         is_label_stmt.
3618
3619 2007-08-10  Andreas Krebbel  <krebbel1@de.ibm.com>
3620
3621         * lower-subreg.c (resolve_shift_zext): Don't adjust
3622         src_reg_num for wordmode operands.
3623
3624 2007-08-10  Sandra Loosemore  <sandra@codesourcery.com>
3625             David Ung  <davidu@mips.com>
3626
3627         * config/mips/mips.c (TARGET_SCHED_INIT): Define.
3628         (TARGET_SCHED_REORDER2): Define.
3629         (mips_maybe_swap_ready): New.
3630         (mips_last_74k_agen_insn): New.
3631         (mips_74k_agen_init): New.
3632         (mips_74k_agen_reorder): New function to group loads and stores
3633         in the ready queue.
3634         (mips_sched_init): New.  
3635         (mips_sched_reorder): Don't do initialization here.  Call
3636         mips_74k_agen_reorder.
3637         (mips_variable_issue): Call mips_74k_agen_init.
3638
3639 2007-08-10  Aldy Hernandez  <aldyh@redhat.com>
3640
3641         * tree-flow-inline.h (get_filename): Remove.
3642
3643 2007-08-10  Richard Sandiford  <richard@codesourcery.com>
3644
3645         * config/mips/mips-protos.h (mips_address_insns): Add a boolean
3646         argument.
3647         (mips_fetch_insns): Delete in favor of...
3648         (mips_load_store_insns): ...this new function.
3649         * config/mips/mips.c (mips_address_insns): Add a boolean argument
3650         to say whether multiword moves _might_ be split.
3651         (mips_fetch_insns): Delete in favor of...
3652         (mips_load_store_insns): ...this new function.
3653         (mips_rtx_costs): Update the call to mips_address_insns.
3654         (mips_address_cost): Likewise.
3655         * config/mips/mips.md (length): Use mips_load_store_insns instead
3656         of mips_fetch_insns.
3657         * config/mips/constraints.md (R): Use mips_address_insns rather
3658         than mips_fetch_insns.  Assume that the move never needs to be split.
3659
3660 2007-08-09  Sandra Loosemore  <sandra@codesourcery.com>
3661
3662         * config/mips/mips.opt (mhard-float, msoft-float): Make these
3663         control TARGET_HARD_FLOAT_ABI and TARGET_SOFT_FLOAT_ABI, rather
3664         than TARGET_HARD_FLOAT and TARGET_SOFT_FLOAT.  
3665         * config/mips/mips.h (mips16_hard_float): Delete.
3666         (TARGET_HARD_FLOAT_ABI, TARGET_SOFT_FLOAT_ABI): Delete these
3667         definitions, and replace with....
3668         (TARGET_HARD_FLOAT, TARGET_SOFT_FLOAT): Define.
3669         * config/mips/mips.c (mips16_hard_float): Delete.  Replace
3670         all references with (TARGET_MIPS16 && TARGET_HARD_FLOAT_ABI).
3671         (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Update comments.
3672         (override_options): Replace MASK_SOFT_FLOAT references with
3673         MASK_SOFT_FLOAT_ABI.  Delete twiddling with MASK_SOFT_FLOAT
3674         and mips16_hard_float when TARGET_MIPS16.
3675         
3676 2007-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3677
3678         PR c/32796
3679         * c-typeck.c (build_binary_op): Check for non pointer types before
3680         calling int_fits_type_p.
3681
3682 2007-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3683
3684         PR middle-end/32813
3685         * fold-const.c (omit_one_operand): Return only the ommitted expression
3686         if the result is an empty statement.
3687         (pedantic_omit_one_operand): Likewise.
3688
3689 2007-08-09  Daniel Berlin  <dberlin@dberlin.org>
3690
3691         * c-typeck.c (readonly_error): Improve error for assignment.
3692         
3693         * c-pretty-print.c (pp_c_additive_expression): Handle pointer-plus
3694         expression. 
3695         (pp_c_expression): Ditto.
3696
3697 2007-08-09  Simon Baldwin  <simonb@google.com>
3698
3699         * simplify-rtx.c (simplify_binary_operation_1): Removed erroneous
3700         break that was preventing simplify_associative_operation() for xor.
3701
3702 2007-08-09  Sandra Loosemore  <sandra@codesourcery.com>
3703             Nigel Stephens  <nigel@mips.com>
3704
3705         * doc/tm.texi (CLZ_DEFINED_VALUE_AT_ZERO, CTZ_DEFINED_VALUE_AT_ZERO):
3706         Document change in interpretation of value from boolean to
3707         tri-state integer.
3708         * optabs.c (expand_ffs, expand_ctz): New functions to compute
3709         ffs and ctz using clz.
3710         (expand_unop): Call them.
3711         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Fix its
3712         result value.
3713         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
3714         * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Likewise, to
3715         enable the new ffs expansion on this target.
3716
3717 2007-08-09  Jan Hubicka  <jh@suse.cz>
3718
3719         * optabs.c (expand_widen_pattern_expr): Use optabs accestors.
3720         (expand_ternary_op): Likewise.
3721         (expand_vec_shift_expr): Likewise.
3722         (expand_binop_directly): Likewise.
3723         (expand_binop): Likewise.
3724         (sign_expand_binop): Likewise.
3725         (expand_twoval_unop): Likewise.
3726         (expand_twoval_binop): Likewise.
3727         (expand_twoval_binop_libfunc): Likewise.
3728         (widen_clz): Likewise.
3729         (widen_bswap): Likewise.
3730         (expand_parity): Likewise.
3731         (expand_unop): Likewise.
3732         (expand_abs_nojump): Likewise.
3733         (expand_copysign): Likewise.
3734         (emit_no_conflict_block): Likewise.
3735         (emit_libcall_block): Likewise.
3736         (can_compare_p): Likewise.
3737         (prepare_cmp_insn): Likewise.
3738         (emit_cmp_and_jump_insn_1): Likewise.
3739         (prepare_float_lib_cmp): Likewise.
3740         (emit_conditional_add): Likewise.
3741         (gen_add2_insn): Likewise.
3742         (have_add2_insn): Likewise.
3743         (gen_sub2_insn): Likewise.
3744         (have_sub2_insn): Likewise.
3745         (can_extend_p): Likewise.
3746         (can_fix_p): Likewise.
3747         (can_float_p): Likewise.
3748         (expand_float): Likewise.
3749         (expand_fix): Likewise.
3750         (expand_sfix_optab): Likewise.
3751         (new_optab): Likewise.
3752         (new_convert_optab): Likewise.
3753         (init_libfuncs): Likewise.
3754         (init_interclass_conv_libfuncs): Likewise.
3755         (init_intraclass_conv_libfuncs): Likewise.
3756         (set_conv_libfunc): Likewise.
3757         (init_optabs): Likewise.
3758         (debug_optab_libfuncs): Likewise.
3759         (gen_cond_trap): Likewise.
3760         * optabs.h (optab_handler, convert_optab_hanlder): New.
3761         * genopinit.c: Update optabs generation table.
3762         * reload.c (find_reloads_address_1): Use optabs accestors.
3763         * builtins.c (expand_builtin_mathfn): Likewise.
3764         (expand_builtin_mathfn_2): Likewise.
3765         (expand_builtin_mathfn_3): Likewise.
3766         (expand_builtin_interclass_mathfn): Likewise.
3767         (expand_builtin_sincos): Likewise.
3768         (expand_builtin_cexpi): Likewise.
3769         (expand_builtin_powi): Likewise.
3770         (expand_builtin_strlen): Likewise.
3771         * dojump.c (do_jump): Likewise.
3772         * expr.c (convert_move): Likewise.
3773         (move_by_pieces): Likewise.
3774         (move_by_pieces_ninsns): Likewise.
3775         (can_store_by_pieces): Likewise.
3776         (store_by_pieces_1): Likewise.
3777         (emit_move_via_integer): Likewise.
3778         (emit_move_complex): Likewise.
3779         (emit_move_ccmode): Likewise.
3780         (emit_move_insn_1): Likewise.
3781         (emit_single_push_insn): Likewise.
3782         (store_constructor): Likewise.
3783         (expand_expr_real_1): Likewise.
3784         (do_store_flag): Likewise.
3785         * ada/misc.c (gnat_compute_largest_alignment): Likewise.
3786         (enumerate_modes): Likewise.
3787         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
3788         (supportable_widening_operation): Likewise.
3789         (supportable_narrowing_operation): Likewise.
3790         * expmed.c (store_bit_field_1): Likewise.
3791         (extract_bit_field_1): Likewise.
3792         (expand_mult_highpart_optab): Likewise.
3793         (expand_smod_pow2): Likewise.
3794         (expand_divmod): Likewise.
3795         (emit_store_flag): Likewise.
3796         * tree-vect-patterns.c
3797         (vect_pattern_recog_1): Likewise.
3798         * tree-ssa-loop-prefetch.c
3799         (nontemporal_store_p): Likewise.
3800         * tree-vect-transform.c (vect_model_reduction_cost): Likewise.
3801         (vect_create_epilog_for_reduction): Likewise.
3802         (vectorizable_reduction): Likewise.
3803         (vectorizable_operation): Likewise.
3804         (vect_strided_store_supported): Likewise.
3805         (vectorizable_store): Likewise.
3806         (vect_strided_load_supported): Likewise.
3807         (vectorizable_load): Likewise.
3808         * combine.c (simplify_comparison): Likewise.
3809         * tree-vect-generic.c
3810         (type_for_widest_vector_mode): Likewise.
3811         (expand_vector_operations_1): Likewise.
3812         * config/spu/spu.c (spu_expand_mov): Likewise.
3813         (spu_emit_vector_compare): Likewise.
3814         * config/rs6000/rs6000.c
3815         (rs6000_emit_vector_compare): Likewise.
3816         * stmt.c (add_case_node): Likewise.
3817         * reload1.c (gen_reload):
3818
3819 2007-08-09  Michael Matz  <matz@suse.de>
3820
3821         * tree.h (fixed_zerop): Declare as taking a const_tree.
3822         * tree.c (fixed_zerop): Take a const_tree.
3823
3824 2007-08-09  Ira Rosen  <irar@il.ibm.com>
3825
3826         * tree-vect-transform.c (vectorizable_store): Remove call to
3827         copy_virtual_operands() and call mark_symbols_for_renaming() for
3828         the created vector store.
3829         (vect_setup_realignment): Don't call copy_virtual_operands() and
3830         update_vuses_to_preheader(). 
3831         (vectorizable_load): Don't call copy_virtual_operands(). 
3832         (update_vuses_to_preheader): Remove.
3833
3834 2007-08-08  Chao-ying Fu  <fu@mips.com>
3835
3836         * tree.def (FIXED_POINT_TYPE): New type.
3837         (FIXED_CST): New constant.
3838         (FIXED_CONVERT_EXPR): New expr.
3839         * doc/c-tree.texi (Types): Document FIXED_POINT_TYPE.
3840         (Expressions): Document FIXED_CST and FIXED_CONVERT_EXPR.
3841         * tree.h (struct tree_base): Add saturating_flag.
3842         Remove one bit of spare for saturating_flag.
3843         (NUMERICAL_TYPE_CHECK): Support FIXED_POINT_TYPE.
3844         (NON_SAT_FIXED_POINT_TYPE_P, SAT_FIXED_POINT_TYPE_P,
3845         FIXED_POINT_TYPE_P): Define.
3846         (TYPE_SATURATING): Define.
3847         (TREE_FIXED_CST_PTR, TREE_FIXED_CST): Define.
3848         (struct tree_fixed_cst): New.
3849         (TYPE_IBIT, TYPE_FBIT): Define.
3850         (tree_node): Add fixed_cst.
3851         (enum tree_index): Add new enumeration values of
3852         TI_SAT_SFRACT_TYPE, TI_SAT_FRACT_TYPE, TI_SAT_LFRACT_TYPE,
3853         TI_SAT_LLFRACT_TYPE, TI_SAT_USFRACT_TYPE, TI_SAT_UFRACT_TYPE,
3854         TI_SAT_ULFRACT_TYPE, TI_SAT_ULLFRACT_TYPE, TI_SFRACT_TYPE,
3855         TI_FRACT_TYPE, TI_LFRACT_TYPE, TI_LLFRACT_TYPE, TI_USFRACT_TYPE,
3856         TI_UFRACT_TYPE, TI_ULFRACT_TYPE, TI_ULLFRACT_TYPE,
3857         TI_SAT_SACCUM_TYPE, TI_SAT_ACCUM_TYPE, TI_SAT_LACCUM_TYPE,
3858         TI_SAT_LLACCUM_TYPE, TI_SAT_USACCUM_TYPE, TI_SAT_UACCUM_TYPE,
3859         TI_SAT_ULACCUM_TYPE, TI_SAT_ULLACCUM_TYPE, TI_SACCUM_TYPE,
3860         TI_ACCUM_TYPE, TI_LACCUM_TYPE, TI_LLACCUM_TYPE, TI_USACCUM_TYPE,
3861         TI_UACCUM_TYPE, TI_ULACCUM_TYPE, TI_ULLACCUM_TYPE,
3862         TI_QQ_TYPE, TI_HQ_TYPE,_TYPE, TI_SQ_TYPE, TI_DQ_TYPE, TI_TQ_TYPE,
3863         TI_UQQ_TYPE, TI_UHQ_TYPE, TI_USQ_TYPE, TI_UDQ_TYPE, TI_UTQ_TYPE,
3864         TI_SAT_QQ_TYPE, TI_SAT_HQ_TYPE, TI_SAT_SQ_TYPE, TI_SAT_DQ_TYPE,
3865         TI_SAT_TQ_TYPE, TI_SAT_UQQ_TYPE, TI_SAT_UHQ_TYPE, TI_SAT_USQ_TYPE,
3866         TI_SAT_UDQ_TYPE, TI_SAT_UTQ_TYPE, TI_HA_TYPE, TI_SA_TYPE, TI_DA_TYPE,
3867         TI_TA_TYPE, TI_UHA_TYPE, TI_USA_TYPE, TI_UDA_TYPE, TI_UTA_TYPE,
3868         TI_SAT_HA_TYPE, TI_SAT_SA_TYPE, TI_SAT_DA_TYPE, TI_SAT_TA_TYPE,
3869         TI_SAT_UHA_TYPE, TI_SAT_USA_TYPE, TI_SAT_UDA_TYPE, TI_SAT_UTA_TYPE.
3870         (sat_short_fract_type_node, sat_fract_type_node,
3871         sat_long_fract_type_node, sat_long_long_fract_type_node,
3872         sat_unsigned_short_fract_type_node, sat_unsigned_fract_type_node,
3873         sat_unsigned_long_fract_type_node,
3874         sat_unsigned_long_long_fract_type_node, short_fract_type_node,
3875         fract_type_node, long_fract_type_node, long_long_fract_type_node,
3876         unsigned_short_fract_type_node, unsigned_fract_type_node,
3877         unsigned_long_fract_type_node, unsigned_long_long_fract_type_node,
3878         sat_short_accum_type_node, sat_accum_type_node,
3879         sat_long_accum_type_node, sat_long_long_accum_type_node,
3880         sat_unsigned_short_accum_type_node, sat_unsigned_accum_type_node,
3881         sat_unsigned_long_accum_type_node,
3882         sat_unsigned_long_long_accum_type_node, short_accum_type_node,
3883         accum_type_node, long_accum_type_node, long_long_accum_type_node,
3884         unsigned_short_accum_type_node, unsigned_accum_type_node,
3885         unsigned_long_accum_type_node, unsigned_long_long_accum_type_node,
3886         qq_type_node, hq_type_node, sq_type_node, dq_type_node, tq_type_node,
3887         uqq_type_node, uhq_type_node, usq_type_node, udq_type_node,
3888         utq_type_node, sat_qq_type_node, sat_hq_type_node, sat_sq_type_node,
3889         sat_dq_type_node, sat_tq_type_node, sat_uqq_type_node,
3890         sat_uhq_type_node, sat_usq_type_node, sat_udq_type_node,
3891         sat_utq_type_node, ha_type_node, sa_type_node, da_type_node,
3892         ta_type_node, uha_type_node, usa_type_node, uda_type_node,
3893         uta_type_node, sat_ha_type_node, sat_sa_type_node, sat_da_type_node,
3894         sat_ta_type_node, sat_uha_type_node, sat_usa_type_node,
3895         sat_uda_type_node, sat_uta_type_node): New macro.
3896         (make_fract_type, make_accum_type): Declare.
3897         (make_signed_fract_type, make_unsigned_fract_type,
3898         make_sat_signed_fract_type, make_sat_unsigned_fract_type,
3899         make_signed_accum_type, make_unsigned_accum_type,
3900         make_sat_signed_accum_type, make_sat_unsigned_accum_type,
3901         make_or_reuse_signed_fract_type, make_or_reuse_unsigned_fract_type,
3902         make_or_reuse_sat_signed_fract_type,
3903         make_or_reuse_sat_unsigned_fract_type, make_or_reuse_signed_accum_type,
3904         make_or_reuse_unsigned_accum_type, make_or_reuse_sat_signed_accum_type,
3905         make_or_reuse_sat_unsigned_accum_type): New macro.
3906         (fixed_zerop): Declare.
3907         * defaults.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE,
3908         LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
3909         SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
3910         LONG_LONG_ACCUM_TYPE_SIZE): Define.
3911         * treestruct.def: Add TS_FIXED_CST.
3912         * Makefile.in (c-pretty-print.o): Add dependence on fixed-value.h.
3913         (tree.o): Likewise.
3914         (tree-dump.o): Likewise.
3915         (print-tree.o): Likewise.
3916         (tree-pretty-print.o): Likewise.
3917         (fold-const.o): Likewise.
3918         * tree-complex.c (some_nonzerop): Handle FIXED_CST.
3919         * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle FIXED_CST.
3920         (is_gimple_min_invariant): Handle FIXED_CST.
3921         * stor-layout.c (int_mode_for_mode): Handle MODE_FRACT, MODE_UFRACT,
3922         MODE_ACCUM, MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
3923         MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
3924         (layout_type): Handle FIXED_POINT_TYPE.
3925         (make_fract_type, make_accum_type): New functions.
3926         * tree-browser.c (browse_tree): Handle FIXED_POINT_TYPE.
3927         * tree-dump.c (fixed-value.h): New include.
3928         (dump_fixed): New function.
3929         (dequeue_and_dump): Handle FIXED_POINT_TYPE and FIXED_CST.
3930         * tree-inline.c (remap_type_1): Handle FIXED_POINT_TYPE.
3931         (estimate_num_insns_1): Handle FIXED_CST and FIXED_CONVERT_EXPR.
3932         * tree-pretty-print.c (fixed-value.h): New include.
3933         (dump_generic_node): Handle FIXED_POINT_TYPE, FIXED_CST, and
3934         FIXED_CONVERT_EXPR.
3935         * tree-scalar-evolution.c (get_scalar_evolution): Handle FIXED_CST.
3936         * tree-ssa-loop-im.c (for_each_index): Handle FIXED_CST.
3937         * tree-ssa-pre.c (poolify_tree): Handle FIXED_CST.
3938         * tree-ssa-reassoc.c (break_up_subtract_bb): We can do reassociation
3939         for non-saturating fixed-point types.
3940         (reassociate_bb): Likewise.
3941         * emit-rtl.c (fixed-value.h): New include.
3942         (fconst0, fconst1): New array.
3943         (init_emit_once): Initialize fconst0 and fconst1 for fixed-point modes.
3944         * tree-vect-generic.c expand_vector_operation): Support
3945         MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, and
3946         MODE_VECTOR_UACCUM.
3947         (type_for_widest_vector_mode): Add one parameter for the 
3948         saturating flag.
3949         Check scalar FRACT, UFRACT, ACCUM, and UACCUM mode to select their
3950         vector mode.
3951         Pass the satp parameter to type_for_mode for fixed-point types.
3952         (expand_vector_operations_1): Pass the saturating flag to
3953         type_for_widest_vector_mode.
3954         Support MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
3955         and MODE_VECTOR_UACCUM.
3956         * tree-vect-transform.c (vect_is_simple_cond): Support FIXED_CST.
3957         (vectorizable_condition): Likewise.
3958         * tree.c (fixed-value.h): New include.
3959         (tree_code_size): Support FIXED_CST.
3960         (build_fixed): New function.
3961         (build_one_cst): Support FIXED_POINT_TYPE for accum types.
3962         (fixed_zerop): New function.
3963         (tree_node_structure): Support FIXED_CST.
3964         (type_contains_placeholder_1): Support FIXED_POINT_TYPE.
3965         (build_type_attribute_qual_variant): Handle FIXED_POINT_TYPE.
3966         (type_hash_eq): Handle FIXED_POINT_TYPE.
3967         (simple_cst_equal): Support FIXED_CST.
3968         (iterative_hash_expr): Handle FIXED_CST.
3969         (get_unwidened): Make sure type is not FIXED_POINT_TYPE.
3970         (get_narrower): Likewise.
3971         (variably_modified_type_p): Handle FIXED_POINT_TYPE.
3972         (make_or_reuse_fract_type, make_or_reuse_accum_type): New functions.
3973         (build_common_tree_nodes_2): Use MAKE_FIXED_TYPE_NODE_FAMILY and
3974         MAKE_FIXED_MODE_NODE macros to initialize fixed-point type
3975         nodes.
3976         (build_vector_type_for_mode): Handle MODE_VECTOR_FRACT,
3977         MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
3978         (initializer_zerop): Support FIXED_CST.
3979         (walk_tree): Handle FIXED_CST and FIXED_POINT_TYPE.
3980         * dwarf2out.c (base_type_die): Use DW_ATE_signed_fixed or
3981         DW_ATE_unsigned_fixed to describe FIXED_POINT_TYPE.
3982         (is_base_type): Handle FIXED_POINT_TYPE.
3983         (add_type_attribute): Handle FIXED_POINT_TYPE.
3984         (gen_type_die_with_usage): Handle FIXED_POINT_TYPE.
3985         * print-tree.c (fixed-value.h): New include.
3986         (print_node_brief): Support FIXED_CST.
3987         (print_node): Support FIXED_POINT_TYPE and FIXED_CST.
3988         * c-pretty-print.c (fixed-value.h): New include.
3989         (pp_c_type_specifier): Handle FIXED_POINT_TYPE.  Need to pass
3990         TYPE_SATURATING to c_common_type_for_mode for fixed-point modes.
3991         (pp_c_direct_abstract_declarator): Handle FIXED_POINT_TYPE.
3992         Support fixed-point types for inner items in VECTOR_TYPE.
3993         (pp_c_direct_declarator): Likewise.
3994         (pp_c_declarator): Likewise.
3995         (pp_c_fixed_constant): New function.
3996         (pp_c_constant): Handle FIXED_CST.
3997         (pp_c_primary_expression): Likewise.
3998         (pp_c_expression): Likewise.
3999         * fold-const.c (fixed-value.h): New include.
4000         (negate_expr_p): Return true for FIXED_CST.
4001         (fold_negate_expr): Support FIXED_CST.
4002         (split_tree): Support FIXED_CST.
4003         (const_binop): Support FIXED_CST.
4004         (fold_convert_const_int_from_fixed): New function to convert from
4005         fixed to int.
4006         (fold_convert_const_real_from_fixed): New function to convert from
4007         fixed to real.
4008         (fold_convert_const_fixed_from_fixed): New function to convert from
4009         fixed to another fixed.
4010         (fold_convert_const_fixed_from_int): New function to convert from
4011         int to fixed.
4012         (fold_convert_const_fixed_from_real): New function to convert from
4013         real to fixed.
4014         (fold_convert_const): Support conversions from fixed to int, from
4015         fixed to real, from fixed to fixed, from int to fixed, and from real
4016         to fixed.
4017         (fold_convert): Support FIXED_CST and FIXED_POINT_TYPE.
4018         (operand_equal_p): Support FIXED_CST.
4019         (make_range): For fixed-point modes, we need to pass the
4020         saturating flag as the 2nd parameter.
4021         (tree_swap_operands_p): Handle FIXED_CST.
4022         (fold_plusminus_mult_expr): For fract modes, we cannot generate
4023         constant 1.
4024         (fold_unary): Support FIXED_CONVERT_EXPR.
4025         (fold_binary): Handle FIXED_CST.
4026         Make sure the type is not saturating, before associating operations.
4027         Ex: A + B + C, A * B * C, (A1 * C1) +/- (A2 * C2).
4028         (tree_expr_nonnegative_warnv_p): Handle FIXED_CST.
4029         (fold_negate_const): Support FIXED_CST.
4030         (fold_relational_const): Support FIXED_CST.
4031         * gimplify.c (omp_firstprivatize_type_sizes): Handle FIXED_POINT_TYPE.
4032         (gimplify_expr): Handle FIXED_CST.
4033         (gimplify_type_sizes): Handle FIXED_POINT_TYPE.
4034         * ipa-prop.c (ipa_callsite_compute_param): Support FIXED_CST.
4035         * ipa-type-escape.c (type_to_consider): Handle FIXED_POINT_TYPE.
4036         * doc/tm.texi (Type Layout): Document SHORT_FRACT_TYPE_SIZE,
4037         FRACT_TYPE_SIZE, LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
4038         SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
4039         LONG_LONG_ACCUM_TYPE_SIZE.
4040         * dbxout.c (dbxout_type): Handle FIXED_POINT_TYPE.
4041         * c-aux-info.c (gen_type): Handle FIXED_POINT_TYPE.
4042         * tree-sra.c (is_sra_scalar_type): Support FIXED_POINT_TYPE.
4043         * expmed.c (extract_bit_field): Support MODE_FRACT, MODE_UFRACT,
4044         MODE_ACCUM, and MODE_UACCUM.
4045         * tree-vectorizer.c (vect_is_simple_reduction): Check for saturating
4046         fixed-point types to disable reduction.
4047         * explow.c (promote_mode): Support FIXED_POINT_TYPE.
4048
4049 2007-08-08  David Edelsohn  <edelsohn@gnu.org>
4050
4051         * config/rs6000/x-rs6000: New file.
4052         * config/rs6000/darwin.h (CC1_SPEC): Add cc1_cpu.
4053         * config/rs6000/rs6000.h (EXTRA_SPECS): Add cc1_cpu.
4054         (EXTRA_SPEC_FUNCTIONS): Define.
4055         (HAVE_LOCAL_CPU_DETECT): Define.
4056         (CC1_CPU_SPEC): Define.
4057         * config/rs6000/driver-rs6000.c: New file.
4058         * config/rs6000/aix.h (CC1_SPEC): Define.
4059         * config/rs6000/sysv4.h (CC1_SPEC): Add cc1_cpu.
4060         * config.host: Add x-rs6000 to host_xmake_file if host and target
4061         are rs6000 or powerpc.
4062
4063 2007-08-08  Paolo Bonzini <paolo.bonzini@lu.unisi.ch>
4064
4065         * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Use +=.
4066
4067 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
4068             Sandra Loosemore  <sandra@codesourcery.com>
4069             Chao-ying Fu  <fu@mips.com>
4070             Nigel Stephens  <nigel@mips.com>
4071             David Ung  <davidu@mips.com>
4072
4073         * doc/invoke.texi (-mcode-readable): Document.
4074         * config/mips/mips.opt (mcode-readable): New option.
4075         * config/mips/mips-protos.h (SYMBOL_32_HIGH): New symbol type.
4076         * config/mips/mips.h (mips_code_readable_setting): New enum.
4077         (mips_code_readable): Declare.
4078         (TARGET_MIPS16_TEXT_LOADS, TARGET_MIPS16_PCREL_LOADS): New macros.
4079         (TARGET_MIPS16_SHORT_JUMP_TABLES): New macro.
4080         (JUMP_TABLES_IN_TEXT_SECTION): Use it.
4081         (CASE_VECTOR_MODE, CASE_VECTOR_PC_RELATIVE): Likewise.  Remove
4082         boiler-plate comments.
4083         (ASM_OUTPUT_ADDR_DIFF_ELT): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
4084         * config/mips/mips.c (mips_code_readable): New variable.
4085         (mips_classify_symbol): Only return SYMBOL_PC_RELATIVE for
4086         MIPS16 labels if TARGET_MIPS16_SHORT_JUMP_TABLES.  Use both the
4087         context and -mcode-readable setting to restrict the use of
4088         SYMBOL_PC_RELATIVE for MIPS16 constant pool references.
4089         Only return TARGET_FORCE_TO_MEM if PC-relative loads are allowed.
4090         (mips_symbolic_constant_p): Handle SYMBOL_32_HIGH.
4091         (mips_blocks_for_constant_p): Only return false for
4092         TARGET_MIPS16_PCREL_LOADS.
4093         (mips_symbol_insns_1): Treat HIGHs as 2 extended instructions
4094         for MIPS16.  Handle SYMBOL_32_HIGH.
4095         (mips_const_insns): Allow HIGHs for MIPS16 too.
4096         (mips_unspec_address_offset): New function, split out from...
4097         (mips_unspec_address): ...here.
4098         (mips_output_move): Handle MIPS16 HIGH moves.  Use "li" to load
4099         16-bit symbolic constants.  Assert approropiate conditions for
4100         using the "la" and "dla" macros.
4101         (mips_handle_option): Handle -mcode-readable=.
4102         (override_options): Use %hi/%lo relocations for TARGET_MIPS16 too.
4103         Set up mips_lo_relocs[SYMBOL_32_HIGH].
4104         (mips_strip_unspec_address): New function, split out from...
4105         (print_operand_reloc): ...here.
4106         (print_operand): Pass constants through mips_strip_unspec_address.
4107         (print_operand_address): Likewise.
4108         (mips_output_mi_thunk): Remove guard of mips16_lay_out_constants.
4109         (mips_select_rtx_section): Remove MIPS16 handling.
4110         (mips16_gp_pseudo_reg): Check currently_expanding_to_rtl.
4111         (mips16_rewrite_pool_refs): Wrap the labels in an address UNSPEC.
4112         (mips16_lay_out_constants): Do nothing unless
4113         TARGET_MIPS16_PCREL_LOADS.
4114         (mips_avoid_hazards): Remove guard of mips16_lay_out_constants.
4115         * config/mips/mips.md: Split HIGHs for MIPS16.
4116         (tablejump): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
4117
4118 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
4119
4120         * config/mips/mips-protos.h (mips_emit_move): Declare.
4121         * config/mips/mips.c (mips_emit_move): New function.
4122         (mips_force_temporary): Use mips_emit_move instead of emit_move_insn.
4123         (mips_legitimize_const_move): Likewise.
4124         (mips_legitimize_move): Likewise.
4125         (mips_split_64bit_move): Likewise.
4126         (mips_restore_gp): Likewise.
4127         (mips_load_call_address): Likewise.
4128         (mips_emit_fcc_reload): Likewise.
4129         (mips_set_return_address): Likewise.
4130         (mips_block_move_straight): Likewise.
4131         (mips_block_move_loop): Likewise.
4132         (mips_setup_incoming_varargs): Likewise.
4133         (mips_save_reg): Likewise.
4134         (mips_expand_prologue): Likewise.
4135         (mips_restore_reg): Likewise.
4136         (mips_expand_epilogue): Likewise.
4137         (mips_output_mi_thunk): Likewise.
4138         (build_mips16_call_stub): Likewise.
4139         (mips_builtin_branch_and_move): Likewise.
4140         * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Likewise.
4141         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
4142         (fixuns_truncdfdi2): Likewise.
4143         (fixuns_truncsfsi2): Likewise.
4144         (fixuns_truncsfdi2): Likewise.
4145         (loadgp_absolute): Likewise.
4146         (builtin_setjmp_setup): Likewise.
4147         (builtin_longjmp): Likewise.
4148         (untyped_call): Likewise.
4149
4150 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
4151
4152         * config/mips/mips-protos.h (mips_split_symbol): Add a mode and
4153         an "rtx *" argument.  Return a bool.
4154         * config/mips/mips.c (mips_split_symbol): Accept arbitrary source
4155         values and return true if they can be split.  Take the same kind of
4156         mode argument as mips_symbol_insns.  Add a "lo_sum_out" parameter
4157         and store the lo_sum there if nonnull.  Use the symbol type to
4158         determine whether a $gp or HIGH is needed.
4159         (mips_legitimize_address): Update call to mips_split_symbol and
4160         simplify accordingly.
4161         (mips_legitimize_const_move): Likewise.
4162         * config/mips/mips.md: In the combine define_split,
4163         check mips_split_symbol instead of splittable_symbolic_operand.
4164         Update use of mips_split_symbol in the generator code.
4165         * config/mips/predicates.md (splittable_symbolic_operand): Delete.
4166
4167 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
4168
4169         * config/mips/mips.c (mips_symbolic_address_p): Delete.
4170         (mips_symbol_insns_1): New function, split out from...
4171         (mips_symbol_insns): ...here.  Take a mode argument.  Treat loads
4172         and stores separately from load addresses.
4173         (mips_classify_address): Replace uses of mips_symbolic_address_p
4174         with uses of mips_symbol_insns.
4175         (mips_address_insns): Update calls to mips_symbol_insns.
4176         (mips_const_insns): Likewise.
4177         (mips_legitimize_address): Likewise.
4178
4179 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
4180
4181         * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): New symbol type.
4182         * config/mips/mips.c (mips_classify_symbol): Skip TARGET_ABICALLS
4183         block for locally-binding symbols if TARGET_ABSOLUTE_ABICALLS.
4184         Return SYMBOL_FORCE_TO_MEM instead of SYMBOL_ABSOLUTE for
4185         non-call contexts if TARGET_MIPS16.
4186         (mips_symbolic_constant_p): Handle SYMBOL_FORCE_TO_MEM.
4187         (mips_symbolic_address_p): Likewise.  Remove special TARGET_MIPS16
4188         code for SYMBOL_ABSOLUTE.
4189         (mips_symbol_insns): Likewise.
4190
4191 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
4192
4193         * config/mips/mips-protos.h (mips_symbol_context): New enumeration.
4194         * config/mips/mips.c (mips_classify_symbol): Take a context argument.
4195         (mips_symbolic_constant_p): Likewise.  Update the call to
4196         mips_classify_symbol.
4197         (mips_classify_address): Update the calls to mips_symbolic_constant_p.
4198         (mips_const_insns): Likewise.  Update the call to mips_classify_symbol.
4199         (mips_legitimize_address): Update the call to mips_symbolic_constant_p.
4200         (print_operand_reloc): Add a context argument.  Update the call to
4201         mips_symbolic_constant_p.
4202         (print_operand): Update the calls to print_operand_reloc.
4203         (print_operand_address): Use print_operand_reloc rather than
4204         print_operand.
4205         (mips_rewrite_small_data_p): Add a context argument.  Update the call
4206         to mips_symbolic_constant_p.
4207         (mips_small_data_pattern_1): Make DATA the containing mem.
4208         Update the call to mips_rewrite_small_data_p.
4209         (mips_rewrite_small_data_1): Likewise.
4210         (mips_use_anchors_for_symbol_p): Update the call to
4211         mips_symbolic_constant_p.
4212         * config/mips/predicates.md (const_call_insn_operand): Likewise.
4213         (splittable_symbolic_operand): Likewise.
4214         (move_operand): Likewise.
4215         (absolute_symbolic_operand): Likewise.
4216         (got_disp_operand): Likewise.
4217         (got_page_ofst_operand): Likewise.
4218
4219 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
4220
4221         * config/mips/mips-protos.h (SYMBOL_GENERAL): Rename to...
4222         (SYMBOL_ABSOLUTE): ...this.
4223         (SYMBOL_SMALL_DATA): Rename to...
4224         (SYMBOL_GP_RELATIVE): ...this.
4225         (SYMBOL_CONSTANT_POOL): Rename to...
4226         (SYMBOL_PC_RELATIVE): ...this.
4227         * config/mips/mips.c (mips_classify_symbol, mips_symbolic_constant_p)
4228         (mips_symbolic_address_p, mips_symbol_insns, override_options)
4229         (mips_rewrite_small_data_p, mips_use_anchors_for_symbol_p): Update
4230         after above changes.
4231         * config/mips/predicates.md (const_call_insn_operand): Likewise.
4232         (general_symbolic_operand): Rename to...
4233         (absolute_symbolic_operand): ...this.
4234         * config/mips/mips.md: Update after above changes.
4235
4236 2007-08-08  Vladimir Yanovsky  <yanov@il.ibm.com>
4237             Revital Eres  <eres@il.ibm.com>
4238
4239         * ddg.c (print_ddg): Add dump information.
4240         * modulo-sched.c (print_node_sched_params): Add parameter and
4241         verbosity.
4242         (calculate_maxii): Remove function.
4243         (undo_generate_reg_moves): Likewise.
4244         (undo_permute_partial_schedule): Likewise.
4245         (kernel_number_of_cycles): Likewise.
4246         (MAXII_FACTOR): New definition to calculate the upper bound of II.
4247         (sms_schedule): Use it.  Remove profitability checks.
4248         (sms_schedule_by_order): Fix order of nodes within the cycle.
4249
4250 2007-08-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4251
4252         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt0.o in profile mode, add
4253         -profile option, add pie support.
4254         (ENDFILE_SPEC): New spec.
4255         * config/gnu.h (LIB_SPEC): Add -profile option.
4256
4257 2007-08-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4258
4259         * config/i386/gnu.h (CPP_SPEC): Add -pthread option.
4260         * config/gnu.h (LIB_SPEC): Likewise.
4261
4262 2007-08-07  Yaz Saito  <saito@google.com>
4263             Ian Lance Taylor  <iant@google.com>
4264
4265         * common.opt (finstrument-functions-exclude-function-list): New
4266         option.
4267         (finstrument-functions-exclude-file-list): New option.
4268         * opts.c (char_p): Define and DEF_VEC.
4269         (flag_instrument_functions_exclude_functions): New static
4270         variable.
4271         (flag_instrument_functions_exclude_files): New static variable.
4272         (add_instrument_functions_exclude_list): New static function.
4273         (flag_instrument_functions_exclude_p): New function.
4274         (common_handle_option): Handle new options.
4275         * flags.h (flag_instrument_functions_exclude_p): Declare.
4276         * gimplify.c (gimplify_function_tree): Call
4277         flag_instrument_functions_exclude_p.
4278         * doc/invoke.texi (Option Summary): Mention new options.
4279         (Code Gen Options): Document new options.
4280
4281 2007-08-07  Ian Lance Taylor  <iant@google.com>
4282
4283         PR rtl-optimization/32776
4284         * lower-subreg.c (resolve_clobber): Call resolve_reg_notes.
4285         (resolve_use): Likewise.
4286         (decompose_multiword_subregs): Remove "changed" local variable.
4287
4288 2007-08-07  Carlos O'Donell  <carlos@codesourcery.com>
4289
4290         * configure.ac: Define HAVE_GNU_AS if $gas_flag is yes.
4291         * configure: Regenerate.
4292         * config.in: Regenerate.
4293         * gcc.c [HAVE_GNU_AS]: Add "%{v} %{w:-W} %{I*} " to asm_options
4294         spec string.
4295
4296 2007-08-07  Ian Lance Taylor  <iant@google.com>
4297
4298         * lower-subreg.c (resolve_clobber): If the clobber has a LIBCALL
4299         note, just delete the insn.
4300
4301 2007-08-07  Andreas Schwab  <schwab@suse.de>
4302
4303         PR bootstrap/32973
4304         * gengtype-lex.l: Ignore backslash/newline pair while scanning a
4305         struct definition.
4306
4307 2007-08-07  Andreas Krebbel  <krebbel1@de.ibm.com>
4308
4309         * lower-subreg.c (resolve_subreg_use): Remove assertion.
4310         (find_decomposable_shift_zext, resolve_shift_zext): New functions.
4311         (decompose_multiword_subregs): Use the functions above to decompose
4312         multiword shifts and zero-extends.
4313
4314 2007-08-07  Rask Ingemann Lambertsen  <rask@sygehus.dk>
4315
4316         * doc/sourcebuild.texi (Test Directives): Fix "compile" and
4317         "assemble" descriptions which were swapped.
4318
4319 2007-08-06  Chao-ying Fu  <fu@mips.com>
4320
4321         * fixed-value.h: New file.
4322         * fixed-value.c: New file.
4323         * Makefile.in (OBJS-common): Add fixed-value.o.
4324         (fixed-value.o): New rule.
4325         (GTFILES): Add fixed-value.h.
4326         * double-int.c (double_int_scmp): We should use unsigned HOST_WIDE_INT
4327         to compare a.low and b.low.
4328         * gengtype.c (main): Handle FIXED_VALUE_TYPE type as scalar typedef.
4329
4330 2007-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4331             Daniel Jacobowitz  <dan@codesourcery.com>
4332
4333         PR target/31868
4334         * config.gcc (x86_64-*-freebsd*): Add i386/t-crtstuff to
4335         tmake_file.
4336         (x86_64-*-netbsd*): Likewise.
4337         (x86_64-*-linux*): Likewise.
4338         (x86_64-*-kfreebsd*-gnu): Likewise.
4339         (x86_64-*-knetbsd*-gnu): Likewise.
4340         (i[34567]86-*-solaris2.1[0-9]*): Likewise.
4341
4342         * config/i386/t-linux64 (CRTSTUFF_T_CFLAGS): Removed.
4343
4344         * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Update comments.
4345         Add -fno-asynchronous-unwind-tables.
4346
4347         * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Add $(CRTSTUFF_T_CFLAGS).
4348         * config/t-libc-ok (CRTSTUFF_T_CFLAGS_S): Likewise.
4349         * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Likewise.
4350         * config/t-netbsd (CRTSTUFF_T_CFLAGS_S): Likewise.
4351         * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Likewise.
4352
4353 2007-08-06  Steve Ellcey  <sje@cup.hp.com>
4354
4355         * config/ia64/ia64.c (ia64_c_mode_for_suffix): New.
4356         (TARGET_C_MODE_FOR_SUFFIX): New.
4357
4358 2007-08-06  Steve Ellcey  <sje@cup.hp.com>
4359
4360         * config/ia64/div.md (m2subrf4_cond): Change 'g' to 'G'.
4361
4362 2007-08-06  Steve Ellcey  <sje@cup.hp.com>
4363
4364         * config/ia64/ia64.h (MODES_TIEABLE_P): Fix typo.
4365
4366 2007-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4367
4368         * config/i386/i386.md: Check TARGET_ macros and optimize_size
4369         before checking function returns in conditional expressions.
4370
4371 2007-08-06  Alfred Minarik  <a.minarik@aon.at>
4372
4373         PR pch/13676
4374         * doc/invoke.texi: Add .hp, .hxx, .hpp, .h, .HPP, .tcc as c++ header.
4375
4376 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4377
4378         PR middle-end/32988
4379         * tree.c (build2_stat): Instead of checking for INTEGER_TYPE, check
4380         for INTEGRAL_TYPE_P.
4381
4382 2008-08-05  Paolo Bonzini  <bonzini@gnu.org>
4383
4384         * configure.ac: Remove --enable-checking=df from default settings.
4385         * tree-pass.h (TODO_df_verify): New.  Shift TODO_mark_first_instance.
4386         * df-core.c (df_finish_pass) [ENABLE_CHECKING]: Schedule verification
4387         if the parameter is true.
4388         (df_analyze) [!ENABLE_DF_CHECKING]: Also do verification if the
4389         DF_VERIFY_SCHEDULED flag is true.
4390         * df.h (enum df_changeable_flags): Add DF_VERIFY_SCHEDULED.
4391         (df_finish_pass): Adjust prototype.
4392         * passes.c (execute_todo): Schedule verification if TODO_df_verify is
4393         true.
4394
4395         * see.c (pass_see): Add TODO_df_verify.
4396         * loop-init.c (pass_rtl_move_loop_invariants): Add TODO_df_verify.
4397         * global.c (rest_of_handle_global_alloc): Schedule verification
4398         after the pass.
4399         * local-alloc.c (rest_of_handle_local_alloc): Schedule verification
4400         before the pass.
4401         * function.c (pass_thread_prologue_and_epilogue): Add TODO_df_verify.
4402         * gcse.c (rest_of_handle_gcse): Adjust call to df_finish_pass.
4403         * loop-iv.c (iv_analysis_done): Schedule verification after the pass.
4404
4405         * config/sh/sh.c (sh_output_mi_thunk): Remove dead code.
4406         * config/ia64/ia64.c (ia64_reorg): Adjust call to df_finish_pass.
4407         * config/bfin/bfin.c (bfin_reorg): Adjust call to df_finish_pass.
4408
4409 2007-08-05  Vladimir Yanovsky  <yanov@il.ibm.com>
4410             Revital Eres <eres@il.ibm.com>
4411
4412         * doc/invoke.texi (-fmodulo-sched-allow-regmoves): Document new
4413         flag.
4414         * ddg.c (create_ddg_dependence): Rename to...
4415         (create_ddg_dep_from_intra_loop_link): This.  Do not check
4416         for interloop edges.  Do not create anti dependence edge when
4417         a true dependence edge exists in the opposite direction and
4418         -fmodulo-sched-allow-regmoves is set.
4419         (build_intra_loop_deps): Call create_ddg_dep_from_intra_loop_link.
4420         (add_cross_iteration_register_deps): Create anti dependence edge
4421         when -fno-modulo-sched-allow-regmoves is set.
4422         * common.opt (-fmodulo-sched-allow-regmoves): New flag.
4423
4424 2007-08-04  Richard Sandiford  <richard@codesourcery.com>
4425
4426         * config/arm/arm.md (movsi): Add braces.
4427
4428 2007-08-04  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4429
4430         PR middle-end/32780
4431         * fold-const.c (fold_binary <case MINUS_EXPR>): Fix the type of
4432         operands for the folding of "A - (A & B)" into "~B & A"; cast them
4433         to type.
4434
4435 2007-08-03  Zdenek Dvorak  <ook@ucw.cz>
4436
4437         * tree-ssa-threadupdate.c (thread_through_all_blocks): Use loops'
4438         state accessor functions.
4439         * cfgloopmanip.c (remove_path, create_preheaders,
4440         force_single_succ_latches, fix_loop_structure): Ditto.
4441         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
4442         tree_duplicate_loop_to_header_edge): Ditto.
4443         * cfgloopanal.c (mark_irreducible_loops): Ditto.
4444         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize):
4445         Ditto.
4446         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures,
4447         cleanup_tree_cfg): Ditto.
4448         * tree-cfg.c (tree_merge_blocks): Ditto.
4449         * cfgloop.c (rescan_loop_exit, record_loop_exits,
4450         release_recorded_exits, get_loop_exit_edges, verify_loop_structure,
4451         loop_preheader_edge, single_exit): Ditto.
4452         (flow_loops_find): Do not clear loops->state.
4453         * cfgloop.h (loops_state_satisfies_p, loops_state_set,
4454         loops_state_clear): New functions.
4455
4456 2007-08-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4457
4458         PR middle-end/32399
4459         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
4460         when adding to the base and convert ELT to sizetype instead of type.
4461
4462 2007-08-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4463
4464         PR middle-end/32304
4465         * ipa-reference.c (has_proper_scope_for_analysis): Return false when
4466         the decl's type has TYPE_NEEDS_CONSTRUCTING set.
4467
4468 2007-08-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4469
4470         PR middle-end/32935
4471         * fold-convert.c (fold_negate_expr <NOP_EXPR>): Convert back to the
4472          correct type the negate expression.
4473
4474 2007-08-03  Jan Hubicka  <jh@suse.cz>
4475
4476         * i386.c (setup_incoming_varargs_64): Tolerate 64bit preferred
4477         stack boundary.
4478
4479 2007-08-03  David Edelsohn  <edelsohn@gnu.org>
4480
4481         * config/rs6000/rs6000.c (struct processor_cost): Change
4482         l1_cache_lines to l1_cache_size.  Add l2_cache_size.
4483         (*_cost): Convert l1 cache information to kilobytes.  Add l2 cache
4484         information.
4485         (rios1_costs, rios2_cost): Correct cache line size.
4486         (rs6000_override_options): Set l2-cache-size parameter.
4487
4488 2007-08-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4489             Diego Novillo  <dnovillo@google.com>
4490
4491         PR 31521
4492         * tree-vrp.c (simplify_div_or_mod_using_ranges): Also simplify
4493         if the range includes 0.
4494
4495 2007-08-03  Ben Elliston  <bje@au.ibm.com>
4496
4497         * config/spu/spu.md (dftsv, dftsv_celledp): Attach the appropriate
4498         mode to unspec expressions to silence a warning from the generator
4499         programs.
4500         
4501 2007-08-02  Steve Ellcey  <sje@cup.hp.com>
4502
4503         * config/ia64/constraints.md ("U"): Make constraint vector only.
4504
4505 2007-08-02  Nathan Froyd  <froydnj@codesourcery.com>
4506
4507         PR middle-end/25446
4508         * c-objc-common.c (c_cannot_inline_tree_fn): Check for an
4509         always_inline attribute on the function decl.
4510
4511 2007-08-02  Nathan Froyd  <froydnj@codesourcery.com>
4512
4513         PR middle-end/25445
4514         * varasm.c (default_binds_local_p_1): Consult flag_whole_program
4515         if we are compiling with -fPIC.
4516
4517 2007-08-02  Sandra Loosemore  <sandra@codesourcery.com>
4518             Nigel Stephens  <nigel@mips.com>
4519
4520         * longlong.h [__mips__] (count_leading_zeros, COUNT_LEADING_ZEROS_0):
4521         Define for MIPS32 and MIPS64.
4522
4523 2007-08-02  Nick Clifton  <nickc@redhat.com>
4524
4525         * config/host-hpux.c: Change copyright header to refer to version
4526         3 of the GNU General Public License and to point readers at the
4527         COPYING3 file and the FSF's license web page.
4528         * config/alpha/predicates.md, config/alpha/vms-ld.c,
4529         config/alpha/linux.h, config/alpha/alpha.opt,
4530         config/alpha/linux-elf.h, config/alpha/vms.h, config/alpha/elf.h,
4531         config/alpha/vms-unwind.h, config/alpha/ev4.md,
4532         config/alpha/ev6.md, config/alpha/alpha.c, config/alpha/vms-cc.c,
4533         config/alpha/alpha.h, config/alpha/sync.md,
4534         config/alpha/openbsd.h, config/alpha/alpha.md,
4535         config/alpha/alpha-modes.def, config/alpha/ev5.md,
4536         config/alpha/alpha-protos.h, config/alpha/freebsd.h,
4537         config/alpha/osf5.h, config/alpha/netbsd.h, config/alpha/vms64.h,
4538         config/alpha/constraints.md, config/alpha/osf.h,
4539         config/alpha/xm-vms.h, config/alpha/unicosmk.h, config/linux.h,
4540         config/frv/predicates.md, config/frv/frv.h, config/frv/linux.h,
4541         config/frv/frv.md, config/frv/frv.opt, config/frv/frv-modes.def,
4542         config/frv/frv-asm.h, config/frv/frv-protos.h,
4543         config/frv/frv-abi.h, config/frv/frv.c, config/s390/tpf.h,
4544         config/s390/s390.c, config/s390/predicates.md, config/s390/s390.h,
4545         config/s390/linux.h, config/s390/tpf.md, config/s390/tpf.opt,
4546         config/s390/2064.md, config/s390/2084.md, config/s390/s390.md,
4547         config/s390/s390.opt, config/s390/s390-modes.def,
4548         config/s390/fixdfdi.h, config/s390/constraints.md,
4549         config/s390/s390-protos.h, config/s390/s390x.h, config/elfos.h,
4550         config/dbxcoff.h, config/m32c/predicates.md, config/m32c/cond.md,
4551         config/m32c/m32c.c, config/m32c/minmax.md, config/m32c/blkmov.md,
4552         config/m32c/m32c-pragma.c, config/m32c/m32c.h,
4553         config/m32c/prologue.md, config/m32c/m32c.abi,
4554         config/m32c/muldiv.md, config/m32c/bitops.md, config/m32c/mov.md,
4555         config/m32c/addsub.md, config/m32c/m32c.md, config/m32c/m32c.opt,
4556         config/m32c/t-m32c, config/m32c/m32c-modes.def,
4557         config/m32c/jump.md, config/m32c/shift.md,
4558         config/m32c/m32c-protos.h, config/libgloss.h,
4559         config/spu/spu-protos.h, config/spu/predicates.md,
4560         config/spu/spu-builtins.h, config/spu/spu.c,
4561         config/spu/spu-builtins.def, config/spu/spu-builtins.md,
4562         config/spu/spu.h, config/spu/spu-elf.h, config/spu/constraints.md,
4563         config/spu/spu.md, config/spu/spu-c.c, config/spu/spu.opt,
4564         config/spu/spu-modes.def, config/spu/t-spu-elf, config/interix.h,
4565         config/sparc/hypersparc.md, config/sparc/predicates.md,
4566         config/sparc/linux.h, config/sparc/sp64-elf.h,
4567         config/sparc/supersparc.md, config/sparc/cypress.md,
4568         config/sparc/openbsd1-64.h, config/sparc/openbsd64.h,
4569         config/sparc/niagara.md, config/sparc/sparc.md,
4570         config/sparc/long-double-switch.opt, config/sparc/ultra3.md,
4571         config/sparc/sparc.opt, config/sparc/sync.md,
4572         config/sparc/sp-elf.h, config/sparc/sparc-protos.h,
4573         config/sparc/ultra1_2.md, config/sparc/biarch64.h,
4574         config/sparc/sparc.c, config/sparc/little-endian.opt,
4575         config/sparc/sysv4-only.h, config/sparc/sparc.h,
4576         config/sparc/linux64.h, config/sparc/freebsd.h,
4577         config/sparc/sol2.h, config/sparc/rtemself.h,
4578         config/sparc/netbsd-elf.h, config/sparc/vxworks.h,
4579         config/sparc/sparc-modes.def, config/sparc/sparclet.md,
4580         config/sparc/sysv4.h, config/vx-common.h, config/netbsd-aout.h,
4581         config/flat.h, config/m32r/m32r.md, config/m32r/predicates.md,
4582         config/m32r/little.h, config/m32r/m32r.c, config/m32r/m32r.opt,
4583         config/m32r/linux.h, config/m32r/constraints.md,
4584         config/m32r/m32r.h, config/m32r/m32r-protos.h, config/vxworks.opt,
4585         config/darwin-c.c, config/darwin.opt, config/i386/i386.h,
4586         config/i386/cygming.h, config/i386/linux.h, config/i386/cygwin.h,
4587         config/i386/i386.md, config/i386/netware-crt0.c,
4588         config/i386/sco5.h, config/i386/mmx.md, config/i386/vx-common.h,
4589         config/i386/kaos-i386.h, config/i386/winnt-stubs.c,
4590         config/i386/netbsd64.h, config/i386/djgpp.h, config/i386/gas.h,
4591         config/i386/sol2.h, config/i386/constraints.md,
4592         config/i386/netware-libgcc.c, config/i386/sysv5.h,
4593         config/i386/predicates.md, config/i386/geode.md,
4594         config/i386/x86-64.h, config/i386/kfreebsd-gnu.h,
4595         config/i386/freebsd64.h, config/i386/vxworksae.h,
4596         config/i386/pentium.md, config/i386/lynx.h, config/i386/i386elf.h,
4597         config/i386/rtemself.h, config/i386/netbsd-elf.h,
4598         config/i386/ppro.md, config/i386/k6.md, config/i386/netware.c,
4599         config/i386/netware.h, config/i386/i386-modes.def,
4600         config/i386/sysv4-cpp.h, config/i386/i386-interix.h,
4601         config/i386/cygwin1.c, config/i386/djgpp.opt, config/i386/uwin.h,
4602         config/i386/unix.h, config/i386/ptx4-i.h, config/i386/xm-djgpp.h,
4603         config/i386/att.h, config/i386/winnt.c, config/i386/beos-elf.h,
4604         config/i386/sol2-10.h, config/i386/darwin64.h, config/i386/sse.md,
4605         config/i386/i386.opt, config/i386/bsd.h, config/i386/cygming.opt,
4606         config/i386/xm-mingw32.h, config/i386/linux64.h,
4607         config/i386/openbsdelf.h, config/i386/xm-cygwin.h,
4608         config/i386/sco5.opt, config/i386/darwin.h, config/i386/mingw32.h,
4609         config/i386/winnt-cxx.c, config/i386/i386-interix3.h,
4610         config/i386/nwld.c, config/i386/nwld.h, config/i386/host-cygwin.c,
4611         config/i386/cygwin2.c, config/i386/i386-protos.h,
4612         config/i386/sync.md, config/i386/openbsd.h,
4613         config/i386/host-mingw32.c, config/i386/i386-aout.h,
4614         config/i386/nto.h, config/i386/biarch64.h,
4615         config/i386/i386-coff.h, config/i386/freebsd.h,
4616         config/i386/driver-i386.c, config/i386/knetbsd-gnu.h,
4617         config/i386/host-i386-darwin.c, config/i386/vxworks.h,
4618         config/i386/crtdll.h, config/i386/i386.c, config/i386/sysv4.h,
4619         config/darwin-protos.h, config/linux.opt, config/sol2.c,
4620         config/sol2.h, config/sh/symbian.c, config/sh/sh-protos.h,
4621         config/sh/linux.h, config/sh/elf.h, config/sh/superh.h,
4622         config/sh/sh4.md, config/sh/coff.h, config/sh/newlib.h,
4623         config/sh/embed-elf.h, config/sh/symbian-pre.h, config/sh/rtems.h,
4624         config/sh/kaos-sh.h, config/sh/sh4a.md, config/sh/constraints.md,
4625         config/sh/sh64.h, config/sh/sh.opt, config/sh/symbian-post.h,
4626         config/sh/sh-c.c, config/sh/predicates.md, config/sh/sh.c,
4627         config/sh/sh.h, config/sh/shmedia.md, config/sh/sh-modes.def,
4628         config/sh/little.h, config/sh/sh1.md, config/sh/sh4-300.md,
4629         config/sh/superh64.h, config/sh/rtemself.h,
4630         config/sh/netbsd-elf.h, config/sh/sh.md, config/sh/vxworks.h,
4631         config/usegas.h, config/svr3.h, config/pdp11/pdp11-protos.h,
4632         config/pdp11/2bsd.h, config/pdp11/pdp11.md, config/pdp11/pdp11.c,
4633         config/pdp11/pdp11.opt, config/pdp11/pdp11-modes.def,
4634         config/pdp11/pdp11.h, config/avr/rtems.h, config/avr/avr-protos.h,
4635         config/avr/predicates.md, config/avr/constraints.md,
4636         config/avr/avr.md, config/avr/avr.c, config/avr/avr.opt,
4637         config/avr/avr.h, config/sol2-protos.h, config/dbxelf.h,
4638         config/lynx.opt, config/crx/crx.h, config/crx/crx-protos.h,
4639         config/crx/crx.md, config/crx/crx.c, config/crx/crx.opt,
4640         config/c4x/c4x-c.c, config/c4x/c4x.c, config/c4x/c4x.opt,
4641         config/c4x/c4x-modes.def, config/c4x/rtems.h,
4642         config/c4x/predicates.md, config/c4x/c4x.h,
4643         config/c4x/c4x-protos.h, config/c4x/c4x.md, config/kfreebsd-gnu.h,
4644         config/xtensa/predicates.md, config/xtensa/xtensa.c,
4645         config/xtensa/linux.h, config/xtensa/xtensa.h,
4646         config/xtensa/elf.h, config/xtensa/xtensa.md,
4647         config/xtensa/xtensa.opt, config/xtensa/constraints.md,
4648         config/xtensa/xtensa-protos.h, config/dbx.h,
4649         config/stormy16/predicates.md, config/stormy16/stormy16.md,
4650         config/stormy16/stormy16.c, config/stormy16/stormy16.opt,
4651         config/stormy16/stormy16.h, config/stormy16/stormy16-protos.h,
4652         config/host-solaris.c, config/fr30/fr30.h,
4653         config/fr30/predicates.md, config/fr30/fr30-protos.h,
4654         config/fr30/fr30.md, config/fr30/fr30.c, config/fr30/fr30.opt,
4655         config/vxworksae.h, config/sol2-c.c, config/lynx.h,
4656         config/m68hc11/m68hc11-protos.h, config/m68hc11/predicates.md,
4657         config/m68hc11/m68hc11.md, config/m68hc11/m68hc11.c,
4658         config/m68hc11/m68hc11.opt, config/m68hc11/m68hc11.h,
4659         config/m68hc11/m68hc12.h, config/openbsd-oldgas.h,
4660         config/host-linux.c, config/interix3.h, config/cris/cris.c,
4661         config/cris/predicates.md, config/cris/linux.h,
4662         config/cris/cris.h, config/cris/aout.h, config/cris/cris.md,
4663         config/cris/linux.opt, config/cris/cris.opt, config/cris/elf.opt,
4664         config/cris/aout.opt, config/cris/cris-protos.h,
4665         config/vxworks-dummy.h, config/netbsd.h, config/netbsd-elf.h,
4666         config/iq2000/iq2000.h, config/iq2000/predicates.md,
4667         config/iq2000/iq2000-protos.h, config/iq2000/iq2000.md,
4668         config/iq2000/iq2000.c, config/iq2000/iq2000.opt,
4669         config/host-darwin.c, config/mt/mt.md, config/mt/mt.c,
4670         config/mt/mt.opt, config/mt/t-mt, config/mt/mt.h,
4671         config/mt/mt-protos.h, config/svr4.h, config/host-darwin.h,
4672         config/chorus.h, config/mn10300/mn10300.c,
4673         config/mn10300/mn10300.opt, config/mn10300/predicates.md,
4674         config/mn10300/mn10300.h, config/mn10300/linux.h,
4675         config/mn10300/constraints.md, config/mn10300/mn10300-protos.h,
4676         config/mn10300/mn10300.md, config/ia64/predicates.md,
4677         config/ia64/itanium1.md, config/ia64/unwind-ia64.h,
4678         config/ia64/ia64-c.c, config/ia64/sync.md, config/ia64/ia64.c,
4679         config/ia64/itanium2.md, config/ia64/ia64.h, config/ia64/vect.md,
4680         config/ia64/freebsd.h, config/ia64/ia64.md,
4681         config/ia64/ia64-modes.def, config/ia64/constraints.md,
4682         config/ia64/hpux.h, config/ia64/ia64-protos.h, config/windiss.h,
4683         config/gofast.h, config/rtems.h, config/sol2-10.h,
4684         config/m68k/predicates.md, config/m68k/m68k.md,
4685         config/m68k/linux.h, config/m68k/m68k-modes.def,
4686         config/m68k/print-sysroot-suffix.sh, config/m68k/m68k-protos.h,
4687         config/m68k/coff.h, config/m68k/m68k-none.h, config/m68k/ieee.opt,
4688         config/m68k/openbsd.h, config/m68k/m68k-aout.h,
4689         config/m68k/m68k.opt, config/m68k/m68020-elf.h,
4690         config/m68k/m68kelf.h, config/m68k/m68k-devices.def,
4691         config/m68k/uclinux-oldabi.h, config/m68k/m68k.c,
4692         config/m68k/constraints.md, config/m68k/rtemself.h,
4693         config/m68k/netbsd-elf.h, config/m68k/m68k.h,
4694         config/m68k/uclinux.h, config/rs6000/power4.md,
4695         config/rs6000/host-darwin.c, config/rs6000/6xx.md,
4696         config/rs6000/linux.h, config/rs6000/eabi.h,
4697         config/rs6000/aix41.opt, config/rs6000/xcoff.h,
4698         config/rs6000/secureplt.h, config/rs6000/linuxspe.h,
4699         config/rs6000/eabialtivec.h, config/rs6000/8540.md,
4700         config/rs6000/darwin8.h, config/rs6000/kaos-ppc.h,
4701         config/rs6000/windiss.h, config/rs6000/603.md,
4702         config/rs6000/aix41.h, config/rs6000/cell.md,
4703         config/rs6000/mpc.md, config/rs6000/aix43.h, config/rs6000/beos.h,
4704         config/rs6000/gnu.h, config/rs6000/rtems.h, config/rs6000/aix.opt,
4705         config/rs6000/darwin.md, config/rs6000/darwin64.h,
4706         config/rs6000/default64.h, config/rs6000/7xx.md,
4707         config/rs6000/darwin.opt, config/rs6000/spe.md,
4708         config/rs6000/rs6000.opt, config/rs6000/rs6000-c.c,
4709         config/rs6000/rios2.md, config/rs6000/linuxaltivec.h,
4710         config/rs6000/7450.md, config/rs6000/linux64.h,
4711         config/rs6000/constraints.md, config/rs6000/440.md,
4712         config/rs6000/darwin.h, config/rs6000/host-ppc64-darwin.c,
4713         config/rs6000/rs6000.c, config/rs6000/aix52.h,
4714         config/rs6000/rs6000.h, config/rs6000/power6.md,
4715         config/rs6000/predicates.md, config/rs6000/altivec.md,
4716         config/rs6000/aix64.opt, config/rs6000/rios1.md,
4717         config/rs6000/rs6000-modes.def, config/rs6000/rs64.md,
4718         config/rs6000/eabisim.h, config/rs6000/sysv4le.h,
4719         config/rs6000/darwin7.h, config/rs6000/dfp.md,
4720         config/rs6000/linux64.opt, config/rs6000/sync.md,
4721         config/rs6000/vxworksae.h, config/rs6000/power5.md,
4722         config/rs6000/lynx.h, config/rs6000/biarch64.h,
4723         config/rs6000/rs6000.md, config/rs6000/sysv4.opt,
4724         config/rs6000/eabispe.h, config/rs6000/e500.h,
4725         config/rs6000/freebsd.h, config/rs6000/rs6000-protos.h,
4726         config/rs6000/netbsd.h, config/rs6000/e500-double.h,
4727         config/rs6000/aix.h, config/rs6000/vxworks.h,
4728         config/rs6000/40x.md, config/rs6000/aix51.h,
4729         config/rs6000/sysv4.h, config/arc/arc-protos.h, config/arc/arc.md,
4730         config/arc/arc.c, config/arc/arc.opt, config/arc/arc-modes.def,
4731         config/arc/arc.h, config/mcore/mcore-elf.h,
4732         config/mcore/mcore-protos.h, config/mcore/predicates.md,
4733         config/mcore/mcore.md, config/mcore/mcore.c,
4734         config/mcore/mcore.opt, config/mcore/mcore.h,
4735         config/mcore/mcore-pe.h, config/darwin.c, config/freebsd-nthr.h,
4736         config/score/predicates.md, config/score/score-version.h,
4737         config/score/score-protos.h, config/score/misc.md,
4738         config/score/elf.h, config/score/score.c, config/score/mac.md,
4739         config/score/score7.md, config/score/score.h,
4740         config/score/score-conv.h, config/score/score-mdaux.c,
4741         config/score/score.md, config/score/score.opt,
4742         config/score/score-modes.def, config/score/score-mdaux.h,
4743         config/score/mul-div.S, config/arm/uclinux-elf.h,
4744         config/arm/semi.h, config/arm/ecos-elf.h, config/arm/arm1020e.md,
4745         config/arm/symbian.h, config/arm/linux-elf.h,
4746         config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
4747         config/arm/elf.h, config/arm/aout.h, config/arm/arm.c,
4748         config/arm/thumb2.md, config/arm/vec-common.md, config/arm/coff.h,
4749         config/arm/strongarm-pe.h, config/arm/arm.h,
4750         config/arm/cortex-a8-neon.md, config/arm/semiaof.h,
4751         config/arm/cortex-a8.md, config/arm/uclinux-eabi.h,
4752         config/arm/arm-modes.def, config/arm/linux-eabi.h,
4753         config/arm/rtems-elf.h, config/arm/neon-schedgen.ml,
4754         config/arm/arm-cores.def, config/arm/arm-protos.h,
4755         config/arm/vfp.md, config/arm/aof.h, config/arm/linux-gas.h,
4756         config/arm/wince-pe.h, config/arm/neon.md,
4757         config/arm/constraints.md, config/arm/neon.ml,
4758         config/arm/xscale-elf.h, config/arm/strongarm-coff.h,
4759         config/arm/arm.opt, config/arm/arm926ejs.md,
4760         config/arm/predicates.md, config/arm/iwmmxt.md,
4761         config/arm/arm_neon.h, config/arm/unknown-elf.h,
4762         config/arm/kaos-arm.h, config/arm/bpabi.h, config/arm/pe.opt,
4763         config/arm/neon-testgen.ml, config/arm/arm.md,
4764         config/arm/xscale-coff.h, config/arm/pe.c,
4765         config/arm/arm-generic.md, config/arm/pe.h,
4766         config/arm/kaos-strongarm.h, config/arm/freebsd.h,
4767         config/arm/neon-docgen.ml, config/arm/netbsd.h, config/arm/fpa.md,
4768         config/arm/strongarm-elf.h, config/arm/cirrus.md,
4769         config/arm/netbsd-elf.h, config/arm/vxworks.h,
4770         config/arm/neon-gen.ml, config/kaos.h, config/darwin-driver.c,
4771         config/pa/predicates.md, config/pa/pa64-hpux.h,
4772         config/pa/pa-hpux.opt, config/pa/som.h, config/pa/pa-hpux1010.opt,
4773         config/pa/pa-hpux1111.opt, config/pa/pa-pro-end.h,
4774         config/pa/elf.h, config/pa/fptr.c, config/pa/pa64-linux.h,
4775         config/pa/pa.md, config/pa/pa.opt, config/pa/pa-hpux.h,
4776         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
4777         config/pa/pa-hpux1010.h, config/pa/pa-protos.h,
4778         config/pa/pa-osf.h, config/pa/pa-hpux1111.h, config/pa/pa-64.h,
4779         config/pa/milli64.S, config/pa/pa.c, config/pa/pa-linux.h,
4780         config/pa/pa.h, config/pa/pa32-linux.h, config/pa/pa64-hpux.opt,
4781         config/pa/pa64-regs.h, config/pa/pa-modes.def,
4782         config/pa/constraints.md, config/darwin9.h, config/mips/4100.md,
4783         config/mips/linux.h, config/mips/elfoabi.h, config/mips/elf.h,
4784         config/mips/sdb.h, config/mips/windiss.h, config/mips/rtems.h,
4785         config/mips/3000.md, config/mips/iris5.h, config/mips/5000.md,
4786         config/mips/7000.md, config/mips/9000.md, config/mips/4600.md,
4787         config/mips/linux64.h, config/mips/elforion.h,
4788         config/mips/constraints.md, config/mips/generic.md,
4789         config/mips/predicates.md, config/mips/4300.md,
4790         config/mips/mips-ps-3d.md, config/mips/iris.h, config/mips/24k.md,
4791         config/mips/mips.md, config/mips/mips.opt, config/mips/4k.md,
4792         config/mips/5k.md, config/mips/vr4120-div.S,
4793         config/mips/openbsd.h, config/mips/iris6.h, config/mips/4000.md,
4794         config/mips/mips-protos.h, config/mips/6000.md,
4795         config/mips/mips.c, config/mips/mips.h, config/mips/r3900.h,
4796         config/mips/74k.md, config/mips/netbsd.h, config/mips/vxworks.h,
4797         config/mips/mips-modes.def, config/mips/vr.h,
4798         config/soft-fp/t-softfp, config/openbsd.h, config/ptx4.h,
4799         config/freebsd-spec.h, config/vax/vax.c, config/vax/openbsd.h,
4800         config/vax/vax.h, config/vax/elf.h, config/vax/vax.md,
4801         config/vax/bsd.h, config/vax/vax.opt, config/vax/vax-modes.def,
4802         config/vax/openbsd1.h, config/vax/netbsd.h,
4803         config/vax/vax-protos.h, config/vax/netbsd-elf.h,
4804         config/vax/vaxv.h, config/vax/ultrix.h, config/freebsd.h,
4805         config/h8300/rtems.h, config/h8300/predicates.md,
4806         config/h8300/h8300.c, config/h8300/h8300.h, config/h8300/elf.h,
4807         config/h8300/h8300.md, config/h8300/h8300.opt,
4808         config/h8300/coff.h, config/h8300/h8300-protos.h,
4809         config/v850/v850.md, config/v850/predicates.md,
4810         config/v850/v850-c.c, config/v850/v850.c, config/v850/v850.opt,
4811         config/v850/v850.h, config/v850/v850-protos.h, config/vxworks.c,
4812         config/knetbsd-gnu.h, config/sol2-6.h, config/vxworks.h,
4813         config/mmix/mmix.h, config/mmix/predicates.md,
4814         config/mmix/mmix-protos.h, config/mmix/mmix.md,
4815         config/mmix/mmix.c, config/mmix/mmix.opt,
4816         config/mmix/mmix-modes.def, config/bfin/bfin.opt,
4817         config/bfin/rtems.h, config/bfin/bfin-modes.def,
4818         config/bfin/predicates.md, config/bfin/bfin-protos.h,
4819         config/bfin/bfin.c, config/bfin/bfin.h, config/bfin/bfin.md:
4820         Likewise.
4821
4822 2007-08-02  Richard Sandiford  <richard@codesourcery.com>
4823
4824         * emit-rtl.c (reset_used_decls): Rename to...
4825         (set_used_decls): ...this.  Set the used flag rather than clearing it.
4826         (unshare_all_rtl_again): Update accordingly.  Set flags on argument
4827         DECL_RTLs rather than resetting them.
4828
4829 2007-08-02  Andreas Krebbel  <krebbel1@de.ibm.com>
4830
4831         * config/s390/s390.md ("*xordi3_cconly"): Change xr to xg.
4832
4833 2007-08-01  Sandra Loosemore  <sandra@codesourcery.com>
4834
4835         * reload.c (find_reloads_address_part): Pass correct MEMREFLOC
4836         argument to find_reloads_address.
4837
4838 2007-08-01  Daniel Jacobowitz  <dan@codesourcery.com>
4839
4840         PR tree-optimization/32919
4841         * tree-ssa-sccvn.c (visit_phi): Do not visit abnormal PHIs.
4842         * tree-ssa-coalesce.c (ssa_conflicts_dump): New.
4843         (coalesce_ssa_name): Call it.
4844
4845 2007-08-01  Sandra Loosemore  <sandra@codesourcery.com>
4846             David Ung  <davidu@mips.com>
4847
4848         * config/mips/mips16.S (__mips16_unordsf2, __mips16_floatunsisf): New.
4849         (__mips16_unorddf2, __mips16_floatunsidf): New.
4850         * config/mips/mips.c (mips_init_libfuncs): Add optab entries for
4851         above functions.
4852         * config/mips/t-libgcc-mips16 (LIB1ASMFUNCS): Add new functions.
4853
4854 2007-08-01  Zdenek Dvorak  <ook@ucw.cz>
4855
4856         * tree-pretty-print.c (dump_generic_node): Dump OMP_SECTIONS_SWITCH.
4857         Display new operands of OMP_SECTIONS and OMP_CONTINUE.
4858         * tree.h (OMP_SECTIONS_CONTROL): New macro.
4859         (OMP_DIRECTIVE_P): Add OMP_SECTIONS_SWITCH.
4860         * omp-low.c (get_ws_args_for, determine_parallel_type,
4861         expand_omp_for_generic, expand_omp_for_static_nochunk,
4862         expand_omp_for_static_chunk, expand_omp_for, expand_omp_sections):
4863         Work with more precise CFG.
4864         (build_omp_regions_1): Handle OMP_SECTIONS_SWITCH.
4865         (lower_omp_sections): Emit OMP_SECTIONS_SWITCH.  Add arguments to
4866         OMP_CONTINUE.
4867         * tree-gimple.c (is_gimple_stmt): Handle OMP_SECTIONS_SWITCH.
4868         * gimple-low.c (lower_stmt): Ditto.
4869         * tree-inline.c (estimate_num_insns_1): Ditto.
4870         * tree.def (OMP_SECTIONS, OMP_CONTINUE): Added new operands.
4871         (OMP_SECTIONS_SWITCH): New.
4872         * tree-cfgcleanup.c (cleanup_omp_return): New.
4873         (cleanup_tree_cfg_bb): Call cleanup_omp_return.
4874         * tree-cfg.c (make_edges): Create back edges for OMP_CONTINUE
4875         and exit edge for OMP_FOR.  Handle OMP_SECTIONS_SWITCH.
4876         (tree_redirect_edge_and_branch): Handle omp constructs.
4877
4878         * fortran/trans-openmp.c (gfc_trans_omp_sections): Build OMP_SECTIONS
4879         with three arguments.
4880
4881 2007-08-01  Zdenek Dvorak  <ook@ucw.cz>
4882
4883         * tree-cfg.c (tree_merge_blocks): Preserve loop exit phi nodes only
4884         in loop closed ssa.
4885
4886 2007-08-01  Zdenek Dvorak  <ook@ucw.cz>
4887
4888         * tree-ssa-threadupdate.c (thread_through_all_blocks): Record that
4889         the loop structures may need fixing.
4890         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
4891         New functions.
4892         (cleanup_tree_cfg_loop): Removed.
4893         (cleanup_tree_cfg): If loops need fixing, call repair_loop_structures.
4894         * tree-predcom.c (tree_predictive_commoning): Return TODO_cleanup_cfg
4895         instead of running cleanup_tree_cfg_loop.
4896         * cfgloop.h (LOOPS_NEED_FIXUP): New constant.
4897         * tree-flow.h (cleanup_tree_cfg_loop): Declaration removed.
4898         (tree_predictive_commoning): Declaration changed.
4899         * passes.c (execute_function_todo): Do not use cleanup_tree_cfg_loop.
4900
4901 2007-08-01  Zdenek Dvorak  <ook@ucw.cz>
4902
4903         * doc/invoke.texi (l1-cache-size): Update documentation.
4904         (l2-cache-size): Document.
4905         * params.h (L2_CACHE_SIZE): New macro.
4906         * tree-ssa-loop-prefetch.c (L1_CACHE_SIZE_BYTES): Reflect
4907         that L1_CACHE_SIZE is in kB now.
4908         (L2_CACHE_SIZE_BYTES): New macro.
4909         (tree_ssa_prefetch_arrays): Show size in kB.
4910         * config/i386/i386.h (struct processor_costs): Add l1_cache_size
4911         and l2_cache_size fields.
4912         * config/i386/driver-i386.c (describe_cache): Detect cache size
4913         in kB.
4914         * config/i386/i386.c (size_cost, i386_cost, i486_cost,pentium_cost,
4915         pentiumpro_cost, geode_cost, k6_cost, athlon_cost, k8_cost,
4916         amdfam10_cost, pentium4_cost, nocona_cost, core2_cost,
4917         generic64_cost, generic32_cost): Add l1_cache_size and l2_cache_size.
4918         (override_options): Set l1-cache-size and l2-cache-size to default
4919         values if not specified otherwise.
4920         * params.def (PARAM_L1_CACHE_SIZE): Change to set in kB.
4921         (PARAM_L2_CACHE_SIZE): New.
4922
4923 2007-08-01  Nigel Stephens  <nigel@mips.com>
4924             David Ung  <davidu@mips.com>
4925             Thiemo Seufer  <ths@mips.com>
4926             Chris Dearman  <chris@mips.com>
4927             Richard Sandiford  <richard@codesourcery.com>
4928
4929         * config.gcc (mips*-sde-elf*): New stanza.
4930         (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
4931         (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
4932         (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*, mips-*-elf*)
4933         (mipsel-*-elf*, mips64-*-elf*, mips64el-*-elf*, mips64orion-*-elf*)
4934         (mips64orionel-*-elf*, mips*-*-rtems*, mips-wrs-windiss)
4935         (mipstx39-*-elf*, mipstx39el-*-elf*): Add mips/t-libgcc-mips16
4936         to tmake_file.
4937         * config/mips/sde.h: New file.
4938         * config/mips/t-libgcc-mips16: Likewise.
4939         * config/mips/t-sde: Likewise.
4940         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Remove settings
4941         of _ABIN32, _ABI64, _ABIO32, _MIPS_SIM, _MIPS_SZLONG, _MIPS_SZPTR,
4942         _MIPS_FPSET and _MIPS_SZINT.
4943         * config/mips/iris.h (TARGET_OS_CPP_BUILTINS): Likewise.
4944         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Remove separate
4945         insertion of a default -mips option.  Use MIPS_32BIT_OPTION_SPEC.
4946         * config/mips/t-isa3264 (LIB1ASMSRC, LIB1ASMFUNCS): Delete.
4947         * config/mips/t-r3900 (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
4948         * config/mips/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
4949         * config/mips/mips.h (TARGET_CPU_CPP_BUITINS): Define _ABIO32,
4950         _ABIN32, _ABI64, _ABIO64, _MIPS_SIM, _MIPS_SZINT, _MIPS_SZLONG,
4951         _MIPS_SZPTR and _MIPS_FPSET.
4952         (MIPS_ISA_LEVEL_SPEC): Inject the default -mips option if no
4953         architecture is specified.
4954         (MIPS_32BIT_OPTION_SPEC): New macro.
4955
4956 2007-07-31  Dan Hipschman  <dsh@google.com>
4957
4958         * gcc.c (end_going_arg): New function.
4959         (do_spec_2): Use it.
4960         (do_spec_1): Use it.
4961
4962 2007-07-31  H.J. Lu  <hongjiu.lu@intel.com>
4963
4964         * ddg.c (add_cross_iteration_register_deps): Declare bb_info
4965         only if ENABLE_CHECKING is defined.
4966
4967 2007-07-31  Kenneth Zadeck <zadeck@naturalbridge.com>
4968
4969         * df.h (DF_RU, DF_RU_BB_INFO, df_ru_bb_info, df_ru,
4970         df_ru_add_problem, df_ru_get_bb_info): Removed.
4971         (DF_RD, DF_UREC, DF_CHAIN, DF_NOTE): Renumbered.
4972         * df-problems.c (df_ru_problem_data, df_ru_set_bb_info,
4973         df_ru_free_bb_info, df_ru_alloc,
4974         df_ru_bb_local_compute_process_def,
4975         df_ru_bb_local_compute_process_use, df_ru_bb_local_compute,
4976         df_ru_local_compute, df_ru_init_solution, df_ru_confluence_n,
4977         df_ru_transfer_function, df_ru_free, df_ru_start_dump,
4978         df_ru_top_dump, df_ru_bottom_dump, df_problem problem_RU,
4979         df_ru_add_problem): Removed.
4980
4981 2007-07-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4982
4983         PR target/32847
4984         * pa.md (casesi32): Use match_scratch.  Revise insn condition.
4985         (casesi32p, casesi64p): Likewise.
4986         (casesi): Adjust for above.
4987
4988 2007-07-31  Richard Sandiford  <richard@codesourcery.com>
4989
4990         * mode-switching.c (create_pre_exit): Don't search past calls.
4991
4992 2007-07-31  Sandra Loosemore  <sandra@codesourcery.com>
4993
4994         * config/mips/mips.h (ISA_HAS_SYNCI): Add !TARGET_MIPS16 test.
4995
4996 2007-07-31  Revital Eres  <eres@il.ibm.com>
4997
4998         * ddg.c (add_deps_for_def): Rename to...
4999         (add_cross_iteration_register_deps): This.  Change implementation
5000         to use only reaching def and def-use chains to construct the
5001         inter loop dependencies.
5002         (add_deps_for_use): Remove function.
5003         (build_inter_loop_deps): Call add_cross_iteration_register_deps
5004         function to build the inter loop dependencies.
5005         * modulo-sched.c (sms_schedule): Build only
5006         reaching def and def-use chains for the propose of the ddg
5007         construction.
5008
5009 2007-07-31  Julian Brown  <julian@codesourcery.com>
5010
5011         * config/arm/neon.md (vec_set<mode>_internal, vec_setv2di_internal):
5012         New define_insns. Use correct RTL.
5013         (vec_set<mode>): Write as expander.
5014
5015 2007-07-31  Razya Ladelsky  <razya@il.ibm.com>
5016
5017         * matrix-reorg.c (analyze_matrix_allocation_site): Avoid referring 
5018         to an unallocated space.
5019
5020 2007-07-30  Jan Sjodin  <jan.sjodin@amd.com>
5021
5022         * tree-data-ref.c
5023         (split_constant_offset): Enable split_constant_offset to extract
5024         constants from other statements.
5025         * tree-vect-transform.c
5026         (vect_create_addr_base_for_vector_ref): Generate data_ref_base
5027         to a temp var. Force base_offset to be simple.
5028
5029 2007-07-30  Seongbae Park <seongbae.park@gmail.com>
5030
5031         * df-scan.c (df_scan_verify): Remove artificial limit on
5032         the number of blocks for verification.
5033         * df-problems.c (df_lr_bb_local_compute, df_simulate_find_defs,
5034         df_simulate_defs): Avoid unnecessary insn checking for defs.
5035
5036 2007-07-29  Mark Mitchell  <mark@codesourcery.com>
5037
5038         * config/m68k/lb1sf68.asm (FUNC): New macro.
5039         (__mulsi3): Use it.
5040         (__udivsi3): Likewise.
5041         (__divsi3): Likewise.
5042         (__umodsi3): Likewise.
5043         (__modsi3): Likewise.
5044         (__subdf3): Likewise.
5045         (__adddf3): Likewise.
5046         (__muldf3): Likewise.
5047         (__divdf3): Likewise.
5048         (__negdf2): Likewise.
5049         (__cmpdf2): Likewise.
5050         (__subsf3): Likewise.
5051         (__addsf3): Likewise.
5052         (__mulsf3): Likewise.
5053         (__divsf3): Likewise.
5054         (__negsf2): Likewise.
5055         (__cmpsf2): Likewise.
5056         (__eqdf2): Likewise.
5057         (__nedf2): Likewise.
5058         (__gtdf2): Likewise.
5059         (__gedf2): Likewise.
5060         (__ltdf2): Likewise.
5061         (__ledf2): Likewise.
5062         (__eqsf2): Likewise.
5063         (__nesf2): Likewise.
5064         (__gtsf2): Likewise.
5065         (__gesf2): Likewise.
5066         (__ltsf2): Likewise.
5067         (__lesf2): Likewise.
5068
5069 2007-07-30  Ollie Wild  <aaw@google.com>
5070
5071         * c-ppoutput.c (print_lines_directives_only): New function.
5072         (scan_translation_unit_directives_only): New function.
5073         (preprocess_file): Add call to scan_translation_unit_directives_only.
5074         * c-opts.c (c_common_handle_option): Add OPT_fdirectives_only.
5075         (sanitize_cpp_opts): Add default flag_dump_macros setting for
5076         -fdirectives-only.  Add errors for -fdirectives-only conflict with
5077         -Wunused-macros and -traditional.
5078         (finish_options): Add builtin macro initialization for
5079         -fdirectives-only + -fpreprocessed.
5080         * c.opt (fdirectives-only): New.
5081         * doc/cppopts.texi (fdirectives-only): New.
5082
5083 2007-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5084
5085         * alias.c (record_set, memory_modified_1): Constify.
5086         * bt-load.c (note_btr_set): Likewise.
5087         * caller-save.c (mark_set_regs, add_stored_regs): Likewise.
5088         * combine.c (set_nonzero_bits_and_sign_copies,
5089         expand_field_assignment, record_dead_and_set_regs_1,
5090         use_crosses_set_p, reg_dead_at_p_1, can_combine_p,
5091         likely_spilled_retval_1): Likewise.
5092         * config/frv/frv.c (frv_registers_update_1, frv_io_check_address,
5093         frv_io_handle_set): Likewise.
5094         * config/mips/mips.c (mips_sim_record_set,
5095         vr4130_true_reg_dependence_p_1): Likewise.
5096         * config/mt/mt.c (insn_dependent_p_1): Likewise.
5097         * config/s390/s390.c (s390_reg_clobbered_rtx): Likewise.
5098         * config/sh/sh.c (flow_dependent_p_1): Likewise.
5099         * cselib.c (cselib_invalidate_rtx_note_stores): Likewise.
5100         * dce.c (mark_nonreg_stores_1, mark_nonreg_stores_2): Likewise.
5101         * ddg.c (mark_mem_store): Likewise.
5102         * df-problems.c (df_urec_mark_reg_change): Likewise.
5103         * function.c (update_epilogue_consts): Likewise.
5104         * gcse.c (record_set_info, record_last_set_info,
5105         mems_conflict_for_gcse_p, canon_list_insert, reg_set_info,
5106         reg_clear_last_set): Likewise.
5107         * global.c (mark_reg_store, mark_reg_clobber, reg_becomes_live):
5108         Likewise.
5109         * jump.c (reversed_comparison_code_parts): Likewise.
5110         * local-alloc.c (validate_equiv_mem_from_store, no_equiv,
5111         reg_is_set): Likewise.
5112         * loop-iv.c (mark_altered): Likewise.
5113         * mode-switching.c (reg_becomes_live): Likewise.
5114         * optabs.c (no_conflict_move_test): Likewise.
5115         * postreload-gcse.c (record_last_set_info, find_mem_conflicts):
5116         Likewise.
5117         * postreload.c (reload_combine_note_store, move2add_note_store):
5118         Likewise.
5119         * regmove.c (flags_set_1): Likewise.
5120         * regrename.c (note_sets, kill_clobbered_value, kill_set_value):
5121         Likewise.
5122         * reload1.c (mark_not_eliminable, forget_old_reloads_1):
5123         Likewise. 
5124         * resource.c (update_live_status): Likewise.
5125         * rtl.h (set_of, note_stores): Likewise.
5126         * rtlanal.c (set_of_1, parms_set, struct set_of_data, set_of,
5127         note_stores, parms_set): Likewise.
5128         * sched-rgn.c (sets_likely_spilled_1): Likewise.
5129         * stack-ptr-mod.c (notice_stack_pointer_modification_1):
5130         Likewise. 
5131         * var-tracking.c (count_stores, add_stores): Likewise.
5132
5133 2007-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5134
5135         * alias.c (mems_in_disjoint_alias_sets_p,
5136         fixed_scalar_and_varying_struct_p, aliases_everything_p,
5137         nonoverlapping_component_refs_p, nonoverlapping_memrefs_p,
5138         write_dependence_p, mems_in_disjoint_alias_sets_p,
5139         read_dependence, true_dependence, canon_true_dependence,
5140         anti_dependence, output_dependence): Constify.
5141         * combine.c (extended_count): Likewise.
5142         * cse.c (cse_rtx_varies_p, hash_rtx, exp_equiv_p): Likewise.
5143         * cselib.c (get_value_hash, references_value_p,
5144         cselib_reg_set_mode, cselib_rtx_varies_p): Likewise.
5145         * cselib.h (cselib_reg_set_mode, references_value_p): Likewise.
5146         * emit-rtl.c (mem_expr_equal_p, active_insn_p): Likewise.
5147         * function.c (contains, prologue_epilogue_contains,
5148         sibcall_epilogue_contains): Likewise. 
5149         * jump.c (simplejump_p, condjump_p, condjump_in_parallel_p,
5150         pc_set, any_uncondjump_p, any_condjump_p, onlyjump_p,
5151         only_sets_cc0_p, sets_cc0_p, rtx_renumbered_equal_p, true_regnum,
5152         reg_or_subregno): Likewise.
5153         * recog.c (asm_noperands): Likewise.
5154         * reload1.c (function_invariant_p): Likewise.
5155         * rtl.h (mem_expr_equal_p, active_insn_p, rtx_varies_p,
5156         rtx_addr_varies_p, asm_noperands, exp_equiv_p, hash_rtx,
5157         condjump_p, any_condjump_p, any_uncondjump_p, pc_set,
5158         simplejump_p, onlyjump_p, only_sets_cc0_p, sets_cc0_p,
5159         true_regnum, reg_or_subregno, condjump_in_parallel_p,
5160         extended_count, prologue_epilogue_contains,
5161         sibcall_epilogue_contains, function_invariant_p, true_dependence,
5162         canon_true_dependence, read_dependence, anti_dependence,
5163         output_dependence): Likewise.
5164         * rtlanal.c (rtx_varies_p, rtx_addr_varies_p): Likewise.
5165
5166 2007-07-30  Julian Brown  <julian@codesourcery.com>
5167
5168         * config/arm/neon.md (V_ext): New mode attribute.
5169         (neon_vget_lane<mode>): Replace with define_expand.
5170         (neon_vget_lane<mode>_sext_internal)
5171         (neon_vget_lane<mode>_zext_internal): New define_insns for double
5172         and quad precision vectors.
5173         (neon_vget_lanedi): Add bounds check. Remove dead comment.
5174         * config/arm/neon.ml (get_lane): Make 32-bit get-lane intrinsics
5175         have typeless 32-bit result.
5176
5177 2007-07-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5178
5179         PR tree-opt/32527
5180         * tree-affine.h (aff_tree): The type of rest is sizetype for types
5181         of pointers.
5182         * tree-affine.c (aff_combination_scale): If type is a pointer type,
5183         use sizetype for rest.
5184         (aff_combination_add_elt): Likewise. Don't specialize pointer types.
5185         (aff_combination_convert): Don't convert rest for pointer types.
5186
5187 2007-07-28  Daniel Berlin  <dberlin@dberlin.org>
5188
5189         * Makefile.in (tree-ssa-alias.o): Add alloc-pool.h
5190
5191         * tree-ssa-alias.c: Add alloc-pool.h.
5192         (init_alias_info): Free alias_bitmap_obstack.
5193         (delete_alias_info): Call delete_mem_ref_stats.
5194         (get_mem_sym_stats_for): Use alloc_pool.
5195         (init_mem_ref_stats): Do not delete mem_ref_stats here.
5196         (delete_mem_sym_stats): Removed.
5197         
5198 2007-07-29  Sebastian Pop  <sebpop@gmail.com>
5199
5200         * tree-data-ref.c (add_multivariate_self_dist): Parametric access
5201         functions cannot be represented as classical distance vectors.
5202
5203 2007-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5204
5205         * attribs.c (hash_attr, eq_attr, init_attributes): Constify.
5206         * builtins.c (validate_arg, builtin_mathfn_code,
5207         validate_arglist): Likewise.
5208         * calls.c (call_expr_flags): Likewise.
5209         * combine.c (reg_nonzero_bits_for_combine,
5210         reg_num_sign_bit_copies_for_combine, get_last_value,
5211         reg_truncated_to_mode): Likewise.
5212         * emit-rtl.c (subreg_lowpart_p): Likewise.
5213         * expr.c (highest_pow2_factor_for_target,
5214         categorize_ctor_elements_1, categorize_ctor_elements,
5215         count_type_elements, contains_packed_reference,
5216         highest_pow2_factor, highest_pow2_factor_for_target): Likewise.
5217         * fold-const.c (may_negate_without_overflow_p, int_const_binop,
5218         fold_convertible_p, operand_equal_p, tree_swap_operands_p,
5219         native_encode_int, native_encode_real, native_encode_complex,
5220         native_encode_vector, native_encode_expr, native_interpret_int,
5221         native_interpret_real, native_interpret_complex,
5222         native_interpret_vector, native_interpret_expr): Likewise.
5223         * function.c (use_register_for_decl): Likewise.
5224         * gimplify.c (get_name): Likewise.
5225         * langhooks-def.h (lhd_return_null_const_tree): New.
5226         (LANG_HOOKS_GET_CALLEE_FNDECL): Use it.
5227         * langhooks.c (lhd_return_null_const_tree): New.
5228         * langhooks.h (lang_get_callee_fndecl): Constify.
5229         * output.h (constructor_static_from_elts_p): Likewise.
5230         * rtl-factoring.c (gen_symbol_ref_rtx_for_label): Likewise.
5231         * rtl.h (nonzero_bits, num_sign_bit_copies, truncated_to_mode,
5232         subreg_lowpart_p, noop_move_p, struct rtl_hooks): Likewise.
5233         * rtlanal.c (cached_nonzero_bits, nonzero_bits1,
5234         cached_num_sign_bit_copies, num_sign_bit_copies1, noop_move_p,
5235         nonzero_bits, num_sign_bit_copies, truncated_to_mode): Likewise.
5236         * rtlhooks-def.h (reg_nonzero_bits_general,
5237         reg_num_sign_bit_copies_general, reg_truncated_to_mode_general):
5238         Likewise. 
5239         * rtlhooks.c (reg_num_sign_bit_copies_general,
5240         reg_nonzero_bits_general, reg_truncated_to_mode_general):
5241         Likewise. 
5242         * stmt.c (warn_if_unused_value, is_body_block): Likewise.
5243         * stor-layout.c (mode_for_size_tree): Likewise.
5244         * tree-ssa-loop-im.c (memref_eq): Likewise.
5245         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): Likewise.
5246         * tree.c (contains_placeholder_p, type_list_equal,
5247         simple_cst_equal, get_callee_fndecl, operand_equal_for_phi_arg_p):
5248         Likewise. 
5249         * tree.h (tree_int_cst_sign_bit, may_negate_without_overflow_p,
5250         mode_for_size_tree, categorize_ctor_elements, count_type_elements,
5251         contains_placeholder_p, contains_packed_reference,
5252         get_callee_fndecl, operand_equal_for_phi_arg_p,
5253         warn_if_unused_value, is_body_block, native_encode_expr,
5254         native_interpret_expr, fold_convertible_p, operand_equal_p,
5255         int_const_binop, tree_swap_operands_p, builtin_mathfn_code,
5256         validate_arglist, simple_cst_equal, type_list_equal,
5257         use_register_for_decl, call_expr_flags, get_name,
5258         highest_pow2_factor): Likewise.
5259         (const_call_expr_arg_iterator_d,
5260         init_const_call_expr_arg_iterator, next_const_call_expr_arg,
5261         first_const_call_expr_arg, more_const_call_expr_args_p,
5262         FOR_EACH_CONST_CALL_EXPR_ARG): New.
5263         * varasm.c (constructor_static_from_elts_p): Constify.
5264
5265 2007-07-28  Kazu Hirata  <kazu@codesourcery.com>
5266
5267         * cfglayout.c, config/arm/arm.c, config/arm/cortex-a8.md,
5268         config/arm/neon-schedgen.ml, config/arm/neon.ml,
5269         config/arm/vec-common.md, config/ia64/div.md, cselib.c,
5270         df-core.c, df.h, dominance.c, optabs.c, opts.c, reg-stack.c,
5271         regstat.c, target.h, tree-ssa-live.c, tree-ssa-pre.c,
5272         tree-vect-transform.c, tree.def: Fix comment typos.  Follow
5273         spelling conventions.
5274         * doc/invoke.texi: Follow spelling conventions.
5275
5276 2007-07-29  Vladimir Yanovsky  <yanov@il.ibm.com>
5277             Revital Eres  <eres@il.ibm.com>
5278
5279         * modulo-sched.c (sms_schedule): Avoid loops which includes
5280         auto-increment instructions.
5281
5282 2007-07-28  Richard Guenther  <rguenther@suse.de>
5283
5284         PR middle-end/32920
5285         * fold-const.c (fold_cond_expr_with_comparison): Convert
5286         operand zero of MIN/MAX_EXPR to correct type.
5287
5288 2007-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5289
5290         * calls.c (special_function_p, setjmp_call_p, alloca_call_p,
5291         flags_from_decl_or_type): Constify.
5292         * gcc.c (do_spec_1): Likewise.
5293         * print-tree.c (dump_addr, print_node_brief): Likewise.
5294         * tree-cfg.c (stmt_starts_bb_p, is_ctrl_stmt, computed_goto_p,
5295         simple_goto_p, tree_can_make_abnormal_goto, stmt_starts_bb_p,
5296         tree_purge_all_dead_eh_edges): Likewise.
5297         * tree-flow.h (is_ctrl_stmt, computed_goto_p, simple_goto_p,
5298         tree_can_make_abnormal_goto, tree_purge_all_dead_eh_edges):
5299         Likewise. 
5300         * tree.c (expr_location, expr_has_location, expr_locus,
5301         expr_filename, expr_lineno, get_inner_array_type,
5302         fields_compatible_p): Likewise.
5303         * tree.h (get_inner_array_type, fields_compatible_p,
5304         expr_location, expr_has_location, expr_locus, expr_filename,
5305         expr_lineno, dump_addr, print_node_brief, flags_from_decl_or_type,
5306         setjmp_call_p, alloca_call_p): Likewise.
5307
5308 2007-07-28  Daniel Berlin  <dberlin@dberlin.org>
5309
5310         * timevar.def: Add TV_CALL_CLOBBER, TV_FLOW_SENSITIVE,
5311         TV_FLOW_INSENSITIVE.
5312
5313         * tree-ssa-alias.c (compute_call_clobbered): Push/pop
5314         TV_CALL_CLOBBER.
5315         (compute_flow_sensitive_aliasing): Ditto for TV_FLOW_SENSITIVE.
5316         (compute_flow_insensitive_aliasing): Ditto for
5317         TV_FLOW_INSENSITIVE.    
5318
5319 2007-07-27  Jan Hubicka  <jh@suse.cz>
5320
5321         * config/i386/i386.c (register_move_cost): Remove accidentally
5322         comitted #if 0 block.
5323
5324         * attribs.c: Include hashtab.h
5325         (attribute_hash): New.
5326         (substring): New structure.
5327         (extract_attribute_substring, substring_hash, hash_attr, eq_attr):
5328         New function.
5329         (init_attributes): Initialize attribute hash.
5330         (decl_attributes): Use attribute hash.
5331         * Makefile.in (attribs.c): Depend on hashtab.h.
5332
5333 2007-07-27  Steve Ellcey  <sje@cup.hp.com>
5334
5335         * config/ia64/vect.md (vec_initv2si): Remove bad BIG_ENDIAN test.
5336
5337 2007-07-27  Richard Sandiford  <richard@codesourcery.com>
5338
5339         * doc/invoke.texi (mdsp, mdspr2): Document the __mips_dsp,
5340         __mips_dspr2 and __mips_dsp_rev macros.
5341         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dsp_rev.
5342
5343 2007-07-27  Douglas Gregor  <doug.gregor@gmail.com>
5344         
5345        * c-common.h (enum rid): Add RID_DECLTYPE, update RID_LAST_CXX0X.
5346
5347 2007-07-26  Kenneth Zadeck <zadeck@naturalbridge.com>
5348
5349         PR middle-end/32749
5350         
5351         * df-problems.c (df_create_unused_note): Removed do_not_gen parm
5352         and the updating of the live and do_not_gen sets.
5353         (df_note_bb_compute): Added updating of live and do_not_gen sets
5354         for regular defs so that the case of clobber inside conditional
5355         call is processed correctly.
5356         
5357 2007-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
5358
5359         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Generate the
5360         operands with compatible type.
5361
5362 2007-07-27  Richard Sandiford  <richard@codesourcery.com>
5363
5364         * expr.h (store_bit_field): Don't return a value.
5365         * expmed.c (check_predicate_volatile_ok): New function.
5366         (store_bit_field_1): New function, extracted from store_bit_field.
5367         Take a fallback_p argument and return true if the operation succeeded.
5368         Only use store_fixed_bit_field if fallback_p.  Don't recompute
5369         mode_for_extraction; use op_mode instead.  Try forcing memories
5370         into registers if the insv expander fails.
5371         (store_bit_field): Use store_bit_field_1 with fallback_p true.
5372         Don't return a value.
5373         (convert_extracted_bit_field): New function, extracted from
5374         store_bit_field.
5375         (extract_bit_field_1): Likewise.  Take a fallback_p argument
5376         and return NULL if the operation succeeded.  Only use
5377         extract_fixed_bit_field if fallback_p.  Only calculate one
5378         extraction mode.  Combine code for extv and extzv.  Try forcing
5379         memories into registers if the ext(z)v expander fails.
5380         (extract_bit_field): Use extract_bit_field_1 with fallback_p true.
5381
5382 2007-07-27  Richard Sandiford  <rsandifo@nildram.co.uk>
5383
5384         * df.h (df_mw_hardreg): Turn df_ref_type and df_ref_flags
5385         into bitfields.
5386         (df_ref): Likewise.  Put regno with other integer fields.
5387
5388 2007-07-27  Richard Sandiford  <rsandifo@nildram.co.uk>
5389
5390         * df.h (df_mw_hardreg): Remove "loc" field.
5391         * df-scan.c (df_ref_record): Don't set it.  Remove redundant
5392         local variable.
5393         * df-problems.c (df_whole_mw_reg_unused_p): New function,
5394         split out from df_set_unused_notes_for_mw.  Return false for
5395         partial references.  Assert that mw_reg is a REG when returning true.
5396         (df_set_unused_notes_for_mw): Use it.  Use mw_reg instead of *loc.
5397         (df_whole_mw_reg_dead_p): New function, split out from
5398         df_set_dead_notes_for_mw.  Return false for partial references.
5399         Assert that mw_reg is a REG when returning true.
5400         (df_set_dead_notes_for_mw): Use it.  Use mw_reg instead of *loc.
5401         Remove redundant bitmap check.
5402
5403 2007-07-26  H.J. Lu  <hongjiu.lu@intel.com>
5404
5405         * config/ia64/t-ia64 ($(T)crtbegin.o): Removed.
5406         ($(T)crtend.o): Likwise.
5407         ($(T)crtbeginS.o): Likwise.
5408         ($(T)crtendS.o): Likwise.
5409         ($(T)crtfastmath.o): Likwise.
5410
5411 2007-07-26  Zdenek Dvorak  <dvorakz@suse.cz>
5412
5413         * dominance.c (dom_computed, n_bbs_in_dom_tree): Removed.
5414         * function.h (dom_computed, n_bbs_in_dom_tree): New macros.
5415         * basic-block.h (struct control_flow_graph): Added x_dom_computed
5416         and x_n_bbs_in_dom_tree fields.
5417
5418 2007-07-26  Steve Ellcey  <sje@cup.hp.com>
5419
5420         PR tree-optimization/32087
5421         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
5422         Do not call scale_bbs_frequencies_int with prob of zero.
5423
5424 2007-07-26  Julian Brown  <julian@codesourcery.com>
5425
5426         * config/arm/arm-protos.h (neon_lane_bounds, neon_const_bounds)
5427         (neon_element_bits): Add prototypes.
5428         * config/arm/arm.c (bounds_check, neon_lane_bounds)
5429         (neon_const_bounds, neon_element_bits): New functions.
5430         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_lanedi)
5431         (neon_vget_lanev2di, neon_vset_lane<mode>, neon_vset_lanedi)
5432         (neon_vset_lanev2di, neon_vdup_lane<mode>, neon_vdup_lanedi)
5433         (neon_vdup_lanev2di, neon_vcvt_n<mode>, neon_vmul_lane<mode>)
5434         (neon_vmull_lane<mode>, neon_vqdmull_lane<mode>)
5435         (neon_vqdmulh_lane<mode>, neon_vmla_lane<mode>)
5436         (neon_vmlal_lane<mode>, neon_vqdmlal_lane<mode>)
5437         (neon_vmls_lane<mode>, neon_vmlsl_lane<mode>)
5438         (neon_vqdmlsl_lane<mode>, neon_vext<mode>, neon_vshr_n<mode>)
5439         (neon_vshrn_n<mode>, neon_vqshrn_n<mode>, neon_vqshrun_n<mode>)
5440         (neon_vshl_n<mode>, neon_vshl_n<mode>, neon_vqshl_n<mode>)
5441         (neon_vqshlu_n<mode>, neon_vshll_n<mode>, neon_vsra_n<mode>)
5442         (neon_vsri_n<mode>, neon_vsli_n<mode>): Add bounds checks.
5443
5444 2007-07-26  Nathan Froyd  <froydnj@codesourcery.com>
5445
5446         * config/vxworks.h (VXWORKS_LINK_SPEC): Fix typo.
5447         (HAVE_AS_GNU_ATTRIBUTE): Undefine.
5448
5449 2007-07-26  Mark Shinwell  <shinwell@codesourcery.com>
5450             Julian Brown  <julian@codesourcery.com>
5451
5452         * config/arm/arm.c (arm_mac_accumulator_is_mul_result): New.
5453         * config/arm/arm-protos.h (arm_mac_accumulator_is_mul_result): New.
5454         * config/arm/cortex-a8.md: New.
5455         * config/arm/cortex-a8-neon.md: New.
5456         * config/arm/neon-schedgen.ml: New.
5457         * config/arm/neon.md (vqh_mnem): New.
5458         (neon_type): New.
5459         (Is_float_mode): New.
5460         (Scalar_mul_8_16): New.
5461         (Is_d_reg): New.
5462         (V_mode_nunits): New.
5463         (All instruction patterns): Annotate with neon_type attribute
5464         values.
5465         * config/arm/arm.md: Include cortex-a8.md.
5466         (insn): Add smmla, umaal, smlald, smlsld, clz, mrs, msr and xtab
5467         values.
5468         Annotate instruction patterns accordingly.
5469         (generic_sched): Do not use generic scheduling for Cortex-A8.
5470         (generic_vfp): Do not use generic VFP scheduling for Cortex-A8.
5471
5472 2007-07-26  Daniel Jacobowitz  <dan@codesourcery.com>
5473
5474         * fold-const.c (fold_read_from_constant_string): Use
5475         build_int_cst_type.
5476         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
5477
5478 2007-07-26  Nick Clifton  <nickc@redhat.com>
5479
5480         * tree-ssa-operands.h: Change copyright header to refer to version
5481         3 of the GNU General Public License and to point readers at the
5482         COPYING3 file and the FSF's license web page.
5483         * tree-vrp.c, regrename.c, attribs.c, loop-unswitch.c,
5484         sched-ebb.c, fwprop.c, tree-loop-linear.c, dwarf2asm.c,
5485         tree-into-ssa.c, dwarf2asm.h, tree-ssa-loop-im.c, sbitmap.c,
5486         targhooks.c, tree-dump.c, tree-complex.c, sbitmap.h, targhooks.h,
5487         tree-dump.h, regstat.c, see.c, machmode.h, hooks.c, cgraphbuild.c,
5488         hooks.h, genrecog.c, tree-ssa-threadupdate.c, gen-protos.c,
5489         flags.h, rtlhooks.c, gencheck.c, tree-ssa-loop-niter.c,
5490         opts-common.c, dbgcnt.def, tree-pretty-print.c, tracer.c,
5491         gengtype.c, mkconfig.sh, gengtype.h, tree-ssa-loop-unswitch.c,
5492         cgraph.c, c-lex.c, cgraph.h, libfuncs.h, cfgloopmanip.c,
5493         rtl-error.c, optabs.c, postreload-gcse.c, tree-ssa-loop-manip.c,
5494         optabs.h, genmddeps.c, defaults.h, postreload.c, value-prof.c,
5495         tree-ssa-loop-ch.c, tree-tailcall.c, gengenrtl.c, value-prof.h,
5496         genopinit.c, tree.c, tree.h, reload.c, tree-pass.h, ipa-cp.c,
5497         reload.h, bitmap.c, bitmap.h, tree-scalar-evolution.c,
5498         c-config-lang.in, tree-scalar-evolution.h, target.h, cppspec.c,
5499         rtlanal.c, ddg.c, lambda-mat.c, mips-tdump.c, ddg.h,
5500         tree-phinodes.c, mips-tfile.c, pointer-set.c, pointer-set.h,
5501         diagnostic.c, final.c, diagnostic.h, builtins.c, genoutput.c,
5502         gcc.c, lists.c, tree-ssa-alias-warnings.c, gcc.h, cfghooks.c,
5503         input.h, gensupport.c, fold-const.c, cfghooks.h, insn-notes.def,
5504         gensupport.h, builtin-attrs.def, sync-builtins.def, params.c,
5505         cfgloopanal.c, params.h, graphds.c, omp-low.c, tree-ssa-dse.c,
5506         graphds.h, gcov.c, cfg.c, genextract.c, ipa-reference.c,
5507         genautomata.c, tree-ssa-uncprop.c, auto-inc-dec.c, toplev.c,
5508         tree-gimple.c, ipa-reference.h, vmsdbgout.c, errors.c, toplev.h,
5509         reorg.c, tree-gimple.h, tree-chrec.c, pretty-print.c, errors.h,
5510         real.c, tree-chrec.h, pretty-print.h, debug.c, real.h, genemit.c,
5511         omega.c, c-cppbuiltin.c, genmultilib, debug.h, omega.h,
5512         tree-ssa-sccvn.c, genconfig.c, tree-ssa-sccvn.h, cgraphunit.c,
5513         regs.h, df-scan.c, vec.c, hosthooks-def.h, vec.h,
5514         tree-ssa-copyrename.c, scan.c, builtin-types.def, tree-ssa-ccp.c,
5515         scan.h, mode-classes.def, haifa-sched.c, dominance.c, dojump.c,
5516         double-int.c, gcov-io.c, dbxout.c, builtins.def, double-int.h,
5517         dbxout.h, tree-ssa-loop-ivopts.c, df-core.c, mode-switching.c,
5518         gengtype-lex.l, tree-nomudflap.c, modulo-sched.c, c-objc-common.c,
5519         hosthooks.h, c-objc-common.h, caller-save.c, graph.c,
5520         ipa-pure-const.c, graph.h, c-format.c, cse.c, fix-header.c,
5521         c-format.h, web.c, tree-stdarg.c, genpeep.c, tree-stdarg.h,
5522         tree-ssa-math-opts.c, xcoffout.c, tree-ssa-dom.c, tree-nrv.c,
5523         xcoffout.h, tree-ssa-propagate.c, ipa-utils.c,
5524         tree-ssa-propagate.h, tree-ssa-alias.c, loop-init.c, ipa-utils.h,
5525         gimple-low.c, rtl.def, c-tree.h, tree-ssa-sink.c, ipa-inline.c,
5526         mkmap-symver.awk, machmode.def, c-pch.c, cfganal.c, global.c,
5527         alloc-pool.c, c-semantics.c, alloc-pool.h, jump.c, ifcvt.c,
5528         dwarf2out.c, expr.c, cfgbuild.c, tree-browser.c, dwarf2out.h,
5529         expr.h, longlong.h, opts.c, gcov-iov.c, opts.h, dwarf2.h,
5530         genattrtab.c, genconditions.c, genattr.c, optc-gen.awk,
5531         timevar.def, tree-ssa-loop-ivcanon.c, hard-reg-set.h, predict.c,
5532         tree-ssa-loop.c, host-default.c, predict.h, recog.c, dbgcnt.c,
5533         recog.h, dbgcnt.h, c-aux-info.c, tree-ssa-address.c, timevar.c,
5534         dse.c, lcm.c, tree-ssa-ifcombine.c, timevar.h, dse.h,
5535         matrix-reorg.c, tree-vn.c, treestruct.def, fp-test.c, c-decl.c,
5536         tree-eh.c, c-errors.c, c-pretty-print.c, regmove.c,
5537         lambda-trans.c, c-pretty-print.h, et-forest.c, et-forest.h,
5538         ebitmap.c, configure.ac, local-alloc.c, function.c, langhooks.c,
5539         ebitmap.h, cppdefault.c, tree-vectorizer.c, function.h,
5540         langhooks.h, print-rtl.c, cppdefault.h, df.h, tree-vectorizer.h,
5541         sdbout.c, stor-layout.c, sdbout.h, rtlhooks-def.h, read-rtl.c,
5542         gcse.c, ipa-type-escape.c, vmsdbg.h, alias.c, gengtype-parse.c,
5543         ipa-type-escape.h, domwalk.c, alias.h, tree-if-conv.c, profile.c,
5544         init-regs.c, domwalk.h, ipa.c, gccbug.in, tree-data-ref.c,
5545         loop-unroll.c, tree-data-ref.h, tree-flow-inline.h, tree-affine.c,
5546         mkmap-flat.awk, tree-affine.h, tree-vect-analyze.c, c.opt, ggc.h,
5547         opt-gather.awk, c-typeck.c, gimplify.c, coretypes.h, exec-tool.in,
5548         insn-addr.h, tree-ssa-phiopt.c, c-pragma.c, c-pragma.h, calls.c,
5549         tree-ssa-coalesce.c, genmodes.c, loop-doloop.c, predict.def,
5550         dwarf.h, tree.def, rtl-factoring.c, lower-subreg.c, expmed.c,
5551         bt-load.c, ggc-common.c, genflags.c, tree-dfa.c, except.c,
5552         coverage.c, except.h, emit-rtl.c, cfgexpand.c, coverage.h,
5553         stringpool.c, cselib.c, emit-rtl.h, tree-cfgcleanup.c, c-opts.c,
5554         cselib.h, cfgcleanup.c, simplify-rtx.c, tree-ssa-pre.c, explow.c,
5555         tree-ssa-live.c, tree-sra.c, tree-ssa-live.h, tree-predcom.c,
5556         loop-invariant.c, genpreds.c, protoize.c, opth-gen.awk, c-dump.c,
5557         lambda.h, loop-iv.c, tree-mudflap.c, ipa-prop.c, print-tree.c,
5558         tree-mudflap.h, tree-ssa-copy.c, ipa-prop.h, cfglayout.c,
5559         tree-ssa-forwprop.c, c-convert.c, cfglayout.h, common.opt,
5560         ggc-zone.c, ggc-page.c, c-omp.c, tree-ssa-dce.c, gencodes.c,
5561         varasm.c, tree-vect-patterns.c, libada-mk.in, tree-ssa-ter.c,
5562         sched-deps.c, tree-nested.c, c-ppoutput.c, tree-ssa.c,
5563         target-def.h, tree-ssa-loop-prefetch.c, lambda-code.c,
5564         omp-builtins.def, rtl.c, regclass.c, stab.def, intl.c, rtl.h,
5565         intl.h, tree-inline.c, conditions.h, tree-inline.h, integrate.c,
5566         sched-int.h, tree-iterator.c, integrate.h, tree-iterator.h,
5567         genchecksum.c, tree-optimize.c, output.h, tree-vect-transform.c,
5568         tree-object-size.c, combine.c, tree-outof-ssa.c, addresses.h,
5569         bb-reorder.c, stack-ptr-mod.c, resource.c, var-tracking.c,
5570         cfgloop.c, system.h, resource.h, ggc-none.c, tree-profile.c,
5571         cfgloop.h, c-gimplify.c, c-common.c, opt-functions.awk,
5572         tree-vect-generic.c, tree-flow.h, df-problems.c, scan-decls.c,
5573         c-common.h, config.gcc, reg-stack.c, tlink.c, main.c, stub-objc.c,
5574         fixproto, config.host, Makefile.in, gccspec.c, sched-rgn.c,
5575         vecprim.h, basic-block.h, tree-ssa-structalias.c,
5576         tree-ssa-structalias.h, c-common.def, sched-vis.c, tree-cfg.c,
5577         passes.c, genconstants.c, c-incpath.c, c-incpath.h,
5578         struct-equiv.c, c-parser.c, tree-ssa-reassoc.c, varray.c, sreal.c,
5579         varray.h, dfp.c, sreal.h, combine-stack-adj.c, dfp.h,
5580         reg-notes.def, cfgrtl.c, config.build, varpool.c, gengtype-yacc.y,
5581         stmt.c, dce.c, tree-browser.def, prefix.c, statistics.h,
5582         params.def, dce.h, c-lang.c, gcov-dump.c, prefix.h,
5583         tree-ssanames.c, collect2.c, collect2.h, tree-ssa-threadedge.c,
5584         convert.c, convert.h, langhooks-def.h, reload1.c,
5585         tree-ssa-operands.c: Likewise.
5586
5587 2007-07-26  Jan Hubicka  <jh@suse.cz>
5588
5589         * tree-ssa-live.c: Include debug.h and flags.h.
5590         (mark_scope_block_unused): New function.
5591         (remove_unused_scope_block_p): New function.
5592         (remove_unused_locals): Remove unused blocks too.
5593
5594 2007-07-25  Ian Lance Taylor  <iant@google.com>
5595
5596         * combine.c (combine_max_regno): Remove.  Remove all uses.
5597         (struct reg_stat_struct): Rename from struct reg_stat.
5598         (reg_stat_type): Define, and declare VECs.
5599         (reg_stat): Change from pointer to VEC.  Change all uses.
5600         (combine_split_insns): New static function.
5601         (try_combine, find_split_point): Call it instead of split_insns.
5602
5603 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
5604
5605         * cfghooks.c (split_block): Fix the information about loop latch.
5606
5607 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
5608
5609         * cfgloopmanip.c (fix_loop_structure): Call force_single_succ_latches.
5610
5611 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
5612
5613         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
5614         Scan the new edge for loop exit info.
5615
5616 2007-07-25  Andreas Tobler  <a.tobler@schweiz.org>
5617
5618         * config/darwin.c: Include debug.h.
5619
5620 2007-07-25  Steve Ellcey  <sje@cup.hp.com>
5621
5622         PR target/32218
5623         * tree-vect-patterns.c (vect_pattern_recog_1): Check for valid type.
5624
5625 2007-07-25  Steve Ellcey  <sje@cup.hp.com>
5626
5627         * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle RFmode.
5628         (HARD_REGNO_MODE_OK): Ditto.
5629         (MODES_TIEABLE_P): Ditto.
5630         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
5631         (CLASS_MAX_NREGS): Ditto.
5632         * config/ia64/ia64.c (ia64_print_operand_address): Add R format.
5633         * config/ia64/ia64.md (divsf3_internal_thr): Removed.
5634         (divdf3_internal_thr): Removed.
5635         * config/ia64/div.md: New file.
5636         * config/ia64/constraints.md: Add H constraint.
5637
5638 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5639
5640         * sbitmap.c (sbitmap_verify_popcount, sbitmap_alloc_with_popcount,
5641         sbitmap_copy, sbitmap_copy_n, sbitmap_equal, sbitmap_empty_p,
5642         sbitmap_union_of_diff_cg, sbitmap_union_of_diff, sbitmap_not,
5643         sbitmap_difference, sbitmap_any_common_bits, sbitmap_a_and_b_cg,
5644         sbitmap_a_and_b, sbitmap_a_xor_b_cg, sbitmap_a_xor_b,
5645         sbitmap_a_or_b_cg, sbitmap_a_or_b, sbitmap_a_subset_b_p,
5646         sbitmap_a_or_b_and_c_cg, sbitmap_a_or_b_and_c,
5647         sbitmap_a_and_b_or_c_cg, sbitmap_a_and_b_or_c,
5648         sbitmap_first_set_bit, sbitmap_last_set_bit, dump_sbitmap,
5649         dump_sbitmap_file, debug_sbitmap, popcount_table,
5650         sbitmap_popcount): Constify.
5651         * sbitmap.h (const_sbitmap, const_sbitmap_ptr): New.
5652         (sbitmap_iterator, sbitmap_iter_init, dump_sbitmap,
5653         dump_sbitmap_file, sbitmap_copy, sbitmap_copy_n, sbitmap_equal,
5654         sbitmap_empty_p, sbitmap_union_of_diff, sbitmap_union_of_diff_cg,
5655         sbitmap_difference, sbitmap_not, sbitmap_a_or_b_and_c,
5656         sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c,
5657         sbitmap_a_and_b_or_c_cg, sbitmap_any_common_bits, sbitmap_a_and_b,
5658         sbitmap_a_and_b_cg, sbitmap_a_or_b, sbitmap_a_or_b_cg,
5659         sbitmap_a_xor_b, sbitmap_a_xor_b_cg, sbitmap_a_subset_b_p,
5660         sbitmap_first_set_bit, sbitmap_last_set_bit, debug_sbitmap,
5661         sbitmap_popcount, sbitmap_verify_popcount): Constify.
5662
5663 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5664
5665         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_element_zerop,
5666         bitmap_copy, bitmap_clear_bit, popcount_table, bitmap_count_bits,
5667         bitmap_first_set_bit, bitmap_and, bitmap_and_into,
5668         bitmap_elt_copy, bitmap_and_compl, bitmap_and_compl_into,
5669         bitmap_compl_and_into, bitmap_elt_ior, bitmap_ior,
5670         bitmap_ior_into, bitmap_xor, bitmap_xor_into, bitmap_equal_p,
5671         bitmap_intersect_p, bitmap_intersect_compl_p,
5672         bitmap_ior_and_compl, bitmap_ior_and_compl_into,
5673         debug_bitmap_file, debug_bitmap, bitmap_print, bitmap_hash):
5674         Constify.
5675         * bitmap.h (bitmap_copy, bitmap_equal_p, bitmap_intersect_p,
5676         bitmap_intersect_compl_p, bitmap_count_bits, bitmap_and,
5677         bitmap_and_into, bitmap_and_compl, bitmap_and_compl_into,
5678         bitmap_compl_and_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
5679         bitmap_xor_into, bitmap_ior_and_compl, bitmap_ior_and_compl_into,
5680         debug_bitmap, debug_bitmap_file, bitmap_print,
5681         bitmap_first_set_bit, bitmap_hash, bmp_iter_set_init,
5682         bmp_iter_and_init, bmp_iter_and_compl_init): Likewise.
5683
5684 2007-07-25  Daniel Berlin  <dberlin@dberlin.org>
5685
5686         * config/darwin.c (darwin_override_options): Additional fix for
5687         debug info formats that don't support var tracking.
5688
5689 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5690
5691         * cselib.c (entry_and_rtx_equal_p): Constify.
5692         * gengtype.c (output_mangled_typename, write_types, write_local):
5693         Likewise.
5694         * gengtype.h (const_type_p): New.
5695         * see.c (eq_descriptor_extension, hash_descriptor_extension):
5696         Constify.
5697         * tlink.c (scan_linker_output): De-constify.
5698         * tree-ssa-loop-im.c (memref_eq): Constify.
5699         * tree-ssa-structalias.c (const_shared_bitmap_info_t): New.
5700         (shared_bitmap_hash, shared_bitmap_eq): Constify.
5701
5702 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5703
5704         * c-common.c (fname_as_string, c_type_hash): Constify.
5705         * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
5706         * cgraph.c (edge_hash, edge_eq): Likewise.
5707         * dwarf2out.c (decl_die_table_eq, decl_loc_table_eq): Likewise.
5708         * emit-rtl.c (mem_attrs_htab_eq, reg_attrs_htab_hash,
5709         reg_attrs_htab_eq): Likewise.
5710         * except.c (t2r_eq, t2r_hash, ttypes_filter_eq, ehl_hash, ehl_eq):
5711         Likewise.
5712         * genautomata.c (const_reserv_sets_t, const_unit_decl_t,
5713         const_decl_t, const_state_t, const_automata_list_el_t): New.
5714         (first_out_arc, DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL,
5715         DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV,
5716         automaton_decl_hash, automaton_decl_eq_p, insn_decl_hash,
5717         insn_decl_eq_p, decl_hash, decl_eq_p, alt_state_cmp,
5718         reserv_sets_cmp, reserv_sets_eq, state_hash, state_eq_p,
5719         automata_list_hash, automata_list_eq_p, compare_states_for_equiv,
5720         compare_max_occ_cycle_nums, out_state_arcs_num,
5721         compare_transition_els_num, units_cmp, state_reservs_cmp):
5722         Constify.
5723         * genmodes.c (cmp_modes): Likewise.
5724         * ggc-common.c (saving_htab_hash, saving_htab_eq): Likewise.
5725         * gimplify.c (compare_case_labels): Likewise.
5726         * ipa-type-escape.c (get_name_of_type, type_brand_s): Likewise.
5727         * loop-unroll.c (si_info_hash, ve_info_hash): Likewise.
5728         * matrix-reorg.c (mtt_info_hash): Likewise.
5729         * postreload-gcse.c (hash_expr_for_htab, expr_equiv_p): Likewise.
5730         * rtl-factoring.c (const_p_hash_bucket, const_p_hash_elem): New.
5731         (htab_hash_bucket, htab_hash_elem): Constify.
5732         * tree-browser.c (TB_parent_eq): Likewise.
5733         * tree-scalar-evolution.c (hash_scev_info): Likewise.
5734         * tree-ssa-alias.c (sort_tags_by_id): Likewise.
5735         * tree-ssa-coalesce.c (const_coalesce_pair_p): New.
5736         (coalesce_pair_map_hash, coalesce_pair_map_eq, compare_pairs):
5737         Constify.
5738         * tree-ssa-dom.c (avail_expr_hash, avail_expr_eq): Likewise.
5739         * tree-ssa-pre.c (const_expr_pred_trans_t): New.
5740         (expr_pred_trans_hash, expr_pred_trans_eq): Constify.
5741         * tree-ssa-sccvn.c (const_vn_binary_op_t, const_vn_unary_op_t,
5742         const_vn_phi_t, const_vn_reference_op_t, const_vn_reference_t):
5743         New.
5744         (vn_reference_op_eq, vn_reference_hash, vn_reference_eq,
5745         vn_unary_op_hash, vn_unary_op_eq, vn_binary_op_hash,
5746         vn_binary_op_eq, vn_phi_hash, vn_phi_eq): Constify.
5747         * tree-ssa-threadupdate.c (redirection_data_hash,
5748         redirection_data_eq): Likewise. 
5749         * tree-ssa-uncprop.c (equiv_hash, equiv_eq): Likewise.
5750         * tree-ssa.c (var_ann_eq): Likewise.
5751         * tree-vrp.c (compare_case_labels): Likewise.
5752         * tree.c (int_cst_hash_hash, int_cst_hash_eq,
5753         tree_map_base_marked_p, type_hash_marked_p, tree_check_failed,
5754         tree_not_check_failed, tree_class_check_failed,
5755         tree_range_check_failed, tree_not_class_check_failed,
5756         omp_clause_check_failed, omp_clause_range_check_failed,
5757         tree_contains_struct_check_failed, tree_operand_check_failed):
5758         Likewise. 
5759         * tree.h (tree_contains_struct_check_failed, tree_check_failed,
5760         tree_not_check_failed, tree_class_check_failed,
5761         tree_range_check_failed, tree_not_class_check_failed,
5762         tree_operand_check_failed, omp_clause_operand_check_failed,
5763         tree_operand_length): Likewise. 
5764         * var-tracking.c (const_variable): New.
5765         (variable_htab_hash, variable_htab_eq): Constify.
5766         * varasm.c (const_desc_hash): Likewise.
5767
5768 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5769
5770         * expr.c (handled_component_p): Constify.
5771         * fold-const.c (fit_double_type): Likewise.
5772         * real.h (real_value_from_int_cst): Likewise.
5773         * tree-flow-inline.h (gimple_in_ssa_p,
5774         gimple_aliases_computed_p, gimple_addressable_vars,
5775         gimple_call_clobbered_vars, gimple_referenced_vars,
5776         gimple_global_var, gimple_nonlocal_all, gimple_var_anns,
5777         end_htab_p, end_referenced_vars_p, var_ann, function_ann,
5778         may_aliases, end_readonly_imm_use_p, has_zero_uses,
5779         has_single_use, single_imm_use, num_imm_uses, is_exec_stmt,
5780         is_label_stmt, is_global_var, phi_ssa_name_p,
5781         factoring_name_p, is_call_clobbered, tree_common_ann,
5782         op_iter_done, end_imm_use_stmt_p, end_imm_use_on_stmt_p,
5783         unmodifiable_var_p, array_ref_contains_indirect_ref,
5784         ref_contains_array_ref, lookup_subvars_for_var,
5785         var_can_have_subvars, overlap_subvar, gimple_ssa_operands,
5786         gimple_mem_ref_stats): Likewise.
5787         * tree-flow.h (tree_common_ann, var_ann, function_ann,
5788         may_aliases, is_exec_stmt, is_label_stmt,
5789         ref_contains_array_ref, array_ref_contains_indirect_ref,
5790         var_can_have_subvars, overlap_subvar, is_call_clobbered,
5791         unmodifiable_var_p): Likewise.
5792         * tree-gimple.c (is_gimple_min_invariant): Likewise.
5793         * tree-gimple.h (is_gimple_min_invariant): Likewise. 
5794         * tree.c (type_hash_list, attribute_hash_list, tree_size,
5795         cst_and_fits_in_hwi, real_value_from_int_cst,
5796         build_real_from_int_cst, integer_zerop, integer_onep,
5797         integer_all_onesp, integer_pow2p, integer_nonzerop, tree_log2,
5798         tree_floor_log2, real_zerop, real_onep, real_twop,
5799         real_minus_onep, really_constant_p, purpose_member, chain_member,
5800         list_length, fields_length, int_size_in_bytes, bit_position,
5801         int_bit_position, byte_position, int_byte_position, expr_align,
5802         array_type_nelts, tree_node_structure,
5803         type_contains_placeholder_1, iterative_hash_pointer,
5804         is_attribute_with_length_p, is_attribute_p, check_qualified_type,
5805         tree_map_base_eq, type_hash_list, type_hash_eq,
5806         attribute_hash_list, type_num_arguments, tree_int_cst_equal,
5807         tree_int_cst_lt, tree_int_cst_compare, host_integerp,
5808         tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
5809         simple_cst_list_equal, compare_tree_int, iterative_hash_expr,
5810         int_fits_type_p, get_containing_scope, decl_function_context,
5811         decl_type_context, omp_clause_operand_check_failed,
5812         initializer_zerop, int_cst_value, num_ending_zeros): Likewise.
5813         * tree.h (omp_clause_operand_check_failed, tree_size,
5814         build_real_from_int_cst, array_type_nelts, purpose_member,
5815         tree_int_cst_equal, tree_int_cst_lt, tree_int_cst_compare,
5816         host_integerp, tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
5817         is_attribute_p, check_qualified_type, expr_align,
5818         int_size_in_bytes, bit_position, int_bit_position, byte_position,
5819         int_byte_position, list_length, fields_length, initializer_zerop,
5820         integer_zerop, integer_onep, integer_all_onesp, integer_pow2p,
5821         integer_nonzerop, cst_and_fits_in_hwi, num_ending_zeros,
5822         tree_node_structure, handled_component_p, get_containing_scope,
5823         decl_function_context, decl_type_context, real_zerop,
5824         type_num_arguments, fit_double_type, really_constant_p,
5825         int_fits_type_p, tree_log2, tree_floor_log2, iterative_hash_expr,
5826         compare_tree_int, chain_member, simple_cst_list_equal, real_onep,
5827         real_twop, real_minus_onep, int_cst_value): Likewise.
5828
5829 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5830
5831         * cfglayout.c (insn_scope, insn_line): Constify.
5832         * emit-rtl.c (const_int_htab_hash, const_int_htab_eq,
5833         const_double_htab_hash, const_double_htab_eq,
5834         mem_attrs_htab_hash): Likewise.
5835         * loop-iv.c (biv_eq): Likewise.
5836         * print-rtl.c (print_rtx, print_decl_name, print_mem_expr,
5837         print_inline_rtx, debug_rtx, debug_rtx_list, debug_rtx_range,
5838         debug_rtx_find, print_rtl, print_rtl_single, print_simple_rtl):
5839         Likewise. 
5840         * rtl-error.c (location_for_asm, diagnostic_for_asm,
5841         error_for_asm, warning_for_asm, _fatal_insn,
5842         _fatal_insn_not_found): Likewise. 
5843         * rtl.c (rtx_size, shared_const_p, shallow_copy_rtx_stat,
5844         rtx_equal_p, rtl_check_failed_bounds, rtl_check_failed_type1,
5845         rtl_check_failed_type2, rtl_check_failed_code1,
5846         rtl_check_failed_code2, rtl_check_failed_code_mode,
5847         rtvec_check_failed_bounds, rtl_check_failed_flag): Likewise.
5848         * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
5849         rtl_check_failed_type2, rtl_check_failed_code1,
5850         rtl_check_failed_code2, rtl_check_failed_code_mode,
5851         rtvec_check_failed_bounds, rtl_check_failed_flag, LABEL_KIND,
5852         SET_LABEL_KIND, rhs_regno, subreg_lsb, subreg_regno, subreg_nregs,
5853         shared_const_p, rtx_size, shallow_copy_rtx_stat, rtx_equal_p,
5854         get_pool_mode, insn_line, insn_file, simplify_replace_rtx,
5855         mode_signbit_p, rtx_addr_can_trap_p, nonzero_address_p,
5856         rtx_unstable_p, get_integer_term, get_related_value,
5857         offset_within_block_p, reg_mentioned_p, count_occurrences,
5858         reg_referenced_p, reg_used_between_p, no_labels_between_p,
5859         single_set_2, multiple_sets, set_noop_p, refers_to_regno_p,
5860         reg_overlap_mentioned_p, dead_or_set_p, dead_or_set_regno_p,
5861         find_reg_note, find_regno_note, find_reg_equal_equiv_note,
5862         find_constant_src, find_reg_fusage, find_regno_fusage,
5863         pure_call_p, remove_note, side_effects_p, volatile_refs_p,
5864         volatile_insn_p, may_trap_p, may_trap_after_code_motion_p,
5865         may_trap_or_fault_p, inequality_comparisons_p, tablejump_p,
5866         computed_jump_p, auto_inc_p, in_expr_list_p,
5867         remove_node_from_expr_list, loc_mentioned_in_p,
5868         label_is_jump_target_p, reversed_comparison_code_parts,
5869         debug_rtx, debug_rtx_list, debug_rtx_range, debug_rtx_find,
5870         print_mem_expr, print_rtl, print_simple_rtl, print_rtl_single,
5871         print_inline_rtx): Likewise.
5872         * rtlanal.c (covers_regno_p, covers_regno_no_parallel_p,
5873         computed_jump_p_1, nonzero_bits1, rtx_unstable_p,
5874         rtx_addr_can_trap_p_1, rtx_addr_can_trap_p, nonzero_address_p,
5875         get_integer_term, get_related_value, offset_within_block_p,
5876         count_occurrences, reg_mentioned_p, no_labels_between_p,
5877         reg_used_between_p, reg_referenced_p, single_set_2,
5878         multiple_sets, set_noop_p, refers_to_regno_p,
5879         reg_overlap_mentioned_p, dead_or_set_p,
5880         covers_regno_no_parallel_p, covers_regno_p,
5881         dead_or_set_regno_p, find_reg_note, find_regno_note,
5882         find_reg_equal_equiv_note, find_constant_src, find_reg_fusage,
5883         find_regno_fusage, pure_call_p, remove_note, in_expr_list_p,
5884         remove_node_from_expr_list, volatile_insn_p, volatile_refs_p,
5885         side_effects_p, may_trap_p_1, may_trap_p,
5886         may_trap_after_code_motion_p, may_trap_or_fault_p,
5887         inequality_comparisons_p, tablejump_p, computed_jump_p_1,
5888         computed_jump_p, auto_inc_p, loc_mentioned_in_p, subreg_lsb,
5889         subreg_regno, subreg_nregs, label_is_jump_target_p): Likewise.
5890         * simplify-rtx.c (neg_const_int, plus_minus_operand_p,
5891         mode_signbit_p, simplify_replace_rtx, plus_minus_operand_p):
5892         Likewise. 
5893         * toplev.h (_fatal_insn_not_found, _fatal_insn, error_for_asm,
5894         warning_for_asm): Likewise.
5895         * tree.h (print_rtl): Likewise.
5896         * varasm.c (get_pool_mode): Likewise.
5897
5898 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5899
5900         * c-lex.c (c_lex_with_flags, lex_string): Constify.
5901         * c-ppoutput.c (print_line, pp_dir_change): Likewise.
5902         * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
5903         * cfg.c (bb_copy_original_hash, bb_copy_original_eq): Likewise.
5904         * cfgloop.c (loop_exit_hash, loop_exit_eq): Likewise.
5905         * ddg.c (compare_sccs): Likewise.
5906         * df-scan.c (df_ref_compare, df_mw_compare): Likewise.
5907         * dfp.c (decimal_real_from_string, decimal_to_decnumber,
5908         decimal_to_binary, decimal_do_compare, decimal_real_to_decimal,
5909         decimal_do_fix_trunc, decimal_real_to_integer,
5910         decimal_real_to_integer2, decimal_real_maxval): Likewise.
5911         * dse.c (const_group_info_t): New.
5912         (invariant_group_base_eq, invariant_group_base_hash): Constify.
5913         * dwarf2out.c (const_dw_die_ref): New.
5914         (decl_die_table_hash, decl_die_table_eq, file_info_cmp): Constify.
5915         * tree-browser.c (TB_parent_eq): Likewise.
5916         * unwind-dw2-fde.c (__register_frame_info_bases,
5917         __deregister_frame_info_bases, fde_unencoded_compare, fde_split,
5918         add_fdes, linear_search_fdes, binary_search_unencoded_fdes):
5919         Likewise.
5920         * unwind-dw2-fde.h (get_cie, next_fde): Likewise.
5921         * unwind-dw2.c (uw_frame_state_for): Likewise.
5922         * value-prof.c (histogram_hash, histogram_eq): Likewise.
5923         * value-prof.h (const_histogram_value): New.
5924
5925 2007-07-25  Richard Sandiford  <richard@codesourcery.com>
5926
5927         * config/mips/mips.c (machine_function): Add
5928         initialized_mips16_gp_pseudo_p.
5929         (mips16_gp_pseudo_reg): Do not emit the initialization of
5930         mips16_gp_pseudo_rtx when being called from the gimple cost-
5931         calculation routines; emit it on the first use outside those
5932         routines.
5933
5934 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5935
5936         * coretypes.h (const_bitmap, const_rtx, const_rtvec, const_tree):
5937         New.
5938         
5939         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
5940         RTVEC_ELT, XWINT, XCWINT, XCMWINT, XCNMPRV, BLOCK_SYMBOL_CHECK,
5941         RTL_FLAG_CHECK1, RTL_FLAG_CHECK2, RTL_FLAG_CHECK3,
5942         RTL_FLAG_CHECK4, RTL_FLAG_CHECK5, RTL_FLAG_CHECK6,
5943         RTL_FLAG_CHECK7, RTL_FLAG_CHECK8, LABEL_KIND, SET_LABEL_KIND):
5944         Preserve const-ness of parameters through use of __typeof(),
5945         also constify and tidy.
5946         
5947         * tree.h (TREE_CHECK, TREE_NOT_CHECK, TREE_CHECK2,
5948         TREE_NOT_CHECK2, TREE_CHECK3, TREE_NOT_CHECK3, TREE_CHECK4,
5949         NON_TREE_CHECK4, TREE_CHECK5, TREE_NOT_CHECK5,
5950         CONTAINS_STRUCT_CHECK, TREE_CLASS_CHECK, TREE_RANGE_CHECK,
5951         OMP_CLAUSE_SUBCODE_CHECK, OMP_CLAUSE_RANGE_CHECK, EXPR_CHECK,
5952         GIMPLE_STMT_CHECK, NON_TYPE_CHECK, TREE_VEC_ELT_CHECK,
5953         PHI_NODE_ELT_CHECK, OMP_CLAUSE_ELT_CHECK, TREE_OPERAND_CHECK,
5954         TREE_OPERAND_CHECK_CODE, GIMPLE_STMT_OPERAND_CHECK,
5955         TREE_RTL_OPERAND_CHECK, TREE_CHAIN, TREE_TYPE): Likewise.
5956
5957 2007-07-25  Julian Brown  <julian@codesourcery.com>
5958             Mark Shinwell  <shinwell@codesourcery.com>
5959
5960         * config/alpha/alpha.c (alpha_mangle_fundamental_type): Rename to...
5961         (alpha_mangle_type): This.
5962         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
5963         (TARGET_MANGLE_TYPE): Define this instead.
5964         * config/arm/arm-protos.h (arm_mangle_type): Add prototype.
5965         * config/arm/arm.c (TARGET_MANGLE_TYPE): Define target hook.
5966         (arm_init_neon_builtins): Fix comment.
5967         (arm_mangle_map_entry): New.
5968         (arm_mangle_map): New.
5969         (arm_mangle_type): New.
5970         * config/i386/i386.c (ix86_mangle_fundamental_type): Rename to...
5971         (ix86_mangle_type): This. Use TYPE_MAIN_VARIANT and restrict
5972         mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
5973         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
5974         (TARGET_MANGLE_TYPE): Define this instead.
5975         * config/ia64/ia64.c (ia64_mangle_fundamental_type): Rename to...
5976         (ia64_mangle_type): This. Use TYPE_MAIN_VARIANT  and restrict
5977         mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
5978         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
5979         (TARGET_MANGLE_TYPE): Define this instead.
5980         * config/rs6000/rs6000.c (rs6000_mangle_fundamental_type): Rename
5981         to...
5982         (rs6000_mangle_type): This. Use TYPE_MAIN_VARIANT.
5983         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
5984         (TARGET_MANGLE_TYPE): Define this instead.
5985         * config/s390/s390.c (s390_mangle_fundamental_type): Rename to...
5986         (s390_mangle_type): This.
5987         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
5988         (TARGET_MANGLE_TYPE): Define this instead.
5989         * config/sparc/sparc.c (sparc_mangle_fundamental_type): Rename to...
5990         (sparc_mangle_type): This.
5991         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
5992         (TARGET_MANGLE_TYPE): Define this instead.
5993         * cp/mangle.c (write_type): Call mangle_type target hook on all
5994         types before mangling.  Use original type, not main variant, as
5995         argument.
5996         * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename hook to...
5997         (TARGET_MANGLE_TYPE): This.
5998         * target.h (gcc_target): Rename mangle_fundamental_type to
5999         mangle_type.
6000         * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename section to...
6001         (TARGET_MANGLE_TYPE): This. Note slightly different semantics.
6002
6003 2007-07-25  Julian Brown  <julian@codesourcery.com>
6004             Paul Brook  <paul@codesourcery.com>
6005             Joseph Myers  <joseph@codesourcery.com>
6006             Mark Shinwell  <shinwell@codesourcery.com>
6007
6008         * Makefile.in (TEXI_GCC_FILES): Add arm-neon-intrinsics.texi.
6009         * config.gcc (arm*-*-*): Add arm_neon.h to extra headers.
6010         (with_fpu): Allow --with-fpu=neon.
6011         * config/arm/aof.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
6012         * config/arm/aout.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
6013         * config/arm/arm-modes.def (EI, OI, CI, XI): New modes.
6014         * config/arm/arm-protos.h (neon_immediate_valid_for_move)
6015         (neon_immediate_valid_for_logic, neon_output_logic_immediate)
6016         (neon_pairwise_reduce, neon_expand_vector_init, neon_reinterpret)
6017         (neon_emit_pair_result_insn, neon_disambiguate_copy)
6018         (neon_vector_mem_operand, neon_struct_mem_operand, output_move_quad)
6019         (output_move_neon): Add prototypes.
6020         * config/arm/arm.c (FL_NEON): New flag for NEON processor capability.
6021         (all_fpus): Add FPUTYPE_NEON.
6022         (fp_model_for_fpu): Add NEON field.
6023         (arm_return_in_memory): Return vectors <= 16 bytes in ARM registers.
6024         (arm_arg_partial_bytes): Allow NEON vectors to be passed partially
6025         in registers.
6026         (arm_legitimate_address_p): Don't support fancy addressing for NEON
6027         structure moves.
6028         (thumb2_legitimate_address_p): Likewise.
6029         (neon_valid_immediate): Recognize and prepare constants suitable for
6030         NEON instructions.
6031         (neon_immediate_valid_for_move): New function. Recognize and prepare
6032         immediates for NEON move instructions.
6033         (neon_immediate_valid_for_logic): New function. Recognize and
6034         prepare immediates for NEON logic instructions.
6035         (neon_output_logic_immediate): New function. Create asm string
6036         suitable for outputting immediate logic instructions.
6037         (neon_pairwise_reduce): New function. Implement reduction using
6038         pairwise operations.
6039         (neon_expand_vector_init): New function. Expand a (possibly
6040         non-constant) vector initialization.
6041         (neon_vector_mem_operand): New function. Memory operands supported
6042         for quad-word loads/stores to/from ARM or NEON registers. Don't
6043         allow base+offset addressing for core regs.
6044         (neon_struct_mem_operand): New function. Valid mems for NEON
6045         structure moves.
6046         (coproc_secondary_reload_class): Enable NEON registers to be loaded
6047         from neon_vector_mem_operand addresses without a secondary register.
6048         (add_minipool_forward_ref): Handle >8-byte minipool entries.
6049         (add_minipool_backward_ref): Likewise.
6050         (dump_minipool): Likewise.
6051         (push_minipool_fix): Likewise.
6052         (output_move_quad): New function. Output quad-word moves, loads and
6053         stores using ARM registers.
6054         (output_move_vfp): Add support for vectors in VFP (NEON) D
6055         registers.
6056         (output_move_neon): Output a NEON load/store to/from a quadword
6057         register.
6058         (arm_print_operand): Implement new codes:
6059         - 'c' for unadorned integers (without a # sign).
6060         - 'J', 'K' for reg+2/reg+3, reg+3/reg+2 in little/big-endian
6061         mode.
6062         - 'e', 'f' for the low and high D parts of a NEON Q register.
6063         - 'q' outputs a NEON Q register.
6064         - 'h' outputs ranges of D registers for VLDM/VSTM etc.
6065         - 'T' prints NEON opcode features from a coded bitmask.
6066         - 'F' is similar to T, but signed/unsigned codes both print as
6067         'i'.
6068         - 't' is similar to T, but 'u' is printed instead of 'p'.
6069         - 'O' prints 'r' if NEON instruction should perform rounding (as
6070         specified by bitmask), else prints nothing.
6071         - '#' is a punctuation character to stop operand numbers from
6072         running together with following digits in the assembler
6073         strings for instructions (when using mode attributes).
6074         (arm_assemble_integer): Handle extra NEON vector modes. Permute
6075         constant vectors in big-endian mode, where necessary.
6076         (arm_hard_regno_mode_ok): Allow vectors in VFP/NEON registers.
6077         Handle EI, OI, CI, XI modes.
6078         (ashlv4hi3, ashlv2si3, lshrv4hi3, lshrv2si3, ashrv4hi3)
6079         (ashrv2si3): Rename IWMMXT2_BUILTINs to...
6080         (ashlv4hi3_iwmmxt, ashlv2si3_iwmmxt, lshrv4hi3_iwmmxt)
6081         (lshrv2si3_iwmmxt, ashrv4hi3_iwmmxt, ashrv2si3_iwmmxt): New names.
6082         (neon_builtin_type_bits): Add enumeration, one bit for each vector
6083         type.
6084         (v8qi_UP, v4hi_UP, v2si_UP, v2sf_UP, di_UP, v16qi_UP, v8hi_UP)
6085         (v4si_UP, v4sf_UP, v2di_UP, ti_UP, ei_UP, oi_UP, UP): Define macros
6086         to turn v8qi, etc. into bits defined above.
6087         (neon_itype): New enumeration. Classifications of NEON builtins.
6088         (neon_builtin_datum): Define struct. Contains information about
6089         a single builtin (with multiple modes).
6090         (CF): Define helper macro for...
6091         (VAR1...VAR10): Define builtins with a type, name and 1-10 different
6092         modes.
6093         (neon_builtin_data): New array. Define information about builtins
6094         for use during initialization/expansion.
6095         (arm_init_neon_builtins): New function.
6096         (arm_init_builtins): Call arm_init_neon_builtins if TARGET_NEON is
6097         true.
6098         (neon_builtin_compare): New function.
6099         (locate_neon_builtin_icode): New function. Find an insn code for a
6100         builtin given a function code for that builtin. Also return type of
6101         builtin (NEON_BINOP, NEON_UNOP etc.).
6102         (builtin_arg): New enumeration. Types of arguments for builtins.
6103         (arm_expand_neon_args): New function. Expand a generic NEON builtin.
6104         Takes a variable argument list of builtin_arg types, terminated by
6105         NEON_ARG_STOP.
6106         (arm_expand_neon_builtin): New function. Expand a NEON builtin.
6107         (neon_reinterpret): New function. Expand NEON reinterpret intrinsic.
6108         (neon_emit_pair_result_insn): New function. Support returning pairs
6109         of vectors via a pointer.
6110         (neon_disambiguate_copy): New function. Set up operands for a
6111         multi-word copy such that registers do not get clobbered.
6112         (arm_expand_builtin): Call arm_expand_neon_builtin if fcode >=
6113         ARM_BUILTIN_NEON_BASE.
6114         (arm_file_start): Set float-abi attribute for NEON.
6115         (arm_vector_mode_supported_p): Enable NEON vector modes.
6116         (arm_mangle_map_entry): New.
6117         (arm_mangle_map): New.
6118         (arm_mangle_vector_type): New.
6119         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_NEON__
6120         when appropriate.
6121         (TARGET_NEON): New macro. Target supports NEON.
6122         (fputype): Add FPUTYPE_NEON.
6123         (UNITS_PER_SIMD_WORD): Define. Allow quad-word registers to be used
6124         for vectorization based on command-line arg.
6125         (NEON_REGNO_OK_FOR_NREGS): Define.
6126         (VALID_NEON_DREG_MODE, VALID_NEON_QREG_MODE)
6127         (VALID_NEON_STRUCT_MODE): Define.
6128         (PRINT_OPERAND_PUNCT_VALID_P): '#' is valid punctuation.
6129         (arm_builtins): Add ARM_BUILTIN_NEON_BASE.
6130         * config/arm/arm.md (VUNSPEC_POOL_16): Insert constant for unspec.
6131         (consttable_16): Add pattern for outputting 16-byte minipool
6132         entries.
6133         (movv2si, movv4hi, movv8qi): Remove blank expanders (redefined in
6134         vec-common.md).
6135         (vec-common.md, neon.md): Include md files.
6136         * config/arm/arm.opt (mvectorize-with-neon-quad): Add option.
6137         * config/arm/constraints.md (constraint "Dn", "Dl", "DL"): Define.
6138         (memory_constraint "Ut", "Un", "Us"): Define.
6139         * config/arm/iwmmxt.md (VMMX, VSHFT): New mode macros.
6140         (MMX_char): New mode attribute.
6141         (addv8qi3, addv4hi3, addv2si3): Remove. Replace with...
6142         (*add<mode>3_iwmmxt): New insn pattern.
6143         (subv8qi3, subv4hi3, subv2si3): Remove. Replace with...
6144         (*sub<mode>3_iwmmxt): New insn pattern.
6145         (mulv4hi3): Rename to...
6146         (*mulv4hi3_iwmmxt): This.
6147         (smaxv8qi3, smaxv4hi3, smaxv2si3, umaxv8qi3, umaxv4hi3)
6148         (umaxv2si3, sminv8qi3, sminv4hi3, sminv2si3, uminv8qi3)
6149         (uminv4hi3, uminv2si3): Remove. Replace with...
6150         (*smax<mode>3_iwmmxt, *umax<mode>3_iwmmxt, *smin<mode>3_iwmmxt)
6151         (*umin<mode>3_iwmmxt): These.
6152         (ashrv4hi3, ashrv2si3, ashrdi3_iwmmxt): Replace with...
6153         (ashr<mode>3_iwmmxt): This new pattern.
6154         (lshrv4hi3, lshrv2si3, lshrdi3_iwmmxt): Replace with...
6155         (lshr<mode>3_iwmmxt): This new pattern.
6156         (ashlv4hi3, ashlv2si3, ashldi3_iwmmxt): Replace with...
6157         (ashl<mode>3_iwmmxt): This new pattern.
6158         * config/arm/neon-docgen.ml: New file. Generate documentation for
6159         intrinsics.
6160         * config/arm/neon-gen.ml: New file. Generate arm_neon.h header.
6161         * config/arm/arm_neon.h: New (autogenerated).
6162         * config/arm/neon-testgen.ml: New file. Generate NEON tests
6163         automatically.
6164         * config/arm/neon.md: New file. Define NEON instructions.
6165         * config/arm/neon.ml: New file. Abstract description of NEON
6166         instructions, used to generate arm_neon.h header, documentation and
6167         tests.
6168         * config/arm/t-arm (MD_INCLUDES): Add vec-common.md, neon.md.
6169         * vec-common.md: New file. Shared parts for iWMMXt and NEON vector
6170         support.
6171         * doc/extend.texi (ARM Built-in Functions): Rename and remove
6172         extraneous comma.
6173         (ARM NEON Intrinsics): New subsection.
6174         * doc/arm-neon-intrinsics.texi: New (autogenerated).
6175
6176 2007-07-25  Danny Smith   <dannysmith@users.sourceforge.net>
6177
6178         * config/i386/i386-protos.h (i386_pe_asm_file_end): Remove
6179         prototype.
6180
6181 2007-07-24  Jan Hubicka  <jh@suse.cz>
6182
6183         * regclass.c (move_table): New type.
6184         (move_cost, may_move_in_cost, may_move_out_cost): Use it.
6185         (init_move_cost): Break out from ...
6186         (init_reg_sets_1): ... here; simplify computation of
6187         have_regs-of_mode and contains_reg_of_mode.
6188         (record_reg_classes): Unswitch internal loops.
6189         (copy_cost): Trigger lazy initialization of move cost
6190         (record_address_regs): Likewise.
6191
6192 2007-07-24  Daniel Berlin  <dberlin@dberlin.org>
6193
6194         * config/darwin.c (darwin_override_options): Don't force on
6195         flag_var_tracking_uninit when no debug info is requested.
6196
6197 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
6198
6199         * cfgloop.c (init_loops_structure): New function.
6200         (flow_loops_find): Create root of the loop tree unconditionally.
6201
6202 2007-07-24  Daniel Jacobowitz  <dan@codesourcery.com>
6203
6204         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use fold_convert.
6205
6206 2007-07-24  Jan Hubicka  <jh@suse.cz>
6207
6208         * caller-save.c: Include ggc.h, gt-caller-save.h
6209         (reg_save_code, reg_restore_code): Rename to ...
6210         (cached_reg_save_code, cached_reg_restore_code): ... those.
6211         (savepat, restpat, test_reg, test_mem, saveinsn, restinsn): New.
6212         (reg_save_code, reg_restore_code): New functions.
6213         (init_caller_save): Do not intialize
6214         reg_save_code/reg_restore_code tables.
6215         * Makefile.in: (gt-caller-save.h): New.
6216
6217 2007-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
6218
6219         * tree-ssa-ifcombine.c (ifcombine_ifandif): Use a ONE operand
6220         with the mode of the original operand instead of
6221         integer_one_node.
6222
6223 2007-07-23  Jan Hubicka  <jH@suse.cz>
6224
6225         * i386.c (ix86_secondary_memory_needed): Break out to...
6226         (inline_secondary_memory_needed): ... here.
6227         (ix86_memory_move_cost): Break out to ...
6228         (inline_memory_move_cost): ... here; add support for IN value of 2 for
6229         maximum of input and output; fix handling of Q_REGS on 64bit.
6230         (ix86_secondary_memory_needed): Microoptimize.
6231
6232 2007-07-23  Sebastian Pop  <sebpop@gmail.com>
6233
6234         * tree-data-ref.c (find_vertex_for_stmt, create_rdg_edge_for_ddr,
6235         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
6236         stmts_from_loop, known_dependences_p, build_rdg): New.
6237         * tree-data-ref.h: Depends on graphds.h.
6238         (rdg_vertex, RDGV_STMT, rdg_dep_type, rdg_edge, RDGE_TYPE): New.
6239         (build_rdg): Declared.
6240         * Makefile.in (TREE_DATA_REF_H): Depends on graphds.h.
6241
6242 2007-07-23  Daniel Berlin  <dberlin@dberlin.org>
6243
6244         * tree-ssa-propagate.c (valid_gimple_expression_p): Match up with
6245         ccp_min_invariant.
6246
6247 2007-07-23  Peter Bergner  <bergner@vnet.ibm.com>
6248             Jakub Jelinek  <jakub@redhat.com>
6249
6250         PR middle-end/PR28690
6251         * optabs.c (expand_binop): (emit_cmp_and_jump_insns): Allow
6252         EQ compares.
6253         * rtlanal.c (commutative_operand_precedence): Prefer both REG_POINTER
6254         and MEM_POINTER operands over REG and MEM operands.
6255         (swap_commutative_operands_p): Change return value to bool.
6256         * rtl.h: Update the corresponding prototype.
6257         * tree-ssa-address.c (gen_addr_rtx): Use simplify_gen_binary
6258         instead of gen_rtx_PLUS.
6259         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Change return
6260         value to bool.  Change function arguments to rtx's and update code
6261         to match.
6262         (simplify_plus_minus): Update the simplify_plus_minus_op_data_cmp
6263         calls to match the new declaration.
6264         * simplify-rtx.c (simplify_associative_operation): Don't
6265         reorder simplify_binary_operation arguments.
6266
6267 2007-07-23  Richard Sandiford  <richard@codesourcery.com>
6268
6269         * config/mips/mips.c (override_options): Use mips_costs to derive
6270         the default branch cost.
6271         * config/mips/mips.h (BRANCH_COST): Use mips_branch_cost rather
6272         than mips_costs.
6273         * config/mips/mips.opt (mbranch-cost=): New option.
6274         * doc/invoke.texi (-mbranch-cost): Document new MIPS option.
6275
6276 2007-07-23  Richard Sandiford  <richard@codesourcery.com>
6277
6278         * config/mips/mips.h (GR_REG_CLASS_P, COP_REG_CLASS_P): Delete.
6279         (SECONDARY_MEMORY_NEEDED): Delete commented-out definition.
6280         * config/mips/mips.c (mips_register_move_cost): Use reg_class_subset_p
6281         instead of GR_REG_CLASS_P and COP_REG_CLASS_P.
6282
6283 2007-07-23  Richard Sandiford  <richard@codesourcery.com>
6284
6285         * config/mips/constraints.md (ks): New constraint.
6286         * config/mips/mips.md (*add<mode>3_sp1, *add<mode>3_sp2): Fold into...
6287         (*add<mode>3_mips16): ...here.
6288
6289 2007-07-21  Uros Bizjak  <ubizjak@gmail.com>
6290
6291         * optabs.h (enum optab_index): Add new OTI_signbit.
6292         (signbit_optab): Define corresponding macro.
6293         (enum insn_code signbit_optab[]): Remove array.
6294         * optabs.c (init_optabs): Initialize signbit_optab using init_optab.
6295         (expand_copysign_absneg): If back end provides signbit insn, use it
6296         instead of bit operations on floating point argument.
6297         * builtins.c (enum insn_code signbit_optab[]): Remove array.
6298         (expand_builtin_signbit): Check signbit_optab->handlers[].insn_code
6299         for availability of signbit insn.
6300
6301         * config/i386/i386.md (signbit<mode>2): New insn pattern to implement
6302         signbitf, signbit and signbitl built-ins as inline x87 intrinsics when
6303         SSE mode is not active.
6304         (isinf<mode>2): Disable for mfpmath=sse,387.
6305
6306 2007-07-22  Ben Elliston  <bje@au.ibm.com>
6307
6308         * regclass.c (invalid_mode_change_p): Attach ATTRIBUTE_UNUSED to
6309         `class' parameter.
6310         * struct-equiv.c (note_local_live): Likewise for `y_regno'.
6311
6312 2007-07-20  Richard Guenther  <rguenther@suse.de>
6313
6314         * tree-cfg.c (verify_expr): COND_EXPRs can have any
6315         integral typed condition.
6316         * tree-ssa.c (useless_type_conversion_p): Do not preserve
6317         booleanness.  Only preserve conversions from a non-base
6318         type to a base type, not in general between types with
6319         different TYPE_MIN_VALUE or TYPE_MAX_VALUE.
6320         * tree.def (COND_EXPR): Document that the condition
6321         can be of any integral type.
6322
6323 2007-07-20  Nigel Stephens  <nigel@mips.com>
6324             Richard Sandiford  <richard@codesourcery.com>
6325
6326         * config/mips/mips.h (mips_dwarf_regno): Declare.
6327         (DBX_REGISTER_NUMBER): Remove redundant brackets.
6328         (HI_REGNUM, LO_REGNUM): Define in an endian-dependent way.
6329         (AC1HI_REGNUM, AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM)
6330         (AC3HI_REGNUM, AC3LO_REGNUM, ACC_HI_REG_P): Delete.
6331         (reg_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
6332         (REG_CLASS_NAMES): Update accordingly.
6333         * config/mips/mips.c (mips_dwarf_regno): New array.
6334         (mips_regno_to_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
6335         (mips_subword): Remove special handling for accumulator registers.
6336         (override_options): Initiailize mips_dwarf_regno.  Remove use
6337         of ACC_HI_REG_P.
6338         (mips_swap_registers): New function.
6339         (mips_conditional_register_usage): Swap accumulator registers
6340         around if TARGET_LITTLE_ENDIAN.
6341         (mips_cannot_change_mode_class): Remove special treatment of ACC_REGS.
6342         * config/mips/constraints.md (h, l): Use the endianness to choose
6343         between MD0_REG and MD1_REG.
6344         * config/mips/mips.md (*mfhilo_<mode>_macc): Use a fixed-string,
6345         alternative-dependent template.
6346
6347 2007-07-20  Richard Sandiford  <richard@codesourcery.com>
6348
6349         * config/arm/arm.md (movsi): Use can_create_pseudo_p instead of
6350         no_new_pseudos.
6351
6352 2007-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
6353
6354         * function.c (thread_prologue_and_epilogue_insns): Fix exit
6355         predecessor fallthru flags.
6356
6357 2007-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
6358
6359         * tree-ssa-loop-niter.c (assert_loop_rolls_lt): Convert the operands
6360         of compare to the same type.
6361         * cfgloopmanip.c (add_loop): Update information about loop exits.
6362         (loop_version): Remove the innermost loop requirement.
6363         * tree-ssa-loop-manip.c (determine_exit_conditions): Convert bounds
6364         to sizetype for pointers.
6365
6366 2007-07-18  H.J. Lu  <hongjiu.lu@intel.com>
6367
6368         * Makefile.in (D32PBIT_FUNCS): Add _sd_to_tf and _tf_to_sd.
6369         (D64PBIT_FUNCS): Add _dd_to_tf and _tf_to_dd.
6370         (D128PBIT_FUNCS): Add _td_to_tf and _tf_to_td.
6371
6372         * config/dfp-bit.c: Empty for TFmode conversions.
6373
6374 2007-07-18  Caroline Tice  <ctice@apple.com>
6375         
6376         * var-tracking.c (find_src_status): Check for  COND_EXEC insns
6377         and handle them correctly; check that src is not NULL before
6378         trying to use it.
6379         (find_src_set_src): Likewise.
6380         
6381 2007-07-18  Bob Wilson  <bob.wilson@acm.org>
6382         
6383         * config/xtensa/xtensa.c (xtensa_expand_mask_and_shift): New.
6384         (struct alignment_context, init_alignment_context): New.
6385         (xtensa_expand_compare_and_swap, xtensa_expand_atomic): New.
6386         * config/xtensa/xtensa.h (XCHAL_HAVE_RELEASE_SYNC): Add default.
6387         (XCHAL_HAVE_S32C1I): Likewise.
6388         (TARGET_RELEASE_SYNC, TARGET_S32C1I): New.
6389         * config/xtensa/xtensa.md (UNSPECV_MEMW): New constant.
6390         (UNSPECV_S32RI, UNSPECV_S32C1I): Likewise.
6391         (ATOMIC, HQI): New macros.
6392         (memory_barrier, *memory_barrier): New.
6393         (sync_lock_releasesi): New.
6394         (sync_compare_and_swapsi, sync_compare_and_swap<mode>): New.
6395         (sync_lock_test_and_set<mode>): New.
6396         (sync_<atomic><mode>): New.
6397         (sync_old_<atomic><mode>, sync_new_<atomic><mode>): New.
6398         * config/xtensa/xtensa-protos.h (xtensa_expand_compare_and_swap): New.
6399         (xtensa_expand_atomic): New.
6400         
6401 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6402
6403         PR target/30652
6404
6405         * builtins.c (expand_builtin_interclass_mathfn): Provide a generic
6406         transformation for builtin ISNORMAL.
6407         (expand_builtin): Handle BUILT_IN_ISNORMAL.
6408         * builtins.def (BUILT_IN_ISNORMAL): New.
6409         * doc/extend.texi: Document isnormal.
6410
6411 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6412
6413         PR target/30652
6414
6415         * builtins.c (expand_builtin_interclass_mathfn): Allow for missing
6416         optabs infrastructure.  Provide generic implementation for
6417         FINITE/ISFINITE.
6418         (expand_builtin): Handle FINITE/ISFINITE.
6419         (fold_builtin_classify): Make ISFINITE canonical instead of FINITE.
6420         (fold_builtin_1): Likewise.
6421
6422         * builtins.def (BUILT_IN_ISFINITE): New.
6423
6424         * doc/extend.texi: Document isfinite.
6425
6426 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6427
6428         PR target/30652
6429         PR middle-end/20558
6430
6431         * builtins.c (expand_builtin_interclass_mathfn): Provide a
6432         generic fallback for isinf.
6433         * c-cppbuiltin.c (builtin_define_float_constants): Move FP max
6434         calculation code ...
6435         * real.c (get_max_float): ... to here.
6436         * real.h (get_max_float): New.
6437
6438 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6439
6440         PR middle-end/32668
6441
6442         * builtin-attrs.def (ATTR_TYPEGENERIC,
6443         ATTR_CONST_NOTHROW_TYPEGENERIC): New.
6444
6445         * builtins.def (BUILT_IN_ISINF, BUILT_IN_ISNAN,
6446         BUILT_IN_ISGREATER, BUILT_IN_ISGREATEREQUAL, BUILT_IN_ISLESS,
6447         BUILT_IN_ISLESSEQUAL, BUILT_IN_ISLESSGREATER,
6448         BUILT_IN_ISUNORDERED): Use ATTR_CONST_NOTHROW_TYPEGENERIC.
6449
6450         * c-common.c (handle_type_generic_attribute): New.
6451         (c_common_attribute_table): Add "type generic".
6452
6453         * c-typeck.c (convert_arguments): Handle "type generic" functions.
6454
6455 2007-07-18  Daniel Berlin  <dberlin@dberlin.org>
6456
6457         * tree-ssa-sccvn.c (try_to_simplify): Use valid_gimple_expression
6458         * tree-ssa-propagate (valid_gimple_expression): Handle ADDR_EXPR
6459         properly.
6460
6461 2007-07-18  Rask Ingemann Lambertsen  <rask@sygehus.dk>
6462
6463         PR target/32808
6464         * config/cris/cris.c (cris_print_index): Don't use XEXP before
6465         checking that the operand is an expression.
6466
6467 2007-07-19  Christoph von Wittich  <Christoph_vW@reactos.org>
6468             Danny Smith  <dannysmith@users.sourceforge.net>
6469
6470         PR/other 30335
6471         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Put
6472         file mapping object in local namespace if Windows version later
6473         than NT4
6474
6475 2007-07-18  Richard Sandiford  <richard@codesourcery.com>
6476
6477         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Declare.
6478         * config/arm/arm.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
6479         arm_cannot_force_const_mem.
6480         (arm_cannot_force_const_mem): New function.
6481         * config/arm/arm.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macro.
6482         (LEGITIMATE_CONSTANT_P): Test arm_cannot_force_const_mem instead
6483         of arm_tls_referenced_p.
6484         * config/arm/arm.md (movsi): Split out-of-section constants when
6485         ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P.
6486         * config/arm/vxworks.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
6487
6488 2007-07-18  Richard Sandiford  <richard@codesourcery.com>
6489
6490         * config/mips/mips.md (clear_cache): Treat the size argument as Pmode.
6491
6492 2007-07-18  Richard Sandiford  <richard@codesourcery.com>
6493
6494         * config/mips/mips.md (*extendqihi2): Convert the destination
6495         to SImode.
6496
6497 2007-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6498
6499         * config/pa/fptr.c: Update license header.
6500         * config/pa/milli64.S: Likewise.
6501
6502 2007-07-17  Nick Clifton  <nickc@redhat.com>
6503
6504         * COPYING_v3: New file.  Contains version 3 of the GNU General
6505         Public License.
6506         * COPYING.LIB_v3: New file.  Contains version 3 of the GNU
6507         Lesser General Public License.
6508         * doc/include/gpl_v3.texi: New file.  Contains version 3 of
6509         the GNU General Public License.
6510
6511 2007-07-17  Zdenek Dvorak  <dvorakz@suse.cz>
6512
6513         PR rtl-optimization/32773
6514         * cfglayout.c (force_one_exit_fallthru): New function.
6515         (cfg_layout_finalize): Use it.
6516
6517 2007-07-16  Richard Guenther  <rguenther@suse.de>
6518             Uros Bizjak  <ubizjak@gmail.com>
6519
6520         * tree-if-conv.c (find_phi_replacement_condition): Unshare "*cond"
6521         before forcing it to gimple operand.
6522
6523 2007-07-16  Sandra Loosemore  <sandra@codesourcery.com>
6524             David Ung  <davidu@mips.com>
6525
6526         * config/mips/mips.h (TUNE_24K): Define.
6527         (TUNE_MACC_CHAINS): Add TUNE_24K.
6528         * config/mips/mips.md: (*mul_acc_si, *mul_sub_si): Change type to
6529         imadd.
6530         * config/mips/74k.md (r74k_int_mult): Split madd/msub to ..
6531         (r74k_int_madd): .. this new reservation.
6532         (define_bypass): Fixed bypasses for r74k_int_madd to use
6533         mips_linked_madd_p.
6534         * config/mips/24k.md (define_bypass): Define new
6535         r24k_int_mul3->r24k_int_madd bypass using mips_linked_madd_p.
6536
6537 2007-07-16  Sandra Loosemore  <sandra@codesourcery.com>
6538             Nigel Stephens  <nigel@mips.com>
6539
6540         * config/mips/mips.md: Include 20kc.md.
6541         * config/mips/20kc.md: New file.
6542         * config/mips/mips.c (mips_rtx_cost_data): Fill in 20Kc costs.
6543         (mips_adjust_cost): Tweak for 20Kc.
6544         (mips_issue_rate): Likewise.
6545         * config/mips/mips.h (TUNE_20KC): Define.
6546
6547 2007-07-16  David Edelsohn  <edelsohn@gnu.og>
6548
6549         * config/rs6000/rs6000.c (struct processor_cost): Add
6550         cache_line_size, l1_cache_lines, and simultaneous_prefetches
6551         fields.
6552         (*_cost): Add cache information.
6553         (rs6000_override_options): Set cache parameters.
6554
6555 2007-07-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6556
6557         PR bootstrap/3456
6558         * config.gcc (mips-sgi-irix[56]*): Enable pthread support.
6559         * doc/install.texi (mips-sgi-irix6): pthread support works now.
6560
6561 2007-07-16  Paul Brook  <paul@codesourcery.com>
6562
6563         PR target/32753
6564         * config/arm/cirrus.md (cirrus_arm_movsi_insn): Remove dead insn.
6565         (cirrus_thumb2_movsi_insn): Ditto.
6566
6567 2007-07-15  Geoffrey Keating  <geoffk@apple.com>
6568
6569         * config/rs6000/darwin-fallback.c (interpret_libc): Change
6570         CR2_REGNO to R_CR2.
6571
6572 2007-07-15  Andrew Haley  <aph@redhat.com>
6573
6574         * unwind-sjlj.c (_Unwind_GetIPInfo): Check for context->fc != NULL
6575         before looking in the context.
6576
6577 2007-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6578
6579         PR middle-end/32398
6580         PR middle-end/32769
6581         * pa-protos.h (pa_eh_return_handler_rtx): Declare.
6582         * pa.c (pa_extra_live_on_entry, rp_saved): Declare.
6583         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6584         (pa_output_function_prologue): Use rp_saved and
6585         current_function_is_leaf to generate .CALLINFO statement.
6586         (hppa_expand_prologue): Set rp_saved.
6587         (hppa_expand_epilogue): Use rp_saved.
6588         (pa_extra_live_on_entry, pa_eh_return_handler_rtx): New functions.
6589         * pa.h (EH_RETURN_HANDLER_RTX): Use pa_eh_return_handler_rtx.
6590
6591 2007-07-14  Dirk Mueller  <dmueller@suse.de>
6592
6593         * omega.c (coalesce): Fix memory leak on early exit.
6594         * matrix-reorg.c (check_allocation_function): Likewise.
6595         * tree-vect-transform.c (vect_get_new_vect_var): free result
6596         of concat().
6597         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
6598         pass pointer to edge vector
6599         (partition_hot_cold_basic_blocks): Fix memory leak.
6600         * collect2.c (prefix_from_string): Free temporary storage.
6601         * reload1.c (fixup_abnormal_edges): Free sbitmap.
6602
6603 2007-07-14  Kaz Kojima  <kkojima@gcc.gnu.org>
6604
6605         * config/sh/sh.h (DO_GLOBAL_CTORS_BODY): Add void to prototype.
6606         (DO_GLOBAL_DTORS_BODY): Likewise.
6607
6608 2007-07-14  Sandra Loosemore  <sandra@codesourcery.com>
6609             Nigel Stephens  <nigel@mips.com>
6610
6611         * config/mips/mips.c (mips_classify_symbol): Don't return
6612         SYMBOL_SMALL_DATA for constant pool addresses if
6613         TARGET_EMBEDDED_DATA is true.
6614
6615 2007-07-14  Uros Bizjak  <ubizjak@gmail.com>
6616
6617         * config/i386/i386.c (init_mmx_sse_builtins): Define all builtins
6618         except __builtin_ia32_emms, __builtin_ia32_ldmxcsr,
6619         __builtin_ia32_stmxcsr, __builtin_ia32_maskmovq, __builtin_ia32_loadups,
6620         __builtin_ia32_storeups, __builtin_ia32_loadhps, __builtin_ia32_loadlps,
6621         __builtin_ia32_storehps, __builtin_ia32_storelps,
6622         __builtin_ia32_movntps, __builtin_ia32_movntq, __builtin_ia32_sfence,
6623         __builtin_ia32_femms, __builtin_ia32_maskmovdqu, __builtin_ia32_loadupd,
6624         __builtin_ia32_storeupd, __builtin_ia32_loadhpd, __builtin_ia32_loadlpd,
6625         __builtin_ia32_movnti, __builtin_ia32_movntpd, __builtin_ia32_movntdq,
6626         __builtin_ia32_clflush, __builtin_ia32_lfence, __builtin_ia32_mfence,
6627         __builtin_ia32_loaddqu, __builtin_ia32_storedqu, __builtin_ia32_monitor,
6628         __builtin_ia32_mwait, __builtin_ia32_lddqu, __builtin_ia32_movntdqa,
6629         __builtin_ia32_movntsd and __builtin_ia32_movntss as const builtins
6630         using def_builtin_const.
6631
6632 2007-07-14  Eric Botcazou  <ebotcazou@adacore.com>
6633
6634         PR tree-optimization/32705
6635         * tree-ssa-sccvn.c (set_ssa_val_to): Accept VN_TOP as value number.
6636         (simplify_binary_expression): Use SSA_VAL consistently.
6637
6638 2007-07-13  David Edelsohn  <edelsohn@gnu.org>
6639
6640         * config/rs6000/spe.md (SPE_ACC_REGNO): Delete definition.
6641         (SPEFSCR_REGNO): Delete definition.
6642         * config/rs6000/rs6000.c: LINK_REGISTER_REGNUM -> LR_REGNO.
6643         COUNT_REGISTER_REGNUM -> CTR_REGNO.
6644         * config/rs6000/rs6000.h: Do not define *_REGNO.
6645         LINK_REGISTER_REGNUM -> LR_REGNO.
6646         COUNT_REGISTER_REGNUM -> CTR_REGNO.
6647         * config/rs6000/predicates.md: LINK_REGISTER_REGNUM ->  LR_REGNO.
6648         COUNT_REGISTER_REGNUM -> CTR_REGNO.
6649         * config/rs6000/linux-unwind.h: Define R_LR, R_CR2, R_VR0,
6650         R_VRSAVE, R_VSCR. Use them.
6651         * config/rs6000/darwin-fallback.c: Define R_LR, R_CTR, R_CR2,
6652         R_XER, R_VR0, R_VRSAVE, R_VSCR, R_SPEFSCR.  Use them.
6653         * config/rs6000/rs6000.md: Define REGNO constants.  Use them.
6654         * config/rs6000/aix.h: Define R_LR.  Use it.
6655         
6656 2007-07-13  Caroline Tice  <ctice@apple.com>
6657         
6658         * toplev.c (process_options): Turn flag_var_tracking_uninit off when
6659         flag_var_tracking is explicitly turned off (i.e. when variable
6660         tracking is not feasible); otherwise, turn flag_var_tracking on when
6661         flag_var_tracking_uninit is on.
6662         * rtl.def (VAR_LOCATION): Add a new integer subfield to VAR_LOCATION
6663         note definitions, to allow recording of initialization status in the
6664         notes.
6665         * dwarf2out.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6666         (add_var_loc_to_decl): Add comparison of NOTE_VAR_LOCATION_STATUS to
6667         determine if two note locations are equal.
6668         (output_loc_list): Don't output list entries whose start & end labels
6669         are the same.
6670         (reg_loc_descriptor): Add parameter for initialization status; pass it
6671         to other loc descriptor functions.
6672         (one_reg_loc_descriptor): Add parameter for initialization status;
6673         check its value and add DW_OP_GNU_uninit to returned loc descr if
6674         appropriate.
6675         (multiple_reg_loc_descriptor): Add parameter for initialization
6676         status;
6677         pass init status argument to other loc descriptor functions; check
6678         value of intialization parameter and add DW_OP_GNU_uninit to returned
6679         loc descr if appropriate.
6680         (based_loc_descr): Add parameter for initialization status; add new
6681         variable for return value; check value of initialization parameter and
6682         add DW_OP_GNU_uninit to returned loc descr if appropriate.
6683         (concatn_mem_loc_descriptor): Add parameter for initialization status;
6684         pass init status argument to other loc descriptor functions; check
6685         value of intialization parameter and add DW_OP_GNU_uninit to returned
6686         loc descr if appropriate.
6687         (mem_loc_descriptor): Likewise.
6688         (concat_loc_descriptor): Likewise.
6689         (concatn_loc_descriptor): Likewise.
6690         (loc_descriptor): Add parameter for initialization status; pass it as
6691         argument to other loc descriptor function calls.
6692         (loc_descriptor_from_tree_1): Add appropriate initialization status
6693         to loc descriptor function calls.
6694         (add_location_or_const_value_attribute): Get initialization status
6695         from VAR_LOCATION note; add initialization status to loc descriptor
6696         function calls.
6697         * dwarf2.h (enum dwarf_location_atom): New op, DW_OP_GNU_uninit.
6698         * print-rtl.c (print_rtx): When printing a VAR_LOCATION note, if
6699         status is uninitialized, add "[uninint]" to output.
6700         * common.opt (fvar-tracking-uninit): New option, similar to
6701         fvar-tracking, to turn on tracking of uninitialized variables; creates
6702         a new global flag, flag_var_tracking_uninit.
6703         * rtl.h (NOTE_VAR_LOCATION_STATUS): New macro for accessing new field.
6704         (enum var_init_status): New type, for var initialization status field.
6705         * var-tracking.c (struct location_chain_def): Two new fields, init,
6706         for initialization status, and set_src for the assignment value expr.
6707         (unshare_variable): New parameter for initialization status;
6708         initialize new init and set_src fields.
6709         (var_reg_set): New parameters for initialization status and value;
6710         pass them to set_variable_part.
6711         (var_mem_set): Likewise.
6712         (get_init_value): New function.
6713         (var_reg_delete_and_set): New initialization status & value
6714         parameters; add call to get_init_value if status is unknown; pass new
6715         parameters to clobber_variable_part and var_reg_set.
6716         (var_mem_delete_and_set): Likewise.
6717         (var_reg_delete): Pass null set_src value to clobber_variable_part.
6718         (var_mem_delete): Likewise.
6719         (variable_union): Pass status to unshare_variable; initialize new init
6720         and set_src fields. If flag_var_tracking_uninit is not set, force
6721         status to initialized.
6722         (add_stores): Store insn, rather than NEXT_INSN(insn), so it can be
6723         used later to get the set_src value.
6724         (find_src_status): New function.
6725         (find_src_set_src): New function.
6726         (compute_bb_dataflow): Pass init status to calls to var_reg_set,
6727         var_mem_set, var_reg_delete_and_set and var_mem_delete_and_set; for
6728         MO_SET, get set_src value and pass it to var_reg_delete_and_set
6729         and var_mem_delete_and_set.
6730         (dump_variable): Print out "[uninit]" if appropriate.
6731         (set_variable_part): Add new initialization and set_src parameters;
6732         pass status to unshare_variable; set node->init and node- >set_src
6733         fields and modify slot in hash table appropriately; save the init and
6734         set_src values if appropriate and assign to the new node.
6735         (clobber_variable_part): New set_src parameter; if two nodes have
6736         same variable and same location but different set_src (assignment)
6737         values, clobber old node.
6738         (delete_variable_part): Pass init status to unshare_variable.
6739         (emit_note_insn_var_location): Add initialized var; assign var's init
6740         status to new 'initialized'; pass new init status field to calls to
6741         gen_rtx_VAR_LOCATION. If flag_var_tracking_uninit is not set, force
6742         status to initialized.
6743         (emit_notes_in_bb): Pass initialization status to calls to
6744         var_reg_set, var_mem_set, var_reg_delete_and_set and
6745         var_mem_delete_and_set; for MO_SET, get set_src value and pass it to
6746         var_reg_delete_and_set and var_mem_delete_and_set; call
6747         emit_notes_for_changes on NEXT_INSN(insn) rather than on insn, to
6748         make up for change in add_stores.
6749         (vt_add_function_parameters): Add status to calls to
6750         set_variable_part.
6751         * config/darwin.c (darwin_override_options): Turn on uninitialized
6752         tracking automatically, if var_tracking is on and the system is
6753         10.5 or higher.
6754         
6755 2007-07-13  Sa Liu  <saliu@de.ibm.com>
6756
6757         * config.gcc: Add options for arch and tune on SPU.
6758         * config/spu/predicates.md: Add constant operands 0 and 1.
6759         * config/spu/spu-builtins.def: Add builtins for double precision 
6760         floating point comparison: si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt, 
6761         si_dftsv, spu_cmpeq_13, spu_cmpabseq_1, spu_cmpgt_13, spu_cmpabsgt_1,
6762         spu_testsv.
6763         * config/spu/spu-c.c: Define __SPU_EDP__ when builtins invoked with 
6764         a CELLEDP target.
6765         * config/spu/spu-protos.h: Add new function prototypes. 
6766         * config/spu/spu.c (spu_override_options): Check options -march and
6767         -mtune.
6768         (spu_comp_icode): Add comparison code for DFmode and vector mode.
6769         (spu_emit_branch_or_set): Use the new code for DFmode and vector 
6770         mode comparison.
6771         (spu_const_from_int): New.  Create a vector constant from 4 ints.
6772         (get_vec_cmp_insn): New.  Get insn index of vector compare instruction.
6773         (spu_emit_vector_compare): New.  Emit vector compare.
6774         (spu_emit_vector_cond_expr): New.  Emit vector conditional expression.
6775         * config/spu/spu.h: Add options -march and -mtune.  Define processor
6776         types PROCESSOR_CELL and PROCESSOR_CELLEDP.  Define macro
6777         CANONICALIZE_COMPARISON.
6778         * config/spu/spu.md: Add new insns for double precision compare
6779         and double precision vector compare.  Add vcond and smax/smin patterns
6780         to enable DFmode vector conditional expression.
6781         * config/spu/spu.opt: Add options -march and -mtune.
6782         * config/spu/spu_internals.h: Add builtins for CELLEDP target:
6783         si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt, si_dftsv.  Add builtin for
6784         both CELL and CELLEDP targets: spu_testsv.
6785         * config/spu/spu_intrinsics.h: Add flag mnemonics for test special 
6786         values.
6787
6788 2007-07-13  Richard Guenther  <rguenther@suse.de>
6789
6790         PR tree-optimization/32721
6791         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Preserve
6792         TREE_THIS_VOLATILE on the folded reference.
6793         * tree-ssa-operands.c (get_expr_operands): Set has_volatile_ops
6794         if the array reference has TREE_THIS_VOLATILE set.
6795
6796 2007-07-13  H.J. Lu  <hongjiu.lu@intel.com>
6797
6798         PR other/32188
6799         * doc/libgcc.texi: Update DFP intrinsics for DPD and BID.
6800
6801 2007-07-13  Andreas Schwab  <schwab@suse.de>
6802
6803         * gengtype-lex.l: Allow declarations to be indented.
6804
6805 2007-07-12  Geoffrey Keating  <geoffk@apple.com>
6806
6807         * ginclude/tgmath.h: New.
6808         * config.gcc: Use GCC's tgmath.h on non-glibc systems.
6809         * doc/sourcebuild.texi (Headers): Document use_gcc_tgmath.
6810         * configure.ac (STMP_FIXPROTO): Honor use_gcc_tgmath.
6811         * configure: Regenerate.
6812
6813 2007-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
6814
6815         * config/sh/linux-unwind.h (sh_fallback_frame_state): Use
6816         correct index when setting register save state for xd
6817         registers.
6818
6819 2007-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
6820
6821         * config/sh/sh.c (mark_use): Remove.
6822
6823 2007-07-12  Paul Brook  <paul@codesourcery.com>
6824
6825         * config/arm/arm.c (thumb1_compute_save_reg_mask): Make sure scratch
6826         reg does not overlap return value.
6827
6828 2007-07-12  Daniel Berlin  <dberlin@dberlin.org>
6829
6830         * tree-ssa-pre.c (get_expression_vuses): Move out side-effect.
6831         (set_expression_vuses): Ditto.
6832         (init_pre): Initialize expression_vuses.
6833
6834 2007-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
6835
6836         * config/i386/sse.md (storentdf, storentsf): New.
6837
6838 2007-07-12  Geoffrey Keating  <geoffk@apple.com>
6839
6840         * builtins.c (get_pointer_alignment): Honor DECL_ALIGN on a
6841         FUNCTION_DECL.
6842         * tree.c (build_decl_stat): Move code from here...
6843         (make_node_stat): ... to here.  Don't uselessly clear DECL_USER_ALIGN.
6844         (expr_align): Honor DECL_ALIGN on a FUNCTION_DECL.  Add comment
6845         about using DECL_ALIGN of LABEL_DECL and CONST_DECL.
6846         * tree.h (DECL_USER_ALIGN): Fix misplaced comment.
6847         * varasm.c (assemble_start_function): Use DECL_ALIGN instead of
6848         FUNCTION_BOUNDARY.
6849
6850 2007-07-12  Dorit Nuzman  <dorit@il.ibm.com>
6851             Devang Patel  <dpatel@apple.com>
6852
6853         PR tree-optimization/25413
6854         * targhooks.c (default_builtin_vector_alignment_reachable): New.
6855         * targhooks.h (default_builtin_vector_alignment_reachable): New.
6856         * tree.h (contains_packed_reference): New.
6857         * expr.c (contains_packed_reference): New.
6858         * tree-vect-analyze.c (vector_alignment_reachable_p): New.
6859         (vect_enhance_data_refs_alignment): Call
6860         vector_alignment_reachable_p.
6861         * target.h (vector_alignment_reachable): New builtin.
6862         * target-def.h (TARGET_VECTOR_ALIGNMENT_REACHABLE): New.
6863         * config/rs6000/rs6000.c (rs6000_vector_alignment_reachable): New.
6864         (TARGET_VECTOR_ALIGNMENT_REACHABLE): Define.
6865
6866 2007-07-12  Dorit Nuzman  <dorit@il.ibm.com>
6867
6868         * target.h (builtin_vectorization_cost): Add new target builtin.
6869         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
6870         * tree-vectorizer.h (TARG_SCALAR_STMT_COST): New.
6871         (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST): New.
6872         * tree-vect-analyze.c (vect_analyze_slp_instance): Initisliaze
6873         uninitialized variables.
6874         * tree-vect-transform.c (cost_for_stmt): New function.
6875         (vect_estimate_min_profitable_iters): Call cost_for_stmt instead of
6876         using cost 1 for all scalar stmts. Be less conservative when
6877         estimating the number of prologue/epulogue iterations. Call
6878         targetm.vectorize.builtin_vectorization_cost. Return
6879         min_profitable_iters-1.
6880         (vect_model_reduction_cost): Use TARG_SCALAR_TO_VEC_COST for
6881         initialization cost instead of TARG_VEC_STMT_COST. Use
6882         TARG_VEC_TO_SCALAR_COST instead of TARG_VEC_STMT_COST for reduction
6883         epilogue code. Fix epilogue cost computation.
6884         * config/spu/spu.c (spu_builtin_vectorization_cost): New.
6885         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Implement.
6886         * config/spu/spu.h (TARG_COND_BRANCH_COST, TARG_SCALAR_STMT_COST):
6887         (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST, TARG_VEC_STMT_COST):
6888         (TARG_VEC_TO_SCALAR_COST, TARG_SCALAR_TO_VEC, TARG_VEC_LOAD_COST):
6889         (TARG_VEC_UNALIGNED_LOAD_COST, TARG_VEC_STORE_COST): Define.
6890
6891 2007-07-12  Richard Guenther  <rguenther@suse.de>
6892
6893         * gimplify.c (gimplify_conversion): Make sure that the result
6894         from maybe_fold_offset_to_reference is trivially convertible
6895         to the desired type before doing the simplification.
6896         (gimplify_expr): Likewise.
6897         * fold-const.c (fold_binary): Use the correct types for
6898         building the simplified expression.
6899
6900 2007-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
6901
6902         PR rtl-optimization/32729
6903         * cfghooks.c (can_duplicate_block_p): Do not forbid duplicating blocks
6904         that fallthru to exit.
6905
6906 2007-07-12  Kaz Kojima  <kkojima@gcc.gnu.org>
6907
6908         * config/sh/sh.md (symGOTOFF2reg): Add missing parenthesis.
6909         (symDTPOFF2reg): Likewise.
6910
6911 2007-07-11  Daniel Berlin  <dberlin@dberlin.org>
6912
6913         PR tree-optimization/32663
6914         
6915         * tree.h (VALUE_HANDLE_VUSES): Remove.
6916         (struct tree_value_handle): Remove vuses.
6917
6918         * tree-vn.c (create_value_handle_for_expr): Don't set
6919         VALUE_HANDLE_VUSES. 
6920
6921         * tree-ssa-pre.c (expression_vuses): New.
6922         (alloc_expression_id): Set up expression_vuses.
6923         (get_expression_vuses): New.
6924         (set_expression_vuses): Ditto.
6925         (clear_expression_ids): Modify for expression_vuses.
6926         (phi_translate_1): Ditto.
6927         (phi_translate_set): Ditto.
6928         (value_dies_in_block_x): Ditto
6929         (valid_in_sets): Ditto.
6930         (add_to_sets): Ditto.
6931         (find_existing_value_expr): Ditto.
6932         (create_value_handle_for_expr): Ditto.
6933         (make_values_for_stmt): Ditto.
6934         (vuse_equiv): Remove.
6935
6936 2007-07-11  Alexandre Oliva  <aoliva@redhat.com>
6937
6938         * Makefile.in (mostlyclean): Remove object files.
6939
6940 2007-07-11  Kenneth Zadeck <zadeck@naturalbridge.com>
6941
6942         * toplev.c (no_new_pseudos): Deleted.
6943         * rtl.h (no_new_pseudos): Deleted.
6944         * tree-pass.h (pass_no_new_pseudos): Deleted. 
6945         * passes.c (pass_no_new_pseudos): Deleted.
6946         * final.c (rest_of_clean_state): Removed no_new_pseudos.
6947         (rest_of_no_new_pseudos, pass_no_new_pseudos): Deleted.
6948         * struct-equiv.c (rtx_equiv_p): Replaced no_new_pseudos with 
6949         reload_completed.
6950         * cfgcleanup.c (try_crossjump_to_edge): Ditto. 
6951         * rtlhooks.c (gen_lowpart_general): Ditto.
6952         * optabs.c (prepare_operand): Ditto.
6953         * mode-switching.c (rest_of_handle_mode_switching): Deleted set of
6954         no_new_pseudos.
6955         * modulo-sched.c (rest_of_handle_sms): Ditto.
6956         * see.c (rest_of_handle_see): Ditto.
6957         * ifcvt.c (if_convert): Ditto.
6958         (gate_handle_if_after_combine): Replaced no_new_pseudos with 
6959         reload_completed.
6960         * init-regs.c (gate_initialize_regs): Deleted set of
6961         no_new_pseudos.
6962         * lower-subreg.c (decompose_multiword_subregs): Ditto. 
6963         * bb-reorder.c (rest_of_handle_partition_blocks): Ditto.
6964         * doc/md.texi: Changed no_new_pseudos to can_create_pseudo_p.
6965         
6966 2007-07-11  Uros Bizjak  <ubizjak@gmail.com>
6967
6968         PR target/32661
6969         * config/i386/sse.md (*sse2_storeq_rex64): Handle 64bit mem->reg moves.
6970         (*vec_extractv2di_1_sse2): Disable for TARGET_64BIT.
6971         (*vec_extractv2di_1_rex64): New insn pattern.
6972
6973 2007-07-11  David Daney  <ddaney@avtrex.com>
6974
6975         * config/mips/linux-unwind.h (mips_fallback_frame_state): Rewrite
6976         return address calculation.  Substitute DWARF_ALT_FRAME_RETURN_COLUMN
6977         for SIGNAL_UNWIND_RETURN_COLUMN.
6978         * config/mips/mips.h (SIGNAL_UNWIND_RETURN_COLUMN): Remove.
6979         (DWARF_FRAME_REGNUM): Rewrite.
6980         (DWARF_ALT_FRAME_RETURN_COLUMN) Define.
6981
6982 2007-07-11  Nick Clifton  <nickc@redhat.com>
6983
6984         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Revert previous
6985         delta and use gen_int_mode in place of GET_INT instead.
6986
6987 2007-07-11  Uros Bizjak  <ubizjak@gmail.com>
6988
6989         * reg-stack.c (struct tree_opt_pass pass_stack_regs): Nullify name
6990         and letter field.
6991
6992 2007-07-11  Douglas Gregor  <doug.gregor@gmail.com>
6993
6994         * params.def (PARAM_VERIFY_CANONICAL_TYPES): Remove.
6995         (PARAM_USE_CANONICAL_TYPES): New; decides whether to use canonical 
6996         types or not.
6997         * params.h (VERIFY_CANONICAL_TYPES): Remove.
6998         (USE_CANONICAL_TYPES): New.
6999         * doc/invoke.texi (verify-canonical-types): Remove.
7000         (use-canonical-types): Add.
7001
7002 2007-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
7003
7004         * config/spu/spu.c (spu_optimization_options): Remove setting of
7005         parameter PARAM_MAX_COMPLETELY_PEEL_TIMES.
7006         (spu_override_options): Move it here.
7007
7008 2007-07-11  Richard Sandiford  <richard@codesourcery.com>
7009
7010         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle -m4ksc and -m4ksd.
7011         * config/mips/mips.c (mips_cpu_info_table): Mention
7012         MIPS_ISA_LEVEL_SPEC in the comment.
7013
7014 2007-07-11  Eric Botcazou  <ebotcazou@adacore.com>
7015
7016         PR tree-optimization/32713
7017         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle REAL_CST.
7018
7019 2007-07-11  Paolo Carlini  <pcarlini@suse.de>
7020
7021         PR middle-end/30482
7022         * c-opts.c (c_common_post_options): Do not change flag_complex_method
7023         conditional to flag_isoc99.
7024         (c_common_init_options): Do it here, unconditionally.
7025
7026 2007-07-11  Eric Botcazou  <ebotcazou@adacore.com>
7027
7028         PR tree-optimization/32589
7029         * doc/tree-ssa.texi (Rough GIMPLE Grammar): Add missing rule.
7030         * tree-gimple.c (is_gimple_min_invariant): Clarify head comment.
7031         * tree-ssa-propagate.c (valid_gimple_expression_p): New
7032         predicate, extracted from...
7033         (set_rhs): ...here.  Call it for the expression on entry.
7034         * tree-ssa-propagate.h (valid_gimple_expression_p): Declare.
7035         * tree-ssa-sccvn.c: Include tree-ssa-propagate.h.
7036         (simplify_binary_expression): Use valid_gimple_expression_p
7037         to validate the simplification.
7038         * Makefile.in (tree-ssa-sccvn.o): Depends on tree-ssa-propagate.h.
7039
7040 2007-07-11  Danny Smith  <dannysmith@users.sourceforge.net>
7041
7042         * config/i386/cygming.h (PREFERRED_DEBUGGING_TYPE): Define to
7043         DWARF2_DEBUG on 32 bit target too.
7044         (DWARF2_UNWIND_INFO): Reorganize 64-bit vs 32-bit definition. 
7045
7046 2007-07-11  Nick Clifton  <nickc@redhat.com>
7047
7048         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Provide alternative
7049         version for 64-bit hosts.
7050
7051 2007-07-10  David Daney  <ddaney@avtrex.com>
7052
7053         * config/mips/mips.h (ISA_HAS_SYNCI): New target capability
7054         predicate.
7055         (INITIALIZE_TRAMPOLINE): Emit clear_cache insn instead of  library
7056         call.
7057         * config/mips/mips.c (mips_expand_synci_loop): New function.
7058         * config/mips/mips.md (UNSPEC_CLEAR_HAZARD): New constant.
7059         (UNSPEC_RDHWR): Same.
7060         (UNSPEC_SYNCI): Same.
7061         (UNSPEC_SYNC): Same.
7062         (clear_cache): New expand.
7063         (sync): New insn.
7064         (synci): Same.
7065         (rdhwr): Same.
7066         (clear_hazard): Same.
7067         * config/mips/mips-protos.h (mips_expand_synci_loop): Declare
7068         function.
7069         * testsuite/gcc.target/mips/clear-cache-1.c: New test.
7070         * testsuite/gcc.target/mips/clear-cache-2.c: New test.
7071
7072 2007-07-10  Ian Lance Taylor  <iant@google.com>
7073
7074         * emit-rtl.c (gen_reg_rtx): Check can_create_pseudo_p rather than
7075         no_new_pseudos.
7076
7077 2007-07-10  David Daney  <ddaney@avtrex.com>
7078
7079         * builtins.def (BUILT_IN_CLEAR_CACHE): New builtin.
7080         * builtins.c (expand_builtin___clear_cache): New function.
7081         (expand_builtin): Call expand_builtin___clear_cache for
7082         BUILT_IN_CLEAR_CACHE case.
7083         * doc/extend.texi (__builtin___clear_cache): Document new builtin.
7084         * doc/md.texi (clear_cache): Document new instruction pattern.
7085         * testsuite/gcc.dg/builtins-64.c: New test.
7086
7087 2007-07-11  Hans-Peter Nilsson  <hp@axis.com>
7088
7089         * config/cris/cris.md ("movsi"): Fix typo in last change.
7090
7091 2007-07-09  Geoffrey Keating  <geoffk@apple.com>
7092
7093         PR 32617
7094         * c-common.c (c_alignof_expr): Look at DECL_ALIGN of
7095         FUNCTION_DECLs.
7096         (handle_aligned_attribute): Allow use on FUNCTION_DECLs.
7097         * varasm.c (assemble_start_function): Honor DECL_ALIGN
7098         for FUNCTION_DECLs.  Don't use align_functions_log if
7099         DECL_USER_ALIGN.
7100         * print-tree.c (print_node): Print DECL_ALIGN and DECL_USER_ALIGN
7101         even for FUNCTION_DECLs.
7102         * c-decl.c (merge_decls): Propagate DECL_ALIGN even for
7103         FUNCTION_DECLs.
7104         * tree.h (DECL_ALIGN): Update for new location of 'align'.
7105         (DECL_FUNCTION_CODE): Update for new location and name of
7106         'function_code'.
7107         (DECL_OFFSET_ALIGN): Update for new location of 'off_align'.
7108         (struct tree_decl_common): Move 'align' and 'off_align' out
7109         of union, ensure they're still on a 32-bit boundary.  Remove
7110         other fields in union 'u1'.
7111         (struct tree_function_decl): Add field 'function_code' replacing
7112         'u1.f' in tree_decl_common.
7113         * tree.c (build_decl_stat): Set initial value of DECL_ALIGN.
7114         * doc/extend.texi (Function Attributes): Add 'aligned' attribute.
7115         (Variable Attributes): Cross-reference 'aligned' attribute
7116         to Function Attributes.
7117         * flags.h (force_align_functions_log): Delete.
7118         * toplev.c (force_align_functions_log): Delete.
7119
7120 2007-07-10  Uros Bizjak  <ubizjak@gmail.com>
7121
7122         PR target/32708
7123         * config/i386/sse.md (vec_concatv2di): Disable for TARGET_64BIT.
7124         (*vec_concatv2di_rex): New insn pattern.
7125
7126 2007-07-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7127
7128         PR target/32538
7129         * config/mips/iris6.h (LIBGCC_SPEC): Add libm.
7130
7131 2007-07-10  Ian Lance Taylor  <iant@google.com>
7132
7133         Replace no_new_pseudos in backends.
7134         * rtl.h (can_create_pseudo_p): Define.
7135         * config/darwin.c (machopic_indirect_data_reference): Use
7136         can_create_pseudo_p () instead of no_new_pseudos.
7137         (machopic_indirect_data_reference): Likewise.
7138         (machopic_legitimize_pic_address): Likewise.
7139         * config/alpha/alpha.c (alpha_legitimize_address): Likewise.
7140         (alpha_emit_set_const_1): Likewise.
7141         (alpha_emit_set_const): Likewise.
7142         (alpha_emit_conditional_move): Likewise.
7143         (alpha_split_conditional_move): Likewise.
7144         * config/alpha/alpha.md (various splitters): Likewise.
7145         (movti): Likewise.
7146         * config/arm/arm.c (legitimize_pic_address): Likewise.
7147         (arm_load_pic_register): Likewise.
7148         * config/arm/arm.md (addsi3, subsi3, andsi3, iorsi3): Likewise.
7149         (movdi, movsi, movhi, movqi, movsf, movdf): Likewise.
7150         * config/bfin/bfin.c (legitimize_pic_address): Likewise.
7151         * config/cris/cris.c (cris_expand_pic_call_address): Likewise.
7152         * config/cris/cris.md (movsi): Likewise.
7153         * config/frv/frv.md (symGOT2reg_hilo): Likewise.
7154         (symGOTOFF2reg_hilo): Likewise.
7155         (symGPREL2reg, symGPREL2reg_hilo): Likewise.
7156         * config/h8300/h8300.md (insv, extzv): Likewise.
7157         * config/i386/i386.c (ix86_expand_move): Likewise.
7158         (ix86_expand_vector_move): Likewise.
7159         (ix86_prepare_fp_compare_args): Likewise.
7160         (ix86_expand_carry_flag_compare): Likewise.
7161         * config/i386/i386.md (tls_dynamic_gnu2_32): Likewise.
7162         (tls_dynamic_gnu2_combine_32): Likewise.
7163         (tls_dynamic_gnu2_64, tls_dynamic_gnu2_combine_64): Likewise.
7164         * config/ia64/ia64.c (ia64_expand_move): Likewise.
7165         (ia64_expand_movxf_movrf): Likewise.
7166         * config/m32c/m32c.c (m32c_prepare_move): Likewise.
7167         (m32c_split_move): Likewise.
7168         (m32c_expand_insv): Likewise.
7169         * config/m68k/m68k.md (movsi): Likewise.
7170         * config/mips/mips.c (mips_force_temporary): Likewise.
7171         (mips_split_symbol): Likewise.
7172         (mips_move_integer): Likewise.
7173         (mips_legitimize_const_move): Likewise.
7174         * config/mn10300/mn10300.md (movsi): Likewise.
7175         * config/pa/pa.c (emit_move_sequence): Likewise.
7176         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
7177         (rs6000_got_register): Likewise.
7178         (create_TOC_reference): Likewise.
7179         (rs6000_machopic_legitimize_pic_address): Likewise.
7180         * config/rs6000/rs6000.md (add<mode>3): Likewise.
7181         (various splitters): Likewise.
7182         (iorsi3, xorsi3, iordi3, xordi3): Likewise.
7183         (movsi_got): Likewise.
7184         * config/s390/s390.c (emit_symbolic_move): Likewise.
7185         * config/s390/s390.md (movhi, movqi): Likewise.
7186         (load_multiple, store_multiple): Likewise.
7187         * config/score/score.c (score_force_temporary): Likewise.
7188         * config/sh/sh.c (prepare_move_operands): Likewise.
7189         (prepare_cbranch_operands): Likewise.
7190         (emit_fpu_switch): Likewise.
7191         (fpscr_set_from_mem): Likewise.
7192         * config/sh/sh.md (movdicc, movsicc, movsicc_umin): Likewise.
7193         (adddi3, subsi3): Likewise.
7194         (various splitters): Likewise.
7195         (divsi_inv_fp_combine): Likewise.
7196         (symGOT_load, symGOTOFF2reg, symDTPOFF2reg): Likewise.
7197         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu): Likewise.
7198         (sne): Likewise.
7199         * config/sh/predicates.md (xor_operand): Likewise.
7200         * config/sparc/sparc.c (legitimize_tls_address): Likewise.
7201         * config/sparc/sparc.md (movsi_pic_label_ref): Likewise.
7202         (movdi_pic_label_ref): Likewise.
7203         * config/spu/spu.c (spu_split_immediate): Likewise.
7204         * config/alpha/alpha.md (various splitters): Remove test
7205         !no_new_pseudos || reload_completed.
7206         * config/ia64/ia64.c (ia64_output_mi_thunk): Don't set
7207         no_new_pseudos.
7208         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
7209         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
7210         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
7211         * config/score/score.c (th_output_mi_thunk): Likewise.
7212         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7213         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7214
7215 2007-07-10  Kaz Kojima  <kkojima@gcc.gnu.org>
7216
7217         PR rtl-optimization/32664
7218         * mode-switching.c (create_pre_exit): Skip barrier insns.
7219
7220 2007-07-10  Zdenek Dvorak  <dvorakz@suse.cz>
7221
7222         * tree-scalar-evolution.c (scev_const_prop): Add arguments to
7223         force_gimple_operand_bsi.
7224         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr,
7225         rewrite_use_compare): Ditto.
7226         * tree-ssa-address.c (gimplify_mem_ref_parts, create_mem_ref):
7227         Ditto.
7228         * tree-ssa-ifcombine.c (ifcombine_ifandif): Ditto.
7229         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
7230         * lambda-code.c (replace_uses_equiv_to_x_with_y): Ditto.
7231         * tree-profile.c (prepare_instrumented_value,
7232         tree_gen_interval_profiler, tree_gen_pow2_profiler,
7233         tree_gen_one_value_profiler, tree_gen_ic_profiler,
7234         tree_gen_ic_func_profiler, tree_gen_average_profiler,
7235         tree_gen_ior_profiler): Ditto.
7236         * tree-ssa-reassoc.c (negate_value): Ditto.
7237         * matrix-reorg.c (transform_access_sites, transform_allocation_sites):
7238         Use force_gimple_operand_bsi.
7239         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
7240         * tree-if-conv.c (add_to_dst_predicate_list,
7241         find_phi_replacement_condition): Ditto.
7242         * gimplify.c (force_gimple_operand_bsi): Add before and m arguments.
7243         Call mark_symbols_for_renaming for new statements.
7244         * tree-flow.h (force_gimple_operand_bsi): Declaration changed.
7245
7246 2007-07-10  Zdenek Dvorak  <dvorakz@suse.cz>
7247
7248         * cfghooks.c (remove_edge): New function.
7249         (redirect_edge_and_branch, remove_branch, merge_blocks): Updated
7250         loop exit rescans.
7251         * cfghooks.h (remove_edge): Declare.
7252         * cfg.c (remove_edge): Renamed to remove_edge_raw.
7253         * basic-block.h (remove_edge): Declaration changed to remove_edge_raw.
7254
7255 2007-07-09  Wolfgang Gellerich  <gellerich@de.ibm.com>
7256
7257         * optabs.h: Added declaration for signbit_optab.  
7258         * optabs.c: (init_optabs): Added initialization for signbit_optab.
7259         * genoptinit.c (optabs): Added entry for signbit insns.  
7260         * builtins.c (expand_builtin_signbit): Added code to use a signbit
7261         insn, if available.  
7262         * config/s390/s390.h (S390_TDC_SIGNBIT_SET): New constant.  
7263         * config/s390/s390.md (signbit<mode>2): New expander.  
7264
7265 2007-07-09  Richard Guenther  <rguenther@suse.de>
7266
7267         PR middle-end/32698
7268         * fold-const.c (fold_plusminus_mult_expr): Move constant
7269         arguments second to allow decomposing.
7270
7271 2007-07-09  Alexandre Oliva  <aoliva@oliva.athome.lsd.ic.unicamp.br>
7272
7273         Revert:
7274         2007-07-06  Alexandre Oliva  <aoliva@redhat.com>
7275         PR debug/23551
7276         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
7277         Disregard DECL_FROM_INLINE.
7278
7279 2007-07-09  Uros Bizjak  <ubizjak@gmail.com>
7280
7281         PR target/27855
7282         * doc/invoke.texi: Add ftree-reassoc flag.
7283         * common.opt (ftree-reassoc): New flag.
7284         * tree-ssa-reassoc.c (gate_tree_ssa_reassoc): New static function.
7285         (struct tree_opt_pass pass_reassoc): Use gate_tree_ssa_reassoc.
7286
7287 2007-07-09  Uros Bizjak  <ubizjak@gmail.com>
7288
7289         PR tree-optimization/32681
7290         * tree-if-conv.c (find_phi_replacement_condition): Use the condition
7291         saved in second_edge->aux when first_bb is a loop header.
7292
7293 2007-07-09  Jan HUbicka  <jh@suse.cz>
7294
7295         * cse.c (cse_insn): Avoid invalid sharing on trial replacement.
7296
7297 2007-07-09  Richard Guenther  <rguenther@suse.de>
7298
7299         * c-decl.c (start_function): Do not promote return type.
7300
7301 2007-07-08  Daniel Franke  <franke.daniel@gmail.com>
7302
7303         * function.c (do_warn_unused_parameter): Do not warn if
7304         TREE_NO_WARNING is set.
7305
7306 2007-07-08  Andreas Schwab  <schwab@suse.de>
7307
7308         * doc/invoke.texi (DEC Alpha/VMS Options): Fix typo.
7309
7310 2007-07-08  Sandra Loosemore  <sandra@codesourcery.com>
7311
7312         Revert this patch:
7313         2007-07-06  Sandra Loosemore  <sandra@codesourcery.com>
7314
7315         * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
7316         apply to assembly language, too.
7317         * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
7318
7319 2007-07-07  Daniel Berlin  <dberlin@dberlin.org>
7320
7321         Revert (note the sccvn portions are *not* reverted)
7322         2007-07-06  Daniel Berlin  <dberlin@dberlin.org>
7323
7324         Fix PR tree-optimization/23488
7325
7326         * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
7327         handles.
7328         * tree-flow-inline.h (get_value_handle): Ditto.
7329         * tree-ssa-pre.c (decl_vh_map): New.
7330         (decl_node_pool): New.
7331         (can_value_number_operation): Support DECL_P.
7332         (can_PRE_operation): Ditto.
7333         (create_expression_by_pieces): Ditto.
7334         (find_existing_value_expr): Modify to differnetiate between
7335         addressing and top level.
7336         (create_value_handle_for_expr): Handle DECL's.
7337         (poolify_tree): Ditto.
7338         (make_values_for_phi): Don't insert into PHI_GEN during FRE.
7339         (make_values_for_stmt): Handle DECL's properly.
7340         (init_pre): Reorg to not init useless things during FRE.
7341         (fini_pre): Ditto.
7342         * tree-flow.h: Include pointer-set.h.
7343         (decl_vh_map): Declare.
7344         * Makefile.in (TREE_FLOW_H): Add pointer-set.h
7345
7346 2007-07-07 Eric Weddington  <eweddington@cso.atmel.com>
7347
7348         * config/avr/constraints.md (define_memory_constraint "Q"): Fix
7349         the constraint description.
7350         * doc/md.texi: Update documentation of AVR constraints.
7351
7352 2007-07-07  Kazu Hirata  <kazu@codesourcery.com>
7353
7354         * auto-inc-dec.c, config/arm/arm.c,
7355         config/m32r/constraints.md, config/mips/mips.md,
7356         config/rs6000/rs6000.c, cselib.c, dce.c, df-core.c,
7357         df-problems.c, df-scan.c, df.h, dse.c, gimplify.c,
7358         tree-if-conv.c, tree-ssa-sccvn.c, tree-ssa.c: Fix comment
7359         typos.  Follow spelling conventions.
7360         * doc/invoke.texi, doc/rtl.texi: Fix typos.
7361
7362         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
7363         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
7364
7365         * tree-ssa-operands.c (realloc_vop, realloc_vdef,
7366         realloc_vuse): Remove.
7367         * tree-ssa-operands.h: Remove the prototype for realloc_vdef
7368         and realloc_vuse.
7369
7370 2007-07-06  Daniel Berlin  <dberlin@dberlin.org>
7371
7372         Fix PR tree-optimization/23488
7373
7374         * tree-ssa-sccvn.c (expr_has_constants): Handle tcc_declaration.
7375         (try_to_simplify): Ditto.
7376         (visit_use): Ditto.
7377         * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
7378         handles.
7379         * tree-flow-inline.h (get_value_handle): Ditto.
7380         * tree-ssa-pre.c (decl_vh_map): New.
7381         (decl_node_pool): New.
7382         (can_value_number_operation): Support DECL_P.
7383         (can_PRE_operation): Ditto.
7384         (create_expression_by_pieces): Ditto.
7385         (find_existing_value_expr): Modify to differnetiate between
7386         addressing and top level.
7387         (create_value_handle_for_expr): Handle DECL's.
7388         (poolify_tree): Ditto.
7389         (make_values_for_phi): Don't insert into PHI_GEN during FRE.
7390         (make_values_for_stmt): Handle DECL's properly.
7391         (init_pre): Reorg to not init useless things during FRE.
7392         (fini_pre): Ditto.
7393         * tree-flow.h: Include pointer-set.h.
7394         (decl_vh_map): Declare.
7395         * Makefile.in (TREE_FLOW_H): Add pointer-set.h
7396                 
7397 2007-07-06  Sandra Loosemore  <sandra@codesourcery.com>
7398
7399         * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
7400         apply to assembly language, too.
7401         * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
7402
7403 2007-07-06  Ian Lance Taylor  <iant@google.com>
7404             Zack Weinberg  <zackw@panix.com>
7405
7406         PR middle-end/32441
7407         * builtins.c (std_expand_builtin_va_start): Don't use make_tree.
7408
7409 2007-07-06  Richard Sandiford  <richard@codesourcery.com>
7410
7411         * config/sh/sh.md (*prefetch_i4): Disable for TARGET_VXWORKS_RTP.
7412         (prefetch): Likewise if "pref" would be used.
7413
7414 2007-07-06  Josh Conner  <jconner@apple.com>
7415
7416         PR middle-end/32602
7417         PR middle-end/32603
7418         * calls.c (store_one_arg): Handle arguments which are partially
7419         on the stack when detecting argument overlap.
7420
7421 2007-07-06  Bernd Schmidt  <bernd.schmidt@analog.com>
7422
7423         * reload1.c (choose_reload_regs): Set reload_spill_index for regs
7424         chosen during find_reloads.
7425
7426 2007-07-06  Richard Guenther  <rguenther@suse.de>
7427
7428         * gimplify.c (gimplify_call_expr): Prefer DECL_ARGUMENTS over
7429         TYPE_ARG_TYPES for verification of argument types.  Use
7430         DECL_ARG_TYPE instead of the PARM_DECL type.  Take excess
7431         parameters as variable arguments.
7432
7433 2007-07-06  Andreas Krebbel  <krebbel1@de.ibm.com>
7434
7435         * libgcc2.h (word_type): Type definition removed.
7436         (cmp_return_type, shift_count_type): Type definitions added.
7437         (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
7438         replaced with shift_count_type.
7439         (__cmpdi2, __ucmpdi2): word_type of return type replaced with
7440         cmp_return_type.
7441         * libgcc2.c (__udivmoddi4, __moddi3): Type of local variable c
7442         changed from word_type to Wtype.
7443         (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
7444         replaced with shift_count_type.
7445         (__cmpdi2, __ucmpdi2): word_type of return type replaced with
7446         cmp_return_type.
7447         * c-common.c (handle_mode_attribute): Handling for libgcc_cmp_return
7448         and libgcc_shift_count attribute added.
7449         * target-def.h (TARGET_LIBGCC_CMP_RETURN_MODE,
7450         TARGET_LIBGCC_SHIFT_COUNT_MODE): New target hooks defined.
7451         (TARGET_INITIALIZER): New target hooks added.
7452         * targhooks.c (default_libgcc_cmp_return_mode,
7453         default_libgcc_shift_count_mode): Default implementations for the new
7454         target hooks added.
7455         * targhooks.h (default_libgcc_cmp_return_mode,
7456         default_libgcc_shift_count_mode): Function prototypes added.
7457         * target.h (struct gcc_target): Fields for the new target hooks added.
7458         * optabs.c (expand_binop): Use shift_count_mode when expanding shift
7459         as library call.
7460         (prepare_cmp_insn): Use cmp_return_mode when expanding comparison as
7461         library call.
7462
7463         * doc/tm.texi (TARGET_LIBGCC_CMP_RETURN_MODE,
7464         TARGET_LIBGCC_SHIFT_COUNT_MODE): Documentation added.
7465
7466         * config/s390/s390.c (s390_libgcc_cmp_return_mode,
7467         s390_libgcc_shift_count_mode): Functions added.
7468         (TARGET_LIBGCC_CMP_RETURN_MODE, TARGET_LIBGCC_SHIFT_COUNT_MODE):
7469         Target hooks defined.
7470
7471 2007-07-06  Richard Sandiford  <richard@codesourcery.com>
7472
7473         * config/mips/mips.c (compute_frame_size): Restore the original
7474         gp_sp_offset for !GENERATE_MIPS16E_SAVE_RESTORE and remove the
7475         fp_size term from the GENERATE_MIPS16E_SAVE_RESTORE calculation.
7476         Document why the difference is needed.
7477
7478 2007-07-06  Richard Guenther  <rguenther@suse.de>
7479
7480         * c-common.c (boolean_increment): Use correctly typed
7481         constant.
7482
7483 2007-07-06  Richard Sandiford  <richard@codesourcery.com>
7484
7485         * config/mips/mips.c (mips16e_save_restore_pattern_p): Check that
7486         the topmost argument register is not also included in the save mask.
7487         (mips16e_collect_argument_save_p): Take a pointer to the argument
7488         register, rather than a pointer to the number of arguments.
7489         (mips16e_collect_argument_saves): Only include argument saves
7490         that aren't in the register mask.
7491
7492 2007-07-06  Uros Bizjak  <ubizjak@gmail.com>
7493
7494         PR rtl-optimization/32450
7495         * function.c (thread_prologue_and_epilogue_insns): Emit blockage insn
7496         to ensure that instructions are not moved into the prologue when
7497         profiling is on.  Remove unused prologue_end variable.
7498         (expand_function_end): Emit blockage insn instead of ASM_INPUT rtx
7499         as a scheduling barrier.
7500
7501 2007-07-06  Alexandre Oliva  <aoliva@redhat.com>
7502
7503         PR debug/23551
7504         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
7505         Disregard DECL_FROM_INLINE.
7506
7507 2007-07-05  Adam Nemet  <anemet@caviumnetworks.com>
7508
7509         * rtlanal.c (num_sign_bit_copies1): Improve cases of ANDing or
7510         IORing with a constant.
7511
7512 2007-07-05  Seongbae Park  <seongbae.park@gmail.com>
7513
7514         PR rtl-optimization/32475
7515         * df-scan.c (df_def_record_1): Add a use of the stack pointer
7516         for every definition of the stack pointer.
7517
7518 2007-07-05  Richard Earnshaw  <rearnsha@arm.com>
7519
7520         * arm.c (vfp3_const_double_index): Copy signed results of
7521         REAL_VALUE_TO_INT into unsigned vars.
7522
7523 2007-07-05  Richard Guenther  <rguenther@suse.de>
7524
7525         PR middle-end/32639
7526         * alias.c (get_alias_set): Tread METHOD_TYPE the same as
7527         FUNCTION_TYPE.
7528         * tree-ssa.c (useless_type_conversion_p): Check canonical
7529         types early.
7530
7531 2007-07-05 Anatoly Sokolov <aesok@post.ru>
7532
7533         * config/avr/avr.md (zero_extendqihi2, zero_extendqisi2, 
7534         zero_extendhisi2): Change to define_insn_and_split. 
7535         (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New.
7536
7537 2007-07-05  Paolo Bonzini  <bonzini@gnu.org>
7538
7539         * function.c (match_asm_constraints_1, rest_of_match_asm_constraints,
7540         pass_match_asm_constraints): New.
7541         * passes.c (init_optimization_passes): Add new pass.
7542         * stmt.c (expand_asm_operands): Set cfun->has_asm_statement.
7543         * function.h (struct function): Add has_asm_statement bit.
7544         (current_function_has_asm_statement): New.
7545         * tree-pass.h (pass_match_asm_constraints): New.
7546
7547 2007-07-05  Richard Sandiford  <rsandifo@nildram.co.uk>
7548
7549         * config/mips/mips.c (mips_file_start): Avoid declaration
7550         after code.
7551
7552 2007-07-05  Sandra Loosemore  <sandra@codesourcery.com>
7553
7554         * optabs.c (expand_binop_directly): Fix signed/unsigned comparison.
7555
7556 2007-07-05  Uros Bizjak  <ubizjak@gmail.com>
7557
7558         * rtl.def (NOTE): Change print format string to print
7559         operand 5 as a note insn name.
7560
7561 2007-07-05  Sandra Loosemore  <sandra@codesourcery.com>
7562             David Ung  <davidu@mips.com>
7563
7564         * config/mips/mips.c (mips_cpu_info): Add 4ksc and 4ksd processors.
7565         * doc/invoke.texi: (MIPS Options): Document them.
7566
7567 2007-07-05  Sandra Loosemore  <sandra@codesourcery.com>
7568             David Ung  <davidu@mips.com>
7569
7570         Add support for SmartMIPS ASE.
7571
7572         * optabs.c (expand_binop_directly): New, broken out from...
7573         (expand_binop): Here.  Make it try rotating in the other
7574         direction even when the second operand isn't constant.
7575         * config/mips/mips.md (*lwxs): New.
7576         * config/mips/mips.opt (msmartmips): New.
7577         * config/mips/mips.c (mips_lwxs_address_p): New.
7578         (mips_rtx_costs): Make it recognize scaled indexed addressing.
7579         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
7580         __mips_smartmips when compiling for TARGET_SMARTMIPS.
7581         (ISA_HAS_ROR): Define for TARGET_SMARTMIPS.
7582         (ISA_HAS_LWXS): New.
7583         (ASM_SPEC): Add -msmartmips/-mno-smartmips.
7584         * doc/invoke.texi (MIPS Options): Document -msmartmips/-mno-smartmips.
7585         * testsuite/gcc.target/mips/smartmips-lwxs.c: New test case.
7586         * testsuite/gcc.target/mips/smartmips-ror-1.c: New test case.
7587         * testsuite/gcc.target/mips/smartmips-ror-2.c: New test case.
7588         * testsuite/gcc.target/mips/smartmips-ror-3.c: New test case.
7589         * testsuite/gcc.target/mips/smartmips-ror-4.c: New test case.
7590
7591 2007-07-05  Dorit Nuzman  <dorit@il.ibm.com>
7592
7593         * tree-vectorizer.c (new_loop_vec_info): Initialize
7594         LOOP_VINFO_COST_MODEL_MIN_ITERS.
7595         * tree-vectorizer.h (_loop_vec_info): Added new filed
7596         min_profitable_iters.
7597         (LOOP_VINFO_COST_MODEL_MIN_ITERS): New access macro to above new field.
7598         (TARG_SCALAR_TO_VEC_COST): Define cost of scalar to vector operation.
7599         * tree-vect-analyze.c (vect_analyze_operations): Set
7600         LOOP_VINFO_COST_MODEL_MIN_ITERS.
7601         * tree-vect-transform.c (vect_estimate_min_profitable_iters): Use
7602         VEC_length to determine if there are any LOOP_VINFO_MAY_MISALIGN_STMTS.
7603         Fix calculation of peel_iters_prologue. Move consideration of epilogue
7604         and prologue cost to after they are computed.
7605         (vect_model_induction_cost): Use TARG_SCALAR_TO_VEC_COST instead of
7606         TARG_VEC_STMT_COST.
7607         (vect_model_simple_cost): Takes additional argument dt. Consider cost
7608         of creating vectors from scalars according to dt.
7609         (vect_model_store_cost): Likewise.
7610         (vectorizable_call): Use dt array instead of scalar dt. Call
7611         vect_model_simple_cost with additional argument dt.
7612         (vectorizable_assignment): Likewise.
7613         (vectorizable_operation): Likewise.
7614         (vectorizable_type_demotion): Likewise.
7615         (vectorizable_type_promotion): Likewise.
7616         (vectorizable_store): Use dt array instead of scalar dt. Call
7617         vect_model_store_cost with additional argument dt.
7618         (vect_do_peeling_for_loop_bound): Don't call
7619         vect_estimate_min_profitable_iters. Instead, lookup
7620         LOOP_VINFO_COST_MODEL_MIN_ITERS. Don't always print
7621         "may not be profitable".
7622
7623 2007-07-05  Dorit Nuzman  <dorit@il.ibm.com>
7624
7625         PR testsuite/32014
7626         * config/rs6000/altivec.md (UNSPEC_VUPKHS_V4SF, UNSPEC_VUPKLS_V4SF):
7627         (UNSPEC_VUPKHU_V4SF, UNSPEC_VUPKLU_V4SF): New.
7628         (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi): New patterns.
7629         (vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): New patterns. 
7630
7631 2007-07-05  Zdenek Dvorak  <dvorakz@suse.cz>
7632
7633         * config/i386/i386.c (ix86_address_cost): Do not consider more complex
7634         addressing modes cheaper.
7635
7636 2007-07-05  Alexandre Oliva  <aoliva@redhat.com>
7637
7638         * dwarf2out.c (dw_ranges_by_label_ref): New typedef.
7639         (dw_ranges_struct): Rename block_num to num.  Adjust.
7640         (dw_ranges_by_label_struct): New.
7641         (ranges_by_label, ranges_by_label_allocated,
7642         ranges_by_label_in_use): New variables.
7643         (add_ranges_num): Factored most of the code out of...
7644         (add_ranges): ... this one.  Rewrite in terms of the former.
7645         (add_ranges_by_labels): New.
7646         (output_ranges): Output by-label ranges.
7647         (dwarf2out_finish): Output range for multiple-section
7648         compile_unit.  Output standard DW_AT_low_pc in addition to
7649         unexpected DW_AT_entry_pc.
7650
7651 2007-07-04  Daniel Berlin  <dberlin@dberlin.org>
7652
7653         PR tree-optimization/32604
7654         PR tree-optimization/32606
7655
7656         * tree-ssa-pre.c (bb_bitmap_sets): Removed antic_safe_loads.
7657         (compute_antic_safe): Removed.
7658         (ANTIC_SAFE_LOADS): Ditto.
7659         (compute_antic_aux): Don't print ANTIC_SAFE_LOADS.
7660         (execute_pre): Don't call compute_antic_safe.
7661         (vuse_equiv): New function.
7662         (make_values_for_stmt): Use it
7663         * tree-ssa-sccvn.c (set_ssa_val_to): Remove assert, since it is
7664         not always true.
7665
7666 2007-07-04 Anatoly Sokolov <aesok@post.ru>
7667
7668         PR target/31331
7669         * config/avr/avr.c (avr_naked_function_p): Handle receiving a type
7670         rather than a decl. 
7671         (avr_attribute_table): Make "naked" attribute apply to function types
7672         rather than to decls.
7673         (avr_handle_fntype_attribute): New function.
7674
7675 2007-07-04  Joseph Myers  <joseph@codesourcery.com>
7676
7677         * target-def.h (TARGET_INITIALIZER): Remove trailing whitespace
7678         after \.
7679
7680 2007-07-04  David Ung  <davidu@mips.com>
7681             Joseph Myers  <joseph@codesourcery.com>
7682
7683         * config/mips/mips.md (type): Add logical, signext and move.
7684         (one_cmpl<mode>2, *and<mode>3, *and<mode>3_mips16, *ior<mode>3,
7685         *ior<mode>3_mips16, two unnamed insns after *ior<mode>3_mips16,
7686         *nor<mode>3, "Combiner patterns to optimize truncate/zero_extend
7687         combinations", *zero_extend<SHORT:mode><GPR:mode>2,
7688         *zero_extendqihi2, *extend<SHORT:mode><GPR:mode>2_mips16e,
7689         *extend<SHORT:mode><GPR:mode>2_se<SHORT:size>, *movdi_64bit,
7690         *movdi_64bit_mips16, *movsi_internal, *movsi_mips16, movcc,
7691         *movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16,
7692         *movsf_hardfloat, *movsf_softfloat, *movsf_mips16,
7693         *movdf_hardfloat_64bit, *movdf_hardfloat_32bit,
7694         movv2sf_hardfloat_64bit): Use the new types.
7695         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16,
7696         *movdf_softfloat, *movdf_mips16): Use "multi".
7697         (extendqihi2): Replace with a define_expand.
7698         (*extendqihi2_mips16e, *extendqihi2, *extendqihi2_seb): New.
7699         Based on extend<SHORT:mode><GPR:mode>2 patterns.
7700         * config/mips/74k.md (r74k_int_logical): New reservation and
7701         bypasses.
7702         (r74k_int_arith): Remove "slt".
7703         * config/mips/24k.md, config/mips/4130.md, config/mips/4k.md,
7704         config/mips/5400.md, config/mips/5500.md, config/mips/5k.md,
7705         config/mips/7000.md, config/mips/9000.md, config/mips/generic.md,
7706         config/mips/sb1.md, config/mips/sr71k.md: Add new types to
7707         reservations for "arith".
7708
7709 2007-07-04  Richard Guenther  <rguenther@suse.de>
7710
7711         * tree-ssa.c (useless_type_conversion_p): Add handling for
7712         scalar float and vector types.  Only call the types_compatible_p
7713         langhook for aggregate types as last resort.  Follow the
7714         rules.
7715
7716 2007-07-04  Richard Guenther  <rguenther@suse.de>
7717
7718         * tree-inline.c (estimate_num_insns_1): Treat CONVERT_EXPR
7719         the same as NOP_EXPR.
7720
7721 2007-07-04  Nick Clifton  <nickc@redhat.com>
7722
7723         * target.h (struct gcc_target): Add target_help field.
7724         * target-def.h (TARGET_HELP): New.
7725         (TARGET_INITIALIZER): Use TARGET_HELP.
7726         * opts.c (command_handle_option): Invoke target_help function, if
7727         defined, when the user has specified --target-help on the command
7728         line.
7729         * doc/invoke.texi: Mention that --target-help might print
7730         additional information.
7731         * doc/tm.texi: Document TARGET_HELP hook.
7732
7733         * arm.c (TARGET_HELP): Override default definition.
7734         (arm_target_help): New - display a wrapped list of cores and
7735         architectures supported.
7736
7737 2007-07-04  Rask Ingemann Lambertsen  <rask@sygehus.dk>
7738
7739         * config/v850/v850.c (expand_prologue): Make sure
7740         GEN_INT() argument is sign extended rather than zero extended.
7741         (expand_epilogue): Likewise.
7742         (output_move_double): Delete.
7743         * config/v850/v850-protos.h (output_move_double): Delete.
7744         * config/v850/v850.md (movdi): Delete.
7745         (*movdi_internal): Delete.
7746         (movdf): Delete.
7747         (*movdf_internal): Delete.
7748
7749 2007-07-04  Richard Sandiford  <richard@codesourcery.com>
7750
7751         * config/sh/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Reject -mrelax
7752         unless compiling RTP PIC.
7753
7754 2007-07-04  Richard Guenther  <rguenther@suse.de>
7755
7756         PR tree-optimization/32482
7757         * tree-ssa-ifcombine.c (recognize_single_bit_test): Use the
7758         original ssa name if we didn't find a shift expression.
7759         Fix shift constant for bit zero test.
7760
7761 2007-07-04  Richard Sandiford  <richard@codesourcery.com>
7762
7763         * config/sh/lib1funcs.asm (ic_invalidate): Align constant pool.
7764
7765 2007-07-04  Richard Sandiford  <richard@codesourcery.com>
7766
7767         * config.gcc (arm-wrs-vxworks): Don't include svr4.h.
7768         * config/vxworks.h (PTRDIFF_TYPE, SIZE_TYPE, TARGET_POSIX_IO): Define.
7769         * config/arm/vxworks.h (ASM_SPEC): Delete.
7770         (SUBTARGET_EXTRA_ASM_SPEC): Define.
7771
7772 2007-07-04  Sebastian Pop  <sebpop@gmail.com>
7773
7774         * tree-data-ref.h (data_dependence_relation): New flag reversed_p.
7775         (DDR_REVERSED_P): New.
7776         * tree-data-ref.c (initialize_data_dependence_relation,
7777         build_classic_dist_vector): Set DDR_REVERSED_P.
7778
7779 2007-07-04  Sebastian Pop  <sebpop@gmail.com>
7780
7781         PR middle-end/32457
7782         * tree-data-ref.c (analyze_siv_subscript_cst_affine,
7783         compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
7784         init_omega_for_ddr_1): Use non conservative number of iterations
7785         estimations.
7786         (analyze_subscript_affine_affine): Use HOST_WIDE_INT instead of int.
7787         (analyze_siv_subscript): Remove FIXME and reinitialization of 
7788         last_conflicts to chrec_dont_know.
7789         * testsuite/gfortran.dg/vect/pr32457.f90: New.
7790
7791 2007-07-04  Douglas Gregor  <doug.gregor@gmail.com>
7792
7793         * tree.c (maybe_canonicalize_argtypes): Improve description.
7794
7795 2007-07-04  Douglas Gregor  <doug.gregor@gmail.com>
7796
7797         * tree.c (maybe_canonicalize_argtypes): New.
7798         (build_function_type): Set canonical type.
7799         (build_method_type_directly): Ditto.
7800         (reconstruct_complex_type): Rebuild the METHOD_TYPE node
7801         properly.
7802
7803 2007-07-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7804
7805         * tree-ssa-loop-ivopts.c (strip_offset_1): Treat POINTER_PLUS_EXPR
7806         like PLUS_EXPR.
7807         (rewrite_use_nonlinear_expr): Likewise.
7808
7809 2007-07-03  Seongbae Park  <seongbae.park@gmail.com>
7810
7811         * rtl.def (UNSPEC, USE, CLOBBER): More comments.
7812
7813 2007-07-04  Ben Elliston  <bje@au.ibm.com>
7814
7815         * dwarf2out.c: Move DWARF2 abbreviation glossary closer to the top
7816         of this file.
7817
7818         * c-objc-common.c (c_types_compatible_p): Fix indentation.
7819
7820         * doc/tm.texi (Run-time Target): Capitalise "CPU".
7821         (Exception Handling): Likewise.
7822
7823 2007-07-03  Jan Hubicka  <jh@suse.cz>
7824
7825         * ifcvt.c (find_cond_trap): Avoid invalid RTL sharing.
7826
7827 2007-07-03  Eric Christopher  <echristo@apple.com>
7828
7829         * doc/cppopts.texi: Add conflicting option note to -dM.
7830         * doc/invoke.texi: Add note about possible conflicts with
7831         -E for -dCHARS and note that -dM will not produce
7832         any results if there is no machine dependent reorg.
7833         
7834 2007-07-03  Geoffrey Keating  <geoffk@apple.com>
7835
7836         * tree.h (DECL_ALIGN): Back out previous change.
7837
7838 2007-07-03  Joseph Myers  <joseph@codesourcery.com>
7839
7840         * configure.ac: Test for .dtprelword support on MIPS.
7841         * configure, config.in: Regenerate.
7842         * config/mips/mips.c (mips_output_dwarf_dtprel): New.
7843         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
7844
7845 2007-07-03  Julian Brown  <julian@codesourcery.com>
7846
7847         * config.gcc (with_fpu): Allow --with-fpu=vfp3.
7848         * config/arm/aout.h (REGISTER_NAMES): Add D16-D31.
7849         * config/arm/aof.h (REGISTER_NAMES): Add D16-D31.
7850         * config/arm/arm.c (FL_VFPV3): New flag for VFPv3 processor
7851         capability.
7852         (all_fpus): Add FPUTYPE_VFP3.
7853         (fp_model_for_fpu): Add VFPv3 field.
7854         (arm_rtx_costs_1): Give cost to VFPv3 constants.
7855         (vfp3_const_double_index): New function. Return integer index of
7856         VFPv3 constant suitable for fconst[sd] insns, or -1 if constant
7857         isn't suitable.
7858         (vfp3_const_double_rtx): New function. True if VFPv3 is enabled
7859         and argument represents a valid RTX for a VFPv3 constant.
7860         (vfp_output_fldmd): Split fldmd with > 16 registers in the list into
7861         two instructions.
7862         (vfp_emit_fstmd): Similar, for fstmd.
7863         (arm_print_operand): Implement new code 'G' for VFPv3 floating-point
7864         constants, represented as integer indices.
7865         (arm_hard_regno_mode_ok): Use VFP_REGNO_OK_FOR_SINGLE,
7866         VFP_REGNO_OK_FOR_DOUBLE macros.
7867         (arm_regno_class): Handle VFPv3 d0-d7, low, high register split.
7868         (arm_file_start): Set float-abi attribute for VFPv3, and output
7869         correct ".fpu" assembler directive.
7870         (arm_dbx_register_numbering): Add FIXME.
7871         * config/arm/arm.h (TARGET_VFP3): New macro. Target supports VFPv3.
7872         (fputype): Add FPUTYPE_VFP3.
7873         (FIXED_REGISTERS): Add 32 registers for D16-D31.
7874         (CALL_USED_REGISTERS): Likewise.
7875         (CONDITIONAL_REGISTER_USAGE): Add note about conditional definition
7876         of LAST_VFP_REGNUM. Make D16-D31 caller-saved, if present.
7877         (LAST_VFP_REGNUM): Extend available VFP registers for VFPv3.
7878         (D7_VFP_REGNUM): New.
7879         (LAST_LO_VFP_REGNUM, FIRST_HI_VFP_REGNUM, LAST_HI_VFP_REGNUM)
7880         (VFP_REGNO_OK_FOR_SINGLE, VFP_REGNO_OK_FOR_SINGLE)
7881         (VFP_REGNO_OK_FOR_DOUBLE): Define new macros.
7882         (FIRST_PSEUDO_REGISTER): Shift up to 128 to accommodate VFPv3.
7883         (REG_ALLOC_ORDER): Adjust for VFPv3.
7884         (reg_class): Add VFP_D0_D7_REGS, VFP_LO_REGS, VFP_HI_REGS.
7885         (REG_CLASS_NAMES): Add entries corresponding to VFP_D0_D7_REGS,
7886         VFP_LO_REGS, VFP_HI_REGS.
7887         (REG_CLASS_CONTENTS): Likewise. Extend contents for VFP_REGS.
7888         (IS_VFP_CLASS): Define macro.
7889         (SECONDARY_OUTPUT_RELOAD_CLASS, SECONDARY_INPUT_RELOAD_CLASS): Use
7890         IS_VFP_CLASS.
7891         (REGISTER_MOVE_COST): Likewise.
7892         * config/arm/arm-protos.h (vfp3_const_double_rtx): Add prototype.
7893         * config/arm/vfp.md (VFPCC_REGNUM): Redefine as 127.
7894         (*arm_movsi_vfp, *thumb2_movsi_vfp, *movsfcc_vfp)
7895         (*thumb2_movsfcc_vfp, *abssf2_vfp, *negsf2_vfp, *addsf3_vfp)
7896         (*subsf3_vfp, *divsf_vfp, *mulsf_vfp, *mulsf3negsf_vfp)
7897         (*mulsf3addsf_vfp, *mulsf3subsf_vfp, *mulsf3negsfaddsf_vfp)
7898         (*extendsfdf2_vfp, *truncdfsf2_vfp, *truncsisf2_vfp)
7899         (*truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2)
7900         (*floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2)
7901         (floatunssidf2, *sqrtsf2_vfp, *cmpsf_split_vfp)
7902         (*cmpsf_trap_split_vfp, *cmpsf_vfp, *cmpsf_trap_vfp): Use 't'
7903         where appropriate for single-word registers.
7904         (*movsf_vfp, *thumb2_movsf_vfp, *movdf_vfp, *thumb2_movdf_vfp):
7905         As above. Fix type attributes.
7906         * config/arm/constraints.md (register_contraint "t"): Define.
7907         (register_constraint "w"): Change to D0-D15, or D0-D31 for
7908         VFPv3/NEON.
7909         (register_constraint "x"): Define.
7910         (constraint "Dv"): Define.
7911
7912 2007-07-03  Geoffrey Keating  <geoffk@apple.com>
7913
7914         * tree.h (DECL_ALIGN): Prevent use on a FUNCTION_DECL.
7915
7916 2007-07-03  Tom Tromey  <tromey@redhat.com>
7917
7918         * c-parser.c (objc_pq_context): Removed.
7919         (objc_need_raw_identifier): Likewise.
7920         (c_parser) <objc_pq_context>: New field.
7921         <objc_need_raw_identifier>: Likewise.
7922         (OBJC_NEED_RAW_IDENTIFIER): Removed.
7923         (c_lex_one_token): Update.
7924         (c_parser_objc_protocol_definition): Update.
7925         (c_parser_objc_method_definition): Update.
7926         (c_parser_objc_methodproto): Update.
7927         (c_parser_declspecs): Update.
7928
7929 2007-07-03  David Ung  <davidu@mips.com>
7930
7931         * config/mips/mips.c (mips_issue_rate): Return 4 for 74K processors.
7932
7933 2007-07-03  David Ung  <davidu@mips.com>
7934             Richard Sandiford  <richard@codesourcery.com>
7935
7936         * doc/invoke.texi: Document -march=74kf3_2.
7937         * config/mips/mips.h (PROCESSOR_74KF3_2): New processor_type.
7938         (TUNE_74K): Check for it.
7939         * config/mips/mips.c (mips_cpu_info): Add 74kf3_2.
7940         (mips_rtx_cost_data): Add an entry for PROCESSOR_74KF3_2.
7941         * config/mips/mips.md (cpu): Add 74kf3_2.
7942         * config/mips/74k.md (r74k_int_logical, r74k_int_arith, r74k_int_nop)
7943         (r74k_int_cmove, r74k_int_mult, r74k_int_mul3, r74k_int_mfhilo)
7944         (r74k_int_mthilo, r74k_int_div, r74k_int_call, r74k_int_jump)
7945         (r74k_int_load, r74k_int_store, r74k_unknown, r74k_multi): Add
7946         74kf3_2 to the CPU list.
7947         (r74kf3_2_fadd, r74kf3_2_fmove, r74kf3_2_fload, r74kf3_2_fstore)
7948         (r74kf3_2_fmul_sf, r74kf3_2_fmul_df, r74kf3_2_fdiv_sf)
7949         (r74kf3_2_fdiv_df, r74kf3_2_frsqrt_sf, r74kf3_2_frsqrt_df)
7950         (r74kf3_2_fcmp, r74kf3_2_fcvt, r74kf3_2_fxfer_to_c1)
7951         (r74kf3_2_fxfer_from_c1): New insn reservations.
7952
7953 2007-07-03  Richard Sandiford  <richard@codesourcery.com>
7954             David Ung  <davidu@mips.com>
7955
7956         * doc/invoke.texi: Replace -march=24kf with -march=24kf2_1 and
7957         -march=24kx with -march=24kf1_1.  Likewise 24ke[fx], 34k[fx]
7958         and 74k[fx].  Document aliases for the new options.
7959         * config/mips/mips.h (PROCESSOR_24KF): Rename to...
7960         (PROCESSOR_24KF2_1): ...this.
7961         (PROCESSOR_24KX): Rename to...
7962         (PROCESSOR_24KF1_1): ...this.
7963         (PROCESSOR_74KF): Rename to...
7964         (PROCESSOR_74KF2_1): ...this.
7965         (PROCESSOR_74KX): Rename to...
7966         (PROCESSOR_74KF1_1): ...this.
7967         (TUNE_74K): Update PROCESSOR_* names.
7968         * config/mips/mips.c (mips_cpu_info): Add 24kf2_1 as a synonym
7969         for 24kf.  Add 24kf1_1 and 24kfx as synonyms for 24kx.  Likewise
7970         the 24ke*, 34k* and 74k* processors.  Update PROCESSOR_* names.
7971         (mips_rtx_cost_data): Update processor names in comments.
7972         (mips_issue_rate): Update PROCESSOR_* names.
7973         * config/mips/mips.md (cpu): Rename 24kf to 24kf2_1, 24kx to
7974         24kf1_1, 74kf to 74kf2_1 and 74kx to 74kf1_1.
7975         * config/mips/24k.md: Rename FPU-related r24k_* insn reservations
7976         to r24kf2_1_*.  Rename r24kx_* insn reservations to r24kf1_1_*.
7977         Update cpu attribute names.
7978         (r24k_fpu_iss): Rename this reservation to...
7979         (r24kf2_1_fpu_iss): ...this and update all uses.
7980         (r24kx_fpu_iss): Rename this reservation to...
7981         (r24kf1_1_fpu_iss): ...this and update all uses.
7982         * config/mips/74k.md: Rename FPU-related r74kf_* insn reservations
7983         to r74kf2_1_*.  Rename r74kx_* insn reservations to r74kf1_1_*.
7984         Update cpu attribute names.
7985
7986 2007-07-01  Kaz Kojima  <kkojima@gcc.gnu.org>
7987
7988         * config/m32r/constraints.md: New file.
7989         * config/m32r/m32r.c: Include tm-constrs.h.
7990         (small_data_operand): Use satisfies_constraint_* instead of macro.
7991         (addr24_operand, gen_compare): Likewise.
7992         * config/m32r/m32r.h (REG_CLASS_FROM_LETTER): Remove.
7993         (INT8_P, UPPER16_P, UINT32_P, UINT5_P, INVERTED_SIGNED_8BIT,
7994         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
7995         EXTRA_CONSTRAINT): Likewise.
7996         * config/m32r/m32r.md: Include constraints.md.
7997         (*movsi_insn): Use satisfies_constraint_* instead of macro.
7998         (andsi3, iorsi3, xorsi3, seq_insn+1, sne): Likewise.
7999         * config/m32r/predicates.md (conditional_move_operand): Likewise.
8000         (two_insn_const_operand, int8_operand, uint16_operand,
8001         reg_or_int16_operand, reg_or_uint16_operand,
8002         reg_or_cmp_int16_operand, cmp_int16_operand,
8003         seth_add3_operand): Likewise.
8004
8005 2007-07-03  Eric Christopher  <echristo@gmail.com>
8006
8007         * libgcc2.h: Conditionally declare __bswapsi2 and
8008         __bswapdi2.
8009         
8010 2007-07-03  H.J. Lu  <hongjiu.lu@intel.com>
8011
8012         * ddg.c (check_sccs): Define only if ENABLE_CHECKING is
8013         defined.
8014
8015 2007-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8016
8017         PR target/28307
8018         * gthr-posix.h [SUPPORTS_WEAK && GTHREAD_USE_WEAK]
8019         (__gthrw_pragma): Provide default definition.
8020         (__gthrw2): Use it.
8021         * gthr-posix.c (__gthrw_pragma): Define.
8022
8023 2007-07-03  Daniel Berlin  <dberlin@dberlin.org>
8024
8025         * tree-ssa-sccvn.c (set_ssa_val_to): Check for operand_equal_p
8026         before declaring inequality.
8027
8028 2007-07-03  Rask Ingemann Lambertsen  <rask@sygehus.dk>
8029
8030         * combine.c (recog_for_combine): Log the success or failure of
8031           matching new insn patterns against the machine description in
8032           detailed dumps.
8033
8034 2007-07-03  Revital Eres  <eres@il.ibm.com>
8035
8036         * ddg.c (print_sccs): New function.
8037         (check_sccs): New function.
8038         (create_ddg_all_sccs): Use it.
8039         * ddg.h (print_sccs): Declare.
8040         * modulo-sched.c (sms_order_nodes): Call print_sccs.
8041
8042 2007-07-03  Uros Bizjak  <ubizjak@gmail.com>
8043
8044         * targhooks.h (default_mode_for_suffix): New function declaration.
8045         * targhooks.c (default_mode_for_suffix): New default target hook.
8046         * target.h (struct c): New structure in the targetm struct.
8047         (mode_for_suffix): New target hook as part of struct c.
8048         target-def.h (TARGET_C_MODE_FOR_SUFFIX): Define as
8049         default_mode_for_suffix.
8050         (TARGET_C): New define.
8051         * c-lex.c: Include "target.h".
8052         (interpret_float): Use targetm.c.mode_for_suffix to determine
8053         the mode for a given non-standard suffix.
8054         Makefile.in (c-lex.o): Depend on $(TARGET_H).
8055
8056         * config/i386/i386.c (ix86_c_mode_for_suffix): New static function.
8057         (TARGET_C_MODE_FOR_SUFFIX): Define to ix86_c_mode_for_suffix.
8058
8059         * doc/extend.texi (Floating Types): New node.  Document __float80 and
8060         __float128 types.  Document 'w', 'W', 'q' and 'Q' suffixes.
8061
8062 2007-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
8063
8064         PR target/32506
8065         * config/sh/sh.md (udivsi3_i1_media): Use target_reg_operand
8066         predicate instead of target_operand.
8067         (divsi3_i1_media, divsi3_media_2): Likewise.
8068
8069 2007-07-02  Eric Botcazou  <ebotcazou@adacore.com>
8070
8071         * tree.h (alias_sets_might_conflict_p): Rename into
8072         alias_sets_must_conflict_p.
8073         * alias.c (alias_sets_might_conflict_p): Likewise.
8074         (alias_sets_conflict_p): Use it.
8075         (objects_must_conflict_p): Likewise.
8076         * c-common.c (strict_aliasing_warning): Adjust.
8077
8078 2007-07-02  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8079
8080         * rtlhooks.c (gen_lowpart_if_possible): Check for
8081         invalid subreg before calling gen_lowpart_SUBREG.
8082
8083 2007-07-02  Geoffrey Keating  <geoffk@apple.com>
8084
8085         * config/darwin9.h: Add copyright notice.
8086         (LINK_COMMAND_SPEC): Add comment.
8087         (DARWIN_LIBSYSTEM_HAS_UNWIND): Define.
8088         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Conditionalise on
8089         DARWIN_LIBSYSTEM_HAS_UNWIND.
8090
8091 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
8092
8093         PR libgomp/32468
8094         * omp-low.c (check_combined_parallel): New function.
8095         (lower_omp_parallel): Call it via walk_stmts, set
8096         OMP_PARALLEL_COMBINED if appropriate.
8097         (determine_parallel_type): If OMP_FOR resp. OMP_SECTIONS
8098         isn't the only statement in WS_ENTRY_BB or OMP_RETURN
8099         the only one in PAR_EXIT_BB and not OMP_PARALLEL_COMBINED,
8100         don't consider it as combined parallel.
8101
8102 2007-07-02  Richard Sandiford  <richard@codesourcery.com>
8103
8104         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
8105         (gcc_tooldir): Likewise.
8106         * configure: Regenerate.
8107         * Makefile.in (libsubdir_to_prefix): New variable, based on the
8108         old configure.ac gcc_tooldir setting.
8109         (prefix_to_exec_prefix): New variable.
8110         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
8111         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
8112
8113 2007-07-02  Daniel Berlin  <dberlin@dberlin.org>
8114
8115         Fix PR tree-optimization/32583
8116         Fix PR tree-optimization/32584
8117         * tree-ssa-pre.c (phi_translate): Always pass seen bitmap.
8118         (phi_translate_set): Use phi_translate directly now.
8119         (make_values_for_stmt): Don't value number RHS if we already know
8120         it is constant.
8121
8122 2007-07-02  Steve Ellcey  <sje@cup.hp.com>
8123             Jim Wilson <wilson@specifix.com>
8124
8125         PR target/31684
8126         * haifa-sched.c (add_to_speculative_block): Change copy_rtx to
8127         copy_insn.
8128
8129 2007-07-02  Sandra Loosemore  <sandra@codesourcery.com>
8130             Richard Sandiford  <richard@codesourcery.com>
8131             Nigel Stephens  <nigel@mips.com>
8132
8133         * config/mips/mips-protos.h (mips16e_save_restore_info): New struct.
8134         (mips16e_output_save_restore): Declare.
8135         (mips16e_save_restore_pattern_p): Likewise.
8136         * config/mips/mips.h (GENERATE_MIPS16E_SAVE_RESTORE): New macro.
8137         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Return 0x7f8
8138         for GENERATE_MIPS16E_SAVE_RESTORE.  Return 0x400 for TARGET_MIPS16
8139         && !GENERATE_MIPS16E_SAVE_RESTORE && !TARGET_64BIT.
8140         (BITSET_P): New global macro, extracted from...
8141         (mips_for_each_saved_reg): ...here.
8142         (mips16e_save_restore_info): New struct.
8143         (mips16e_s2_s8_regs, mips16e_a0_a3_regs): New variables.
8144         (mips16e_save_restore_regs): New variable.
8145         (mips_split_plus, mips16e_find_first_register): New functions.
8146         (mips16e_mask_registers): New function.
8147         (compute_frame_size): Expand the commentary before the function.
8148         Enforce the MIPS16e save and restore register range restrictions.
8149         Pad the general register save area at the low end.
8150         (mips16e_save_restore_reg, mips16e_build_save_restore)
8151         (mips16e_save_restore_pattern_p, mips16e_add_register_range)
8152         (mips16e_output_save_restore, mips16e_collect_propagate_value)
8153         (mips16e_collect_argument_save, mips16e_collect_argument_saves):
8154         New functions.
8155         (mips_expand_prologue, mips_expand_epilogue): Handle
8156         GENERATE_MIPS16E_SAVE_RESTORE.
8157         * config/mips/mips.md (*mips16e_save_restore): New pattern.
8158
8159 2007-07-02  Uros Bizjak  <ubizjak@gmail.com>
8160
8161         PR tree-optimization/31966
8162         PR tree-optimization/32533
8163         * tree-if-conv.c (add_to_dst_predicate_list): Use "edge", not
8164         "basic_block" description as its third argument.  Update function
8165         calls to get destination bb from "edge" argument.  Save "cond" into
8166         aux field of the edge.  Update prototype for changed arguments.
8167         (if_convertible_loop_p): Clear aux field of incoming edges if bb
8168         contains phi node.
8169         (find_phi_replacement_condition): Operate on incoming edges, not
8170         on predecessor blocks.  If there is a condition saved in the
8171         incoming edge aux field, AND it with incoming bb predicate.
8172         Return source bb of the first edge.
8173         (clean_predicate_lists): Clean aux field of outgoing node edges.
8174         (tree_if_conversion): Do not initialize cond variable. Move
8175         variable declaration into the loop.
8176         (replace_phi_with_cond_gimple_modify_stmt): Remove unneded
8177         initializations of new_stmt, arg0 and arg1 variables.
8178
8179 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
8180
8181         * tree-nrv.c (dest_safe_for_nrv_p): Grok any handled_component_p,
8182         SSA_NAMEs, RESULT_DECLs and PARM_DECLs.
8183
8184 2007-07-02  Richard Guenther  <rguenther@suse.de>
8185
8186         * tree-ssa.c (useless_type_conversion_p): Document
8187         future intent as defining the middle-end type system.
8188         Re-structure to call langhook last, group by type class,
8189         mark questionable parts.
8190
8191 2007-07-02  Richard Guenther  <rguenther@suse.de>
8192
8193         * tree-flow.h (types_compatible_p): Declare.
8194         * tree-ssa.c (types_compatible_p): New function.
8195         * ipa-type-escape.c (discover_unique_type): Use
8196         types_compatible_p instead of lang_hooks.types_compatible_p.
8197         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
8198         * tree-vn.c (expressions_equal_p): Likewise.
8199         * tree.c (fields_compatible_p): Likewise.
8200         * tree-ssa-dom.c (avail_expr_eq): Likewise.
8201         (cprop_operand): Use useless_type_conversion_p instead of
8202         lang_hooks.types_compatible_p.
8203         * tree-inline.c (setup_one_parameter): Likewise.
8204         (declare_return_variable): Likewise.
8205         * tree-nrv.c (tree_nrv): Likewise.
8206         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
8207         (maybe_fold_offset_to_component_ref): Likewise.
8208         (maybe_fold_offset_to_reference): Likewise.
8209         * tree-ssa-copy.c (may_propagate_copy): Likewise.
8210         (merge_alias_info): Likewise.
8211         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
8212         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
8213         * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
8214         * tree-tailcall.c (find_tail_calls): Likewise.
8215         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
8216         * gimplify.c (canonicalize_addr_expr): Likewise.
8217         (fold_indirect_ref_rhs): Likewise.
8218         (gimplify_addr_expr): Likewise.  Swap parameters to cpt_same_type.
8219         (cpt_same_type): Likewise.
8220         (check_pointer_types_r): Swap parameters to cpt_same_type
8221         where appropriate.
8222         * fold-const.c (fold_convert): Revert fix for PR15988.
8223         * tree-inline.c (setup_one_parameter): Instead fix it here by
8224         using fold_build1 instead of fold_convert and checking for
8225         error_mark_node.  Convert only if the conversion is necessary.
8226
8227 2007-07-02  Joseph Myers  <joseph@codesourcery.com>
8228
8229         * configure.ac: Check for .gnu_attribute on Power.
8230         * configure: Regenerate.
8231         * config/rs6000/rs6000.c (rs6000_file_start): If supported, output
8232         attribute for floating-point ABI.
8233
8234 2007-07-02  Ira Rosen  <irar@il.ibm.com>
8235
8236         PR tree-optimization/32230
8237         PR tree-optimization/32477
8238         * tree-vect-analyze.c (vect_analyze_data_refs): Fail if base 
8239         address is a constant.
8240
8241 2007-07-02  Richard Sandiford  <richard@codesourcery.com>
8242
8243         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*)
8244         (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*)
8245         (mipsisa64-*-elf*, mipsisa64el-*-elf*): Combine top-level
8246         stanzas.  Use the first part of the triplet to set MIPS_ISA_DEFAULT.
8247         Remove redundant setting of MASK_FLOAT64 and MASK_64BIT for the
8248         64-bit targets.  Add support for *-elfoabi*.
8249         * config/mips/t-isa3264 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Use
8250         different settings if $(tm_defines) does not select the EABI.
8251         (MULTILIB_EXCLUSIONS): Define in those circumstances.
8252         * config/mips/mips.h (MIPS_ISA_LEVEL_OPTION_SPEC): New macro.
8253         (MIPS_ARCH_OPTION_SPEC): Likewise.
8254         (MIPS_ISA_LEVEL_SPEC): Likewise.
8255         (OPTION_DEFAULT_SPECS): Use MIPS_ARCH_OPTION_SPEC.
8256         * config/mips/elfoabi.h: New file.
8257
8258 2007-07-02  Richard Guenther  <rguenther@suse.de>
8259
8260         * tree-flow.h (tree_ssa_useless_type_conversion_1): Rename to ...
8261         (useless_type_conversion_p): ... this.
8262         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Rename to ...
8263         (useless_type_conversion_p): ... this.
8264         * builtins.c (fold_builtin_memory_op): Rename
8265         tree_ssa_useless_type_conversion_1 to useless_type_conversion_p.
8266         * tree-cfg.c (verify_expr): Likewise.
8267         * tree-ssa-address.c (tree_ssa_useless_type_conversion_1): Likewise.
8268         * tree-ssa-ccp.c (ccp_fold): Likewise.
8269         * tree-ssa-copy.c (may_propagate_copy): Likewise.
8270         * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
8271         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
8272         * tree-ssa-loop-niter.c (refine_bounds_using_guard): Likewise.
8273         * tree-ssa-pre.c (eliminate): Likewise.
8274         * tree-ssa.c (delete_tree_ssa): Likewise.
8275         (tree_ssa_useless_type_conversion): Likewise.
8276         * tree.c (build2_stat): Likewise.
8277
8278 2007-07-01  Daniel Berlin  <dberlin@dberlin.org>
8279
8280         Fix PR tree-optimization/32571
8281         * tree-ssa-sccvn.c (visit_use): Shortcut copies to avoid
8282         simplifying them.
8283
8284 2007-07-01  Daniel Berlin  <dberlin@dberlin.org>
8285
8286         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle constants
8287         and other expected operations explicitly, change default to
8288         gcc_unreachable. 
8289
8290 2007-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
8291
8292         * config/arm/arm.c (arm_cannot_copy_insn_p): Do not expect a
8293         PARALLEL.
8294         * config/arm/arm.md (pic_add_dot_plus_four, pic_add_dot_plus_eight)
8295         (tls_load_dot_plus_eight): Move the label number into the unspec.
8296         * config/arm/thumb2.md (pic_load_dot_plus_four): Likewise.
8297
8298 2007-07-01  Andreas Schwab  <schwab@suse.de>
8299
8300         * dwarf2out.c (initial_return_save): Define only if used.
8301
8302 2007-07-01  Kenneth Zadeck <zadeck@naturalbridge.com>
8303
8304         Unreverting Richard's Revert of:
8305
8306         2007-06-27  Richard Sandiford  <richard@codesourcery.com>
8307
8308         * dce.c (deletable_insn_p_1): New function, split out from...
8309         (deletable_insn_p): ...here.  Only treat bare USEs and CLOBBERs
8310         specially, not those inside PARALLELs.  Remove BODY argument
8311         and adjust recursive call accordingly.
8312         (prescan_insns_for_dce): Update call to delete_insn_p.
8313
8314 2007-07-01  Vladimir Yanovsky  <yanov@il.ibm.com>
8315             Revital Eres  <eres@il.ibm.com>
8316
8317         * ddg.c (create_ddg_all_sccs): Fix missed
8318         initialization of scc_nodes.
8319
8320 2007-07-01  Uros Bizjak  <ubizjak@gmail.com>
8321
8322         PR middle-end/32559
8323         * fold-const.c (fold-binary) [PLUS_EXPR]: Convert ~X + X to 1 or
8324         X + ~X to 1 only for INTEGRAL_TYPE_P type.
8325
8326 2007-06-30  Joseph Myers  <joseph@codesourcery.com>
8327
8328         * configure.ac: Check for .gnu_attribute on MIPS.
8329         * configure, config.in: Regenerate.
8330         * config/mips/mips.c (mips_file_start): If supported, output
8331         attribute for floating-point ABI.
8332
8333 2007-06-30  Uros Bizjak  <ubizjak@gmail.com>
8334
8335         PR target/32433
8336         * config/i386/i386.md (ffssi2): Expand as ffs_cmove for TARGET_CMOVE.
8337         (ffs_cmove): New expander to expand using ctz pattern.
8338         (*ffs_cmove): Remove pattern.
8339         (*ffs_no_cmove): Enable only for !TARGET_CMOVE.
8340         (ffsdi2): Expand using ctz pattern.
8341         (*ffs_rex64): Remove pattern.
8342
8343 2007-06-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8344
8345         PR rtl-optimization/32296
8346         * pa.md (return): Delete pattern.
8347         (return_internal): Remove "(const_int 1)" from pattern.
8348         (epilogue): Use return_internal pattern for trivial returns.
8349         * pa-protos.h (hppa_can_use_return_insn_p): Delete declaration.
8350         * pa.c (hppa_can_use_return_insn_p): Delete function.  Include "df.h".
8351
8352 2007-06-30  Daniel Berlin  <dberlin@dberlin.org>
8353
8354         * tree-ssa-pre.c (is_exception_related): New function
8355         (can_value_number_operation): Use it.
8356
8357 2007-06-30  Daniel Berlin  <dberlin@dberlin.org>
8358         
8359         Fix PR tree-optimization/32540
8360         Fix PR tree-optimization/31651
8361
8362         * tree-ssa-sccvn.c: New file.
8363
8364         * tree-ssa-sccvn.h: Ditto.
8365         
8366         * tree-vn.c: Include tree-ssa-sccvn.h
8367         (val_expr_paid_d): Removed.
8368         (value_table): Ditto.
8369         (vn_compute): Ditto.
8370         (val_expr_pair_hash): Ditto.
8371         (val_expr_pair_expr_eq): Ditto.
8372         (copy_vuses_from_stmt): Ditto.
8373         (vn_delete): Ditto.
8374         (vn_init): Ditto.
8375         (shared_vuses_from_stmt): Ditto.
8376         (print_creation_to_file): Moved up.
8377         (sort_vuses): Ditto.
8378         (sort_vuses_heap): Ditto.
8379         (set_value_handle): Make non-static.
8380         (make_value_handle): Ditto.
8381         (vn_add): Rewritten to use sccvn lookups.
8382         (vn_add_with_vuses): Ditto.
8383         (vn_lookup): Ditto (and second argument removed).
8384         (vn_lookup_with_vuses): Ditto.
8385         (vn_lookup_or_add): Ditto (and second argument removed);
8386         (vn_lookup_or_add_with_vuses): Ditto.
8387         (vn_lookup_with_stmt): New.
8388         (vn_lookup_or_add_with_stmt): Ditto.
8389         (create_value_handle_for_expr): Ditto.
8390
8391         * tree-ssa-pre.c: Include tree-ssa-sccvn.h.
8392         (seen_during_translate): New function.
8393         (phi_trans_lookup): Use iterative_hash_expr, not vn_compute.
8394         (phi_trans_add): Ditto.
8395         (constant_expr_p): FIELD_DECL is always constant.
8396         (phi_translate_1): Renamed from phi_translate, add seen bitmap.
8397         Use constant_expr_p.
8398         Avoid infinite recursion on mutually valued expressions.
8399         Change callers of vn_lookup_or_add.
8400         (phi_translate): New function.
8401         (compute_antic_safe): Allow phi nodes.
8402         (create_component_ref_by_pieces): Update for FIELD_DECL change.
8403         (find_or_generate_expression): Rewrite slightly.
8404         (create_expression_by_pieces): Updated for vn_lookup_or_add
8405         change.
8406         Update VN_INFO for new names.
8407         (insert_into_preds_of_block): Update for new names.
8408         (add_to_exp_gen): New function.
8409         (add_to_sets): Use vn_lookup_or_add_with_stmt.
8410         (find_existing_value_expr): Rewrite to changed vn_lookup.
8411         (create_value_expr_from): Ditto, and use add_to_exp_gen.
8412         (try_look_through_load): Removed.
8413         (try_combine_conversion): Ditto.
8414         (get_sccvn_value): New function.
8415         (make_values_for_phi): Ditto.
8416         (make_values_for_stmt): Ditto.
8417         (compute_avail): Rewritten for vn_lookup_or_add changes and to use
8418         SCCVN.
8419         (init_pre): Update for SCCVN changes.
8420         (fini_pre): Ditto.
8421         (execute_pre): Ditto.
8422
8423         * tree-flow.h (make_value_handle): Declare.
8424         (set_value_handle): Ditto.
8425         (sort_vuses_heap): Ditto.
8426         (vn_lookup_or_add_with_stmt): Ditto.
8427         (vn_lookup_with_stmt): Ditto.
8428         (vn_compute): Remove.
8429         (vn_init): Ditto.
8430         (vn_delete): Ditto.
8431         (vn_lookup): Update arguments.
8432
8433         * Makefile.in (tree-ssa-pre.o): Add tree-ssa-sccvn.h
8434         (tree-vn.o): Ditto.
8435         (tree-ssa-sccvn.o): New.
8436         (OBJS-common): Add tree-ssa-sccvn.o
8437         
8438 2007-06-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8439
8440         PR c/4076
8441         * c-typeck.c (build_external_ref): Don't mark as used if called
8442         from itself.
8443         * calls.c (rtx_for_function_call): Likewise.
8444         
8445 2007-06-30  Richard Sandiford  <richard@codesourcery.com>
8446
8447         Revert:
8448
8449         2007-06-27  Richard Sandiford  <richard@codesourcery.com>
8450
8451         * dce.c (deletable_insn_p_1): New function, split out from...
8452         (deletable_insn_p): ...here.  Only treat bare USEs and CLOBBERs
8453         specially, not those inside PARALLELs.  Remove BODY argument
8454         and adjust recursive call accordingly.
8455         (prescan_insns_for_dce): Update call to delete_insn_p.
8456
8457 2007-06-30  Rask Ingemann Lambertsen <rask@sygehus.dk>
8458
8459         * combine.c (combine_validate_cost): New parameter NEWOTHERPAT.
8460         (try_combine): Move potential calls to undo_all() so they happen
8461         before we commit to using the combined insns.
8462
8463 2006-06-30  Jan Hubicka  <jh@suse.cz>
8464
8465         * loop-unroll.c (unroll_loop_runtime_iterations): Unshare newly emit
8466         code.
8467
8468 2006-06-30  Thomas Neumann  <tneumann@users.sourceforge.net>
8469
8470         * ipa.c (cgraph_postorder): Cast according to the coding conventions.
8471         (cgraph_remove_unreachable_nodes): Likewise.
8472         * ipa-cp.c (ipcp_propagate_stage): Use BOTTOM instead of integer 0.
8473         * ipa-inline.c (update_caller_keys): Cast according to the coding
8474         conventions.
8475         (cgraph_decide_recursive_inlining): Likewise.
8476         (cgraph_decide_inlining_of_small_function): Likewise.
8477         (try_inline): Likewise.
8478         (cgraph_decide_inlining_incrementally): Likewise.
8479         * ipa-pure-const.c (get_function_state): Likewise.
8480         (scan_function): Likewise.
8481         (analyze_function): Likewise.
8482         (static_execute): Likewise.
8483         * ipa-reference.c (scan_for_static_refs): Likewise.
8484         (merge_callee_local_info): Likewise.
8485         (analyze_function): Use type safe memory macros.
8486         (static_execute): Likewise. Cast according to the coding conventions.
8487         * ipa-type-escape.c (scan_for_regs): Cast according to the coding
8488         conventions.
8489         * ipa-utils.c (searchc): Likewise. Avoid using C++ keywords as variable
8490         names.
8491         (ipa_utils_reduced_inorder): Likewise. Use type safe memory macros.
8492         * ipa-utils.h (struct ipa_dfa_info): Avoid using C++ keywords as
8493         variable names.
8494
8495 2007-06-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8496
8497         PR middle-end/30024
8498         * emit-rtl.c (init_emit_once): Intilize const_tiny_rtx[0]
8499         for complex modes (both int and real).
8500
8501 2007-06-29  Jan Hubicka  <jh@suse.cz>
8502
8503         * cse.c: Rever accidentally comitted TODO_verify_rtl_sharing change.
8504
8505 2007-06-29  Jan Hubicka  <jh@suse.cz>
8506
8507         PR middle-end/32372
8508         * cse.c (cse_insn): Avoid invalid sharing in between register note and
8509         the insn pattern.
8510
8511 2007-06-29  Anatoly Sokolov <aesok@post.ru>
8512
8513         PR target/32335
8514         * config/avr/avr.c: Include dataflow header file.
8515         (expand_prologue): Adjust for prologue insn change.
8516         * config/avr/avr.md (call_prologue_saves): Only modify REG_SP once
8517         inside a insn.
8518
8519 2007-06-29  Richard Guenther  <rguenther@suse.de>
8520
8521         PR middle-end/32493
8522         * gimplify.c (gimplify_call_expr): Ignore variable argument parts
8523         during type verification.
8524
8525 2007-06-29  Jan Hubicka  <jh@suse.cz>
8526
8527         * recog.c (validate_change_rtx_1): Unshare TO argument.
8528
8529 2007-06-29  Uros Bizjak  <ubizjak@gmail.com>
8530
8531         PR tree-optimization/24659
8532         * tree-vect-transform.c (vectorizable_call): Handle
8533         (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
8534
8535         * config/i386/sse.md (vec_pack_sfix_v2df): New expander.
8536         * config/i386/i386.c (enum ix86_builtins)
8537         [IX86_BUILTIN_VEC_PACK_SFIX]: New constant.
8538         (struct bdesc_2arg) [__builtin_ia32_vec_pack_sfix]: New builtin
8539         description.
8540         (ix86_init_mmx_sse_builtins): Define all builtins with 2 arguments as
8541         const using def_builtin_const.
8542         (ix86_expand_binop_builtin): Remove bogus assert() that insn wants
8543         input operands in the same modes as the result.
8544         (ix86_builtin_vectorized_function): Handle BUILT_IN_LRINT.
8545
8546 2007-06-29  Richard Sandiford  <rsandifo@nildram.co.uk>
8547
8548         * df-problems.c (df_set_unused_notes_for_mw): Fix formatting.
8549         (df_set_dead_notes_for_mw): Likewise.
8550
8551 2007-06-29  Eric Botcazou  <ebotcazou@adacore.com>
8552
8553         * c-common.c (pointer_int_sum): Do the negation in sizetype.
8554
8555 2007-06-28  DJ Delorie  <dj@redhat.com>
8556
8557         * config/m32c/m32c.h (OVERRIDE_OPTIONS): Omit unneeded semicolon.
8558
8559 2007-06-28  Geoffrey Keating  <geoffk@apple.com>
8560
8561         * doc/invoke.texi (C++ Dialect Options): Document
8562         fvisibility-ms-compat.
8563         * c.opt (fvisibility-ms-compat): New.
8564
8565 2007-06-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8566
8567         PR tree-opt/32417
8568         * tree-affine.c (aff_combination_add_elt): Handle
8569         pointer addition specially.
8570
8571 2007-06-28  Jakub Jelinek  <jakub@redhat.com>
8572
8573         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Ensure
8574         decl is non-external for AIX ABI.
8575
8576 2007-06-28  David Edelsohn  <edelsohn@gnu.org>
8577
8578         * config/rs6000/predicates.md (current_file_function_operand):
8579         Ensure the symbol is non-external for AIX ABI.
8580
8581 2007-06-28  Nick Clifton  <nickc@redhat.com>
8582
8583         * common.opt (fipa-matrix-reorg): Add Optimization attribute.
8584         (fdce, fdse, fpredictive-commoning): Likewise.
8585
8586 2007-06-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8587
8588         PR other/31400
8589         * gcc.c (process_command): Recognize the new -static-libgfortran
8590         option.
8591
8592 2007-06-27  Rask Ingemann Lambertsen  <rask@sygehus.dk>
8593
8594         PR target/32418
8595         * config/m32c/m32c.c (m32c_eh_return_stackadj_rtx): Dataflow fix:
8596         Use a call clobbered hard reg instead of a pseudo reg.
8597
8598 2007-06-27  Kaz Kojima  <kkojima@gcc.gnu.org>
8599
8600         * config/sh/sh.md (load_gbr): Use correct operand constraint.
8601
8602 2007-06-27  Kaz Kojima  <kkojima@gcc.gnu.org>
8603
8604         PR target/32479
8605         * config/sh/sh.md (udivsi3): Don't wrap the sequence with
8606         REG_LIBCALL and REG_RETVAL notes.
8607         (divsi3, mulsi3): Likewise.
8608         (mulhisi3): Likewise.  Use emit_libcall_block.
8609         (umulhisi3, smulsi3_highpart, umulsi3_highpart_i): Likewise.
8610
8611 2007-06-27  Seongbae Park  <seongbae.park@gmail.com>
8612
8613         PR rtl-optimization/32481
8614         * combine.c (adjust_for_new_dest): Rescan the changed insn.
8615
8616 2007-06-27  Richard Sandiford  <richard@codesourcery.com>
8617
8618         * dce.c (deletable_insn_p_1): New function, split out from...
8619         (deletable_insn_p): ...here.  Only treat bare USEs and CLOBBERs
8620         specially, not those inside PARALLELs.  Remove BODY argument
8621         and adjust recursive call accordingly.
8622         (prescan_insns_for_dce): Update call to delete_insn_p.
8623
8624 2007-06-27  Richard Guenther  <rguenther@suse.de>
8625
8626         PR middle-end/32492
8627         * tree.h (fold_convertible_p): Declare.
8628         * fold-const.c (fold_convertible_p): New function.
8629         * gimplify.c (gimplify_call_expr): Use fold_convertible_p
8630         instead of lang_hooks.types_compatible_p.
8631
8632 2007-06-26  Jan Hubicka  <jh@suse.cz>
8633
8634         * fwprop.c (try_fwprop_subst): Use validate_unshare_change.
8635         * postreload.c (reload_cse_simplify_set): Instead of copying the rtx
8636         early use validate_unshare_change.
8637         (reload_combine): Likewise.
8638         * recog.c (change_t): New field unshare.
8639         (validate_change_1): Rename from validate_change; add argument unshare.
8640         (validate_change): Turn into wrapper of validate_change_1; update
8641         prototype for bools.
8642         (validate_unshare_change): New.
8643         (confirm_change_group): Unshare changes if asked for; avoid unnecesary
8644         calls of df_insn_rescan.
8645         * recog.h (validate_change): Replace ints by bools.
8646         (validate_unshare_change): Declare.
8647
8648 2007-06-26  Kenneth Zadeck <zadeck@naturalbridge.com>
8649
8650         * tree.def (VEC_WIDEN_MULT_LO_EXPR): Corrected string name.
8651         
8652 2007-06-26  Steve Ellcey  <sje@cup.hp.com>
8653
8654         * builtins.c (expand_builtin_next_arg): Change Pmode to ptr_mode.
8655
8656 2007-06-25  Jan Hubicka  <jh@suse.cz>
8657
8658         * ipa-inline.c (cgraph_mark_inline): Assert that we never inline
8659         uninlinable call.
8660         (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining,
8661         cgraph_decide_inlining_incrementally): Move uninlinability checks to
8662         places other call site specific checks are performed.
8663
8664 2007-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8665
8666         PR tree-opt/32421
8667         * tree-vect-transform.c (vectorizable_operation): Convert
8668         POINTER_PLUS_EXPR over to PLUS_EXPR.
8669
8670 2007-06-25  Chao-ying Fu  <fu@mips.com>
8671
8672         * doc/rtl.texi (Machine Modes): Document QQ, HQ, SQ, DQ, TQ,
8673         UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA, USA, UDA, and UTAmodes.
8674         Document MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
8675         Document GET_MODE_IBIT, and GET_MODE_FBIT.
8676
8677         * machmode.h (VECTOR_MODE_P): Test MODE_VECTOR_FRACT,
8678         MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
8679         (SCALAR_FRACT_MODE_P, SCALAR_UFRACT_MODE_P, ALL_SCALAR_FRACT_MODE_P,
8680         SCALAR_ACCUM_MODE_P, SCALAR_UACCUM_MODE_P, ALL_SCALAR_ACCUM_MODE_P,
8681         SIGNED_SCALAR_FIXED_POINT_MODE_P, UNSIGNED_SCALAR_FIXED_POINT_MODE_P,
8682         ALL_SCALAR_FIXED_POINT_MODE_P, FRACT_MODE_P, UFRACT_MODE_P,
8683         ALL_FRACT_MODE_P, ACCUM_MODE_P, UACCUM_MODE_P, ALL_ACCUM_MODE_P,
8684         SIGNED_FIXED_POINT_MODE_P, UNSIGNED_FIXED_POINT_MODE_P,
8685         ALL_FIXED_POINT_MODE_P): New define.
8686         (CLASS_HAS_WIDER_MODES_P): Test MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
8687         MODE_UACCUM.
8688         (GET_MODE_IBIT, GET_MODE_FBIT): New define.
8689
8690         * mode-classes.def (MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM,
8691         MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
8692         MODE_VECTOR_UACCUM): New mode classes.
8693
8694         * machmode.def: Document FRACT_MODE, UFRACT_MODE, ACCUM_MODE,
8695         UACCUM_MODE, ADJUST_IBIT, and ADJUST_FBIT.
8696         Add QQ, HQ, SQ, DQ, TQ, UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA,
8697         USA, UDA, and UTA.
8698
8699         * genmodes.c (struct mode_data): Add ibit and fbit fields.
8700         (blank_mode): Initialize ibit and fbit.
8701         (adj_ibit, adj_fbit): New to adjust ibit and fbit.
8702         (vector_class): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
8703         MODE_UACCUM.
8704         (new_adjust): Change required_class to required_class_from and
8705         required_class_to for testing within a range.
8706         (complete_mode): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
8707         MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
8708         MODE_VECTOR_UACCUM.
8709         (FRACT_MODE, UFRACT_MODE, ACCUM_MODE, UACCUM_MODE): New define.
8710         (make_fixed_point_mode): New.
8711         (_ADD_ADJUST): Change C to C1 and C2.
8712         (ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FLOAT_FORMAT): Change to
8713         use a range for machine classes.
8714         (ADJUST_IBIT, ADJUST_FBIT): New.
8715         (emit_insn_modes_h): Output defines of CONST_MODE_IBIT and
8716         CONST_MODE_FBIT.
8717         (emit_mode_adjustments): Handle MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
8718         MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
8719         Emit adjustment for ibit and fbit.
8720         (emit_mode_ibit, emit_mode_fbit): New.
8721         (emit_insn_modes_c): Add emit_mode_ibit and emit_mode_fbit.
8722
8723 2007-06-25  Nathan Froyd  <froydnj@codesourcery.com>
8724
8725         * config/rs6000/spe.md (*frob_ti_tf_2): Specify an input_operand
8726         as the source of the set.
8727
8728 2007-06-25  Roman Zippel <zippel@linux-m68k.org>
8729
8730         * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P,
8731         FP_REGNO_P): Use IN_RANGE.
8732         (REGNO_OK_FOR_DATA_P, REGNO_OK_FOR_FP_P): Remove.
8733         (REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): New.
8734         (DATA_REG_P): Use DATA_REGNO_P.
8735         (FP_REG_P): Use FP_REGNO_P.
8736         (ADDRESS_REG_P): Use ADDRESS_REGNO_P.
8737         * config/m68k/m68k.c (m68k_legitimate_base_reg_p): Use
8738         REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P.
8739
8740 2007-06-24  Jan Hubicka  <jh@suse.cz>
8741
8742         PR middle-end/30563
8743         * cgraphunit.c (cgraph_analyze_function): Fix ordering problem.
8744
8745 2007-06-24  Sebastian Pop  <sebpop@gmail.com>
8746
8747         PR middle-end/32461
8748         * fold-const.c (fold_binary): Strip nops of operand 0
8749         of BIT_NOT_EXPR before calling operand_equal_p.
8750         * testsuite/gcc.dg/tree-ssa/pr32461-1.c: New.
8751         * testsuite/gcc.dg/tree-ssa/pr32461-2.c: New.
8752
8753 2007-06-23  Mark Mitchell  <mark@codesourcery.com>
8754
8755         * doc/extend.texi: Document that dllimport and dllexport imply
8756         default visibility.
8757         * tree.c (handle_dll_attribute): Set DECL_VISIBILITY on the
8758         imported or exported declaration, including type declarations.
8759         * c-common.c (handle_visibility_attribute): Check for conflicts
8760         with dllimport/dllexport.
8761         (c_determine_visibility): Handle dllimport/dllexport as an
8762         explicit visibility atttribute.
8763
8764 2007-06-23  Richard Guenther  <rguenther@suse.de>
8765
8766         PR tree-optimization/16876
8767         PR middle-end/29478
8768         * tree.h (CALL_CANNOT_INLINE_P): New macro to access static_flag
8769         for CALL_EXPRs.
8770         * tree-inline.c (initialize_inlined_parameters): Do not call
8771         lang_hooks.tree_inlining.convert_parm_for_inlining.
8772         * cgraphbuild.c (initialize_inline_failed): Set inline failed
8773         reason for mismatched types.
8774         * gimplify.c (gimplify_call_expr): Verify the call expression
8775         arguments match the called function type signature.  Otherwise
8776         mark the call expression to be not considered for inlining
8777         using CALL_CANNOT_INLINE_P flag.
8778         * ipa-inline.c (cgraph_mark_inline): Honor CALL_CANNOT_INLINE_P on the
8779         edges call expression.
8780         (cgraph_decide_inlining_of_small_function): Likewise.
8781         (cgraph_decide_inlining): Likewise.
8782         * c-objc-common.h (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
8783         Remove define.
8784         * c-tree.h (c_convert_parm_for_inlining): Remove declaration.
8785         * c-typeck.c (c_convert_parm_for_inlining): Remove.
8786         * langhooks-def.h (lhd_tree_inlining_convert_parm_for_inlining):
8787         Remove declaration.
8788         (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING): Remove define.
8789         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining):
8790         Remove.
8791         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
8792         convert_parm_for_inlining member.
8793
8794 2007-06-23  Richard Earnshaw  <rearnsha@arm.com>
8795
8796         PR target/31152
8797         * arm.md (negscc): Match the correct operand for optimized LT0 test.
8798         Remove optimization for GT.
8799
8800 2007-06-23  Kenneth Zadeck <zadeck@naturalbridge.com>
8801
8802         PR middle-end/32437
8803         * dce.c (deletable_insn_p): Add extra parameter and recurse if insn
8804         is a PARALLEL.
8805         (prescan_insns_for_dce): Add extra parameter.
8806         
8807 2007-06-23  Jan Hubicka  <jh@suse.cz>
8808
8809         PR middle-end/31541
8810         * gimplify.c (mark_addressable): New function.
8811         (gimplify_modify_expr_rhs, gimplify_addr_expr, gimplify_expr): Use it.
8812
8813 2007-06-22  Uros Bizjak  <ubizjak@gmail.com>
8814
8815         PR middle-end/32374
8816         * expr.c (store_constructor): Do not clobber non-zeroed memory. 
8817
8818 2007-06-22  Uros Bizjak  <ubizjak@gmail.com>
8819
8820         PR target/32413
8821         * config/i386/i386.c (ix86_register_move_cost): Rise the cost of
8822         moves between MMX/SSE registers to at least 8 units to prevent
8823         ICE caused by non-tieable SI/HI/QImodes in SSE registers. 
8824
8825 2007-06-22  Uros Bizjak  <ubizjak@gmail.com>
8826
8827         * config/i386/i386.c (override_options): Correct x86_sahf
8828         setting condition.
8829
8830 2007-06-21  David Daney  <ddaney@avtrex.com>
8831
8832         PR target/32406
8833         * config/mips/mips.md (define_constants): Rename UNSPEC_EH_RECEIVER
8834         to UNSPEC_NONLOCAL_GOTO_RECEIVER globally.
8835         (exception_receiver): Renamed to ...
8836         (nonlocal_goto_receiver): ... this.
8837
8838 2007-06-22  Roman Zippel <zippel@linux-m68k.org>
8839
8840         * df-scan.c (df_read_modify_subreg_p): Use REGMODE_NATURAL_SIZE.
8841         (df_def_record_1): Set (DF_REF_READ_WRITE | DF_REF_PARTIAL) for
8842         partial register accesses.
8843
8844 2007-06-21  Adam Nemet  <anemet@caviumnetworks.com>
8845
8846         * fold-const.c (debug_fold_checksum): Move it under
8847         ENABLE_FOLD_CHECKING.
8848
8849 2007-06-21  Sebastian Pop  <sebpop@gmail.com>
8850
8851         PR middle-end/20623
8852         * tree.h (debug_fold_checksum): Declared.
8853         * fold-const.c (build_fold_addr_expr_with_type_1): New.
8854         (build_fold_addr_expr_with_type, build_fold_addr_expr): Use 
8855         build_fold_addr_expr_with_type_1.
8856         (fold_addr_expr, debug_fold_checksum): New.
8857         (fold_checksum_tree): Don't fold TREE_CHAIN of an SSA_NAME.
8858         (fold_unary, fold_comparison, split_address_to_core_and_offset):
8859         Use fold_addr_expr.
8860         
8861 2007-06-21  Sebastian Pop  <sebpop@gmail.com>
8862
8863         PR tree-optimization/19590
8864         * tree-vrp.c (adjust_range_with_scev): Set the range when the result
8865         of scev is a constant.
8866
8867 2007-06-21  Kenneth Zadeck <zadeck@naturalbridge.com>
8868
8869         * df-problems.c (df_note_bb_compute): Made computation of live
8870         info consistent with df_lr.
8871
8872 2007-06-21  Richard Guenther  <rguenther@suse.de>
8873
8874         PR tree-optimization/32453
8875         * tree-vrp.c (extract_range_from_assert): Build POINTER_PLUS_EXPR
8876         for pointer anti-range.
8877
8878 2007-06-21  H.J. Lu  <hongjiu.lu@intel.com>
8879
8880         * config/i386/i386.c (processor_target_table): Increase maximum
8881         skip from 7 byte to 10 byte for Pentium Pro, Core 2 Duo and
8882         default 64bit.
8883
8884         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Ensure 8
8885         byte alignment if > 8 byte alignment is preferred.
8886         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
8887
8888 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
8889
8890         PR tree-optimization/31866
8891         * tree-ssa-coalesce.c (create_outofssa_var_map): Do nothing
8892         if ASM_EXPR's input is not a SSA_NAME.
8893
8894         PR middle-end/32362
8895         * omp-low.c (lookup_decl_in_outer_ctx): Don't ICE if t is NULL,
8896         but decl is a global var, instead return decl.
8897         * gimplify.c (gimplify_adjust_omp_clauses_1): Add shared clauses
8898         even for is_global_var decls, if they are private in some outer
8899         context.
8900
8901 2007-06-21  Richard Guenther  <rguenther@suse.de>
8902
8903         PR tree-optimization/32451
8904         * tree-ssa-threadupdate.c (thread_single_edge): Fixup edge flags.
8905
8906 2007-06-21  Christian Bruel  <christian.bruel@st.com>
8907
8908         * config/sh/sh-protos.h (sh_loads_bankedreg_p): Declare.
8909         * config/sh/sh.c (sh_loads_bankedreg_p): New function.
8910         (push_regs): Changed saving order or banked registers.
8911         (sh_expand_epilogue): Likewise.
8912         * config/sh/sh.h (BANKED_REGISTER_P): New macro.
8913         (FIRST_BANKED_REG): Likewise.
8914         (LAST_BANKED_REG): Likewise.
8915         * config/sh/sh.md (banked) New attribute.
8916         (in_delay_slot): Check banked attribute.
8917         
8918 2007-06-20  Sebastian Pop  <sebpop@gmail.com>
8919
8920         PR tree-optimization/32075
8921         * tree-data-ref.c (subscript_dependence_tester_1, 
8922         analyze_miv_subscript, analyze_overlapping_iterations,
8923         add_distance_for_zero_overlaps, build_classic_dist_vector,
8924         subscript_dependence_tester_1, analyze_overlapping_iterations,
8925         subscript_dependence_tester, access_functions_are_affine_or_constant_p,
8926         compute_affine_dependence, compute_all_dependences): Pass loop_nest 
8927         to evolution_function_is_affine_multivariate_p.
8928
8929 2007-06-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
8930
8931         * df-scan.c (df_get_call_refs): Be prepared for MEMs inside CLOBBERs.
8932
8933 2007-06-20  Rask Ingemann Lambertsen  <rask@sygehus.dk>
8934
8935         PR target/32335
8936         * config/m32c/m32c.c (m32c_emit_epilogue): Use new HImode epilogue
8937         for TARGET_A16.
8938         * config/m32c/prologue.md (epilogue_exitd_16): New.
8939         (epilogue_reit_16): New.
8940         (epilogue_exitd): Rename to epilogue_exitd_24.
8941         (epilogue_reit): Rename to epilogue_reit_24.
8942
8943 2007-06-20  Seongbae Park  <seongbae.park@gmail.com>
8944             Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
8945
8946         * dbgcnt.def (global_alloc_at_func, global_alloc_at_reg):
8947         New counters.
8948         * haifa-sched.c (queue_to_ready): Don't requeue next insn
8949         if dbg_cnt (sched_insn) reaches the limit.
8950         (choose_ready): New parameter INSN_PTR and new return value.
8951         (schedule_block): Handle dbg_cnt (sched_insn). Handle
8952         the new return value from choose_ready.
8953         * global.c (global_aloc): New dbgcnt global_alloc_at_reg.
8954         (rest_of_handle_global_alloc): New global_alloc_at_func.
8955
8956 2007-06-20  Adam Nemet  <anemet@caviumnetworks.com>
8957
8958         PR tree-optimization/25737
8959         * tree.h (struct tree_struct_field_tag): Add new field alias_set.
8960         (SFT_NONADDRESSABLE_P, SFT_ALIAS_SET): New macros.
8961         * tree-flow.h (struct fieldoff): Add new field alias_set.
8962         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add new
8963         argument addressable_type.  Set alias_set of fieldoff.
8964         * tree-ssa-alias.c (create_sft): Add new argument alias_set.
8965         (create_overlap_variables_for): Pass alias_set from fieldoff to
8966         create_sft.
8967         * alias.c (get_alias_set): Use alias_set from SFT if set.
8968
8969 2007-06-20  Hui-May Chang  <hm.chang@apple.com>
8970
8971         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Print the size
8972         of a variable as an unsigned HOST_WIDE_INT integer.
8973
8974 2007-06-20  Zdenek Dvorak  <dvorakz@suse.cz>
8975
8976         PR rtl-optimization/32405
8977         * loop-iv.c (iv_get_reaching_def): Fail for partial defs.
8978
8979 2007-06-20  Jakub Jelinek  <jakub@redhat.com>
8980
8981         * Makefile.in (omega.o): Depend on $(DIAGNOSTIC_H).
8982
8983         PR middle-end/31959
8984         * builtins.c: Include diagnostic.h.
8985         (expand_builtin_expect): Make gcc_assert more permissive.
8986         * Makefile.in (builtins.o): Depend on $(DIAGNOSTIC_H).
8987
8988         PR inline-asm/32109
8989         * gimplify.c (gimplify_asm_expr): Issue error if type is addressable
8990         and !allows_mem.
8991
8992         PR middle-end/32285
8993         * calls.c (precompute_arguments): Also precompute CALL_EXPR arguments
8994         if ACCUMULATE_OUTGOING_ARGS.
8995
8996 2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
8997
8998         * config/m68hc11/m68hc11.c: Include dataflow header file.
8999         (m68hc11_reorg): Port to dataflow.
9000
9001 2007-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
9002
9003         * df.h (DF_FIRST_OPTIONAL_PROBLEM): Removed.
9004         (struct df_problem.free_blocks_on_set_blocks): New field.
9005         (struct dataflow.optional_p): New field.
9006         (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
9007         (df_live_set_all_dirty): New function.
9008         * df-scan.c (df_scan_alloc): Initialize optional_p.
9009         (problem_SCAN): Initialize free_blocks_on_set_blocks.
9010         * df-core.c (df_set_blocks): Removed use of
9011         DF_FIRST_OPTIONAL_PROBLEM.  Now uses
9012         df_problem.free_blocks_on_set_blocks to determine which blocks are
9013         recycled.
9014         (df_remove_problem): Removed use of DF_FIRST_OPTIONAL_PROBLEM.
9015         (df_finish_pass): Removed use of DF_FIRST_OPTIONAL_PROBLEM.  Now
9016         uses dataflow.optional_p to determine if problem should be
9017         deleted.
9018         (rest_of_handle_df_initialize): Only start live problem if 
9019         -02 or above.
9020         (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
9021         * df-problems.c (df_ru_alloc, df_rd_alloc, df_lr_alloc,
9022         df_live_alloc, df_urec_alloc, df_note_alloc): set optional_p.
9023         (problem_RU, problem_RD, problem_LR, problem_UREC, problem_CHAIN,
9024         problem_NOTE): Initialize free_blocks_on_set_blocks.
9025         (df_lr_bb_local_compute): Recompute luids if df_live problem is
9026         not active.
9027         (df_live_set_all_dirty, df_note_alloc): New function.
9028         * regrename.c (merge_overlapping_regs): Change DF_LIVE_* to
9029         df_get_live_*.
9030         * sched_ebb.c (compute_jump_reg_dependencies): Ditto.
9031         * postreload.c (reload_combine): Ditto.
9032         * cse.c (cse_extended_basic_block): Ditto.
9033         * regmove.c (mark_flags_life_zones): Ditto.
9034         * rtlfactoring.c (split_blocks_after_seqs, split_pattern_seq,
9035         erase_matching_seqs): Ditto.
9036         * bt-load.c (compute_defs_uses_and_gen): Ditto.
9037         * integrate (allocate_initial_values): Ditto.
9038         * combine.c (reg_dead_at_p): Ditto.
9039         * resource.c (mark_target_live_regs): Ditto.
9040         * sched-rgn.c (check_live_1, update_live_1): Ditto.
9041         * config/sh/sh.c (find_r0_life_regions): Ditto.
9042         * global.c (rest_of_handle_global_alloc): Only add back df_live
9043         for -O > 1.
9044         * local-alloc.c (rest_of_handle_local_alloc): Only remove
9045         df_live for -O > 1.
9046         * ifcvt.c (dead_or_predicable): Change DF_LIVE_* to
9047         df_get_live_*.
9048         (if_convert): Make sure df_live is there at -O == 1.
9049         (pass_if_after_combine): Cleanup flags.
9050         * init-regs.c (initialize_uninitialized_regs): Make sure df_live
9051         is there at -O == 1.
9052         
9053 2007-06-19  Seongbae Park  <seongbae.park@gmail.com>
9054
9055         * config/arm/arm.c (arm_get_frame_offsets): Set
9056         offsets->locals_base to avoid negative stack size.
9057         (thumb1_expand_prologue): Assert on negative stack size.
9058
9059 2007-06-19  Sebastian Pop  <sebpop@gmail.com>
9060
9061         PR tree-optimization/32367
9062         * tree-chrec.h (build_polynomial_chrec): Verify that the left hand side 
9063         of the chrec has no evolution in that loop.
9064         * testsuite/gcc.dg/tree-ssa/pr32367.c: New.
9065
9066 2007-06-19  Bob Wilson  <bob.wilson@acm.org>
9067
9068         * config/xtensa/xtensa.c: Include "df.h".
9069         (xtensa_builtin_saveregs): Use adjust_address instead of
9070         change_address.
9071         (xtensa_va_start): Invoke make_tree with sizetype for
9072         expand_builtin_saveregs and then convert the result to a pointer.
9073         Use POINTER_PLUS_EXPR.  Use size_int instead of build_int_cst.
9074         (xtensa_gimplify_va_arg_expr): Use size_int instead of build_int_cst.
9075         Subtract argument size from index value as integers and then use
9076         POINTER_PLUS_EXPR to add the result to the array address.
9077         
9078 2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
9079
9080         PR target/32335
9081         * config/m32c/m32c.c: Include dataflow header file.
9082         (m32c_emit_prologue): Adjust for prologue insn change.
9083         * config/m32c/prologue.md (prologue_enter_16): Only modify SP_REGNO
9084         once inside a PARALLEL. Assume frame size passed in operand 0
9085         includes space to save the fb register.
9086         (prologue_enter_24): Likewise.
9087         (epilogue_exitd): Only modify SP_REGNO once inside a PARALLEL.
9088
9089 2007-06-19  David Daney  <ddaney@avtrex.com
9090
9091         PR target/32313
9092         * config/mips/mips.md (cprestore): Mark $gp as used.
9093
9094 2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
9095
9096         PR target/32369
9097         * config/frv/frv.c (frv_ifcvt_modify_tests): Dataflow merge fix.
9098         (frv_ifcvt_modify_insn): Likewise.
9099
9100 2007-06-19  Richard Guenther  <rguenther@suse.de>
9101
9102         * tree-ssa-structalias.c (handle_ptr_arith): Make sure to
9103         only handle positive offsets that fit in a HOST_WIDE_INT.
9104
9105 2007-06-19  Uros Bizjak  <ubizjak@gmail.com>
9106
9107         * config/i386/i386.c (ix86_emit_swsqrtsf): Filter out infinity
9108         result of rsqrt insn for zero input argument to avoid NaN.
9109
9110 2007-06-19  Richard Guenther  <rguenther@suse.de>
9111
9112         PR middle-end/31950
9113         * tree-ssa-alias-warnings.c (ffan_walker): Punt on MTAGs.
9114
9115 2007-06-19  Jakub Jelinek  <jakub@redhat.com>
9116
9117         PR tree-optimization/32353
9118         * tree-ssa-structalias.c (set_uids_in_ptset): Also handle RESULT_DECL.
9119
9120 2007-06-19  Nick Clifton  <nickc@redhat.com>
9121
9122         * config/m32r/linux.h (LIB_SPEC): Always imply -lpthread for -pthread.
9123
9124 2007-06-18  Uros Bizjak  <ubizjak@gmail.com>
9125
9126         PR target/32389
9127         * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_VIRTUAL.
9128         * config/i386/i386.c (assign_386_stack_local): Assert that
9129         SLOT_VIRTUAL is valid only before virtual regs are instantiated.
9130         (ix86_expand_builtin) [IX86_BUILTIN_LDMXCSR, IX86_BUILTIN_STMXCSR]:
9131         Use SLOT_VIRTUAL stack slot instead of SLOT_TEMP.
9132         * config/i386/i386.md (truncdfsf2, truncxf<mode>2): Ditto.
9133
9134 2007-06-18  Steve Ellcey  <sje@cup.hp.com>
9135
9136         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): New.
9137
9138 2007-06-18  Seongbae Park  <seongbae.park@gmail.com>
9139
9140         PR rtl-optimization/32321
9141         * gcse.c (replace_store_insn): Update the note before
9142         calling emit_insn_after.
9143
9144 2007-06-18  Kenneth Zadeck <zadeck@naturalbridge.com>
9145
9146         PR middle-end/32355
9147         * gcse (rest_of_handle_gcse): Add call to df_finish_pass after
9148         cse_main.
9149         * df-problems.c (df_note_bb_compute): Fix dumping info.
9150         
9151 2007-06-18  Kazu Hirata  <kazu@codesourcery.com>
9152
9153         * config/m68k/m68k.c (m68k_expand_epilogue): Emit a return
9154         insn with emit_jump_insn.
9155
9156 2007-06-18  Uros Bizjak  <ubizjak@gmail.com>
9157
9158         PR tree-optimization/32383
9159         * targhooks.c (default_builtin_reciprocal): Add new bool argument.
9160         * targhooks.h (default_builtin_reciprocal): Update prototype.
9161         * target.h (struct gcc_target): Update builtin_reciprocal.
9162         * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Update description.
9163         * tree-ssa-math-opts (execute_cse_reciprocals): Skip statements
9164         where arg1 is not SSA_NAME.  Pass true to targetm.builtin_reciprocal
9165         when fndecl is in BUILT_IN_MD class.
9166         (execute_convert_to_rsqrt): Ditto.
9167
9168         * config/i386/i386.c (ix86_builtin_reciprocal): Update for new bool
9169         argument.  Convert IX86_BUILTIN_SQRTPS code only when md_fn is true.
9170         Convert BUILT_IN_SQRTF code only  when md_fn is false.
9171
9172 2007-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
9173
9174         * bt-load.c (move_btr_def): Fix the order of arguments
9175         to validate_replace_rtx.
9176
9177 2007-06-18  Nathan Sidwell  <nathan@codesourcery.com>
9178
9179         * config/m68k/m68k-devices.def: Add 54450..54455.
9180
9181 2007-06-17  Uros Bizjak  <ubizjak@gmail.com>
9182
9183         PR rtl-optimization/32366
9184         * simplify-rtx.c (simplify_unary_operation_1) [FLOAT_TRUNCATE,
9185         FLOAT_EXTEND]: Prevent non-scalar modes from entering
9186         significand_size.
9187
9188 2007-06-17  Kenneth Zadeck <zadeck@naturalbridge.com>
9189
9190         PR middle-end/32349
9191         * modulo-sched (generate_reg_moves): Added rescan parameter and if
9192         this is true, rescan insn being modified.
9193         (sms_schedule): Added rescan parameter.
9194         (rest_of_handle_sms): Moved freeing of dominance info to before
9195         getting out of cfg_layout.
9196         
9197 2007-06-17  Nathan Sidwell  <nathan@codesourcery.com>
9198
9199         * config/m68k/m68k.h (ISA_HAS_FF1, ISA_HAS_MVS_MVZ): New.
9200         * config/m68k/m68k.md: Use ISA_HAS_FF1 and ISA_HAS_MVS_MVZ as
9201         appropriate.
9202
9203         * config/m68k/m68k.c (all_isas): Remove FL_CF_FPU and
9204         FL_CF_EMAC from the entry for isac.
9205
9206         * config/m68k/predicates.md (const_call_operand): Adjust comment.
9207         (const_sibcall_operand): New.
9208         (sibcall_operand): Use it.
9209         * config/m68k/m68k.c (FL_FOR_isa_c): Not ISA_B compatible.
9210         (m68k_isas): ISAC does not imply FPU or EMAC.
9211         (override_options): Add ISA_C logic for symbolic jump & call.
9212
9213 2007-06-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
9214
9215         * config/sparc/sparc.c (sparc_vis_init_builtins): Retrieve the
9216         return mode from the builtin itself.
9217         (sparc_fold_builtin): Fix cast of zero constant.
9218
9219 2007-06-16  Uros Bizjak  <ubizjak@gmail.com>
9220
9221         * targhooks.c (default_builtin_reciprocal): New default target hook.
9222         * targhooks.h (default_builtin_reciprocal): Add prototype.
9223         * hooks.c (hook_tree_tree_bool_null): Remove hook.
9224         * hooks.h (hook_tree_tree_bool_null): Remove prototype.
9225         * target-def.h (TARGET_BUILTIN_RECIPROCAL): Define as
9226         default_builtin_reciprocal.
9227
9228 2007-06-16  Uros Bizjak  <ubizjak@gmail.com>
9229
9230         PR middle-end/31723
9231         * hooks.c (hook_tree_tree_bool_null): New hook.
9232         * hooks.h (hook_tree_tree_bool_null): Add prototype.
9233         * tree-pass.h (pass_convert_to_rsqrt): Declare.
9234         * passes.c (init_optimization_passes): Add pass_convert_to_rsqrt.
9235         * tree-ssa-math-opts.c (execute_cse_reciprocals): Scan for a/func(b)
9236         and convert it to reciprocal a*rfunc(b).
9237         (execute_convert_to_rsqrt): New function.
9238         (gate_convert_to_rsqrt): New function.
9239         (pass_convert_to_rsqrt): New pass definition.
9240         * target.h (struct gcc_target): Add builtin_reciprocal.
9241         * target-def.h (TARGET_BUILTIN_RECIPROCAL): New define.
9242         (TARGET_INITIALIZER): Initialize builtin_reciprocal with
9243         TARGET_BUILTIN_RECIPROCAL.
9244         * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Document.
9245
9246         * config/i386/i386.h (TARGET_RECIP): New define.
9247         * config/i386/i386.md (divsf3): Expand by calling ix86_emit_swdivsf
9248         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
9249         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
9250         and not optimizing for size.
9251         (*rcpsf2_sse): New insn pattern.
9252         (*rsqrtsf2_sse): Ditto.
9253         (rsqrtsf2): New expander.  Expand by calling ix86_emit_swsqrtsf
9254         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
9255         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
9256         and not optimizing for size.
9257         (sqrt<mode>2): Expand SFmode operands by calling ix86_emit_swsqrtsf
9258         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
9259         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
9260         and not optimizing for size.
9261         * config/i386/sse.md (divv4sf): Expand by calling ix86_emit_swdivsf
9262         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
9263         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
9264         and not optimizing for size.
9265         (*sse_rsqrtv4sf2): Do not export.
9266         (sqrtv4sf2): Ditto.
9267         (sse_rsqrtv4sf2): New expander.  Expand by calling ix86_emit_swsqrtsf
9268         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
9269         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
9270         and not optimizing for size.
9271         (sqrtv4sf2): Ditto.
9272         * config/i386/i386.opt (mrecip): New option.
9273         * config/i386/i386-protos.h (ix86_emit_swdivsf): Declare.
9274         (ix86_emit_swsqrtsf): Ditto.
9275         * config/i386/i386.c (IX86_BUILTIN_RSQRTF): New constant.
9276         (ix86_init_mmx_sse_builtins): __builtin_ia32_rsqrtf: New
9277         builtin definition.
9278         (ix86_expand_builtin): Expand IX86_BUILTIN_RSQRTF using
9279         ix86_expand_unop1_builtin.
9280         (ix86_emit_swdivsf): New function.
9281         (ix86_emit_swsqrtsf): Ditto.
9282         (ix86_builtin_reciprocal): New function.
9283         (TARGET_BUILTIN_RECIPROCAL): Use it.
9284         (ix86_vectorize_builtin_conversion): Rename from
9285         ix86_builtin_conversion.
9286         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Use renamed function.
9287         * doc/invoke.texi (Machine Dependent Options): Add -mrecip to
9288         "i386 and x86_64 Options" section.
9289         (Intel 386 and AMD x86_64 Options): Document -mrecip.
9290
9291 2007-06-15  Andrew Pinski <andrew_pinski@playstation.sony.com>
9292             Zdenek Dvorak <dvorakz@suse.cz>
9293             Richard Guenther  <rguenther@suse.de>
9294             Kaz Kojima  <kkojima@gcc.gnu.org>
9295
9296         * tree-vrp.c (compare_values_warnv): Convert val2 to
9297         the type of val1.
9298         (extract_range_from_assert): Create
9299         POINTER_PLUS_EXPR for pointer types.
9300         (extract_range_from_binary_expr): Handle
9301         only POINTER_PLUS_EXPR, MIN_EXPR, and MAX_EXPR
9302         for pointer types.
9303         * doc/c-tree.texi (POINTER_PLUS_EXPR): Document.
9304         * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle
9305         POINTER_PLUS_EXPR as PLUS_EXPR.
9306         (number_of_iterations_lt_to_ne):
9307         For pointer types, use sizetype when
9308         creating MINUS_EXPR/PLUS_EXPRs.
9309         (assert_loop_rolls_lt): For pointer types, use sizetype when
9310         creating MINUS_EXPR/PLUS_EXPRs.
9311         (number_of_iterations_le): Likewise.
9312         (expand_simple_operations): POINTER_PLUS_EXPR are simple also.
9313         (derive_constant_upper_bound): Handle POINTER_PLUS_EXPR just
9314         like PLUS_EXPR and MINUS_EXPR.
9315         * tree-pretty-print.c (dump_generic_node): Handle
9316         POINTER_PLUS_EXPR.
9317         (op_prio): Likewise.
9318         (op_symbol_1): Likewise.
9319         * optabs.c (optab_for_tree_code): Likewise.
9320         * tree-ssa-loop-manip.c (create_iv): Handle pointer base
9321         specially.
9322         * tree-tailcall.c (process_assignment): Mention
9323         POINTER_PLUS_EXPR in a TODO comment.
9324         * tree.c (build2_stat): Assert when trying to use PLUS_EXPR or 
9325         MINUS_EXPR with a pointer. Also assert for POINTER_PLUS_EXPR
9326         not used with a pointer and an integer type.
9327         * tree-scalar-evolution.c (add_to_evolution_1): Convert the
9328         increment using chrec_convert_rhs instead of chrec_convert.
9329         (follow_ssa_edge_in_rhs): Handle POINTER_PLUS_EXPR like
9330         PLUS_EXPR except for the right hand side's type will be
9331         sizetype.
9332         (interpret_rhs_modify_stmt): Handle POINTER_PLUS_EXPR.
9333         (fold_used_pointer_cast): Kill.
9334         (pointer_offset_p): Kill.
9335         (fold_used_pointer): Kill.
9336         (pointer_used_p): Kill.
9337         (analyze_scalar_evolution_1 <case GIMPLE_MODIFY_STMT>): Don't
9338         call fold_used_pointer.
9339         (instantiate_parameters_1): Convert the increment
9340         using chrec_convert_rhs instead of chrec_convert.
9341         Handle POINTER_PLUS_EXPR as PLUS_EXPR.
9342         * builtins.c (get_pointer_alignment): Handle POINTER_PLUS_EXPR
9343         instead of PLUS_EXPR.
9344         (expand_builtin_strcat): Create a POINTER_PLUS_EXPR instead of
9345         PLUS_EXPR for pointers.
9346         (std_gimplify_va_arg_expr): Likewise.
9347         (fold_builtin_memory_op): Likewise.
9348         (fold_builtin_strstr): Likewise.
9349         (fold_builtin_strchr): Likewise.
9350         (fold_builtin_strrchr): Likewise.
9351         (fold_builtin_strpbrk): Likewise.
9352         (expand_builtin_memory_chk): Likewise.
9353         (fold_builtin_memory_chk): Likewise.
9354         (std_expand_builtin_va_start): Use
9355         sizetype for the call to make_tree and then convert
9356         to the pointer type.
9357         (fold_builtin_memchr): Use POINTER_PLUS_EXPR
9358         instead of PLUS_EXPR for adding to a pointer.
9359         (std_gimplify_va_arg_expr): Use fold_build2 for
9360         the creating of POINTER_PLUS_EXPR.  For the BIT_AND_EXPR, cast
9361         the operands to sizetype first and then cast the BIT_AND_EXPR
9362         back to the pointer type.
9363         * fold-const.c (build_range_check): Handle pointer types
9364         specially.
9365         (extract_array_ref): Look for POINTER_PLUS_EXPR instead
9366         of PLUS_EXPR's. Make sure the offset is converted to
9367         sizetype.
9368         (try_move_mult_to_index): Strip the NOPs from the offset.
9369         Remove code argument and replace all uses with PLUS_EXPR.
9370         (fold_to_nonsharp_ineq_using_bound): Handle pointer types
9371         specially. Don't use a pointer type for MINUS_EXPR.
9372         (fold_unary): Handle for (T1)(X op Y),
9373         only p+ as that is the only as that can be handled for
9374         binary operators now.
9375         (fold_binary <case POINTER_PLUS_EXPR>): Add folding of
9376         POINTER_PLUS_EXPR.
9377         <case PLUS_EXPR>: Add folding of PTR+INT into
9378         PTR p+ INT.
9379         Don't call try_move_mult_to_index.
9380         <case MINUS_EXPR>: Fold (PTR0 p+ A) - (PTR1 p+ B)
9381         into (PTR0 - PTR1) + (A - B). Fold (PTR0 p+ A) - PTR1 into
9382         (PTR0 - PTR1) + A iff (PTR0 - PTR1) simplifies.
9383         Don't call try_move_mult_to_index.
9384         (tree_expr_nonnegative_warnv_p): Handle POINTER_PLUS_EXPR.
9385         (tree_expr_nonzero_p): Likewise.
9386         (fold_indirect_ref_1): Look at POINTER_PLUS_EXPR instead
9387         of PLUS_EXPR for the complex expression folding.
9388         * tree-chrec.c (chrec_fold_plus_poly_poly): If the
9389         first chrec is a pointer type, then the second should
9390         be sizetype and not the first's type.
9391         For POINTER_PLUS_EXPR, use a different right hand side type.
9392         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
9393         (chrec_fold_plus_1): For POINTER_PLUS_EXPR, use a
9394         different right hand side type.
9395         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
9396         (chrec_fold_plus): For pointer types, use POINTER_PLUS_EXPR
9397         instead of PLUS_EXPR.
9398         When either operand is zero, convert the other operand.
9399         (chrec_apply): Use chrec_convert_rhs
9400         on the argument x instead of chrec_convert.
9401         (reset_evolution_in_loop): For pointer types, the new_evol
9402         should be sizetype.
9403         (convert_affine_scev): For POINTER_PLUS_EXPR, use a
9404         different right hand side type.
9405         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
9406         (chrec_convert_rhs): New function.
9407         (chrec_convert_aggressive): For POINTER_PLUS_EXPR, use a
9408         different right hand side type.
9409         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
9410         * tree-chrec.h (chrec_convert_rhs): New prototype.
9411         (build_polynomial_chrec): For pointer types, the right hand
9412         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Look for
9413         POINTER_PLUS_EXPR instead of PLUS_EXPR's.
9414         Remove subtraction case as it is always addition now.
9415         Make sure the offset is converted to sizetype.
9416         (fold_stmt_r): Don't handle PLUS_EXPR/MINUS_EXPR specially.
9417         Handle POINTER_PLUS_EXPR like PLUS_EXPR was handled before.
9418         * tree-ssa-loop-ivopts.c (determine_base_object): Abort for 
9419         PLUS_EXPR in pointer type.
9420         Handle POINTER_PLUS_EXPR.
9421         (tree_to_aff_combination): Likewise.
9422         (force_expr_to_var_cost): Likewise.
9423         (force_expr_to_var_cost): Likewise. Create a POINTER_PLUS_EXPR
9424         instead of PLUS_EXPR for pointers.
9425         * c-format.c (check_format_arg): Handle POINTER_PLUS_EXPR
9426         instead of PLUS_EXPR of pointer types.
9427         * tree-stdarg.c (va_list_counter_bump): Handle POINTER_PLUS_EXPR
9428         as PLUS_EXPR.
9429         (check_va_list_escapes): Likewise.
9430         (check_all_va_list_escapes): Likewise.
9431         * dwarf2out.c (loc_descriptor_from_tree_1):
9432         Handle POINT_PLUS_EXPR as a PLUS_EXPR.
9433         * expr.c (expand_expr_real_1): Handle POINTER_PLUS_EXPR.
9434         (string_constant): Likewise.
9435         * tree-ssa-address.c (tree_mem_ref_addr): When adding
9436         the offset to the base, use POINTER_PLUS_EXPR.
9437         (add_to_parts): Convert the index to sizetype.
9438         (create_mem_ref): Create A POINTER_PLUS_EXPR for the one case.
9439         * matrix-reorg.c (collect_data_for_malloc_call): Stmt
9440         will now only be either INDIRECT_REF and POINTER_PLUS_EXPR.
9441         Offset only holds something for PLUS_EXPR.
9442         (ssa_accessed_in_tree): Handle POINTER_PLUS_EXPR just as
9443         a PLUS_EXPR.
9444         (analyze_transpose): POINTER_PLUS_EXPR will only show up now
9445         and not PLUS_EXPR.
9446         (analyze_accesses_for_modify_stmt): Likewise.
9447         Remove comment about the type being integral type as it is
9448         wrong now.
9449         (can_calculate_expr_before_stmt): Handle POINTER_PLUS_EXPR as
9450         PLUS_EXPR.
9451         (transform_access_sites): POINTER_PLUS_EXPR will only show up now
9452         and not PLUS_EXPR.
9453         Correct the type which the artimentic is done in (is now
9454         sizetype).
9455         Reindent one loop.
9456         * tree-data-ref.c (split_constant_offset): Handle
9457         POINTER_PLUS_EXPR
9458         * tree-affine.c (tree_to_aff_combination): Likewise.
9459         * c-typeck.c (build_unary_op): For pointers create the increment
9460         as a sizetype. Create a POINTER_PLUS_EXPR instead of PLUS_EXPR
9461         for pointers.
9462         * gimplify.c (gimplify_self_mod_expr): Create a
9463         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
9464         (gimplify_omp_atomic_fetch_op): Handle POINTER_PLUS_EXPR.
9465         * tree.def (POINTER_PLUS_EXPR): New tree code.
9466         * tree-predcom.c (ref_at_iteration): If we have a pointer
9467         type do the multiplication in sizetype.
9468         * tree-mudflap.c (mf_xform_derefs_1): Create a
9469         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
9470         * tree-ssa-forwprop.c 
9471         (forward_propagate_addr_into_variable_array_index):
9472         Don't expect there to be a cast for the index as that
9473         does not exist anymore.
9474         (forward_propagate_addr_expr_1): Check for POINTER_PLUS_EXPR
9475         instead of PLUS_EXPR.
9476         Don't check for the first operand of the POINTER_PLUS_EXPR
9477         was the index as it cannot be.
9478         Call forward_propagate_addr_into_variable_array_index with
9479         the SSA_NAME instead of the statement.
9480         * varasm.c (const_hash_1): Handle POINTER_PLUS_EXPR.
9481         (compare_constant): Likewise.
9482         (copy_constant): Likewise.
9483         (compute_reloc_for_constant): Likewise.
9484         (output_addressed_constants): Likewise.
9485         (initializer_constant_valid_p): Likewise.
9486         * tree-ssa.c (tree_ssa_useless_type_conversion_1):
9487         Convert the MIN/MAX of the inner type to the outer
9488         type before comparing them.
9489         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Handle
9490         POINTER_PLUS_EXPR instead of PLUS_EXPR.
9491         (issue_prefetch_ref): Create a POINTER_PLUS_EXPR instead
9492         of PLUS_EXPR for pointers.
9493         * tree-inline.c (estimate_num_insns_1): Handle
9494         POINTER_PLUS_EXPR.
9495         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): 
9496         Create a POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
9497         (bump_vector_ptr): Create a POINTER_PLUS_EXPR
9498         instead of PLUS_EXPR for the pointer increment statement.
9499         (vect_update_ivs_after_vectorizer): For pointer types, create
9500         POINTER_PLUS_EXPR instead of PLUS_EXPR and also create
9501         MULT_EXPR in sizetype.
9502         (vect_gen_niters_for_prolog_loop): Add a cast when creating
9503         byte_misalign.
9504         * tree-object-size.c (plus_expr_object_size): Handle
9505         POINTER_PLUS_EXPR instead of PLUS_EXPR.  Removing all the extra
9506         code which is trying to figure out which side is a pointer and 
9507         is the index.
9508         (check_for_plus_in_loops_1): Likewise.
9509         (check_for_plus_in_loops): Likewise.
9510         * c-common.c (pointer_int_sum): Create a
9511         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
9512         * tree-ssa-structalias.c (handle_ptr_arith): Handle
9513         only POINTER_PLUS_EXPR.  Removing all the extra
9514         code which is trying to figure out which side is a pointer and 
9515         is the index.
9516         * tree-cfg.c (verify_expr): Add extra checking for pointers and
9517         PLUS_EXPR and MINUS_EXPR.
9518         Also add checking to make sure the operands of POINTER_PLUS_EXPR
9519         are correct.
9520         * config/frv/frv.c (frv_expand_builtin_va_start): Use sizetype
9521         with make_tree, instead of a pointer type.
9522         * config/s390/s390.c (s390_va_start): Use POINTER_PLUS_EXPR
9523         for pointers instead of PLUS_EXPR.
9524         (s390_gimplify_va_arg): Likewise.
9525         * config/spu/spu.c (spu_va_start): Create POINTER_PLUS_EXPR
9526         instead of PLUS_EXPR when doing addition on pointer
9527         types.  Use sizetype for the second operand.
9528         (spu_gimplify_va_arg_expr): Likewise.
9529         * config/sparc/sparc.c (sparc_gimplify_va_arg): Use 
9530         POINTER_PLUS_EXPR instead of PLUS_EXPR when the operand was
9531         a pointer.  Don't create a BIT_AND_EXPR for pointer types.
9532         * config/i386/i386.c (ix86_va_start): Use POINTER_PLUS_EXPR
9533         for the pointer addition and also use size_int/sizetype
9534         for the offset.
9535         (ix86_gimplify_va_arg): Likewise.
9536         Perform BIT_AND_EXPR on sizetype arguments.
9537         * config/sh/sh.c (sh_va_start): Call make_tree with sizetype
9538         and convert its result to a pointer type.  Use POINTER_PLUS_EXPR
9539         for the pointer additions and also use size_int for the offsets.
9540         (sh_gimplify_va_arg_expr): Use POINTER_PLUS_EXPR for the pointer
9541         additions and also use size_int for the offsets.  Perform
9542         BIT_AND_EXPR on sizetype arguments.
9543         * config/ia64/ia64.c (ia64_gimplify_va_arg): Use
9544         POINTER_PLUS_EXPR for pointers and create the
9545         BIT_AND_EXPR in sizetype.
9546         * config/rs6000/rs6000.c (rs6000_va_start): Use POINTER_PLUS_EXPR
9547         instead of PLUS_EXPR for pointer addition.
9548         (rs6000_va_start): Likewise.
9549         Also use sizetype for the offset.
9550         * config/pa/pa.c (reloc_needed): Handle POINTER_PLUS_EXPR
9551         as PLUS_EXPR/MINUS_EXPR.
9552         (hppa_gimplify_va_arg_expr): Don't create MINUS_EXPR or
9553         PLUS_EXPR for pointers, instead use POINTER_PLUS_EXPR.
9554         Don't use BIT_AND_EXPR on a pointer type, convert the
9555         expression to sizetype first.
9556         * config/mips/mips.c (mips_va_start): Use POINTER_PLUS_EXPR
9557         for pointers.
9558         (mips_gimplify_va_arg_expr): Likewise.
9559         Don't create BIT_AND_EXPR in a pointer type.
9560
9561 2007-06-15  Eric Christopher  <echristo@apple.com>
9562
9563         * config.gcc (i?86-*-darwin*): Add t-crtfm and t-crtpc.
9564         (x86_64-*-darwin*): Ditto.
9565         * config/i386/darwin.h (CRTEND_SPEC): New. Add support
9566         for above.
9567
9568 2007-06-15  Matthew Wilcox <matthew@wil.cx>
9569
9570         * doc/extend.texi: Document behavior of __attribute__((aligned))
9571         on typedefs.
9572
9573 2007-06-15  Mark Mitchell  <mark@codesourcery.com>
9574
9575         * rtlanal.c (note_stores): Improve documentation.
9576
9577 2007-06-15  Bernd Schmidt  <bernd.schmidt@analog.com>
9578
9579         * config/bfin/elf.h (ASM_GENERATE_INTERNAL_LABEL,
9580         LOCAL_LABEL_PREFIX): Delete.
9581         * config/bfin/bfin.c (TARGET_ASM_INTERNAL_LABEL): Delete.
9582         (bfin_internal_label): Delete.
9583
9584 2007-06-15  Uros Bizjak  <ubizjak@gmail.com>
9585
9586         * libgcc2.c (CEXT): When compiling L_multc3 and L_divtc3,
9587         define to "l" if LIBGCC_LONG_DOUBLE_SIZE == 128,
9588         otherwise define to LIBGCC2_TF_CEXT.
9589         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): New define.
9590         (LIBGCC_TF_CEXT): Ditto.
9591         (TF_SIZE): Ditto.
9592
9593 2007-06-14  Seongbae Park  <seongbae.park@gmail.com>
9594
9595         PR rtl-optimization/32339
9596         * df-scan.c (df_uses_record): Don't modify flags but just add to
9597         it for df_ref_record.
9598
9599 2007-06-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9600
9601         * tree-mudflap.c: Fix whitespace issues.
9602
9603 2007-06-15  Kazu Hirata  <kazu@codesourcery.com>
9604
9605         * config/m68k/m68k.c (ASM_DOT, ASM_DOTW, ASM_DOTL): Remove.
9606
9607 2007-06-14  Eric Christopher  <echristo@apple.com>
9608
9609         * config/i386/sse.md (movdi_to_sse): Rewrite body.
9610         (movv4sf): Use gcc_unreachable instead of abort.
9611
9612 2007-06-14  Uros Bizjak  <ubizjak@gmail.com>
9613
9614         PR target/32268
9615         * config/i386/sfp-machine.h (CMPtype): New define.
9616         (mach stubs): Use CMPtype instead of int as a return type.
9617
9618 2007-06-14  Uros Bizjak  <ubizjak@gmail.com>
9619
9620         * config/soft-fp/eqdf2.c, config/soft-fp/eqsf2.c,
9621         config/soft-fp/eqtf2.c, config/soft-fp/gedf2.c,
9622         config/soft-fp/gesf2.c, config/soft-fp/getf2.c,
9623         config/soft-fp/ledf2.c, config/soft-fp/lesf2.c,
9624         config/soft-fp/letf2.c, config/soft-fp/unorddf2.c,
9625         config/soft-fp/unordsf2.c, config/soft-fp/unordtf2.c,
9626         config/soft-fp/soft-fp.h: Update from glibc CVS.
9627
9628 2007-06-14  Bernd Schmidt  <bernd.schmidt@analog.com>
9629
9630         * config/bfin/uclinux.h (MFWRAP_SPEC): New.
9631
9632 2007-06-14  Rask Ingemann Lambertsen  <rask@sygehus.dk>
9633
9634         PR target/32341
9635         * config/v850/v850.c: Include dataflow header file.
9636         (substitute_ep_register): Fix typo.
9637
9638 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
9639
9640         * configure.ac: Fix earlier checkin.
9641         * configure: Regenerated.
9642
9643 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
9644
9645         * acinclude.m4 (gcc_AC_CHECK_PROG_VER): Remove.
9646         * aclocal.m4: Regenerate.
9647         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS,
9648         ACX_PROG_CC_WARNINGS_ARE_ERRORS,
9649         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_CHECK_PROG_VER.
9650         * configure: Regenerate.
9651         * Makefile.in (LOOSE_WARN): Subst loose_warn.
9652
9653         * Makefile.in (quickstrap): Build libgcc too.
9654
9655 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
9656
9657         * configure.ac: Add --enable-checking=df.  Explicitly mention that
9658         the variables are initialized as for "release".
9659         * df-core.c: Use it.
9660         * configure: Regenerate.
9661         * config.in: Regenerate.
9662
9663 2007-06-14  Bob Wilson  <bob.wilson@acm.org>
9664
9665         * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use
9666         validate_replace_rtx instead of replace_rtx.
9667         (xtensa_expand_prologue): Call df_insn_rescan after replace_rtx.
9668
9669 2007-06-14  Danny Smith  <dannysmith@users.sourceforge.net>
9670
9671         * config/i386/cygming.h (DWARF_FRAME_REGNUM): Define.
9672         (DWARF2_UNWIND_INFO): Override default if configured with
9673         SJLJ EH disabled.
9674         * config/i386/cygwin.h (STARTFILE_SPEC): Add crtbegin.o.
9675         (ENDFILE_SPEC): Add crtend.o.
9676         * config/i386/mingw32.h (STARTFILE_SEC): Add crtbegin.o.
9677         (ENDFILE_SPEC): Add crtend.o.
9678         (TARGET_USE_JCR_SECTION): Define.
9679         (MD_UNWIND_SUPPORT): Define for 32-bit target.
9680
9681         * config/i386/cygming-crtbegin.c: New file.
9682         * config/i386/cygming-crtend.c: New file.
9683
9684 2007-06-14  Pascal Obry Pascal Obry  <obry@adacore.com>
9685
9686         * config/i386/w32-unwind.h: New file.
9687
9688 2007-06-13  Eric Christopher  <echristo@apple.com>
9689
9690         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Don't let
9691         the user set a value below STACK_BOUNDARY.
9692
9693 2007-06-13  Thiemo Seufer  <ths@networkno.de>
9694
9695         * config/mips/linux.h, config/mips/linux64.h (LIB_SPEC): Always
9696         imply -lpthread for -pthread.
9697
9698 2007-06-13  Kazu Hirata  <kazu@codesourcery.com>
9699
9700         * basic-block.h: Remove the prototype for
9701         free_basic_block_vars.
9702         * cfglayout.h: Remove the prototype for
9703         insn_locators_initialize.
9704         * tree.h: Remove the prototype for emit_line_note.
9705
9706         * tree-ssa-pre.c (mergephitemp): Remove.
9707         (init_pre): Don't use mergephitemp.
9708
9709 2007-06-13  Eric Christopher  <echristo@apple.com>
9710
9711         * config/i386/i386.c (override_options): If we've specified
9712         an arch then don't use TARGET_SUBTARGET_ISA_DEFAULTs.
9713
9714 2007-06-13  Bob Wilson  <bob.wilson@acm.org>
9715
9716         * df-scan.c (df_get_entry_block_def_set): Check if STATIC_CHAIN_REGNUM
9717         is defined.
9718
9719 2007-06-13  Bernd Schmidt  <bernd.schmidt@analog.com>
9720
9721         * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Use gen_frame_mem.
9722         * config/bfin/bfin.md (UNSPEC_VOLATILE_STORE_EH_HANDLER): New constant.
9723         (eh_store_handler): New pattern.
9724         (eh_return): Emit it instead of a plain move.
9725
9726 2007-06-13  Uros Bizjak  <ubizjak@gmail.com>
9727
9728         * config/i386/i386.c (ix86_init_mmx_sse_builtins)
9729         [__builtin_infq, __builtin_fabsq]: Define usign def_builtin.
9730         [__builtin_ia32_rsqrtps, __builtin_ia32_rsqrtss]: Define using
9731         def_builtin_const.
9732
9733 2007-06-13  Bernd Schmidt  <bernd.schmidt@analog.com>
9734
9735         * config/bfin/bfin.c (gen_one_bundle): Delete unused local variables.
9736         (find_next_insn_start, find_load): New functions.
9737         (bfin_reorg): Use them to deal with the fact that parallel insns are
9738         no longer represented as a SEQUENCE.
9739
9740 2007-06-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
9741
9742         * config/sparc/sparc.c (sparc_override_options): Initialize
9743         fpu mask correctly.
9744
9745 2007-06-13  Dave Korn  <dave.korn@artimi.com>
9746
9747         * config/i386/i386.c (ix86_eax_live_at_start_p): Use
9748         df_get_live_out.
9749
9750 2007-06-13  Kazu Hirata  <kazu@codesourcery.com>
9751
9752         * auto-inc-dec.c, c-incpath.c, config/c4x/libgcc.S,
9753         config/sh/divcost-analysis, dbgcnt.def, df-core.c,
9754         df-problems.c, df-scan.c, df.h, dominance.c, dse.c, regstat.c,
9755         tree-data-ref.c, tree-ssa-loop-im.c, tree-ssa-loop-prefetch.c,
9756         tree-vect-transform.c: Fix comment typos.  Follow spelling
9757         conventions.
9758
9759 2007-06-12  Seongbae Park  <seongbae.park@gmail.com>
9760
9761        * df-scan.c (df_get_exit-block_use_set): Always add the stack pointer
9762        to the exit block use set.
9763        (df_insn_delete, df_insn_rescan): Fixed spelling of "deferring". 
9764        * gcse.c (cpro_jump): Don't emit barrier in cfglayout mode.
9765        * config/sparc/sparc.c (sparc_check_64): Check df != NULL.
9766
9767 2007-06-12  Seongbae Park  <seongbae.park@gmail.com>
9768
9769         * opts.c (common_handle_option): Handle new option -fdbg-cnt-list.
9770         * dbgcnt.c (dbg_cnt_set_limit_by_name): Return value
9771         to indicate an error.
9772         (dbg_cnt_process_single_pair, dbg_cnt_list_all_counters):
9773         New functions.
9774         (dbg_cnt_process_opt): Print an error on a bad argument.
9775         * dbgcnt.h (dbg_cnt_list_all_counters): New function declaration.
9776         * common.opt (-fdbg-cnt-list): New.
9777         * doc/invoke.texi (-fdbg-cnt-list,-fdbg-cnt=): New.
9778
9779 2007-06-12  Eric Botcazou  <ebotcazou@adacore.com>
9780
9781         * tree-ssa-alias.c (finalize_ref_all_pointers): Clear pt_anything
9782         flag on ref-all pointers.
9783
9784 2007-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9785
9786         PR middle-end/31579
9787         * expr.c (expand_expr_addr_expr_1): Call expand_expr
9788         for the offset with the modifier as EXPAND_INITIALIZER
9789         if the modifier is EXPAND_INITIALIZER.
9790         (expand_expr_real_1 <case INTEGER_CST>): Don't force to
9791         a register if we had an overflow.
9792
9793 2007-06-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9794
9795         * real.c (real_isfinite): New.
9796         (real_sqrt): Use it.
9797         * real.h (real_isfinite): New.
9798         * builtins.c: Use it.
9799
9800 2007-06-12  Ian Lance Taylor  <iant@google.com>
9801             Daniel Berlin  <dberlin@dberlin.org>
9802
9803         PR libstdc++/29286
9804         * tree.def: Add CHANGE_DYNAMIC_TYPE_EXPR.
9805         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Define.
9806         (CHANGE_DYNAMIC_TYPE_LOCATION): Define.
9807         (DECL_NO_TBAA_P): Define.
9808         (struct tree_decl_common): Add no_tbaa_flag field.
9809         * tree-ssa-structalias.c (struct variable_info): Add
9810         no_tbaa_pruning field.
9811         (new_var_info): Initialize no_tbaa_pruning field.
9812         (unify_nodes): Copy no_tbaa_pruning field.
9813         (find_func_aliases): Handle CHANGE_DYNAMIC_TYPE_EXPR.
9814         (dump_solution_for_var): Print no_tbaa_pruning flag.
9815         (set_uids_in_ptset): Add no_tbaa_pruning parameter.  Change all
9816         callers.
9817         (compute_tbaa_pruning): New static function.
9818         (compute_points_to_sets): Remove CHANGE_DYNAMIC_TYPE_EXPR nodes.
9819         Call compute_tbaa_pruning.
9820         * tree-ssa-alias.c (may_alias_p): Test no_tbaa_flag for pointers.
9821         * gimplify.c (gimplify_expr): Handle CHANGE_DYNAMIC_TYPE_EXPR.
9822         * gimple-low.c (lower_stmt): Likewise.
9823         * tree-gimple.c (is_gimple_stmt): Likewise.
9824         * tree-ssa-operands.c (get_expr_operands): Likewise.
9825         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9826         * tree-inline.c (estimate_num_insns_1): Likewise.
9827         (copy_result_decl_to_var): Likewise.
9828         * expr.c (expand_expr_real_1): Likewise.
9829         * tree-pretty-print.c (dump_generic_node): Likewise.
9830         * tree-inline.c (copy_decl_to_var): Copy DECL_NO_TBAA_P flag.
9831         * omp-low.c (omp_copy_decl_2): Likewise.
9832         * print-tree.c (print_node): Print DECL_NO_TBAA_P flag.
9833         * doc/c-tree.texi (Expression trees): Document
9834         CHANGE_DYNAMIC_TYPE_EXPR.
9835
9836 2007-06-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9837
9838         * fold-const.c (fold_binary): Guard (X-X) -> 0 transformation
9839         with !HONOR_NANS and !HONOR_INFINITIES.
9840         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9841
9842 2007-06-12  Tristan Gingold  <gingold@adacore.com>
9843
9844         * gcov.c: Comments updated.
9845         (source_info): Add file_time field.
9846         (source_index): New variable.
9847         (mutiple_files): New variable.
9848         (generate_results): New function extracted from process_file.
9849         (process_file): Save and restore chain of functions, generate
9850         results and free structures only if not merging results.
9851         (release_structures): File names are now freed in create_file_names
9852         (create_file_names): Free previous file names.
9853         (find_source): File date is now read here and modifications in
9854         source files is checked here.
9855         (read_graph_file): Only reverse order of functions for the current
9856         object file.
9857         (make_gcov_file_name): Do not generate long names if input_name is
9858         NULL.
9859         (output_lines): If merging results do not display graph, data and
9860         runs informations.
9861         Checking source file modification is done in find_source.
9862
9863         * doc/gcov.texi: Append an s to sourcefile.
9864
9865 2007-06-12  Bernd Schmidt  <bernd.schmidt@analog.com>
9866
9867         * config/bfin/bfin.md (UNSPEC_NOP): New constant.
9868         (forced_nop): New pattern.
9869         * config/bfin/bfin.c: Include "df.h".
9870         (add_to_reg): Use df_regs_ever_live_p instead of regs_ever_live.
9871         (bfin_discover_loop): Use df_get_live_in instead of
9872         global_live_at_start.
9873         (bfin_reorder_loops): Pass 0 to cfg_layout_initialize.  Call
9874         df_analyze when done.
9875         (gen_one_bundle): Don't generate SEQUENCE insns, just put modes on
9876         the insns.  Use QImode for the final insn in a bundle.  Call
9877         df_insn_rescan on generated NOPs; use gen_forced_nop instead of
9878         gen_nop.
9879         (reorder_var_tracking_notes): New function.
9880         (bfin_reorg): Pass no argument to split_all_insns.  Don't call
9881         update_life_info.  Call df_analyze after scheduling and bundle
9882         generation.  Call reorder_var_tracking_notes if generating these
9883         notes.  Call df_finish_pass at the end.
9884
9885 2007-06-12  Dirk Mueller  <dmueller@suse.de>
9886
9887         * optabs.c (debug_optab_libfuncs): fix gcc_assert to
9888         a comparison, not an assignment.
9889
9890 2007-06-12  Olivier Hainque  <hainque@adacore.com>
9891
9892         * tree-nested.c (convert_local_reference): Handle VIEW_CONVERT_EXPR.
9893         Request walking the subtrees only, leaving the current is_lhs/val_only
9894         untouched.
9895         (convert_non_local_reference): Likewise.
9896
9897 2007-06-12  Nathan Sidwell  <nathan@codesourcery.com>
9898
9899         * config/m68k/m68k-devices.def (52221, 52223, 5253): New.
9900
9901 2007-06-12  Richard Guenther  <rguenther@suse.de>
9902
9903         PR tree-optimization/15353
9904         PR tree-optimization/31657
9905         * passes.c (init_optimization_passes): Add pass_tree_ifcombine.
9906         * timevar.def: Add TV_TREE_IFCOMBINE.
9907         * tree-pass.h (pass_tree_ifcombine): Declare.
9908         * tree-ssa-ifcombine.c: New file.
9909         * tree-ssa-phiopt.c (blocks_in_phiopt_order): Export.
9910         * tree-flow.h (blocks_in_phiopt_order): Declare.
9911         * Makefile.in (OBJS-common): Add tree-ssa-ifcombine.o.
9912         (tree-ssa-ifcombine.o): New dependencies.
9913
9914 2007-06-12  Uros Bizjak  <ubizjak@gmail.com>
9915
9916         PR rtl-optimization/32293
9917         * combine.c (simplify_if_then_else): Truncate return from
9918         nonzero_bits() to correct mode.
9919
9920 2007-06-12  Uros Bizjak  <ubizjak@gmail.com>
9921
9922         * fold-const (fold_binary) [RDIV_EXPR]: Also optimize a/cbrt(b/c)
9923         into a*cbrt(c/b) if flag_unsafe_math_optimizations is set.
9924
9925 2007-06-11  Diego Novillo  <dnovillo@google.com>
9926
9927         * Makefile.in (reload1.o-warn): Remove.
9928
9929 2007-06-11  Seongbae Park <seongbae.park@gmail.com>
9930
9931         * combine.c (subst): Use reg_overlap_mentioned_p
9932         instead of comparing register numbers directly.
9933
9934 2007-06-11  Kenneth Zadeck <zadeck@naturalbridge.com>
9935
9936         * reload1.c (mark_home_live_1): Use the mode parameter.
9937
9938 2007-06-11  Kenneth Zadeck <zadeck@naturalbridge.com>
9939
9940         * df-scan.c (df_insn_delete, df_insn_rescan, df_insn_rescan_all,
9941         df_process_deferred_rescans, df_notes_rescan): Fixed spelling of
9942         word "deferred".
9943         * df-core.c: Ditto.
9944
9945 2007-06-11  Daniel Berlin  <dberlin@dberlin.org>
9946
9947         * Merge dataflow-branch into mainline (see ChangeLog.dataflow)
9948
9949 2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
9950
9951         * config/i386/i386.md ("*movtf_internal): Penalize moves to and
9952         from integer registers.
9953         (FP mode splitters): Handle TFmode.
9954
9955 2007-06-11  Eric Botcazou  <ebotcazou@adacore.com>
9956
9957         * tree-ssa-structalias.c (find_what_p_points_to): Return false
9958         for ref-all pointers that point-to anything.
9959
9960 2007-06-11  Joseph Myers  <joseph@codesourcery.com>
9961
9962         * config/arm/arm.c (arm_output_dwarf_dtprel,
9963         TARGET_ASM_OUTPUT_DWARF_DTPREL): New.
9964
9965 2007-06-11  Bernd Schmidt  <bernd.schmidt@analog.com>
9966
9967         * config/bfin/bfin.md (movdi_insn, movsi_insn, movv2hi_insn,
9968         movhi_insn, movqi_insn, movsf_insn, movdf_insn): Don't allow constant
9969         to memory moves.
9970
9971 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
9972
9973         * tree.c (signed_or_unsigned_type_for): New.
9974         (unsigned_type_for): Use signed_or_unsigned_type_for.
9975         (signed_type_for): Use signed_or_unsigned_type_for.
9976         * tree.h (signed_or_unsigned_type_for): New.
9977         (get_signed_or_unsigned_type): Remove.
9978         * fold-const.c (fold_negate_expr): Use signed_type_for instead of
9979         lang_hooks.types.signed_type
9980         (size_diffop): Likewise.
9981         (all_ones_mask_p): Likewise.
9982         (build_range_check): Likewise.
9983         (fold_cond_expr_with_comparison): Likewise.
9984         (fold_cond_expr_with_comparison): Likewise.
9985         (unextend): Likewise.
9986         (extract_muldiv_1): Likewise.
9987         (fold_single_bit_test_into_sign_test): Likewise.
9988         (fold_binary): Likewise.
9989         (fold_ternary): Likewise.
9990         (operand_equal_for_comparison_p): Use signed_or_unsigned_type_for
9991         instead of get_signed_or_unsigned_type.
9992         * c-objc-common.h (LANG_HOOKS_SIGNED_TYPE): Remove.
9993         (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
9994         * expr.c (signed_or_unsigned_type_for): Use
9995         signed_or_unsigned_type_for instead of get_signed_or_unsigned_type.
9996         * langhooks.c (get_signed_or_unsigned_type): Remove.
9997         (lhd_signed_or_unsigned_type): Remove.
9998         * langhooks.h (lang_hooks_for_types): Remove signed_type and
9999         signed_or_unsigned_type.
10000         (lhd_signed_or_unsigned_type): Remove.
10001         * expmed.c (make_tree): Use signed_type_for instead of
10002         lang_hooks.types.signed_type.
10003         * c-common.c (same_scalar_type_ignoring_signedness): Use
10004         c_common_signed_type instead of lang_hooks.types.signed_type.
10005         (c_common_unsigned_type): New.
10006         (c_common_signed_type): Just call c_common_signed_or_unsigned_type.
10007         (shorten_compare): Use c_common_unsigned_type instead of
10008         c_common_signed_or_unsigned_type.
10009         (c_common_nodes_and_builtins): Use c_common_unsigned_type instead of
10010         unsigned_type_for.
10011         * convert.c (convert_to_integer): Use signed_type_for instead of
10012         lang_hooks.types.signed_type.
10013         * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
10014         (LANG_HOOK_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_SIGNED_TYPE and
10015         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE.
10016         * c-format.c (check_format_types): Use c_common_unsigned_type
10017         instead of unsigned_type_for.
10018         * c-decl.c (groakdeclarator): Likewise.
10019         * c-typeck.c (convert_for_assignment): Likewise.
10020         * c-common.h (c_common_unsigned_type): New.
10021
10022 2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
10023
10024         PR target/32280
10025         * config/i386/sse.md ("sse2_ashlti", "sse2_lshrti3"): Move ...
10026         * config/i386/i386.md ("sse2_ashlti", "sse2_lshrti3"): ... to here.
10027
10028 2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
10029
10030         PR middle-end/32279
10031         * fold-const (fold_binary) [RDIV_EXPR]: Optimize a/sqrt(b/c)
10032         into a*sqrt(c/b) if flag_unsafe_math_optimizations is set.
10033
10034 2007-06-10  Jan Sjodin  <jan.sjodin@amd.com>
10035             Sebastian Pop  <sebpop@gmail.com>
10036
10037         * lambda-code.c (remove_iv): New.
10038         (lambda_loopnest_to_gcc_loopnest): Use remove_iv.
10039
10040 2007-06-10  Zdenek Dvorak  <dvorakz@suse.cz>
10041
10042         * tree-data-ref.c (dr_analyze_alias): Handle case smt is NULL.
10043         * tree-predcom.c (mark_virtual_ops_for_renaming): Exported.
10044         * tree-ssa-loop-prefetch.c: Include optabs.h.
10045         (FENCE_FOLLOWING_MOVNT): New macro.
10046         (struct mem_ref): Add independent_p and storent_p fields.
10047         (record_ref): Initalize the new fields.
10048         (gather_memory_references_ref): Return true if the reference
10049         could be analysed.
10050         (gather_memory_references): Check whether all memory accesses
10051         in loop were recorded.
10052         (should_issue_prefetch_p): Return false for nontemporal stores.
10053         (nontemporal_store_p, mark_nontemporal_store, emit_mfence_after_loop,
10054         may_use_storent_in_loop_p, mark_nontemporal_stores): New functions.
10055         (determine_loop_nest_reuse): Detect independent memory references.
10056         (loop_prefetch_arrays): Call mark_nontemporal_stores.
10057         * tree-flow.h (mark_virtual_ops_for_renaming): Declare.
10058         * Makefile.in (tree-ssa-loop-prefetch.o): Add OPTABS_H dependency.
10059         * config/i386/i386.h (x86_mfence): Declare.
10060         (FENCE_FOLLOWING_MOVNT): Return x86_mfence.
10061         * config/i386/i386.c (x86_mfence): New variable.
10062         (ix86_init_mmx_sse_builtins): Initialize x86_mfence.
10063
10064         * tree-pretty-print.c (dump_generic_node): Mark nontemporal stores.
10065         * optabs.c (init_optabs): Initialize storent_optab.
10066         * optabs.h (enum optab_index): Add OTI_storent.
10067         (storent_optab): Declare.
10068         * genopinit.c (optabs): Add initialization for storent_optab.
10069         * tree.h (MOVE_NONTEMPORAL): New macro.
10070         * expr.c (expand_assignment, store_expr, store_constructor_field,
10071         store_constructor, store_field, expand_expr_real_1): Propagate
10072         nontemporality of the expanded store.
10073         (emit_storent_insn): New function.
10074         * expr.h (expand_assignment, store_expr): Declaration changed.
10075         * function.c (assign_parm_setup_reg): Pass false as nontemporality
10076         to expand_assignment.
10077         * stmt.c (expand_asm_expr): Ditto.
10078         * calls.c (initialize_argument_information): Pass false as
10079         nontemporality to store_expr.
10080         * config/i386/sse.md (storentv4sf, storentv2df, storentv2di,
10081         storentsi): New.
10082
10083 2007-06-09  Daniel Berlin  <dberlin@dberlin.org>
10084
10085         * tree-ssa-structalias.c (set_uids_in_ptset): Add is_deref'd
10086         parameter, use it.
10087         (find_what_p_points_to): Pass new parameter to set_uids_in_ptset.
10088
10089 2007-06-09  Daniel Berlin  <dberlin@dberlin.org>
10090
10091         * tree-data-ref.c (dr_may_alias_p): Check that decl_a != decl_b,
10092         and allow DECL_P here.
10093
10094 2007-06-09  Zdenek Dvorak  <dvorakz@suse.cz>
10095
10096         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs,
10097         follow_ssa_edge_in_condition_phi, follow_ssa_edge): Keep more precise
10098         track of the size of the expression.
10099         * cfghooks.c (merge_blocks): Remove block from loops structure only
10100         after call of the merge_blocks hook.
10101
10102 2007-06-09  Tom Tromey  <tromey@redhat.com>
10103
10104         * c-decl.c (grokdeclarator): Added 'deprecated_state' argument.
10105         (deprecated_state): Removed.
10106         (start_decl): Update.
10107         (enum deprecated_states): Moved earlier.
10108         (groktypename): Update.
10109         (push_parm_decl): Likewise.
10110         (grokfield): Likewise.
10111         (start_function): Likewise.
10112
10113 2007-06-09  Ian Lance Taylor  <iant@google.com>
10114
10115         PR tree-optimization/32169
10116         * tree-vrp.c (extract_range_from_unary_expr): For NOP_EXPR and
10117         CONVERT_EXPR, check whether min and max both converted to an
10118         overflow infinity representation.
10119
10120 2007-06-08  Eric Botcazou  <ebotcazou@adacore.com>
10121
10122         * reload1.c (fixup_abnormal_edges): Clear bb field for insns
10123         not inserted on the edge.
10124
10125 2007-06-08  Bob Wilson  <bob.wilson@acm.org>
10126
10127         * config/xtensa/lib1funcs.asm (__udivsi3): Use hardware divide
10128         instructions if they are supported.
10129         (__divsi3, __umodsi3, __modsi3): Likewise.
10130         (__ashldi3, __ashrdi3, __lshrdi3): New.
10131         * config/xtensa/t-xtensa (LIB1ASMFUNCS): Add DImode shift functions.
10132
10133 2007-06-08  Harsha Jagasia <harsha.jagasia@amd.com>
10134             Tony Linthicum <tony.linthicum@amd.com>
10135
10136         * doc/invoke.texi: Add fvect-cost-model flag.
10137         * common.opt (fvect-cost-model): New flag.
10138         * tree-vectorizer.c (new_stmt_vec_info): Initialize inside and outside
10139         cost fields in stmt_vec_info struct for STMT.
10140         * tree-vectorizer.h (stmt_vec_info): Define inside and outside cost
10141         fields in stmt_vec_info struct and access functions for the same.
10142         (TARG_COND_BRANCH_COST): Define cost of conditional branch.
10143         (TARG_VEC_STMT_COST): Define cost of any vector operation, excluding
10144         load, store and vector to scalar operation.
10145         (TARG_VEC_TO_SCALAR_COST): Define cost of vector to scalar operation.
10146         (TARG_VEC_LOAD_COST): Define cost of aligned vector load.
10147         (TARG_VEC_UNALIGNED_LOAD_COST): Define cost of misasligned vector load.
10148         (TARG_VEC_STORE_COST): Define cost of vector store.
10149         (vect_estimate_min_profitable_iters): Define new function.
10150         * tree-vect-analyze.c (vect_analyze_operations): Add a compile-time
10151         check to evaluate if loop iterations are less than minimum profitable
10152         iterations determined by cost model or minimum vect loop bound defined
10153         by user, whichever is more conservative.
10154         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Add a
10155         run-time check to evaluate if loop iterations are less than minimum
10156         profitable iterations determined by cost model or minimum vect loop
10157         bound defined by user, whichever is more conservative.
10158         (vect_estimate_min_profitable_iterations): New function to estimate
10159         mimimimum iterartions required for vector version of loop to be
10160         profitable over scalar version.
10161         (vect_model_reduction_cost): New function.
10162         (vect_model_induction_cost): New function.
10163         (vect_model_simple_cost): New function.
10164         (vect_cost_strided_group_size): New function.
10165         (vect_model_store_cost): New function.
10166         (vect_model_load_cost): New function.
10167         (vectorizable_reduction): Call vect_model_reduction_cost during
10168         analysis phase.
10169         (vectorizable_induction): Call vect_model_induction_cost during
10170         analysis phase.
10171         (vectorizable_load): Call vect_model_load_cost during analysis phase.
10172         (vectorizable_store): Call vect_model_store_cost during analysis phase.
10173         (vectorizable_call, vectorizable_assignment, vectorizable_operation,
10174         vectorizable_promotion, vectorizable_demotion): Call
10175         vect_model_simple_cost during analysis phase.
10176
10177 2007-06-08  Simon Baldwin  <simonb@google.com>
10178
10179         * reg-stack.c (get_true_reg): Readability change.  Moved default case
10180         label into direct switch statement scope.
10181
10182 2007-06-08  Simon Baldwin  <simonb@google.com>
10183
10184         * tree-flow-inline.h (var_ann): Replaced erroneous '=' assignment
10185         in gcc_assert() with '==' comparison.
10186
10187 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
10188
10189         * config/i386/i386.c (override_options): Merge TARGET_SSE4_2 and
10190         TARGET_ABM handling of x86_popcnt variable.
10191
10192 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
10193
10194         * doc/extend.texi (X86 Built-in Functions): Document __builtin_fabsq,
10195         __builtin_copysignq and __builtin_infq built-in functions.
10196
10197 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
10198
10199         * doc/extend.texi (X86 Built-in Functions): Add missing `@item's in
10200         SSE4.2 section.  Correct built-in function names in SSE4A section.
10201
10202 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
10203
10204         PR tree-optimization/32243
10205         * tree-vect-transform.c (vectorizable_type_promotion): Move check
10206         for ncopies after ratio check between nunits_out and nunits_in.
10207         (vectorizable_type_demotion): Remove single-use variable "scalar_type".
10208
10209 2007-06-08  Dorit Nuzman  <dorit@il.ibm.com>
10210
10211         PR tree-optimization/32224
10212         * tree-vect-analyze.c (vect_determine_vectorization_factor): Fail
10213         vectorization upon a non GIMPLE_MODIFY_STMT.
10214
10215 2007-06-08  Christian Bruel  <christian.bruel@st.com>
10216
10217         PR target/29953
10218         * config/sh/sh.md (doloop_end): New pattern and splitter.
10219         * loop-iv.c (simple_rhs_p): Check for hardware registers.
10220
10221 2007-06-08  Zdenek Dvorak  <dvorakz@suse.cz>
10222
10223         PR middle-end/32209
10224         * dominance.c (debug_dominance_tree, debug_dominance_tree_1): New
10225         functions.
10226         (verify_dominators): Do not change dominance tree.
10227
10228 2007-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
10229
10230         * config/sh/constraints.md: New file.
10231         * config/sh/sh.c: Include tm-constrs.h.
10232         (reg_class_from_letter): Remove.
10233         (prepare_cbranch_operands): Use satisfies_constraint_*
10234         function instead of macro.
10235         (andcosts, broken_move, sh_secondary_reload): Likewise.
10236         * config/sh/predicates.md (trapping_target_operand): Likewise.
10237         (and_operand, arith_operand, arith_reg_or_0_operand,
10238         cmp_operand, logical_operand, target_operand,
10239         ua_address_operand, ua_offset, xor_operand): Likewise.
10240         * config/sh/sh.md: Include constraints.md.
10241         (*movsicc_t_false): Use satisfies_constraint_* function
10242         instead of macro.
10243         (*movsicc_t_true, ashlsi3_std, ashlhi3_k, lshrsi3_m,
10244         lshrsi3_k, movsi_const_16bit+2, *movhi_media+1,
10245         movdi_const_16bit+1, beq, bne, *ptb): Likewise.
10246         * config/sh/sh.h (reg_class_from_letter): Remove prototype.
10247         (OVERRIDE_OPTIONS): Don't modify reg_class_from_letter.
10248         (REG_CLASS_FROM_CONSTRAINT): Remove.
10249         (CONSTRAINT_LEN, CONST_OK_FOR_I20, CONST_OK_FOR_I,
10250         CONST_OK_FOR_J, CONST_OK_FOR_K16, CONST_OK_FOR_K,
10251         CONST_OK_FOR_P27, CONST_OK_FOR_P, CONST_OK_FOR_M,
10252         CONST_OK_FOR_N, CONST_OK_FOR_CONSTRAINT_P,
10253         CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
10254         (SECONDARY_INOUT_RELOAD_CLASS): Use satisfies_constraint_*
10255         function instead of macro.
10256         (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
10257         (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_A,
10258         EXTRA_CONSTRAINT_Bsc, EXTRA_CONSTRAINT_B,
10259         EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Remove.
10260         (IS_PC_RELATIVE_LOAD_ADDR_P): New macro.
10261         (IS_LITERAL_OR_SYMBOLIC_S16_P): Likewise.
10262         (IS_LITERAL_OR_SYMBOLIC_U16_P): Likewise.
10263         (IS_NON_EXPLICIT_CONSTANT_P): Likewise.
10264         (EXTRA_CONSTRAINT_Csy, EXTRA_CONSTRAINT_Z, EXTRA_CONSTRAINT_W,
10265         EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C,
10266         EXTRA_MEMORY_CONSTRAINT, EXTRA_CONSTRAINT_Sr0,
10267         EXTRA_CONSTRAINT_Sua, EXTRA_CONSTRAINT_S,
10268         EXTRA_CONSTRAINT_STR): Likewise.
10269         (GO_IF_LEGITIMATE_INDEX): Fix indentation.
10270
10271 2007-06-07  Geoffrey Keating  <geoffk@apple.com>
10272
10273         * config/i386/darwin.h (STACK_BOUNDARY): Define.
10274
10275 2007-06-07  Simon Martin  <simartin@users.sourceforge.net>
10276
10277         PR c++/30759
10278         * c-common.h (flag_cpp0x): Replaced by...
10279         (cxx_dialect): ... this new variable specifying the C++ dialect that
10280         is used.
10281         * c-common.c (flag_cpp0x): Removed.
10282         (cxx_dialect): Defined.
10283         * c-cppbuiltin.c (c_cpp_builtins): flag_cpp0x rewritten in terms of
10284         cxx_dialect.
10285         * c-opts.c (c_common_post_options): Likewise.
10286         (set_std_cxx98): Set cxx_dialect to cxx98.
10287         (set_std_cxx0x): Set cxx_dialect to cxx0x.
10288
10289 2007-06-07  Geoffrey Keating  <geoffk@apple.com>
10290             Hui-May Chang <hm.chang@apple.com>
10291
10292         * doc/invoke.texi (Darwin Options): Update documentation for
10293         -mmacosx-version-min.
10294         * config.gcc (*-*-darwin*): Set extra_gcc_objs.
10295         * config/darwin-driver.c: New file.
10296         * config/darwin.h (GCC_DRIVER_HOST_INITIALIZATION): New.
10297         * config/t-darwin (darwin-driver.o): New rule.
10298
10299         * config/darwin-c.c (version_as_macro): Ignore low digit.
10300
10301 2007-06-07  Uros Bizjak  <ubizjak@gmail.com>
10302
10303         * config/i386/i386.md (standard sse constant splitter): Handle TFmode.
10304         (negtf2, abstf2, *absnegtf2_sse): New insn patterns.
10305         (CSGNMODE): New mode macro.
10306         (CSGNVMODE): New mode attribute.
10307         (copysign<mode>3): Rename from copysingsf3 and copysigndf3.  Macroize
10308         expander using CSGNMODE mode macro.  Handle TFmode.
10309         (copysign<mode>3_const): Rename from copysignsf3_const and
10310         copysigndf3_const.  Macroize pattern using CSGNMODE mode macro.
10311         Handle TFmode.
10312         (copysign<mode>3_var): Rename from copysignsf3_var and
10313         copysigndf3_var.  Macroize pattern using CSGNMODE mode macro.
10314         Handle TFmode.
10315         (copysign<mode>3_var splitter): Macroize pattern using CSGNMODE
10316         mode macro.  Handle TFmode.
10317         * config/i386/sse.md (andtf3, *andtf3, *nandtf3): New insn patterns.
10318         (iortf3, *iortf3): Ditto.
10319         (xortf3, *xortf3): Ditto.
10320         * config/i386/i386.c (ix86_build_signbit_mask): Create scalar
10321         TFmode and TImode masks.
10322         (ix86_expand_copysign): Expand TFmode copysign insn.
10323         (IX86_BUILTIN_INFQ): New.
10324         (IX86_BUILTIN_FABSQ): Ditto.
10325         (IX86_BUILTIN_COPYSIGNQ): Ditto.
10326         (ix86_init_mmx_sse_builtins) [__builtin_infq]: New builtin definition.
10327         [__builtin_fabsq]: Ditto.
10328         [__builtin_copysignq]: Ditto.
10329         (ix86_expand_builtin) [IX86_BUILTIN_INFQ]: Expand builtin.
10330         [IX86_BUILTIN_FABSQ]: Expand builtin using ix86_expand_unop_builtin().
10331         [IX86_BUILTIN_COPYSIGNQ]: Expand builtin using
10332         ix86_expand_binop_builtin().
10333
10334 2007-06-07  Bob Wilson  <bob.wilson@acm.org>
10335
10336         * config/xtensa/lib1funcs.asm: Clean up whitespace.
10337
10338 2007-06-07  Steve Ellcey  <sje@cup.hp.com>
10339
10340         PR target/31850
10341         * rtl.h (push_to_sequence2): New.
10342         * emit-rtl.c (push_to_sequence2): New.
10343         * function.c (assign_parm_data_all): Add new fields.
10344         (assign_parm_setup_block): Call push_to_sequence2 instead of
10345         push_to_sequence.
10346         (assign_parm_setup_reg): Ditto.
10347         (assign_parm_setup_stack): Ditto.
10348         (assign_parms_unsplit_complex): Ditto.
10349         (assign_parms): Change field name.
10350
10351 2007-06-07  Zdenek Dvorak  <dvorakz@suse.cz>
10352
10353         PR tree-optimization/32220
10354         * tree-predcom.c (eliminate_temp_copies): Handle the case that loop
10355         phi node is reached before defining statement.
10356
10357 2007-06-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10358
10359         PR tree-opt/32231
10360         * tree-vect-transform.c (vectorizable_call): Call update_stmt
10361         after changing the right hand side of the assignment.
10362
10363 2007-06-06  Eric Christopher  <echristo@apple.com>
10364
10365         * config.gcc (i?86-*-darwin*): Remove arch parameter.
10366         (x86_64-*-darwin*): Ditto.
10367         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Define.
10368         (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
10369
10370 2007-06-06  Thomas Neumann  <tneumann@users.sourceforge.net>
10371
10372         * tree-ssa-alias-warnings.c (maybe_add_match): Cast according to the
10373         coding conventions.
10374         (add_key): Likewise.
10375         * tree-ssa.c (init_tree_ssa): Use type safe memory macros.
10376         * tree-ssa-ccp.c (ccp_fold_builtin): Avoid using C++ keywords as
10377         variable names.
10378         * tree-ssa-coalesce.c (find_coalesce_pair): Use type safe memory
10379         macros.
10380         (add_cost_one_coalesce): Likewise.
10381         * tree-ssa-copy.c (merge_alias_info): Avoid using C++ keywords as
10382         variable names. Rename orig to orig_name for consistency.
10383         * tree-ssa-dom.c (dom_thread_across_edge): Cast according to the
10384         coding conventions.
10385         (cprop_into_successor_phis): Avoid using C++ keywords as variable
10386         names.
10387         (record_equivalences_from_stmt): Likewise.
10388         * tree-ssa-dse.c (dse_initialize_block_local_data): Cast according to
10389         the coding conventions.
10390         (memory_ssa_name_same): Likewise.
10391         (dse_optimize_stmt): Likewise.
10392         (dse_record_phis): Likewise.
10393         (dse_finalize_block): Likewise.
10394         * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Avoid using C++
10395         keywords as variable names.
10396         (may_move_till): Cast according to the coding conventions.
10397         (force_move_till_expr): Avoid using C++ keywords as variable names.
10398         (force_move_till): Cast according to the coding conventions.
10399         (memref_hash): Likewise.
10400         (memref_eq): Likewise.
10401         (gather_mem_refs_stmt): Likewise.
10402         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Avoid
10403         using C++ keywords as variable names.
10404         (idx_find_step): Cast according to the coding conventions.
10405         (idx_record_use): Likewise.
10406         (find_depends): Likewise.
10407         (prepare_decl_rtl): Likewise.
10408         (mbc_entry_hash): Likewise.
10409         (mbc_entry_eq): Likewise.
10410         * tree-ssa-loop-niter.c (SWAP): Use the correct the type for tmp.
10411         (simplify_replace_tree): Avoid using C++ keywords as variable names.
10412         (idx_infer_loop_bounds): Cast according to the coding conventions.
10413         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
10414         * tree-ssa-math-opts.c (occ_new ): Likwise.
10415         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Use type safe memory
10416         macros.
10417         * tree-ssa-operands.c (add_def_op): Avoid using C++ keywords as
10418         variable names.
10419         (add_use_op): Likewise.
10420         (add_vop): Likewise.
10421         (add_vuse_op): Likewise.
10422         (add_vdef_op): Likewise.
10423         (get_expr_operands): Likewise.
10424         (push_stmt_changes): Use type safe memory macros.
10425         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Avoid using C++
10426         keywords as variable names.
10427         (conditional_replacement): Likewise.
10428         (minmax_replacement): Likewise.
10429         (abs_replacement): Likewise.
10430         * tree-ssa-pre.c (create_expression_by_pieces): Cast according to the
10431         coding conventions.
10432         (insert_fake_stores): Avoid using C++ keywords as variable names.
10433         * tree-ssa-reassoc.c (add_to_ops_vec): Cast according to the coding
10434         conventions.
10435         * tree-ssa-structalias.c (heapvar_lookup): Likewise.
10436         (heapvar_insert): Use type safe memory macros.
10437         (new_var_info): Cast according to the coding conventions.
10438         (new_constraint): Likewise.
10439         (remove_preds_and_fake_succs): Use type safe memory macros.
10440         * tree-ssa-threadupdate.c (thread_block): Cast according to the coding
10441         conventions.
10442         (thread_single_edge): Likewise.
10443         (thread_through_loop_header): Likewise.
10444
10445 2007-06-06  Eric Christopher  <echristo@apple.com>
10446
10447         * config/i386/i386.c (override_options): Move handling
10448         of TARGET_SUBTARGET* earlier.
10449
10450 2007-06-06  Paolo Bonzini  <bonzini@gnu.org>
10451
10452         * genmodes.c (tagged_printf, emit_insn_modes_h): Don't
10453         use %n on printf.
10454
10455 2007-06-06  Zdenek Dvorak  <dvorakz@suse.cz>
10456
10457         * haifa-sched.c (restore_bb_notes): Clear bb field of the notes
10458         emited outside of basic block.
10459         * cfgbuild.c (find_bb_boundaries): Clear bb field for insns between
10460         the created blocks.
10461         * rtl.h (delete_insn_chain): Declaration changed.
10462         * cfgrtl.c (delete_insn_chain): Add option to clear bb field for
10463         non-removed insns.
10464         (rtl_delete_block, rtl_merge_blocks): Pass true to delete_insn_chain.
10465         (delete_insn_chain_and_edges, try_redirect_by_replacing_jump,
10466         rtl_tidy_fallthru_edge, cfg_layout_merge_blocks): Pass false
10467         to delete_insn_chain.
10468         (rtl_verify_flow_info_1): Verify that the insns in header and footer
10469         do not have bb field set.
10470         (rtl_verify_flow_info): Verify that insns between basic blocks do not
10471         have bb field set.
10472         * recog.c (peephole2_optimize): Add argument to delete_insn_chain call.
10473         * cfgcleanup.c (try_optimize_cfg): Ditto.
10474
10475 2007-06-06  Thomas Neumann  <tneumann@users.sourceforge.net>
10476
10477         * lambda-code.c (struct lambda_lattice_s): Add a name to the struct.
10478         (lambda_body_vector_new): Use type safe memory macros.
10479         (lambda_linear_expression_new): Likewise.
10480         (lambda_loopnest_new): Likewise.
10481         (lambda_lattice_new): Likewise.
10482         (replace_uses_equiv_to_x_with_y): Cast according to the coding
10483         conventions. Use type safe memory macros.
10484         * lambda.h (struct lambda_trans_matrix_s): Add a name to the struct.
10485         (lambda_body_vector_s): Likewise.
10486         * lambda-mat.c (lambda_matrix_new): Use type safe memory macros.
10487         * lambda-trans.c (lambda_trans_matrix_new): Likewise.
10488
10489 2007-06-06  Richard Guenther  <rguenther@suse.de>
10490
10491         * tree-ssa-forwprop.c (forward_propagate_into_cond): Return 2
10492         if we need to schedule cfg_cleanup.
10493         (tree_ssa_forward_propagate_single_use_vars): Do so.
10494
10495 2007-06-06  Ian Lance Taylor  <iant@google.com>
10496
10497         * fold-const.c (merge_ranges): If range_successor or
10498         range_predecessor fail, just return 0.
10499
10500 2007-06-06  Uros Bizjak  <ubizjak@gmail.com>
10501
10502         PR tree-optimization/32216
10503         * tree-vectorizer.c (supportable_widening_operation): Determine
10504         signedness of FIX_TRUNC_EXPR from output operand.
10505         (supportable_narrowing_operation): Ditto.
10506         * tree-vect-generic.c (expand_vector_operations_1): Determine
10507         signedness of VEC_UNPACK_FLOAT_HI_EXPR and VEC_UNPACK_FLOAT_LO_EXPR
10508         from input operand.
10509
10510 2007-06-06  Thomas Neumann  <tneumann@users.sourceforge.net>
10511
10512         * config/i386/i386.c (enum pta_flags): Move out of struct scope...
10513         (struct pta): ...from here. Change flags to unsigned to avoid
10514         excessive casting (as it is used as a bit mask).
10515         (override_options): Add casts according to the coding convenventions.
10516         (x86_64_elf_unique_section): Likewise.
10517         (examine_argument): Avoid using C++ keywords as variable names.
10518         (construct_container): Likewise.
10519         (legitimize_pic_address): Likewise.
10520         (get_dllimport_decl): Cast according to the coding conventions. Use
10521         type safe memory macros.
10522         (legitimize_address): Cast according to the coding conventions.
10523         (emit_i387_cw_initialization): Corrected the type of slot to enum
10524         ix86_stack_slot.
10525         (ix86_init_machine_status): Use type safe memory macros.
10526         (bdesc_pcmpestr): Use UNKNOWN instead of integer 0.
10527         (bdesc_pcmpistr): Likewise.
10528         (bdesc_crc32): Likewise.
10529         (bdesc_sse_3arg): Likewise.
10530         (bdesc_2arg): Likewise.
10531         (bdesc_1arg): Likewise.
10532         (ix86_expand_sse_pcmpestr): Cast according to the coding conventions.
10533         (ix86_expand_sse_pcmpistr): Likewise.
10534         (ix86_expand_vec_set_builtin): Use EXPAND_NORMAL instead of integer 0.
10535         (ix86_builtin_vectorized_function): Change the type of fn to unsigned
10536         int to match the langhook definition.
10537         (ix86_builtin_conversion): Change the type of code to unsigned init to
10538         match the langhook definition.
10539         (ix86_preferred_reload_class): Avoid using C++ keywords as variable
10540         names.
10541         (ix86_preferred_output_reload_class): Likewise.
10542         (ix86_cannot_change_mode_class): Likewise.
10543         (ix86_memory_move_cost): Likewise.
10544         (ix86_rtx_costs): Cast the outer_code parameter to enum rtx_code to
10545         avoid excessive casting later on.
10546         (x86_output_mi_thunk): Avoid using C++ keywords as variable names.
10547
10548 2007-06-06  Uros Bizjak  <ubizjak@gmail.com>
10549
10550         * config/i386/sse.md (sse4_2_pcmpestr_cconly): Prefer pcmpestrm
10551         as flags setting insn.
10552         (sse4_2_pcmpistr_cconly): Prefer pcmpistrm as flags setting insn.
10553
10554 2007-06-06  Uros Bizjak  <ubizjak@gmail.com>
10555
10556         * config/i386/i386.md (UNSPEC_ROUNDP, UNSPEC_ROUNDS): Remove.
10557         (UNSPEC_ROUND): New.
10558         ("sse4_1_round<mode>2"): New insn pattern.
10559         ("rint<mode>2"): Expand using "sse4_1_round<mode>2" pattern for
10560         SSE4.1 targets.
10561         ("floor<mode>2"): Rename from floordf2 and floorsf2.  Macroize
10562         expander using SSEMODEF mode macro.  Expand using
10563         "sse4_1_round<mode>2" pattern for SSE4.1 targets.
10564         ("ceil<mode>2"): Rename from ceildf2 and ceilsf2.  Macroize
10565         expander using SSEMODEF mode macro.  Expand using
10566         "sse4_1_round<mode>2" pattern for SSE4.1 targets.
10567         ("btrunc<mode>2"): Rename from btruncdf2 and btruncsf2.  Macroize
10568         expander using SSEMODEF mode macro.  Expand using
10569         "sse4_1_round<mode>2" pattern for SSE4.1 targets.
10570         * config/i386/sse.md ("sse4_1_roundpd", "sse4_1_roundps"): Use
10571         UNSPEC_ROUND instead of UNSPEC_ROUNDP.
10572         ("sse4_1_roundsd", "sse4_1_roundss"): Use UNSPEC_ROUND instead of
10573         UNSPEC_ROUNDS.
10574
10575 2007-06-06  Jan Sjodin  <jan.sjodin@amd.com>
10576             Sebastian Pop  <sebpop@gmail.com>
10577
10578         * lambda.h (build_linear_expr): New.
10579         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression):
10580         Use build_linear_expr, call fold and force_gimple_operand.
10581         (lambda_loopnest_to_gcc_loopnest): Check that there is
10582         something to insert.
10583         * testsuite/gcc.dg/tree-ssa/ltrans-6.c: New.
10584
10585 2007-06-05  Joerg Wunsch  <j.gnu@uriah.heep.sax.de>
10586
10587         PR preprocessor/23479
10588         * doc/extend.texi: Document the 0b-prefixed binary integer
10589         constant extension.
10590
10591 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
10592
10593         PR tree-optimization/32215
10594         * tree-vectorizer.c (supportable_widening_operation): Return false
10595         for unsupported FIX_TRUNC_EXPR tree code.
10596         (supportable_narrowing_operation): Ditto for FLOAT_EXPR tree code.
10597
10598 2007-06-06  Nathan Froyd  <froydnj@codesourcery.com>
10599
10600         * config/rs6000/rs6000.h (FIXED_SCRATCH): Use r0 as a scratch
10601         register on SPE targets.  Change documentation to reflect
10602         reality.
10603         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
10604         Change FIXED_SCRATCH to 14 and document why we're keeping r14
10605         out of the register allocation pool.
10606         (rs6000_reg_live_or_pic_offset_p): New function.
10607         (rs6000_emit_prologue): Move the actual saving of LR up to free
10608         r0 for holding r11.  Split saving of SPE 64-bit registers into
10609         its own case.  Ensure that offsets will always be in-range for
10610         'evstdd' by using r11 as a scratch register to point at the start
10611         of the SPE save area.  Save r11 if necessary, as it is the static
10612         chain register.
10613         (rs6000_emit_epilogue): Split restoring of SPE 64-bit registers
10614         into its own case.  Ensure that offsets will always be in-range
10615         for 'evldd' by using r11 as a scratch register to point at the
10616         start of the SPE save area.  Also adjust r11 when restoring
10617         the stack pointer to compensate for pre-loading r11.
10618
10619 2007-06-05  Thomas Neumann  <tneumann@users.sourceforge.net>
10620
10621         * cfg.c (init_flow): Use type safe memory macros.
10622         (alloc_block): Likewise.
10623         (unchecked_make_edge): Likewise.
10624         (dump_flow_info): Avoid using C++ keywords as variable names.
10625         (copy_original_table_clear): Cast according to the coding conventions.
10626         (copy_original_table_set): Likewise.
10627         * cfgexpand (label_rtx_for_bb): Likewise.
10628         (expand_gimple_basic_block): Likewise.
10629         * cfghooks.c (dump_bb): Likewise.
10630         (lv_adjust_loop_header_phi): Avoid using C++ keywords as
10631         variable names.
10632         (lv_add_condition_to_bb): Likewise.
10633         * cfglayout (relink_block_chain): Cast according to the coding
10634         conventions.
10635         (fixup_reorder_chain): Likewise.
10636         (fixup_fallthru_exit_predecessor): Likewise.
10637         * cfgloop.c (glb_enum_p): Likewise.
10638         (get_exit_description): Likewise.
10639         (dump_recorded_exit): Likewise.
10640         * cfgloop.h (enum loop_estimation): Move out of struct scope...
10641         (struct loop): ... from here.
10642         * cfgloopmanip.c (rpe_enum_p): Cast according to the coding
10643         conventions.
10644         * cfgrtl.c (rtl_create_basic_block): Likewise.
10645         (rtl_split_block): Likewise.
10646         (rtl_dump_bb): Likewise.
10647         (cfg_layout_split_block): Likewise.
10648         (init_rtl_bb_info): Use typesafe memory macros.
10649
10650         * graphds.h (struct graph_edge): Renamed edge to graph_edge.
10651         * graphds.h: Updated all usages of edge to graph_edge.
10652         * graphds.c: Likewise.
10653         * cfgloopanal.c: Likewise.
10654
10655 2007-06-05  Ian Lance Taylor  <iant@google.com>
10656
10657         * tree-vrp.c (compare_values_warnv): Check TREE_NO_WARNING on a
10658         PLUS_EXPR or MINUS_EXPR node before setting *strict_overflow_p.
10659         (extract_range_from_assert): Set TREE_NO_WARNING when creating an
10660         expression.
10661         (test_for_singularity): Likewise.
10662
10663 2007-06-05  H.J. Lu  <hongjiu.lu@intel.com>
10664
10665         * config/i386/constraints.md ("Y2"): Replaced by ...
10666         ("Yt"): This.
10667         * config/i386/i386.md: Likewise.
10668         * config/i386/mmx.md: Likewise.
10669         * config/i386/sse.md: Likewise.
10670
10671 2007-06-05  H.J. Lu  <hongjiu.lu@intel.com>
10672
10673         * config/i386/constraints.md ("z"): Replaced by ...
10674         ("Y0"): This.
10675         * config/i386/sse.md (sse4_1_blendvpd): Likewise.
10676         (sse4_1_blendvps): Likewise.
10677         (sse4_1_pblendvb): Likewise.
10678         (sse4_2_pcmpestr): Likewise.
10679         (sse4_2_pcmpestrm): Likewise.
10680         (sse4_2_pcmpestr_cconly): Likewise.
10681         (sse4_2_pcmpistr): Likewise.
10682         (sse4_2_pcmpistrm): Likewise.
10683         (sse4_2_pcmpistr_cconly): Likewise.
10684
10685 2007-06-05  Razya Ladelsky  <razya@il.ibm.com>
10686
10687         * matrix-reorg.c (transform_access_sites): Fix computation.
10688         (transform_allocation_sites): Same.
10689
10690 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
10691
10692         * config/i386/i386.c (override_options): Use
10693         TARGET_SUBTARGET32_ISA_DEFAULT to select default ix86_isa_flags.
10694
10695 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
10696
10697         * config/i386/predicates.md (reg_not_xmm0_operand): New predicate.
10698         (nonimm_not_xmm0_operand): Ditto.
10699         * config/i386/sse.md ("sse4_1_blendvpd"): Use "reg_not_xmm0_operand"
10700         as operand[0] and operand[1] predicate.  Use "nonimm_not_xmm0_operand"
10701         as operand[2] predicate.  Require "z" class XMM register for
10702         operand[3].  Adjust asm template.
10703         ("sse4_1_blendvpd"): Ditto.
10704         ("sse4_1_pblendvb"): Ditto.
10705         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Do not
10706         force op2 into xmm0 register for variable blend instructions.
10707
10708 2007-06-04  Tom Tromey  <tromey@redhat.com>
10709
10710         * c-tree.h (start_enum): Update.
10711         (build_enumerator): Likewise.
10712         * c-decl.c (enum_next_value): Removed.
10713         (enum_overflow): Likewise.
10714         (start_enum): Add c_enum_contents argument.  Don't use globals.
10715         (build_enumerator): Likewise.
10716         * c-tree.h (struct c_enum_contents): New struct.
10717
10718 2007-06-04  Tom Tromey  <tromey@redhat.com>
10719
10720         * c-common.c (c_common_get_alias_set): Fix indentation.
10721
10722 2007-06-04  Ian Lance Taylor  <iant@google.com>
10723
10724         * tree-vrp.c (adjust_range_with_scev): When loop is not expected
10725         to overflow, reduce overflow infinity to regular infinity.
10726         (vrp_var_may_overflow): New static function.
10727         (vrp_visit_phi_node): Check vrp_var_may_overflow.
10728
10729 2007-06-04  Kazu Hirata  <kazu@codesourcery.com>
10730
10731         * stor-layout.c (layout_type): Remove duplicate code.
10732
10733 2007-06-04  Uros Bizjak  <ubizjak@gmail.com>
10734
10735         PR c/32191
10736         * c-common.c (c_define_builtins): Call targetm.init_builtins ()
10737         before build_common_builtin_nodes ().
10738
10739 2007-06-04  Steve Ellcey  <sje@cup.hp.com>
10740
10741         PR target/31733
10742         * cfgrtl.c (rtl_verify_flow_info): Skip notes when looking for barrier.
10743
10744 2007-06-04  Jan Hubicka  <jh@suse.cz>
10745
10746         * tree-predcom.c (replace_ref_with, initialize_root_vars_lm,
10747         reassociate_to_the_same_stmt): Call build_gimple_modify_stmt
10748         instead of _stat version.
10749
10750 2007-06-03  Zdenek Dvorak  <dvorakz@suse.cz>
10751
10752         PR tree-optimization/32194
10753         * tree-predcom.c (determine_offset): Check that both references have
10754         the same type.
10755
10756 2007-06-03  Zdenek Dvorak  <dvorakz@suse.cz>
10757
10758         * cfgloopmanip.c (remove_path, loopify, duplicate_loop_to_header_edge):
10759         Change dom_bbs to vector.  Add argument to iterate_fix_dominators call.
10760         * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
10761         * tree-cfg.c (tree_duplicate_sese_region): Change doms to vector.
10762         Add argument to iterate_fix_dominators call.
10763         (remove_edge_and_dominated_blocks): Pass vector to bbs_to_fix_dom.
10764         * gcse.c (hoist_code): Change domby to vector.
10765         * cfghooks.c (make_forwarder_block): Change doms_to_fix to vector.
10766         Add argument to iterate_fix_dominators call.
10767         * loop-doloop.c (doloop_modify): Changed recount_dominator to
10768         recompute_dominator.
10769         * lambda-code.c (perfect_nestify): Ditto.
10770         * cfgloopanal.c: Include graphds.h.
10771         (struct edge, struct vertex, struct graph, dump_graph, new_graph,
10772         add_edge, dfs, for_each_edge, free_graph): Moved to graphds.c.
10773         (mark_irreducible_loops): Use graphds_scc.  Remove argument from
10774         add_edge call.
10775         * graphds.c: New file.
10776         * graphds.h: New file.
10777         * dominance.c: Include vecprim.h, pointer-set.h and graphds.h.
10778         (get_dominated_by, get_dominated_by_region): Change return type to
10779         vector.
10780         (verify_dominators): Recompute all dominators and compare the results.
10781         (recount_dominator): Renamed to ...
10782         (recompute_dominator): ... this.  Do not check that the block is
10783         dominated by entry.
10784         (iterate_fix_dominators): Reimplemented.
10785         (prune_bbs_to_update_dominators, root_of_dom_tree,
10786         determine_dominators_for_sons): New functions.
10787         * et-forest.c (et_root): New function.
10788         * et-forest.h (et_root): Declare.
10789         * Makefile.in (graphds.o): Add.
10790         (cfgloopanal.o): Add graphds.h dependency.
10791         (dominance.o): Add graphds.h, vecprim.h and pointer-set.h dependency.
10792         * basic-block.h (get_dominated_by, get_dominated_by_region,
10793         iterate_fix_dominators): Declaration changed.
10794         (recount_dominator): Renamed to ...
10795         (recompute_dominator): ... this.
10796         * tree-ssa-threadupdate.c (thread_block): Free dominance info.
10797         (thread_through_all_blocks): Do not free dominance info.
10798
10799 2007-06-03  Andreas Schwab  <schwab@suse.de>
10800
10801         * config/m68k/m68k.c (override_options): Don't override
10802         REAL_MODE_FORMAT.
10803         * config/m68k/m68k-modes.def (SF, DF): Define to use
10804         motorola_single_format and motorola_double_format, resp.
10805         * real.c (motorola_single_format): Renamed from
10806         coldfire_single_format.
10807         (motorola_double_format): Renamed from coldfire_double_format.
10808         (encode_ieee_extended): Generate a proper canonical NaN image
10809         respecting canonical_nan_lsbs_set.
10810         (ieee_extended_motorola_format): Set canonical_nan_lsbs_set to
10811         true.
10812         * real.h: Adjust declarations.
10813
10814 2007-06-03  Kaz Kojima  <kkojima@gcc.gnu.org>
10815
10816         PR target/32163
10817         * config/sh/sh.md (symGOT_load): Don't schedule insns when
10818         the symbol is generated with the stack protector.
10819
10820 2007-06-03  Kazu Hirata  <kazu@codesourcery.com>
10821
10822         * config/m68k/m68k.c (m68k_attribute_table): Add "interrupt".
10823         (m68k_get_function_kind): Return m68k_fk_interrupt_handler on
10824         "interrupt".
10825         * doc/extend.texi (interrupt): Mention m68k.
10826
10827 2007-06-02  Uros Bizjak  <ubizjak@gmail.com>
10828
10829         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Call
10830         safe_vector_operand() if input operand is VECTOR_MODE_P operand.
10831         (ix86_expand_sse_pcmpestr): Do not check operands for
10832         "register_operand", when insn operand predicate is "register_operand".
10833         (ix86_expand_sse_pcmpistr): Ditto.
10834
10835 2007-06-02  H.J. Lu  <hongjiu.lu@intel.com>
10836             Uros Bizjak  <ubizjak@gmail.com>
10837
10838         * config/i386/i386.h (enum reg_class) [SSE_FIRST_REG]: New.
10839         (SSE_CLASS_P): Use reg_class_subset_p between SSE_REGS.
10840         (REG_CLASS_NAMES): Add "FIRST_SSE_REG" string.
10841         (REG_CLASS_CONTENTS): Add members of FIRST_SSE_REG class.
10842         * config/i386/constraints.md ("z"): New register constraint
10843         for members of SSE_FIRST_REG class.
10844         * config/i386/i386-modes.def (CCA, CCC, CCO, CCS): New compare modes.
10845         * config/i386/i386.c (regclass_map): Change class of %xmm0 to
10846         SSE_FIRST_REG class.
10847         (put_condition_code) [EQ, NE]: Output suffixes for new compare modes.
10848         (ix86_cc_modes_compatible): Handle CCA, CCC, CCO and CCS modes.
10849         (IX86_BUILTIN_PCMPESTRI128): New for SSE4.2.
10850         (IX86_BUILTIN_PCMPESTRM128): Likewise.
10851         (IX86_BUILTIN_PCMPESTRA128): Likewise.
10852         (IX86_BUILTIN_PCMPESTRC128): Likewise.
10853         (IX86_BUILTIN_PCMPESTRO128): Likewise.
10854         (IX86_BUILTIN_PCMPESTRS128): Likewise.
10855         (IX86_BUILTIN_PCMPESTRZ128): Likewise.
10856         (IX86_BUILTIN_PCMPISTRI128): Likewise.
10857         (IX86_BUILTIN_PCMPISTRM128): Likewise.
10858         (IX86_BUILTIN_PCMPISTRA128): Likewise.
10859         (IX86_BUILTIN_PCMPISTRC128): Likewise.
10860         (IX86_BUILTIN_PCMPISTRO128): Likewise.
10861         (IX86_BUILTIN_PCMPISTRS128): Likewise.
10862         (IX86_BUILTIN_PCMPISTRZ128): Likewise.
10863         (struct builtin_description): Change "flag" field to unsigned.
10864         (bdesc_pcmpestr): New builtin description table.
10865         (bdesc_pcmpistr): Likewise.
10866         (ix86_init_mmx_sse_builtins): Define int_ftype_v16qi_int_v16qi_int_int,
10867         v16qi_ftype_v16qi_int_v16qi_int_int and int_ftype_v16qi_v16qi_int.
10868         Initialize pcmp[ei]str[im] insns for SSE4.2.
10869         (ix86_expand_sse_pcmpestr): New subroutine of ix86_expand_builtin.
10870         (ix86_expand_sse_pcmpistr): Likewise.
10871         (ix86_expand_builtin): Expand pcmp[ei]str[im] builtins for SSE4.2.
10872         * config/i386/i386.md (UNSPEC_PCMPESTR): New for SSE4.2.
10873         (UNSPEC_PCMPISTR): Likewise.
10874         * config/i386/sse.md (sse4_2_pcmpestr): New insn patern and splitter.
10875         (sse4_2_pcmpestri):New isns pattern.
10876         (sse4_2_pcmpestrm): Likewise.
10877         (sse4_2_pcmpestr_cconly): Likewise.
10878         (sse4_2_pcmpistr): New insn patern and splitter.
10879         (sse4_2_pcmpistri):New isns pattern.
10880         (sse4_2_pcmpistrm): Likewise.
10881         (sse4_2_pcmpistr_cconly): Likewise.
10882         * config/i386/smmintrin.h: Enable pcmp[ei]str[im] intrinsics
10883         in SSE4.2.
10884
10885 2007-06-01  David Daney  <ddaney@avtrex.com>
10886
10887         * config/mips/mips.c (mips_output_mi_thunk): Only load gp if not
10888         LOADGP_ABSOLUTE and not binds_local_p.
10889
10890 2007-06-01  Geoffrey Keating  <geoffk@apple.com>
10891
10892         * config/darwin.h (LINK_SPEC): Pass -fpie through to the linker.
10893
10894 2007-06-01  Ian Lance Taylor  <iant@google.com>
10895
10896         * tree-vrp.c (compare_name_with_value): Always set
10897         used_strict_overflow if we get a result from the variable itself.
10898
10899 2007-06-01  Ian Lance Taylor  <iant@google.com>
10900
10901         PR rtl-optimization/31455
10902         * lower-subreg.c (find_decomposable_subregs): Don't decompose
10903         subregs which have a cast between modes which are not tieable.
10904
10905 2007-06-01  Uros Bizjak  <ubizjak@gmail.com>
10906
10907         * expr.c (force_operand) [DIV, MOD, UDIV, UMOD, ASHIFTRT]: Remove
10908         breaks after return statements.
10909
10910 2007-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
10911
10912         * config/sh/sh.c (fpscr_set_from_mem): Call get_free_reg
10913         only after no_new_pseudos.
10914
10915 2007-05-31  Eric Christopher  <echristo@apple.com>
10916
10917         * expr.c (convert_move): Assert that we don't have a BLKmode
10918         operand.
10919         (store_expr): Handle BLKmode moves by calling emit_block_move.
10920
10921 2007-05-31  Daniel Berlin  <dberlin@dberlin.org>
10922
10923         * c-typeck.c (build_indirect_ref): Include type in error message.
10924         (build_binary_op): Pass types to binary_op_error.
10925         * c-common.c (binary_op_error): Take two type arguments, print out
10926         types with error.
10927         * c-common.h (binary_op_error): Update prototype.
10928
10929 2007-05-31  H.J. Lu  <hongjiu.lu@intel.com>
10930
10931         * config/i386/i386.c: Correct coments on -mno-sse4.
10932
10933 2007-05-31  H.J. Lu  <hongjiu.lu@intel.com>
10934
10935         * config.gcc (i[34567]86-*-*): Add nmmintrin.h to extra_headers.
10936         (x86_64-*-*): Likewise.
10937         * config/i386/i386.c (OPTION_MASK_ISA_MMX_UNSET): New.
10938         (OPTION_MASK_ISA_3DNOW_UNSET): Likewise.
10939         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
10940         (OPTION_MASK_ISA_SSE2_UNSET): Likewise.
10941         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
10942         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
10943         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
10944         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
10945         (OPTION_MASK_ISA_SSE4): Likewise.
10946         (OPTION_MASK_ISA_SSE4_UNSET): Likewise.
10947         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
10948         (ix86_handle_option): Use OPTION_MASK_ISA_*_UNSET.  Handle SSE4.2.
10949         (override_options): Support SSE4.2.
10950         (ix86_build_const_vector): Support SImode and DImode.
10951         (ix86_build_signbit_mask): Likewise.
10952         (ix86_expand_int_vcond): Support V2DImode.
10953         (IX86_BUILTIN_CRC32QI): New for SSE4.2.
10954         (IX86_BUILTIN_CRC32HI): Likewise.
10955         (IX86_BUILTIN_CRC32SI): Likewise.
10956         (IX86_BUILTIN_CRC32DI): Likewise.
10957         (IX86_BUILTIN_PCMPGTQ): Likewise.
10958         (bdesc_crc32): Likewise.
10959         (bdesc_sse_3arg): Likewise.
10960         (ix86_expand_crc32): Likewise.
10961         (ix86_init_mmx_sse_builtins): Support SSE4.2.
10962         (ix86_expand_builtin): Likewise.
10963         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
10964         __SSE4_2__ for -msse4.2.
10965         * config/i386/i386.md (UNSPEC_CRC32): New for SSE4.2.
10966         (CRC32MODE): Likewise.
10967         (crc32modesuffix): Likewise.
10968         (crc32modeconstraint): Likewise.
10969         (sse4_2_crc32<mode>): Likewise.
10970         (sse4_2_crc32di): Likewise.
10971         * config/i386/i386.opt (msse4.2): New for SSE4.2.
10972         (msse4): Likewise.
10973         * config/i386/nmmintrin.h: New. The dummy SSE4.2 intrinsic header file.
10974         * config/i386/smmintrin.h: Add SSE4.2 intrinsics.
10975         * config/i386/sse.md (sse4_2_gtv2di3): New pattern for SSE4.2.
10976         (vcond<mode>): Use SSEMODEI instead of SSEMODE124.
10977         (vcondu<mode>): Likewise.
10978         * doc/extend.texi: Document SSE4.2 built-in functions.
10979         * doc/invoke.texi: Document -msse4.2/-msse4.
10980
10981 2007-05-31  Zdenek Dvorak  <dvorakz@suse.cz>
10982
10983         PR tree-optimization/32160
10984         * tree-predcom.c (predcom_tmp_var): New function.  Mark created
10985         variable as gimple reg.
10986         (initialize_root_vars, initialize_root_vars_lm): Use predcom_tmp_var.
10987
10988 2007-05-31  Kazu Hirata  <kazu@codesourcery.com>
10989
10990         * gcc.c (main): Don't consider linker options when issuing the
10991         warning about a linker input file not being used.
10992
10993 2007-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10994
10995         * tree-vrp.c (compare_names): Initialize sop.
10996
10997 2007-05-30  Dirk Mueller  <dmueller@suse.de>
10998
10999         * cgraphunit.c (cgraph_analyze_function): Remove
11000         computation of inline parameters.
11001
11002 2007-05-30  Uros Bizjak  <ubizjak@gmail.com>
11003
11004         * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Undef before define.
11005
11006 2007-05-30  Richard Sandiford  <richard@codesourcery.com>
11007
11008         * config.gcc (arm-wrs-vxworks): Remove dbxelf.h from tm_file.
11009         Add vx-common.h.  Include vxworks.h between vx-common.h and
11010         arm/vxworks.h.
11011         * config/vx-common.h (DWARF2_UNWIND_INFO): Undefine before
11012         redefining.
11013         * config/vxworks.h (TARGET_ASM_CONSTRUCTOR): Likewise.
11014         (TARGET_ASM_DESTRUCTOR): Likewise.
11015         * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Check arm_arch_xscale
11016         instead of arm_is_xscale.  Use VXWORKS_OS_CPP_BUILTINS.
11017         (OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
11018         (CC1_SPEC): Add -tstrongarm.  Line up backslashes.
11019         (VXWORKS_ENDIAN_SPEC): Define.
11020         (ASM_SPEC): Add VXWORKS_ENDIAN_SPEC.
11021         (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine to their
11022         VXWORKS_* equivalents.
11023         (LINK_SPEC): Likewise, but add VXWORKS_ENDIAN_SPEC.
11024         (ASM_FILE_START): Delete.
11025         (TARGET_VERSION): Reformat.
11026         (FPUTYPE_DEFAULT, FUNCTION_PROFILER): Define.
11027         (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define.
11028         * config/arm/t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Define.
11029         (FPBIT, DPBIT): Define.
11030         (fp-bit.c, dp-bit.c): New rules.
11031         (MULTILIB_OPTIONS): Add strongarm, -mrtp and -mrtp/-fPIC multilibs.
11032         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Define.
11033         * config/arm/arm-protos.h (arm_emit_call_insn): Declare.
11034         * config/arm/arm.h: Include vxworks-dummy.h.
11035         * config/arm/arm.c (arm_elf_asm_constructor, arm_elf_asm_destructor):
11036         Mark with ATTRIBUTE_UNUSED.
11037         (arm_override_options): Do not allow VxWorks RTP PIC to be used
11038         for Thumb.  Force r9 to be the PIC register for VxWorks RTPs and
11039         make it incompatible with -msingle-pic-base.
11040         (arm_function_ok_for_sibcall): Return false for calls that might
11041         go through a VxWorks PIC PLT entry.
11042         (require_pic_register): New function, split out from...
11043         (legitimize_pic_address): ...here.  Do not use GOTOFF accesses
11044         for VxWorks RTPs.
11045         (arm_load_pic_register): Handle the VxWorks RTP initialization
11046         sequence.  Use pic_reg as a shorthand for cfun->machine->pic_reg.
11047         (arm_emit_call_insn): New function.
11048         (arm_assemble_integer): Do not use GOTOFF accesses for VxWorks RTP.
11049         * config/arm/arm.md (UNSPEC_PIC_OFFSET): New unspec number.
11050         (pic_offset_arm): New pattern.
11051         (call, call_value): Use arm_emit_call_insn.
11052         (call_internal, call_value_internal): New expanders.
11053         * config/arm/lib1funcs.asm (__PLT__): Define to empty for
11054         VxWorks unless __PIC__.
11055
11056 2007-05-30  Eric Christopher  <echristo@gmail.com>
11057
11058         * genrecog.c: Include regs.h in generated file.
11059         * genemit.c: Ditto. Fix up formatting.
11060         * config/mn10300/constraints.md: New.
11061         * config/mn10300/mn10300.md: Include.
11062         * config/mn10300/mn10300.c(mn10300_secondary_reload_class):
11063         Fix up for removed macro.
11064         * config/mn10300/predicates.md (call_address_operand): Ditto.
11065         * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Delete.
11066         (CONST_OK_FOR_I): Ditto.
11067         (CONST_OK_FOR_J): Ditto.
11068         (CONST_OK_FOR_K): Ditto.
11069         (CONST_OK_FOR_L): Ditto.
11070         (CONST_OK_FOR_M): Ditto.
11071         (CONST_OK_FOR_N): Ditto.
11072         (CONST_DOUBLE_OK_FOR_LETTER_P): Ditto.
11073         (OK_FOR_Q): Ditto.
11074         (OK_FOR_R): Ditto.
11075         (OK_FOR_T): Ditto.
11076         (EXTRA_CONSTRAINT): Ditto.
11077
11078 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
11079
11080         * config/i386/i386.h (MASK_64BIT, MASK_MMX, MASK_3DNOW*, MASK_SSE*):
11081         Remove defines.
11082         * config/i386/biarch.h (TARGET_64BIT_DEFAULT): Define to
11083         OPTION_MASK_ISA_64BIT.
11084         * config/i386/i386.c: Rename MASK_* macros to OPTION_MASK_ISA_*.
11085
11086 2007-05-30  Richard Guenther  <rguenther@suse.de>
11087
11088         PR middle-end/32152
11089         * gimplify.c (gimplify_omp_atomic_pipeline): Use correct
11090         types for comparison.
11091         * fold-const.c (fold_comparison): Call maybe_canonicalize_comparison
11092         with original typed arguments.
11093         * config/i386/i386.c (ix86_gimplify_va_arg): Fix type mismatches.
11094
11095 2007-05-30  Jakub Jelinek  <jakub@redhat.com>
11096
11097         PR tree-optimization/31769
11098         * except.c (duplicate_eh_regions): Clear prev_try if
11099         ERT_MUST_NOT_THROW region is inside of ERT_TRY region.
11100
11101 2007-05-30  Zdenek Dvorak  <dvorakz@suse.cz>
11102
11103         * tree-scalar-evolution.c (scev_const_prop): Do not create labels.
11104         * tree-ssa-sink.c (statement_sink_location): Return basic block and
11105         bsi of the location where statements should be inserted.
11106         (sink_code_in_bb): Take bsi from statement_sink_location.
11107         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use bsi_after_labels
11108         instead of bsi_start.
11109         * tree-profile.c (tree_gen_ic_func_profiler): Pass BSI_NEW_STMT to
11110         bsi_insert_after.
11111         * tree-cfg.c (bsi_move_after): Pass BSI_NEW_STMT to bsi_insert_after.
11112         (bsi_move_before): Document inconsistency with bsi_move_after.
11113         (tree_redirect_edge_and_branch): Do not create labels if not necessary.
11114
11115 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
11116
11117         * config/i386/i386.h (TARGET_ABM): New define.
11118         (TARGET_POPCNT): Ditto.
11119         (TARGET_64BIT, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A, TARGET_SSE*):
11120         New temporary defines to redefine from OPTION_ISA_* defines.
11121         (MASK_64BIT, MASK_MMX, MASK_3DNOW, MASK_3DNOW_A, MASK_SSE*):
11122         New temporary defines to redefine from OPTION_MASK_ISA_* defines.
11123         (ix86_isa_flags): New extern int declaration.
11124         (TARGET_SUBTARGET_DEFAULT): New define.
11125         (TARGET_SUBTARGET_ISA_DEFAULT): Ditto.
11126         (TARGET_SUBTARGET32_DEFAULT): Ditto.
11127         (TARGET_SUBTARGET32_ISA_DEFAULT): Ditto.
11128         (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
11129         * config/i386/unix.h: Undef TARGET_SUBTARGET_DEFAULT before define.
11130         * config/i386/darwin.h: Change TARGET_64BIT define to
11131         OPTION_ISA_64BIT.
11132
11133         * config/i386/i386.opt (m3dnowa): Define as undocumented option
11134         using existing "ix86_isa_flags" varible.
11135         (m32, m64): Use existing "ix86_isa_flags" variable.
11136         (mmmx, m3dnow): Ditto.
11137         (msse, msse2, msse3, mssse3, msse4.1, msse4a): Ditto.
11138         (mabm): Define as non-negative option using "x86_abm" variable.
11139         (mpopcnt): Define as non-negative option using "x86_popcnt" variable.
11140
11141         * config/i386/i386.c (ix86_arch_features) [X86_ARCH_CMOVE]:
11142         Rewrite feature test bitmap.
11143         (ix86_isa_flags): New initialized global int varible.
11144         (ix86_isa_flags_explicit): New static int variable.
11145         (ix86_handle_option): Set "ix86_isa_flags_explicit" when mmmx, m3dnow,
11146         msse, msse2, msse3, msse4.1 and msse4a option is processed.  Change
11147         i86_isa_flags and ix86_isa_flags_explicit, not target_flags and
11148         target_flags_explicit.
11149         (override_options): Remove "target_enable" and "target_disable" fields
11150         from "struct ptt". Update processor_target_table accordingly. Remove
11151         PTA_PREFETCH_SSE from processor_alias_table entry if PTE_SSE is
11152         defined and rearrange PTA_* bits.  Use "ix86_isa_flags" instead of
11153         "target_flags" and "ix86_isa_flags_explicit" instead of
11154         "target_flags_explicit" when masked with MASK_64BIT, MASK_MMX,
11155         MASK_3DNOW, MASK_3DNOW_A or MASK_SSE*.  Set "x86_abm" to true when
11156         PTA_ABM is set in processor_alias_table flags entry.  Set "x86_popcnt"
11157         to true when either of PTA_POPCNT or PTA_ABM is set in
11158         processor_alias_table flags entry.  Set "x86_prefetch_sse" to true
11159         when either of PTA_PREFETCH_SSE or PTA_SSE is set in
11160         processor_alias_table flags entry.  Remove handling of
11161         "target_enable" and "target_disable" fields of processor_target_table.
11162         Mask "target_flags" with TARGET_SUBTARGET32_DEFAULT for 32-bit
11163         targets or with TARGET_SUBTARGET64_DEFAULT for 64-bit targets.
11164         Mask "ix86_isa_flags" with TARGET_SUBTARGET32_ISA_DEFAULT for 32-bit
11165         targets or with TARGET_SUBTARGET64_ISA_DEFAULT for 64-bit targets.
11166         (def_builtin): Mask "mask" variable with "ix86_isa_flags", not
11167         "target_flags".
11168         (TARGET_DEFAULT_TARGET_FLAGS): Do not include TARGET_64BIT_DEFAULT.
11169
11170 2007-05-29  David Daney  <ddaney@avtrex.com>
11171
11172         PR gcc/31975
11173         * config/mips/mips.c (mips_output_mi_thunk): Emit
11174         NOTE_INSN_PROLOGUE_END at beginning of the thunk.
11175
11176 2007-05-29  Hui-May Chang  <hm.chang@apple.com>
11177         * config/i386/i386.c (ix86_function_regparm): Added checking of
11178         ix86_force_align_arg_pointer to determine the number of
11179         register parameters.
11180
11181 2007-05-29  Zdenek Dvorak  <dvorakz@suse.cz>
11182
11183         * tree-vectorizer.h (DR_MISALIGNMENT): Cast aux to integer.
11184         (SET_DR_MISALIGNMENT): New.
11185         * tree-vect-analyze.c (vect_compute_data_ref_alignment,
11186         vect_update_misalignment_for_peel, vect_enhance_data_refs_alignment):
11187         Use SET_DR_MISALIGNMENT.
11188         * tree-predcom.c (split_data_refs_to_components): Cast dr->aux from
11189         pointer.
11190         * tree-data-ref.c (create_data_ref, compute_all_dependences,
11191         find_loop_nest): Export.
11192         * tree-data-ref.h (struct data_reference): Change aux field to pointer.
11193         (create_data_ref, compute_all_dependences, find_loop_nest): Declare.
11194         * tree-ssa-loop-prefetch.c: Include tree-data-ref.h.
11195         (L1_CACHE_SIZE_BYTES, L2_CACHE_SIZE_BYTES, NONTEMPORAL_FRACTION):
11196         New macros.
11197         (struct mem_ref): Add field reuse_distance.
11198         (find_or_create_group, record_ref): Use XNEW instead of xcalloc.
11199         Initialize reuse_distance field.
11200         (issue_prefetch_ref): Select temporality of prefetch according to
11201         reuse_distance.
11202         (volume_of_references, volume_of_dist_vector, add_subscript_strides,
11203         self_reuse_distance, determine_loop_nest_reuse): New functions.
11204         (loop_prefetch_arrays): Call determine_loop_nest_reuse.
11205         (tree_ssa_prefetch_arrays): Dump L2 cache size.
11206         * Makefile.in (tree-ssa-loop-prefetch.o): Add TREE_DATA_REF_H
11207         dependency.
11208
11209 2007-05-29  Daniel Berlin  <dberlin@dberlin.org>
11210
11211         * tree-ssa-alias.c: Add aliasing overview.
11212
11213 2007-05-29  Zuxy Meng  <zuxy.meng@gmail.com>
11214             Danny Smith  <dannysmith@users.sourceforge.net>
11215
11216         PR target/29498
11217         * config/i386/t-crtfm: Compile crtfastmath.o with
11218         -minline-all-stringops.
11219         * config/i386/cygwin.h (ENDFILE_SPECS): Add crtfastmath.o.
11220         * config/i386/mingw32.h (ENDFILE_SPECS): Add crtfastmath.o.
11221
11222 2007-05-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11223
11224         * doc/md.texi: Document constraints on HP PA-RISC.
11225
11226         * pa/constraints.md: New file.
11227         * pa.md: Include constraints.md.
11228         * pa.c (cint_ok_for_move): Avoid using CONST_OK_FOR_LETTER_P.
11229         (integer_store_memory_operand, ldil_cint_p): New functions.
11230         * pa-protos.h (integer_store_memory_operand, ldil_cint_p): Declare.
11231         * pa.h (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
11232         IS_RELOADING_PSEUDO_P, EXTRA_CONSTRAINT): Remove.
11233         * pa32-regs.h (REG_CLASS_FROM_LETTER): Remove.
11234         * pa64-regs.h (REG_CLASS_FROM_LETTER): Remove.
11235
11236 2007-05-28  Andrew Pinski  <Andrew_pinski@playstation.sony.com>
11237
11238         PR c/31339
11239         * c-typeck.c (build_unary_op <case PREINCREMENT_EXPR,
11240         case POSTINCREMENT_EXPR, case PREDECREMENT_EXPR,
11241         case POSTDECREMENT_EXPR>): Return the error_mark_node
11242         if either the real or imaginary parts would an
11243         error_mark_node.
11244
11245 2007-05-28  Daniel Berlin  <dberlin@dberlin.org>
11246
11247         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Release LHS SSA
11248         name when we remove it from a call.
11249
11250 2007-05-28  Kazu Hirata  <kazu@codesourcery.com>
11251
11252         * targhooks.c (default_narrow_bitfield): Remove.
11253         * targhooks.h: Remove the prototype for
11254         default_narrow_bitfield.
11255
11256         * langhooks-def.h: Remove the prototype for
11257         hook_get_alias_set_0.
11258         * langhooks.c (hook_get_alias_set_0): Remove.
11259
11260         * global.c (EXECUTE_IF_CONFLICT): Remove.
11261
11262 2007-05-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11263
11264         PR tree-opt/32100
11265         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't
11266         return true when truth_value_p is true and the type
11267         is of signed:1.
11268
11269 2007-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
11270
11271         * doc/install.texi (Prerequisites): We no longer require Autoconf
11272         2.13 for the top-level.
11273
11274 2007-05-28  Uros Bizjak  <ubizjak@gmail.com>
11275
11276         * target/i386/i386.c (ix86_expand_vector_move): Expand unaligned
11277         memory access via x86_expand_vector_move_misalign() only for
11278         TImode values on 32-bit targets.
11279
11280 2007-05-28  Razya Ladelsky  <razya@il.ibm.com>
11281
11282         * matrix-reorg.c: New file. Implement matrix flattening and
11283         transposing optimization.
11284         * tree-pass.h: Add matrix reorg pass.
11285         * common.opt: Add fipa-mreorg flag.
11286         * Makefile.in: Add matrix-reorg.c.
11287         * passes.c: Add matrix reorg pass.
11288         * varpool.c (add_new_static_var): New function.
11289         * cgraph.h (add_new_static_var): Declare.
11290
11291 2007-05-27  Eric Christopher  <echristo@apple.com>
11292
11293         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update
11294         sp_offset depending on stack size. Save r12 depending
11295         on registers we're saving later.
11296         (rs6000_emit_epilogue): Update sp_offset depending only
11297         on stack size.
11298
11299 2007-05-27  Zdenek Dvorak  <dvorakz@suse.cz>
11300
11301         * tree-vrp.c (execute_vrp): Do not check whether current_loops == NULL.
11302         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
11303         * ifcvt.c (if_convert): Ditto.
11304         * tree-ssa-threadupdate.c (thread_block): Ditto.
11305         (thread_through_all_blocks): Ditto.  Assert that loops were analysed.
11306         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
11307         verify_loop_closed_ssa): Check number_of_loops instead of
11308         current_loops.
11309         * predict.c (tree_estimate_probability): Ditto.
11310         * tree-if-conv.c (main_tree_if_conversion): Ditto.
11311         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
11312         * modulo-sched.c (sms_schedule): Ditto.
11313         * tree-scalar-evolution.c (scev_const_prop): Ditto.
11314         (scev_finalize): Do not do anything if scev analysis was not
11315         initialized.
11316         * cfgloopanal.c (mark_irreducible_loops): Do not check whether
11317         current_loops == NULL.
11318         (mark_loop_exit_edges): Check number_of_loops instead of current_loops.
11319         * loop-init.c (loop_optimizer_init): Do not free current_loops when
11320         there are no loops.
11321         (loop_optimizer_finalize): Assert that loops were analyzed.
11322         (rtl_move_loop_invariants, rtl_unswitch, rtl_unroll_and_peel_loops,
11323         rtl_doloop): Check number_of_loops instead of current_loops.
11324         * tree-ssa-loop.c (tree_loop_optimizer_init): Do not check whether
11325         current_loops == NULL.
11326         (tree_ssa_loop_init, tree_ssa_loop_im, tree_ssa_loop_unswitch,
11327         gate_tree_vectorize tree_linear_transform, check_data_deps,
11328         tree_ssa_loop_ivcanon, tree_ssa_empty_loop, tree_ssa_loop_bounds,
11329         tree_complete_unroll, tree_ssa_loop_prefetch, tree_ssa_loop_ivopts):
11330         Check number_of_loops instead of current_loops.
11331         (tree_ssa_loop_done): Do not check whether current_loops == NULL.
11332         * tree-ssa-pre.c (fini_pre): Do not take do_fre argument.  Always
11333         free loops if available.
11334         (execute_pre): Do not pass do_fre to fini_pre.
11335
11336 2007-05-27  Tobias Burnus  <burnus@net-b.de>
11337
11338         PR middle-end/32083
11339         * real.c (mpfr_from_real): Fix sign of -Inf.
11340
11341 2007-05-27  H.J. Lu  <hongjiu.lu@intel.com>
11342
11343         * tree-vect-transform.c (vectorizable_conversion): Initialize
11344         tree_code variables to ERROR_MARK.
11345         (vectorizable_type_demotion): Likewise.
11346         (vectorizable_type_promotion): Likewise.
11347
11348 2007-05-26  Uros Bizjak  <ubizjak@gmail.com>
11349
11350         PR target/32065
11351         * config/i386/i386.md (movti): Handle push operands via
11352         ix86_expand_push().
11353
11354 2007-05-26  Kazu Hirata  <kazu@codesourcery.com>
11355
11356         * basic-block.h: Remove the prototype for merge_seq_blocks.
11357         * cfgcleanup.c (merge_seq_blocks): Remove.
11358
11359         * tree-flow.h: Remove the prototype for is_aliased_with.
11360         * tree-ssa-alias.c (is_aliased_with): Remove.
11361
11362 2007-05-26  H.J. Lu  <hongjiu.lu@intel.com>
11363
11364         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): New.
11365
11366         * config/i386/i386.c (ix86_expand_sse4_unpack): New.
11367
11368         * config/i386/sse.md (vec_unpacku_hi_v16qi): Call
11369         ix86_expand_sse4_unpack if SSE4.1 is enabled.
11370         (vec_unpacks_hi_v16qi): Likewise.
11371         (vec_unpacku_lo_v16qi): Likewise.
11372         (vec_unpacks_lo_v16qi): Likewise.
11373         (vec_unpacku_hi_v8hi): Likewise.
11374         (vec_unpacks_hi_v8hi): Likewise.
11375         (vec_unpacku_lo_v8hi): Likewise.
11376         (vec_unpacks_lo_v8hi): Likewise.
11377         (vec_unpacku_hi_v4si): Likewise.
11378         (vec_unpacks_hi_v4si): Likewise.
11379         (vec_unpacku_lo_v4si): Likewise.
11380         (vec_unpacks_lo_v4si): Likewise.
11381
11382 2007-05-26  Kazu Hirata  <kazu@codesourcery.com>
11383
11384         * c-typeck.c, config/arm/arm.c, config/darwin.c,
11385         config/sh/symbian.c, gcc.c, ipa-cp.c, ipa-inline.c, loop-iv.c,
11386         omega.c, tree-ssa-loop-niter.c, treestruct.def: Fix typos and
11387         follow spelling conventions in various
11388         warning/error/diagnostic messages.
11389
11390         * config/i386/i386.c, config/pa/pa.c, config/spu/spu.c,
11391         df-problems.c, df-scan.c, domwalk.c, ebitmap.c, ebitmap.h,
11392         fold-const.c, gcc.c, ipa-type-escape.c, omega.c, omega.h,
11393         tree-ssa-coalesce.c, tree-ssa-live.c, tree-ssa-structalias.c,
11394         tree-vrp.c: Fix comment typos.  Follow spelling conventions.
11395         * doc/tm.texi: Follow spelling conventions.
11396
11397 2007-05-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11398
11399         PR tree-opt/32090
11400         * tree-ssa-forwprop.c
11401         (forward_propagate_addr_into_variable_array_index): Remove
11402         the lhs argument.  Use the type of def_rhs instead of lhs.
11403         (forward_propagate_addr_expr_1): Update use of
11404         forward_propagate_addr_into_variable_array_index.
11405
11406 2007-05-25  Sandra Loosemore  <sandra@codesourcery.com>
11407             Nigel Stephens  <nigel@mips.com>
11408
11409         * config/mips/mips.c (mips_attribute_table): Add "near" and "far"
11410         function attributes, "far" being an alias for "long_call".
11411         (TARGET_COMP_TYPE_ATTRIBUTES): Define as mips_comp_type_attributes.
11412         (mips_near_type_p, mips_far_type_p): New.
11413         (mips_comp_type_attributes): New function to check that attributes
11414         attached to a function type are compatible.
11415         (mips_output_mi_thunk): Test SYMBOL_REF_LONG_CALL_P() rather than
11416         TARGET_LONG_CALLS when deciding whether we can do a direct sibcall
11417         to the target function of the thunk.
11418         (mips_encode_section_info): Check for "near" and "far" function
11419         attributes, and always set the SYMBOL_FLAG_LONG_CALL bit explicitly.
11420
11421         * config/mips/predicates.md (const_call_insn_operand): Test only
11422         SYMBOL_REF_LONG_CALL_P() and not TARGET_LONG_CALLS.
11423
11424         * doc/extend.texi (Function Attributes): Document MIPS "near" and
11425         "far" attributes.
11426
11427         * testsuite/gcc.target/mips/near-far-1.c: New test case.
11428         * testsuite/gcc.target/mips/near-far-2.c: New test case.
11429         * testsuite/gcc.target/mips/near-far-3.c: New test case.
11430         * testsuite/gcc.target/mips/near-far-4.c: New test case.
11431
11432 2007-05-25  Eric Christopher  <echristo@apple.com>
11433
11434         * config.gcc: Add i386/t-fprules-softfp64 and soft-fp/t-softfp
11435         to x86-darwin configurations.
11436         * config/i386/t-darwin: Add softfp support.
11437         * config/i386/t-darwin64: Ditto.
11438         * config/i386/sfp-machine.h: If mach then don't use
11439         aliasing, emit a stub to call.
11440
11441 2007-05-25  Kazu Hirata  <kazu@codesourcery.com>
11442
11443         * cfglayout.c, cgraphunit.c, config/avr/avr.c, fold-const.c,
11444         haifa-sched.c, optabs.h, tree-affine.c, tree-data-ref.c,
11445         tree-predcom.c, tree-ssa-alias-warnings.c,
11446         tree-ssa-forwprop.c, tree-vect-analyze.c, tree-vrp.c: Fix
11447         comment typos.  Follow spelling conventions.
11448         * doc/cpp.texi, doc/invoke.texi: Fix typos.
11449
11450 2007-05-26  Uros Bizjak  <ubizjak@gmail.com>
11451
11452         PR target/32065
11453         * target/i386/i386.c (ix86_expand_vector_move): Force SUBREGs of
11454         constants into memory.  Expand unaligned memory references for
11455         SSE modes via x86_expand_vector_move_misalign() function.
11456
11457 2007-05-25  Uros Bizjak  <ubizjak@gmail.com>
11458
11459         * config/i386/sse.md (*vec_extractv2di_1_sse2): Do not calculate
11460         "memory" attribute for "sseishft" type insn without operands[2].
11461
11462 2007-05-25  Dirk Mueller  <dmueller@suse.de>
11463             Marcus Meissner <meissner@suse.de>
11464
11465         * doc/extend.texi (alloc_size): New attribute.
11466         * c-common.c (handle_alloc_size_attribute): New.
11467         * tree-object-size.c (alloc_object_size): Use alloc_size
11468         attribute, if available.
11469
11470 2007-05-25  H.J. Lu  <hongjiu.lu@intel.com>
11471
11472         * config/i386/i386.c (__builtin_ia32_vec_ext_v2df): Mark it
11473         with MASK_SSE2.
11474         (__builtin_ia32_vec_ext_v2di): Likewise.
11475         (__builtin_ia32_vec_ext_v4si): Likewise.
11476         (__builtin_ia32_vec_ext_v8hi): Likewise.
11477         (__builtin_ia32_vec_ext_v16qi): Likewise.
11478         (__builtin_ia32_vec_set_v8hi): Likewise.
11479
11480 2007-05-25  H.J. Lu  <hongjiu.lu@intel.com>
11481
11482         * config/i386/sse.md (*vec_extractv2di_1_sse2): Correct shift.
11483
11484 2007-05-25  Richard Sandiford  <richard@codesourcery.com>
11485
11486         * config/arm/arm-protos.h (arm_encode_call_attribute): Delete.
11487         (arm_is_longcall_p): Rename to...
11488         (arm_is_long_call_p): ...this.  Take a single tree argument and
11489         return a bool.
11490         * config/arm/arm.h (CALL_SHORT, CALL_LONG, CALL_NORMAL): Delete.
11491         (CUMULATIVE_ARGS): Remove call_cookie.
11492         (SHORT_CALL_FLAG_CHAR, LONG_CALL_FLAG_CHAR, ENCODED_SHORT_CALL_ATTR_P)
11493         (ENCODED_LONG_CALL_ATTR_P): Delete.
11494         (ARM_NAME_ENCODING_LENGTHS): Remove SHORT_CALL_FLAG_CHAR and
11495         LONG_CALL_FLAG_CHAR cases.
11496         (ARM_DECLARE_FUNCTION_SIZE): Delete.
11497         * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Don't use
11498         ARM_DECLARE_FUNCTION_SIZE.
11499         * config/arm/arm.c (arm_init_cumulative_args): Don't set call_cookie.
11500         (arm_function_arg): Return const0_rtx for VOIDmode arguments.
11501         (arm_encode_call_attribute, current_file_function_operand): Delete.
11502         (arm_function_in_section_p): New function.
11503         (arm_is_longcall_p): Rename to...
11504         (arm_is_long_call_p): ...this.  Take the target function as a single
11505         argument and return a bool.  Do not rely on call cookies.  Check
11506         whether the target symbol is in the same section as the current
11507         function, not just the same compilation unit.
11508         (arm_function_ok_for_sibcall): Use arm_is_long_call_p.
11509         (arm_encode_section_info): Don't encode a call type.
11510         * config/arm/arm.md (call, call_value): Update calls to
11511         arm_is_long(_)call_p.  Simplify logic.
11512         (*call_symbol, *call_value_symbol, *call_insn, *call_value_insn):
11513         Update calls to arm_is_long(_)call_p.
11514
11515 2007-05-25  Richard Guenther  <rguenther@suse.de>
11516
11517         PR tree-optimization/31982
11518         * tree-ssa-forwprop.c
11519         (forward_propagate_addr_into_variable_array_index): Handle arrays
11520         with element size one.
11521
11522 2007-05-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11523
11524         * config/spu/spu.md (smulsi3_highpart): Unshare the rtl chain.
11525         (umulsi3_highpart): Likewise.
11526
11527 2007-05-24  Ian Lance Taylor  <iant@google.com>
11528
11529         PR rtl-optimization/32069
11530         * regclass.c (regclass): Don't crash if the entry in regno_reg_rtx
11531         is NULL.
11532
11533 2007-05-24  Ollie Wild  <aaw@google.com>
11534
11535         * doc/cpp.texi (Common Predefined Macros): Add __COUNTER__
11536         description.
11537
11538 2007-05-24  Richard Sandiford  <rsandifo@nildram.co.uk>
11539
11540         * postreload-gcse.c (reg_changed_after_insn_p): New function.
11541         (oprs_unchanged_p): Use it to check all registers in a REG.
11542         (record_opr_changes): Look for clobbers in CALL_INSN_FUNCTION_USAGE.
11543         (reg_set_between_after_reload_p): Delete.
11544         (reg_used_between_after_reload_p): Likewise.
11545         (reg_set_or_used_since_bb_start): Likewise.
11546         (eliminate_partially_redundant_load): Use reg_changed_after_insn_p
11547         and reg_used_between_p instead of reg_set_or_used_since_bb_start.
11548         Use reg_set_between_p instead of reg_set_between_after_reload_p.
11549         * rtlanal.c (reg_set_p): Check whether REG overlaps
11550         regs_invalidated_by_call, rather than just checking the
11551         membership of REGNO (REG).
11552
11553 2007-05-24  Zdenek Dvorak  <dvorakz@suse.cz>
11554
11555         * doc/passes.texi: Document predictive commoning.
11556         * doc/invoke.texi (-fpredictive-commoning): Document.
11557         * opts.c (decode_options): Enable flag_predictive_commoning on -O3.
11558         * tree-ssa-loop-im.c (get_lsm_tmp_name): Export.  Allow
11559         adding indices to the generated name.
11560         (schedule_sm): Pass 0 to get_lsm_tmp_name.
11561         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Export.
11562         * tree-pretty-print.c (op_symbol_1): Renamed to ...
11563         (op_symbol_code): ... and exported.
11564         (dump_omp_clause, op_symbol): Use op_symbol_code
11565         instead of op_symbol_1.
11566         * tree-pass.h (pass_predcom): Declare.
11567         * timevar.def (TV_PREDCOM): New timevar.
11568         * tree-ssa-loop.c (run_tree_predictive_commoning,
11569         gate_tree_predictive_commoning, pass_predcom): New.
11570         * tree-data-ref.c (find_data_references_in_loop): Find the
11571         references in dominance order.
11572         (canonicalize_base_object_address): Ensure that the result has
11573         pointer type.
11574         (dr_analyze_innermost): Export.
11575         (create_data_ref): Code to fail for references with invariant
11576         address moved ...
11577         (find_data_references_in_stmt): ... here.
11578         * tree-data-ref.h (dr_analyze_innermost): Declare.
11579         * tree-affine.c: Include tree-gimple.h and hashtab.h.
11580         (aff_combination_find_elt, name_expansion_hash,
11581         name_expansion_eq, tree_to_aff_combination_expand,
11582         double_int_constant_multiple_p, aff_combination_constant_multiple_p):
11583         New functions.
11584         * tree-affine.h (aff_combination_constant_multiple_p,
11585         tree_to_aff_combination_expand): Declare.
11586         * tree-predcom.c: New file.
11587         * common.opt (fpredictive-commoning): New option.
11588         * tree-flow.h (op_symbol_code, tree_predictive_commoning,
11589         stmt_dominates_stmt_p, get_lsm_tmp_name): Declare.
11590         * Makefile.in (tree-predcom.o): Add.
11591         (tree-affine.o): Add TREE_GIMPLE_H dependency.
11592         * passes.c (init_optimization_passes): Add dceloop after
11593         copy propagation in loop optimizer.  Add predictive commoning
11594         to loop optimizer passes.
11595
11596 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
11597
11598         * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Correct
11599         default hook.
11600
11601 2007-05-24  Jan Hubicka  <jh@suse.cz>
11602
11603         * gengenrtl.c (gendecl, gendef): Output the gens annotated for
11604         statistics.
11605         (genheader): Include statistics.h.
11606
11607         * doc/invoke.texi (-fdump-unnumbered): Update docs when line number
11608         notes are gone.
11609         * print-rtl.c (flag_dump_unnumbered): Update comments.
11610         (print_rtl): Fix my previous change.
11611         * emit-rtl.c (emit_note_before, emit_note_after): Clear out note
11612         specific data.
11613
11614 2007-05-24  Zdenek Dvorak  <dvorakz@suse.cz>
11615
11616         PR middle-end/32018
11617         * tree-ssa-threadupdate.c (thread_through_loop_header): Use
11618         set_loop_copy.
11619         (thread_through_all_blocks): Call initialize_original_copy_tables
11620         and free_original_copy_tables.
11621         * cfgloopmanip.c (duplicate_loop, duplicate_loop_to_header_edge):
11622         Use set_loop_copy.
11623         * tree-cfg.c (tree_duplicate_sese_region): Ditto.
11624         * cfghooks.c (duplicate_block): Use get_loop_copy.
11625         * cfg.c: Include cfgloop.h.
11626         (loop_copy): New hash table.
11627         (initialize_original_copy_tables): Initialize loop_copy table.
11628         (free_original_copy_tables): Free loop_copy table.
11629         (copy_original_table_clear, copy_original_table_set,
11630         set_loop_copy, get_loop_copy): New functions.
11631         (set_bb_original, set_bb_copy): Use copy_original_table_set.
11632         * cfgloop.h (struct loop): Remove copy field.
11633         * Makefile.in (cfg.o): Add CFGLOOP_H dependency.
11634         * basic-block.h (set_loop_copy, get_loop_copy): Declare.
11635
11636 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
11637
11638         * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 for
11639         -msse/-msse2/-msse3.
11640
11641 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
11642
11643         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Mark
11644         __builtin_ia32_vec_set_v2di with MASK_64BIT.
11645
11646 2007-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
11647
11648         PR target/27067
11649         * doc/tm.texi (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Document.
11650         * targhooks.h (default_mangle_decl_assembler_name): Declare
11651         default hook.
11652         * targhooks.c (default_mangle_decl_assembler_name): Define
11653         default hook.
11654         * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) New. Set to
11655         default hook.
11656         * target.h (struct gcc_target): Add mangle_decl_assembler_name field.
11657         * langhooks.c (lhd_set_decl_assembler_name): Call
11658         targetm.mangle_decl_assembler_name for names with global scope.
11659
11660         * config/i386/cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) Override
11661         default.
11662         (ASM_OUTPUT_DEF_FROM_DECLS): Simplify to use DECL_ASSEMBLER_NAME.
11663         * config/i386/i386-protos.h (i386_pe_mangle_decl_assembler_name):
11664         Declare.
11665         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
11666         New. Factored out of i386_pe_encode_section_info.
11667         (gen_stdcall_or_fastcall_suffix): Get name identifier as argument.
11668         Move check for prior decoration of stdcall
11669         symbols to i386_pe_encode_section_info.
11670         (i386_pe_encode_section_info): Adjust call to
11671         gen_stdcall_or_fastcall_suffix.  Use
11672         i386_pe_maybe_mangle_decl_assembler_name, if needed.
11673         (i386_pe_mangle_decl_assembler_name): New. Wrap
11674         i386_pe_maybe_mangle_decl_assembler_name.
11675
11676 2007-05-16  Rafael Avila de Espindola  <espindola@google.com>
11677
11678         * c-common.c (c_common_signed_or_unsigned_type): Delay the check for
11679         INTEGRAL_TYPE_P and TYPE_UNSIGNED.
11680         * langhooks.c (get_signed_or_unsigned_type): Don't check for
11681         INTEGRAL_TYPE_P or TYPE_UNSIGNED.
11682         (lhd_signed_or_unsigned_type): Check for INTEGRAL_TYPE_P and
11683         TYPE_UNSIGNED.
11684
11685 2007-05-23  Sandra Loosemore  <sandra@codesourcery.com>
11686             Nigel Stephens  <nigel@mips.com>
11687             Richard Sandiford  <richard@codesourcery.com>
11688
11689         Fix up MIPS16 hard float and add support for complex.
11690
11691         * config/mips/mips.h (TARGET_HARD_FLOAT_ABI): New.
11692         (TARGET_SOFT_FLOAT_ABI): New.
11693         (TARGET_CPU_CPP_BUILTINS): Define __mips_hard_float and
11694         __mips_soft_float to reflect the ABI in use, not whether the
11695         FPU is directly accessible (e.g., in MIPS16 mode).
11696         (UNITS_PER_HWFPVALUE): Use TARGET_SOFT_FLOAT_ABI.
11697         (UNITS_PER_FPVALUE): Likewise.
11698
11699         * config/mips/mips.c (mips_expand_call): Remove redundant
11700         TARGET_MIPS16 check.
11701         (mips_arg_regno): New.
11702         (function_arg_advance): When setting bits in cum->fp_code for
11703         MIPS16, don't subtract 1 from cum->arg_number, since it is now
11704         zero-based.
11705         (function_arg): Use mips_arg_regno.
11706         (mips_return_mode_in_fpr_p): New.
11707         (mips16_call_stub_mode_suffix): New.
11708         (mips16_cfun_returns_in_fpr_p): New.
11709         (mips_save_reg_p): Use mips16_cfun_returns_in_fpr_p.
11710         (mips_output_function_prologue): Test mips16_hard_float, not
11711         !TARGET_SOFT_FLOAT, to decide when a function stub is required.
11712         (mips_expand_epilogue): Call MIPS16 helper routines to copy
11713         return value into a floating-point register.
11714         (mips_can_use_return_insn): Use mips16_cfun_returns_in_fpr_p.
11715         (mips_function_value): Rewrite to use mips_return_mode_in_fpr_p.
11716         (mips16_fp_args): Handle MIPS32r2 ISA which supports
11717         TARGET_FLOAT64, and use mfhc1/mthc1 to copy the most significant
11718         word of double arguments from or to the high bits of 64-bit
11719         floating point registers.
11720         (build_mips16_function_stub): Fill in DECL_RESULT for stubdecl.
11721         (mips16_fpret_double): New helper function.
11722         (build_mips16_call_stub): Use mips16_return_mode_in_fpr_p.  Add
11723         support for complex modes.  Fill in DECL_RESULT for stubdecl.
11724         (mips_init_libfuncs): Remove redundant TARGET_MIPS16 check.
11725
11726         * config/mips/mips16.S
11727         (RET, ARG1, ARG2): New.
11728         (MERGE_GPRf, MERGE_GPRt): New.
11729         (DELAYt, DELAYf): New.
11730         (MOVE_SF_BYTE0, MOVE_SI_BYTE0): New.
11731         (MOVE_SF_BYTE4, MOVE_SF_BYTE8): New.
11732         (MOVE_DF_BYTE0, MOVE_DF_BYTE8): New.
11733         (MOVE_SF_RET, MOVE_SC_RET, MOVE_DF_RET, MOVE_DC_RET, MOVE_SI_RET): New.
11734         (SFOP): Renamed to...
11735         (OPSF3): This, and macro-ified.  Updated all uses.
11736         (SFOP2): Renamed to...
11737         (OPSF2): This, and macro-ified.  Updated all uses.
11738         (SFCMP): Renamed to...
11739         (CMPSF): This, and macro-ified.  Updated all uses.
11740         (SFREVCMP): Renamed to...
11741         (REVCMPSF): This, and macro-ified.  Updated all uses.
11742         (__mips16_floatsisf, __mips16_fix_truncsfsi): Macro-ified.
11743         (LDDBL1, LDDBL2, RETDBL): Deleted.
11744         (DFOP): Renamed to...
11745         (OPDF3): This, and macro-ified.  Updated all uses.
11746         (DFOP2): Renamed to...
11747         (OPDF2): This, and macro-ified.  Updated all uses.
11748         (__mips16_extendsfdf2, __mips16_truncdfsf2): Macro-ified.
11749         (DFCMP): Renamed to...
11750         (CMPDF): This, and macro-ified.  Updated all uses.
11751         (DFREVCMP): Renamed to...
11752         (REVCMPDF): This, and macro-ified.  Updated all uses.
11753         (__mips16_floatsidf, __mips16_fix_truncdfsi): Macro-ified.
11754         (RET_FUNCTION): New.
11755         (__mips16_ret_sf, __mips16_ret_df): Macro-ified.
11756         (__mips16_ret_sc, __mips16_ret_dc): New.
11757         (STUB_ARGS_0, STUB_ARGS_1, STUB_ARGS_5, STUB_ARGS_9, STUB_ARGS_2,
11758         STUB_ARGS_6, STUB_ARGS_10): New.
11759         (CALL_STUB_NO_RET): New.
11760         (__mips16_call_stub_1): Macro-ified.
11761         (__mips16_call_stub_5): Macro-ified.
11762         (__mips16_call_stub_2): Macro-ified.
11763         (__mips16_call_stub_6): Macro-ified.
11764         (__mips16_call_stub_9): Macro-ified.
11765         (__mips16_call_stub_10): Macro-ified.
11766         (CALL_STUB_RET): New.
11767         (__mips16_call_stub_sf_0): Macro-ified.
11768         (__mips16_call_stub_sf_1): Macro-ified.
11769         (__mips16_call_stub_sf_5): Macro-ified.
11770         (__mips16_call_stub_sf_2): Macro-ified.
11771         (__mips16_call_stub_sf_6): Macro-ified.
11772         (__mips16_call_stub_sf_9): Macro-ified.
11773         (__mips16_call_stub_sf_10): Macro-ified.
11774         (__mips16_call_stub_df_0): Macro-ified.
11775         (__mips16_call_stub_df_1): Macro-ified.
11776         (__mips16_call_stub_df_5): Macro-ified.
11777         (__mips16_call_stub_df_2): Macro-ified.
11778         (__mips16_call_stub_df_6): Macro-ified.
11779         (__mips16_call_stub_df_9): Macro-ified.
11780         (__mips16_call_stub_df_10): Macro-ified.
11781         (__mips16_call_stub_sc_0): New.
11782         (__mips16_call_stub_sc_1): New.
11783         (__mips16_call_stub_sc_5): New.
11784         (__mips16_call_stub_sc_2): New.
11785         (__mips16_call_stub_sc_6): New.
11786         (__mips16_call_stub_sc_9): New.
11787         (__mips16_call_stub_sc_10): New.
11788         (__mips16_call_stub_dc_0): New.
11789         (__mips16_call_stub_dc_1): New.
11790         (__mips16_call_stub_dc_5): New.
11791         (__mips16_call_stub_dc_2): New.
11792         (__mips16_call_stub_dc_6): New.
11793         (__mips16_call_stub_dc_9): New.
11794         (__mips16_call_stub_dc_10): New.
11795
11796         * config/mips/t-elf (LIB1ASMFUNCS): Add MIPS16 floating-point stubs.
11797         * config/mips/t-isa3264 (LIB1ASMFUNCS): Likewise.
11798         * config/mips/t-r2900 (LIB1ASMFUNCS): Likewise.
11799
11800 2007-05-23  Ian Lance Taylor  <iant@google.com>
11801
11802         * doc/invoke.texi (Invoking GCC): Document that the order of the
11803         -l option matters.
11804
11805 2007-05-23  Chen Liqin  <liqin@sunnorth.com.cn>
11806
11807         PR target/30987
11808         * config/score/misc.md (bitclr_c, bitset_c, bittgl_c): Remove.
11809         * config/score/predicate.md (const_pow2, const_npow2): Remove.
11810         * config/score/score.h (ASM_OUTPUT_EXTERNAL): Add ASM_OUTPUT_EXTERNAL
11811         undef.
11812
11813         PR target/30474
11814         * config/score/score.c (score_print_operand): Make sure that only
11815         lower bits are used.
11816
11817 2007-05-22  Ian Lance Taylor  <iant@google.com>
11818
11819         * tree-vrp.c (avoid_overflow_infinity): New static function,
11820         broken out of set_value_range_to_value.
11821         (set_value_range_to_value): Call avoid_overflow_infinity.
11822         (extract_range_from_assert): Likewise.
11823
11824 2007-05-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11825
11826         PR middle-end/31095
11827          * builtins.c (expand_builtin_memmove_args): Strip nops that don't
11828         change the type before looking for a COMPOUND_EXPR.
11829
11830 2007-05-22  Ian Lance Taylor  <iant@google.com>
11831
11832         * lower-subreg.c (decompose_multiword_subregs): If we change an
11833         insn, call remove_retval_note on it.
11834
11835 2007-05-22  Richard Sandiford  <rsandifo@nildram.co.uk>
11836
11837         * regs.h (end_hard_regno): New function.
11838         (END_HARD_REGNO, END_REGNO): New macros.
11839         (add_to_hard_reg_set): New function.
11840         (remove_from_hard_reg_set): Likewise.
11841         (in_hard_reg_set_p): Likewise.
11842         (overlaps_hard_reg_set_p): Likewise.
11843         * bt-load.c (find_btr_reference): Use overlaps_hard_reg_set_p.
11844         (note_btr_set): Use END_HARD_REGNO.
11845         * caller-save.c (setup_save_areas): Use end_hard_regno.
11846         (mark_set_regs): Use END_HARD_REGNO.
11847         (add_stored_regs): Use end_hard_regno.
11848         (mark_referenced_regs): Use add_to_hard_reg_set.
11849         * combine.c (update_table_tick): Use END_REGNO.
11850         (record_value_for_reg): Likewise.
11851         (record_dead_and_set_regs): Likewise.
11852         (get_last_value_validate): Likewise.
11853         (use_crosses_set_p): Likewise.
11854         (reg_dead_at_p_1): Likewise.
11855         (reg_dead_at_p): Likewise.
11856         (mark_used_regs_combine): Use add_to_hard_reg_set.
11857         (move_deaths): Use END_HARD_REGNO.
11858         (reg_bitfield_target_p): Use end_hard_regno.
11859         (distribute_notes): Use END_HARD_REGNO.
11860         * cse.c (mention_regs): Use END_REGNO.
11861         (insert): Use add_to_hard_reg_set.
11862         (invalidate): Use END_HARD_REGNO.
11863         (invalidate_for_call): Likewise.
11864         (exp_equiv_p): Use END_REGNO.
11865         (cse_insn): Likewise.
11866         * cselib.c (cselib_invalidate_regno): Use end_hard_regno.
11867         * df-problems.c (df_urec_mark_reg_change): Use END_HARD_REGNO.
11868         * df-scan.c (df_ref_record): Use END_HARD_REGNO.
11869         * function.c (keep_stack_depressed): Use end_hard_regno.
11870         * global.c (global_alloc): Use end_hard_regno.
11871         (global_conflicts): Use add_to_hard_reg_set instead of
11872         mark_reg_live_nc.
11873         (find_reg): Likewise.
11874         (mark_reg_store): Likewise.
11875         (mark_reg_conflicts): Likewise.
11876         (mark_reg_death): Use remove_from_hard_reg_set.
11877         (mark_reg_live_nc): Delete.
11878         (set_preference): Use end_hard_regno.
11879         * local-alloc.c (mark_life): Use add_to_hard_reg_set and
11880         remove_from_hard_reg_set.
11881         (post_mark_life): Use add_to_hard_reg_set.
11882         * mode-switching.c (reg_dies): Use remove_from_hard_reg_set.
11883         (reg_becomes_live): Use add_to_hard_reg_set.
11884         * recog.c (reg_fits_class_p): Use in_hard_reg_set_p.
11885         (peep2_find_free_register): Use add_to_hard_reg_set.
11886         * reg-stack.c (convert_regs_exit): Use END_HARD_REGNO.
11887         * regclass.c (record_reg_classes): Use in_hard_reg_set_p.
11888         * regrename.c (note_sets): Use add_to_hard_reg_set.
11889         (clear_dead_regs): Use remove_from_hard_reg_set.
11890         (regrename_optimize): Use add_to_hard_reg_set.
11891         (find_oldest_value_reg): Use in_hard_reg_set_p.
11892         * reload.c (push_reload): Use in_hard_reg_set_p and end_hard_regno.
11893         (hard_reg_set_here_p): Use end_hard_regno.
11894         (decompose): Likewise.
11895         (reg_overlap_mentioned_for_reload_p): Use END_HARD_REGNO.
11896         (find_equiv_reg): Use in_hard_reg_set_p and end_hard_regno.
11897         * reload1.c (compute_use_by_pseudos): Use add_to_hard_reg_set.
11898         (mark_home_live): Use end_hard_regno.
11899         (spill_hard_reg): Likewise.
11900         (clear_reload_reg_in_use): Likewise.
11901         * reorg.c (delete_prior_computation): Use END_REGNO.
11902         * resource.c (update_live_status): Use END_HARD_REGNO.
11903         (mark_referenced_resources): Use add_to_hard_reg_set.
11904         (mark_set_resources): Likewise.
11905         (mark_target_live_regs): Likewise.  Use remove_from_hard_reg_set.
11906         * rtlanal.c (refers_to_regno_p): Use END_REGNO.
11907         (reg_overlap_mentioned_p): Likewise.
11908         (dead_or_set_p): Likewise.  Use an exclusive upper loop bound.
11909         (covers_regno_no_parallel_p): Use END_REGNO.
11910         (find_regno_note): Likewise.
11911         (find_reg_fusage): Use END_HARD_REGNO.
11912         * stmt.c (decl_overlaps_hard_reg_set_p): Use overlaps_hard_reg_set_p.
11913         * var-tracking.c (emit_note_insn_var_location): Use end_hard_regno.
11914
11915 2007-05-22  Richard Sandiford  <rsandifo@nildram.co.uk>
11916
11917         * mode-switching.c (reg_dies): Change type of second argument to
11918         "HARD_REG_SET *".
11919         (optimize_mode_switching): Update accordingly.
11920
11921 2007-05-22  Richard Sandiford  <richard@codesourcery.com>
11922
11923         * hard-reg-set.h (GO_IF_HARD_REG_SUBSET, GO_IF_HARD_REG_EQUAL): Delete
11924         in favor of...
11925         (hard_reg_subset_p, hard_reg_sets_equal_p, hard_reg_sets_intersect_p)
11926         (hard_reg_set_empty_p): ...these new functions.
11927         * bt-load.c (choose_btr): Use hard_reg_subset_p instead of
11928         GO_IF_HARD_REG_SUBSET.
11929         * cfgcleanup.c (old_insns_match_p): Use hard_reg_sets_equal_p
11930         instead of GO_IF_HARD_REG_EQUAL.
11931         * df-problems.c (df_urec_local_compute): Use hard_reg_set_empty_p
11932         instead of GO_IF_HARD_REG_EQUAL.
11933         * global.c (find_reg): Use hard_reg_set_empty_p instead of
11934         GO_IF_HARD_REG_SUBSET.
11935         (modify_reg_pav): Use hard_reg_set_empty_p instead of
11936         GO_IF_HARD_REG_EQUAL.
11937         * local-alloc.c (find_free_reg): Use hard_reg_subset_p instead
11938         of GO_IF_HARD_REG_SUBSET.
11939         * reg-stack.c (change_stack, convert_regs_1): Use hard_reg_sets_equal_p
11940         instead of GO_IF_HARD_REG_EQUAL.
11941         * regclass.c (init_reg_sets_1, reg_scan_mark_refs): Use
11942         hard_reg_subset_p instead of GO_IF_HARD_REG_SUBSET.
11943         (reg_classes_intersect_p): Use hard_reg_sets_intersect_p instead
11944         of GO_IF_HARD_REG_SUBSET,
11945         * reload1.c (finish_spills): Use hard_reg_subset_p instead of
11946         GO_IF_HARD_REG_SUBSET.
11947         * struct-equiv.c (death_notes_match_p): Use hard_reg_sets_equal_p
11948         instead of GO_IF_HARD_REG_EQUAL.
11949         * config/sh/sh.c (push_regs, calc_live_regs): Use
11950         hard_reg_sets_intersect_p instead of hard_regs_intersect_p.
11951         (hard_regs_intersect_p): Delete.
11952
11953 2007-05-22  Janis Johnson  <janis187@us.ibm.com>
11954
11955         * doc/sourcebuild.texi (Test Directives) Add dg-message.
11956
11957 2007-05-22  H.J. Lu  <hongjiu.lu@intel.com>
11958             Richard Henderson  <rth@redhat.com>
11959
11960         * config.gcc (i[34567]86-*-*): Add smmintrin.h to
11961         extra_headers.
11962         (x86_64-*-*): Likewise.
11963
11964         * i386/i386-modes.def (V2QI): New.
11965
11966         * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 and
11967         SSE4A.
11968         (override_options): Support SSE4.1.
11969         (IX86_BUILTIN_BLENDPD): New for SSE4.1.
11970         (IX86_BUILTIN_BLENDPS): Likewise.
11971         (IX86_BUILTIN_BLENDVPD): Likewise.
11972         (IX86_BUILTIN_BLENDVPS): Likewise.
11973         (IX86_BUILTIN_PBLENDVB128): Likewise.
11974         (IX86_BUILTIN_PBLENDW128): Likewise.
11975         (IX86_BUILTIN_DPPD): Likewise.
11976         (IX86_BUILTIN_DPPS): Likewise.
11977         (IX86_BUILTIN_INSERTPS128): Likewise.
11978         (IX86_BUILTIN_MOVNTDQA): Likewise.
11979         (IX86_BUILTIN_MPSADBW128): Likewise.
11980         (IX86_BUILTIN_PACKUSDW128): Likewise.
11981         (IX86_BUILTIN_PCMPEQQ): Likewise.
11982         (IX86_BUILTIN_PHMINPOSUW128): Likewise.
11983         (IX86_BUILTIN_PMAXSB128): Likewise.
11984         (IX86_BUILTIN_PMAXSD128): Likewise.
11985         (IX86_BUILTIN_PMAXUD128): Likewise.
11986         (IX86_BUILTIN_PMAXUW128): Likewise.
11987         (IX86_BUILTIN_PMINSB128): Likewise.
11988         (IX86_BUILTIN_PMINSD128): Likewise.
11989         (IX86_BUILTIN_PMINUD128): Likewise.
11990         (IX86_BUILTIN_PMINUW128): Likewise.
11991         (IX86_BUILTIN_PMOVSXBW128): Likewise.
11992         (IX86_BUILTIN_PMOVSXBD128): Likewise.
11993         (IX86_BUILTIN_PMOVSXBQ128): Likewise.
11994         (IX86_BUILTIN_PMOVSXWD128): Likewise.
11995         (IX86_BUILTIN_PMOVSXWQ128): Likewise.
11996         (IX86_BUILTIN_PMOVSXDQ128): Likewise.
11997         (IX86_BUILTIN_PMOVZXBW128): Likewise.
11998         (IX86_BUILTIN_PMOVZXBD128): Likewise.
11999         (IX86_BUILTIN_PMOVZXBQ128): Likewise.
12000         (IX86_BUILTIN_PMOVZXWD128): Likewise.
12001         (IX86_BUILTIN_PMOVZXWQ128): Likewise.
12002         (IX86_BUILTIN_PMOVZXDQ128): Likewise.
12003         (IX86_BUILTIN_PMULDQ128): Likewise.
12004         (IX86_BUILTIN_PMULLD128): Likewise.
12005         (IX86_BUILTIN_ROUNDPD): Likewise.
12006         (IX86_BUILTIN_ROUNDPS): Likewise.
12007         (IX86_BUILTIN_ROUNDSD): Likewise.
12008         (IX86_BUILTIN_ROUNDSS): Likewise.
12009         (IX86_BUILTIN_PTESTZ): Likewise.
12010         (IX86_BUILTIN_PTESTC): Likewise.
12011         (IX86_BUILTIN_PTESTNZC): Likewise.
12012         (IX86_BUILTIN_VEC_EXT_V16QI): Likewise.
12013         (IX86_BUILTIN_VEC_SET_V2DI): Likewise.
12014         (IX86_BUILTIN_VEC_SET_V4SF): Likewise.
12015         (IX86_BUILTIN_VEC_SET_V4SI): Likewise.
12016         (IX86_BUILTIN_VEC_SET_V16QI): Likewise.
12017         (bdesc_ptest): New.
12018         (bdesc_sse_3arg): Likewise.
12019         (bdesc_2arg): Likewise.
12020         (bdesc_1arg): Likewise.
12021         (ix86_init_mmx_sse_builtins): Support SSE4.1.  Handle SSE builtins
12022         with 3 args.
12023         (ix86_expand_sse_4_operands_builtin): New.
12024         (ix86_expand_unop_builtin): Support 2 arg builtins with a constant
12025         smaller than 8 bits as the 2nd arg.
12026         (ix86_expand_sse_ptest): New.
12027         (ix86_expand_builtin): Support SSE4.1. Support 3 arg SSE builtins.
12028         (ix86_expand_vector_set): Support SSE4.1.
12029         (ix86_expand_vector_extract): Likewise.
12030
12031         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
12032         __SSE4_1__ for -msse4.1.
12033
12034         * config/i386/i386.md (UNSPEC_BLENDV): New for SSE4.1.
12035         (UNSPEC_INSERTPS): Likewise.
12036         (UNSPEC_DP): Likewise.
12037         (UNSPEC_MOVNTDQA): Likewise.
12038         (UNSPEC_MPSADBW): Likewise.
12039         (UNSPEC_PHMINPOSUW): Likewise.
12040         (UNSPEC_PTEST): Likewise.
12041         (UNSPEC_ROUNDP): Likewise.
12042         (UNSPEC_ROUNDS): Likewise.
12043
12044         * config/i386/i386.opt (msse4.1): New for SSE4.1.
12045
12046         * config/i386/predicates.md (const_pow2_1_to_2_operand): New.
12047         (const_pow2_1_to_32768_operand): Likewise.
12048
12049         * config/i386/smmintrin.h: New. The SSE4.1 intrinsic header
12050         file.
12051
12052         * config/i386/sse.md (*vec_setv4sf_sse4_1): New pattern for
12053         SSE4.1.
12054         (sse4_1_insertps): Likewise.
12055         (*sse4_1_extractps): Likewise.
12056         (sse4_1_ptest): Likewise.
12057         (sse4_1_mulv2siv2di3): Likewise.
12058         (*sse4_1_mulv4si3): Likewise.
12059         (*sse4_1_smax<mode>3): Likewise.
12060         (*sse4_1_umax<mode>3): Likewise.
12061         (*sse4_1_smin<mode>3): Likewise.
12062         (*sse4_1_umin<mode>3): Likewise.
12063         (sse4_1_eqv2di3): Likewise.
12064         (*sse4_1_pinsrb): Likewise.
12065         (*sse4_1_pinsrd): Likewise.
12066         (*sse4_1_pinsrq): Likewise.
12067         (*sse4_1_pextrb): Likewise.
12068         (*sse4_1_pextrb_memory): Likewise.
12069         (*sse4_1_pextrw_memory): Likewise.
12070         (*sse4_1_pextrq): Likewise.
12071         (sse4_1_blendpd): Likewise.
12072         (sse4_1_blendps): Likewise.
12073         (sse4_1_blendvpd): Likewise.
12074         (sse4_1_blendvps): Likewise.
12075         (sse4_1_dppd): Likewise.
12076         (sse4_1_dpps): Likewise.
12077         (sse4_1_movntdqa): Likewise.
12078         (sse4_1_mpsadbw): Likewise.
12079         (sse4_1_packusdw): Likewise.
12080         (sse4_1_pblendvb): Likewise.
12081         (sse4_1_pblendw): Likewise.
12082         (sse4_1_phminposuw): Likewise.
12083         (sse4_1_extendv8qiv8hi2): Likewise.
12084         (*sse4_1_extendv8qiv8hi2): Likewise.
12085         (sse4_1_extendv4qiv4si2): Likewise.
12086         (*sse4_1_extendv4qiv4si2): Likewise.
12087         (sse4_1_extendv2qiv2di2): Likewise.
12088         (*sse4_1_extendv2qiv2di2): Likewise.
12089         (sse4_1_extendv4hiv4si2): Likewise.
12090         (*sse4_1_extendv4hiv4si2): Likewise.
12091         (sse4_1_extendv2hiv2di2): Likewise.
12092         (*sse4_1_extendv2hiv2di2): Likewise.
12093         (sse4_1_extendv2siv2di2): Likewise.
12094         (*sse4_1_extendv2siv2di2): Likewise.
12095         (sse4_1_zero_extendv8qiv8hi2): Likewise.
12096         (*sse4_1_zero_extendv8qiv8hi2): Likewise.
12097         (sse4_1_zero_extendv4qiv4si2): Likewise.
12098         (*sse4_1_zero_extendv4qiv4si2): Likewise.
12099         (sse4_1_zero_extendv2qiv2di2): Likewise.
12100         (*sse4_1_zero_extendv2qiv2di2): Likewise.
12101         (sse4_1_zero_extendv4hiv4si2): Likewise.
12102         (*sse4_1_zero_extendv4hiv4si2): Likewise.
12103         (sse4_1_zero_extendv2hiv2di2): Likewise.
12104         (*sse4_1_zero_extendv2hiv2di2): Likewise.
12105         (sse4_1_zero_extendv2siv2di2): Likewise.
12106         (*sse4_1_zero_extendv2siv2di2): Likewise.
12107         (sse4_1_roundpd): Likewise.
12108         (sse4_1_roundps): Likewise.
12109         (sse4_1_roundsd): Likewise.
12110         (sse4_1_roundss): Likewise.
12111         (mulv4si3): Don't expand for SSE4.1.
12112         (smax<mode>3): Likewise.
12113         (umaxv4si3): Likewise.
12114         (uminv16qi3): Likewise.
12115         (umin<mode>3): Likewise.
12116         (umaxv8hi3): Rewrite.  Only enabled for SSE4.1.
12117
12118         * doc/extend.texi: Document SSE4.1 built-in functions.
12119
12120         * doc/invoke.texi: Document -msse4.1.
12121
12122 2007-05-22  Nathan Sidwell  <nathan@codesourcery.com>
12123
12124         * config/m68k/linux.h (ASM_SPEC): Add asm_pcrel_spec.
12125         * config/m68k/m68k-none.h (ASM_SPEC): Don't override here.
12126         * config/m68k/m68k.h (ASM_PCREL_SPEC): New.
12127         (ASM_SPEC): Add asm_pcrel_spec.
12128         (EXTRA_SPECS): Add asm_pcrel_spec.
12129
12130 2007-05-21  David Daney  <ddaney@avtrex.com>
12131
12132         * doc/install.texi (Building a cross compiler): Add requirements
12133         for Java cross compiler.
12134
12135 2007-05-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12136
12137         PR middle-end/31995
12138         * tree-chrec.c (evolution_function_is_affine_multivariate_p):
12139         Add loopno argument.  Use evolution_function_is_invariant_rec_p
12140         instead of evolution_function_is_constant_p.
12141         Update calls to evolution_function_is_affine_multivariate_p.
12142         * tree-chrec.h (evolution_function_is_affine_multivariate_p):
12143         Add loopno argument.
12144         * tree-scalar-evolution.c (gather_chrec_stats): Call
12145         evolution_function_is_affine_multivariate_p with a loop
12146         number of 0.
12147         * tree-data-ref.c (analyze_miv_subscript): Likewise.
12148         (analyze_overlapping_iterations): Likewise.
12149         (access_functions_are_affine_or_constant_p): Likewise.
12150         (build_classic_dist_vector_1): If the access functions
12151         are equal, don't do anything.
12152
12153 2007-05-21  Paolo Bonzini  <bonzini@gnu.org>
12154             Paolo Carlini  <pcarlini@suse.de>
12155             Uros Bizjak  <ubizjak@gmail.com>
12156
12157         * c-cppbuiltin.c (c_cpp_builtins): Define
12158         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
12159         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8,
12160         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16, if appropriate.
12161         * doc/cpp.texi ([Standard Predefined Macros]): Document.
12162
12163 2007-05-21  Mike Stump  <mrs@apple.com>
12164
12165         * config/darwin.h (LINK_COMMAND_SPEC): Add .cxx/.cp for dsymutil
12166         handling as well.
12167         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
12168
12169 2007-05-21  Uros Bizjak  <ubizjak@gmail.com>
12170
12171         * config/i386/tmmintrin.h (_mm_alignr_epi8): Provide macro
12172         implementation if __OPTIMIZE__ is not defined.
12173         (_mm_alignr_pi8): Ditto.
12174         * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
12175         (_mm_inserti_si64): Ditto.
12176         * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
12177         (_mm_slli_epi16): Ditto.
12178         (_mm_slli_epi32): Ditto.
12179         (_mm_slli_epi64): Ditto.
12180         (_mm_srai_epi16): Ditto.
12181         (_mm_srai_epi32): Ditto.
12182         (_mm_srli_si128): Ditto.
12183         (_mm_slli_si128): Ditto.
12184         (_mm_srli_epi16): Ditto.
12185         (_mm_srli_epi32): Ditto.
12186         (_mm_srli_epi64): Ditto.
12187         (_mm_extract_epi16): Ditto.
12188         (_mm_insert_epi16): Ditto.
12189         (_mm_shufflehi_epi16): Ditto.
12190         (_mm_shufflelo_epi16): Ditto.
12191         (_mm_shuffle_epi32): Ditto.
12192         * config/i386/xmmintrin.h (_mm_extract_pi16): Ditto.
12193         (_m_pextrw): Ditto.
12194         (_mm_insert_pi16): Ditto.
12195         (_m_pinsrw): Ditto.
12196         (_mm_shuffle_pi16): Ditto.
12197         (_m_pshufw): Ditto.
12198         (_mm_shufle_ps): Ditto.
12199         (_mm_prefetch): Ditto.
12200
12201 2007-05-21  Andreas Krebbel  <krebbel1@de.ibm.com>
12202
12203         * defaults.h (IBM_FLOAT_FORMAT): Macro definition removed.
12204         * doc/tm.texi (IBM_FLOAT_FORMAT): Documentation entry removed.
12205         * real.c (encode_i370_single, decode_i370_single,
12206         encode_i370_double, decode_i370_double): Functions removed.
12207         (i370_single_format, i370_double_format): Initializations removed.
12208         (real_maxval, round_for_format, exact_real_truncate, significand_size):
12209         Consider the log2_b field to always be one.
12210         (ieee_single_format, mips_single_format, coldfire_single_format,
12211         ieee_double_format, mips_double_format, coldfire_double_format,
12212         ieee_extended_motorola_format, ieee_extended_intel_96_format,
12213         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
12214         ibm_extended_format, mips_extended_format, ieee_quad_format,
12215         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
12216         decimal_single_format, decimal_double_format, decimal_quad_format,
12217         c4x_single_format, c4x_extended_format, real_internal_format): Remove
12218         initialization of log2_b.
12219         * real.h (i370_single_format, i370_double_format): Declarations
12220         removed.
12221         * c-cppbuiltin.c (builtin_define_float_constants): Consider the log2_b
12222         field to always be one.
12223
12224 2007-05-21  Andreas Schwab  <schwab@suse.de>
12225
12226         * config/ia64/ia64.c (emit_predicate_relation_info): Fix use of
12227         NOTE_INSN_BASIC_BLOCK_P.
12228         (process_for_unwind_directive): Likewise.
12229
12230 2007-05-21  Nathan Sidwell  <nathan@codesourcery.com>
12231
12232         * builtins.c (expand_builtin_setjmp_setup): Update comment.
12233         * function.h (struct function): Move va_list_gpr_size,
12234         va_list_fpr_size, function_frequency to front of bitfields.  Add
12235         calls_unwind_init.
12236         (current_function_calls_unwind_init): New.
12237         * except.c (expand_builtin_unwind_init): Set
12238         current_function_calls_unwind_init not
12239         current_function_has_nonlocal_label.
12240         * reload1.c (has_nonexceptional_receiver): New.
12241         (reload): Use it and current_function_calls_unwind_init to
12242         determine whether call-saved regs must be saved.
12243
12244 2007-05-20  Jan Hubicka  <jh@suse.cz>
12245
12246         * gengtype.c (adjust_field_rtx_def): Use NOTE_KIND instead of
12247         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
12248         * ddg.c (create_ddg): LIkewise.
12249         * final.c (final): Remove hunk moving line number notes around since
12250         they are no longer present at this stage.
12251         (final_scan_insn): Use NOTE_KIND instead of
12252         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
12253         (output_asm_label): Likewise.
12254         * reorg.c (dbr_schedule): Likewise.
12255         * haifa-sched.c (unlink_other_notes): Likewise.
12256         * mode-switching.c (optimize_mode_switching): Likewise.
12257         * graph.c (start_bb): Likewise.
12258         * rtl.def (NOTE): Update description.
12259         * jump.c (squeeze_notes): Delete.
12260         (mark_jump_label): Use NOTE_KIND instead of NOTE_LINE_NUMBER; use
12261         NOTE_INSN_BASIC_BLOCK_P when possible.
12262         * ifcvt.c (dead_or_predicable): Remove call of squeeze_notes.
12263         * dwarf2out.c (gen_label_die): Use NOTE_KIND instead of
12264         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
12265         (dwarf2out_var_location): Likewise.
12266         * cfgbuild.c (make_edges): Likewise.
12267         (find_basic_blocks_1): Likewise.
12268         * function.c (reorder_blocks_1): Likewise.
12269         (epilogue_done): Likewise.
12270         (reposition_prologue_and_epilogue_notes): Likewise.
12271         * print-rtl.c (print_rtx): Likewise; drop code for printing
12272         line number notes.
12273         (print_rtl): Likewise.
12274         (print_rtl_single): Likewise.
12275         * gcse.c (insert_insn_start_bb): Likewise.
12276         * alias.c (init_alias_analysis): Likewise.
12277         * calls.c (fixup_tail_calls): Likewise.
12278         * except.c (sjlj_emit_function_enter): Likewise.
12279         * emit-rtl.c (add_insn_after): Likeiwse.
12280         (emit_label_before): Likewise.
12281         (emit_label_after): Likewise.
12282         (emit_note_before, emit_note_after, emit_note): Update
12283         parameter to be enum insn_note; do not deal with source
12284         files.
12285         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps):
12286         Use NOTE_KIND instead of NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P
12287         when possible.
12288         (merge_blocks_move_successor_nojumps): Simplify now when
12289         we don't have BLOCK notes.
12290         (try_optimize_cfg): Likewise.
12291         * cfglayout.c (skip_insns_after_block): Likewise.
12292         (record_effective_endpoints): Likewise.
12293         (duplicate_insn_chain): Likewise.
12294         * varasm.c (output_constant_pool_1): Likewise.
12295         * sched-deps.c (sched_analyze): Likewise.
12296         * rtl.c (NOTE_INSN_MAX_isnt_negative_adjust_NOTE_INSN_BIAS):
12297         Exterminate.
12298         (note_insn_name): Simplify now when NOTE_INSN_BIAS is gone.
12299         * rtl.h (NOTE_SOURCE_LOCATION, NOTE_EXPANDED_LOCATION): Exterminate.
12300         (SET_INSN_DELETED): Simplify.
12301         (NOTE_LINE_NUMBER): Exterminate.
12302         (NOTE_LINE_KIND): New.
12303         (NOTE_INSN_BASIC_BLOCK_P): Update.
12304         (enum insn_note): Simplify.
12305         (GET_NOTE_INSN_NAME) Simplify.
12306         (emit_note_before, emit_note_after, emit_note): Update prototype.
12307         (squeeze_notes): Remove.
12308         * sched-int.h (NOTE_NOT_BB_P): Update.
12309         * resource.c (mark_target_live_regs): Update.
12310         * sched-rgn.c (debug_dependencies): Update.
12311         * sched-vis.c (print_insn): Update.
12312         * config/alpha/alpha.c (alpha_handle_trap_shadows): Update.
12313         * config/i386/i386.c (ix86_output_function_epilogue): Update.
12314         * config/sh/sh.c (sh_adjust_unroll_max): Function dead since gcc 4.0.0.
12315         (TARGET_ADJUST_UNROLL_MAX): Likewise.
12316         (split_branches): Update.
12317         (sh_optimize_target_register_callee_saved): Remove hunk dead since gcc
12318         4.0.0.
12319         (sh_adjust_unroll_max): Exterminate.
12320         * config/c4x/c4x.c (c4x_reorg): Use SET_INSN_DELETED.
12321         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Likewise.
12322         (m68hc11_reorg): Likewise.
12323         * config/ia64/ia64.c (emit_insn_group_barriers): Update.
12324         (emit_predicate_relation_info): Update.
12325         (process_for_unwind_directive): Update.
12326         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update.
12327         (output_call): Update.
12328         * config/pa/pa.c (output_lbranch): Update.
12329         (output_millicode_call): Update.
12330         (output_call): Update.
12331         (pa_combine_instructions): Update.
12332         * config/mips/mips.c (mips16_gp_pseudo_reg): Update.
12333         * config/bfin/bfin.c (gen_one_bundle): Update.
12334         * cfgrtl.c (can_delete_note_p): Update.
12335         (delete_insn): Update.
12336         (rtl_merge_blocks): Update.
12337         (commit_one_edge_insertion): Update.
12338         (rtl_verify_flow_info): Update.
12339         * stmt.c (expand_case): Do not call squeeze_notes.
12340
12341 2007-05-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12342
12343         PR middle-end/7651
12344         PR c++/11856
12345         PR c/12963
12346         PR c/23587
12347         PR other/29694
12348         * c.opt (Wtype-limits): New.
12349         * doc/invoke.texi (Wtype-limits): Document it.
12350         (Wextra): Enabled by -Wextra.
12351         * c-opts.c (c_common_post_options): Enabled by -Wextra.
12352         * c-common.c (shorten_compare): Warn with Wtype-limits.
12353
12354 2007-05-20  Uros Bizjak  <ubizjak@gmail.com>
12355
12356         * config/i386/tmmintrin.h (_mm_alignr_epi32): Implement as always
12357         inlined function, not as a macro.
12358         (_mm_alignr_pi8): Ditto.
12359         * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
12360         (_mm_inserti_si64): Ditto.
12361         * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
12362         (_mm_extract_epi16): Ditto.
12363         (_mm_insert_epi16): Ditto.
12364         (_mm_shufflehi_epi16): Ditto.
12365         (_mm_shufflelo_epi16): Ditto.
12366         (_mm_shuffle_epi32): Ditto.
12367         * config/i386/xmmintrin.h (_mm_set_ss): Use 0.0f for float constant.
12368         * config/386/mm3dnow.h: Add __attribute__((__always_inline__)) to
12369         all functions.
12370         (_m_from_float): Add __extension__ to conversion.  Use 0.0f for
12371         float constant.
12372         (_m_to_float): Use C89 compatible assignment.
12373
12374 2007-05-20  Martin Michlmayr  <tbm@cyrius.com>
12375
12376         PR target/32007
12377         * config/arm/lib1funcs.asm: Define __ARM_ARCH__ on v2/v3 machines.
12378
12379 2007-05-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12380
12381         PR middle-end/7651
12382         * doc/invoke.texi (Wreturn-type): Complete description.
12383         (Wextra): Delete item about return-type warning.
12384         * c-decl.c: Delete redundant Wextra warning.
12385
12386 2007-05-20  Uros Bizjak  <ubizjak@gmail.com>
12387
12388         PR target/31585
12389         * config/i386/pmmintrin.h: Do not include xmmintrin.h
12390         * config/i386/xmmintrin.h (_mm_extract_pi16): Implement as always
12391         inlined function, not as a macro.
12392         (_mm_prefetch): Ditto.
12393         (_m_pextrw): Ditto.
12394         (_mm_insert_pi16): Ditto.
12395         (_m_pinsrw): Ditto.
12396         (_mm_shuffle_pi16): Ditto.  Add const to __N argument.
12397         (_m_pshufw): Ditto. Add const to __N argument.
12398         (_mm_shufle_ps): Ditto.  Add const to __mask argument.
12399         * config/i386/emmintrin.h (_mm_slli_epi16): Add const to __B argument.
12400         (_mm_slli_epi32): Ditto.
12401         (_mm_srli_si128): Implement as always inlined function, not as a
12402         macro.  Add __inline to function declaration.
12403         (_mm_slli_si128): Ditto.
12404
12405 2007-05-19  Uros Bizjak  <ubizjak@gmail.com>
12406
12407         * config/i386/sfp-machine.h (FP_EX_INVALID, FP_EX_DENORM,
12408         FP_EXP_DIVZERO, FP_EX_OVERFLOW, FP_EX_UNDERFLOW, FP_EX_INEXACT):
12409         New constants.
12410         (struct fenv): New structure.
12411         (FP_HANDLE_EXCEPTIONS): New define.
12412         (FP_RND_NEAREST, FP_RND_ZERO, FP_RND_PINF, FP_RND_MINF): New constants.
12413         (_FP_DECL_EXP): New define.
12414         (FP_INIT_ROUNDMODE): New define.
12415         (FP_ROUNDMODE): New define.
12416
12417 2007-05-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12418
12419         * doc/invoke.texi (Warning Options): Add -Wconversion-sign.
12420         (Wconversion): Update description.
12421         (Wconversion-sign): New.
12422         * c.opt (Wconversion-sign): New.
12423         * c-opts.c (c_common_post_options): Uninitialized Wconversion-sign
12424         means disabled for C++. Otherwise, take the status of Wconversion.
12425         * c-common.c (conversion_warning): Warn with either Wconversion or
12426         Wconversion-sign.
12427         (warnings_for_convert_and_check): Conditions are already checked by
12428         conversion_warning.
12429         (convert_and_check): Don't check warnings if the conversion failed.
12430
12431 2007-05-19 Andy Hutchinson <HutchinsonAndy@netscape.net>
12432            Anatoly Sokolov <aesok@dol.ru>
12433
12434         * config/avr/avr-protos.h (expand_prologue, expand_epilogue,
12435         avr_epilogue_uses) : Add declaration.
12436         * config/avr/predicates.md (avr_sp_immediate_operand): New predicate.
12437         * config/avr/constraints.md (R): New constraint.
12438         config/avr/avr.md (SREG_ADDR, UNSPEC_SEI, UNSPEC_CLI,
12439         UNSPECV_PROLOGUE_SAVES, UNSPECV_EPILOGUE_RESTORES): New constants.
12440         (*pop1, *pop2, *pop3, *pop4, *pop5): Combine into ...
12441         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): ... these patterns.
12442         (*movhi_sp, popqi, pophi, enable_interrupt, disable_interrupt,
12443         call_prologue_saves, epilogue_restores, return_from_epilogue,
12444         return_from_main_epilogue, return_from_interrupt_epilogue,
12445         return_from_naked_epilogue, prologue, epilogue): New patterns.
12446         (jump): Handle symbol reference.
12447         * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr,
12448         avr_output_function_prologue, avr_output_function_epilogue): Remove
12449         functions.
12450         (avr_init_machine_status, expand_prologue, expand_epilogue,
12451         avr_asm_function_end_prologue, avr_epilogue_uses,
12452         avr_asm_function_begin_epilogue): New functions.
12453         (prologue_size, epilogue_size, jump_tables_size): Remove global
12454         variables.
12455         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
12456         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
12457         (TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): Define.
12458         (avr_override_options): Initialise init_machine_status.
12459         (output_movhi): Handle all stack pointer loads.
12460         (out_movqi_r_mr, out_movqi_mr_r): Handle SREG_ADDR address.
12461         (avr_output_addr_vec_elt): Do not use variable jump_tables_size.
12462         * config/avr/avr.h (AVR_2_BYTE_PC, AVR_3_BYTE_PC): New.
12463         (EPILOGUE_USES) Redefine.
12464         (machine_function) Declare.
12465
12466 2007-05-19  Richard Sandiford  <richard@codesourcery.com>
12467
12468         * config/mips/mips.c (mips_offset_within_alignment_p): Tweak comment.
12469         Use a single return statement.
12470
12471 2007-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12472
12473         PR middle-end/30250
12474         * builtins.c (do_mpfr_lgamma_r): New.
12475         (fold_builtin_2): Handle builtin gamma_r/lgamma_r.
12476         * tree.h (CASE_FLT_FN_REENT): New.
12477
12478 2007-05-18  Geoffrey Keating  <geoffk@apple.com>
12479
12480         * dwarf2out.c (print_die): Use '%ld' not '%lu' to print a 'long'.
12481         (output_die): Use 'unsigned long' with %x.
12482         * sched-vis.c (print_value): Use 'unsigned HOST_WIDE_INT' and
12483         HOST_WIDE_INT_PRINT_HEX to print HOST_WIDE_INT.
12484         * tree-dump.c (dump_pointer): Use 'unsigned long' for %lx.
12485
12486         * unwind-dw2.c (uw_identify_context): Use the CFA, not the IP.
12487
12488 2007-05-18  H.J. Lu  <hongjiu.lu@intel.com>
12489
12490         PR target/31989
12491         PR target/31681
12492         PR target/31666
12493         * config/i386/i386.c (init_cumulative_args): Set maybe_vaarg to
12494         true if function has no argument.
12495
12496 2007-05-18  DJ Delorie  <dj@redhat.com>
12497
12498         * config/mips/mips.c (mips_offset_within_alignment_p): New.
12499         (mips_symbolic_constant_p): Call it for TPREL and DTPREL symbols.
12500
12501 2007-05-18  Uros Bizjak  <ubizjak@gmail.com>
12502
12503         * longlong.h (__x86_64__): Add definitions for add_ssaaaa,
12504         sub_ddmmss, umul_ppmm, udiv_qrnnd, count_leading_zeros and
12505         count_trailing_zeros.
12506         (__i386__): Implement count_leading_zeros using __builtin_clz().
12507         Implement count_trailing_zeros usign __builtin_ctz().
12508
12509 2007-05-18  Richard Sandiford  <richard@codesourcery.com>
12510
12511         * config/i386/vxworks.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine.
12512
12513 2007-05-18  Uros Bizjak  <ubizjak@gmail.com>
12514
12515         PR middle-end/31344
12516         * expr.c (emit_move_change_mode): Change mode of push operands here.
12517
12518 2007-05-17  Ian Lance Taylor  <iant@google.com>
12519
12520         PR tree-optimization/31953
12521         * tree-vrp.c (set_value_range_to_value): Add equiv parameter.
12522         Change all callers.
12523         (set_value_range_to_null): Call set_value_range_to_value.
12524         (extract_range_from_comparison): Likewise.
12525
12526 2007-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12527
12528         * toplev.c (print_version): Output GMP/MPFR version info.
12529
12530         * builtins.c (CASE_MATHFN_REENT): New macro.
12531         (mathfn_built_in): Use it.
12532         * builtins.def (BUILT_IN_GAMMA_R, BUILT_IN_GAMMAF_R,
12533         BUILT_IN_GAMMAL_R, BUILT_IN_LGAMMA_R, BUILT_IN_LGAMMAF_R,
12534         BUILT_IN_LGAMMAL_R): New.
12535         * doc/extend.texi: Document new builtins.
12536
12537         PR middle-end/31796
12538         * builtins.c (do_mpfr_remquo): New.
12539         (fold_builtin_2): Handle BUILT_IN_DREM/BUILT_IN_REMAINDER.
12540         (fold_builtin_3): Handle BUILT_IN_REMQUO.
12541
12542         PR middle-end/30251
12543         * builtins.c (fold_builtin_1): Handle y0, y1.
12544         (fold_builtin_2): Handle yn.
12545
12546         PR middle-end/30251
12547         * builtins.c (do_mpfr_bessel_n): New.
12548         (fold_builtin_1): Handle BUILT_IN_J0 and BUILT_IN_J1.
12549         (fold_builtin_2): Handle BUILT_IN_JN.
12550
12551 2007-05-17  Danny Smith  <dannysmith@users.sourceforge.net>
12552
12553         PR target/31965
12554         * config/i386/mingw32.h (_INTEGRAL_MAX_BITS): Define builtin as
12555         TYPE_PRECISION (intmax_type_node).
12556
12557 2007-05-17  Steve Ellcey  <sje@cup.hp.com>
12558
12559         PR target/31850
12560         * reload.c (subst_reloads): Remove checking.
12561
12562 2007-05-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
12563
12564         PR rtl-optimization/31691
12565         * combine.c (simplify_set): Build a new src pattern instead of
12566         substituting its operands in the COMPARE case.
12567
12568 2007-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
12569
12570         * tree-vrp.c (finalize_jump_threads): Do not care about dominance info.
12571         (execute_vrp): Preserve loops through jump threading.
12572         * tree-ssa-threadupdate.c (thread_single_edge,
12573         dbds_continue_enumeration_p, determine_bb_domination_status,
12574         thread_through_loop_header): New functions.
12575         (create_edge_and_update_destination_phis,
12576         create_edge_and_update_destination_phis): Set loops for the new blocks.
12577         (prune_undesirable_thread_requests): Removed.
12578         (redirect_edges): Do not pretend that redirect_edge_and_branch can
12579         create new blocks.
12580         (thread_block): Do not call prune_undesirable_thread_requests.
12581         Update loops.
12582         (mark_threaded_blocks): Select edges to thread here.
12583         (thread_through_all_blocks): Take may_peel_loop_headers argument.
12584         Thread edges through loop headers independently.
12585         * cfgloopmanip.c (create_preheader, mfb_keep_just): Export.
12586         * tree-pass.h (TODO_mark_first_instance): New.
12587         (first_pass_instance): Declare.
12588         * cfghooks.c (duplicate_block): Put the block to the original loop
12589         if copy is not specified.
12590         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Preserve loops through
12591         jump threading.  Pass may_peel_loop_headers to
12592         thread_through_all_blocks according to first_pass_instance.
12593         * cfgloop.h (create_preheader): Declare.
12594         * tree-flow.h (thread_through_all_blocks): Declaration changed.
12595         * basic-block.h (mfb_keep_just, mfb_kj_edge): Declare.
12596         * passes.c (first_pass_instance): New variable.
12597         (next_pass_1): Set TODO_mark_first_instance.
12598         (execute_todo): Set first_pass_instance.
12599
12600 2007-05-17  Uros Bizjak  <ubizjak@gmail.com>
12601
12602         PR tree-optimization/24659
12603         * optabs.h (enum optab_index): Add OTI_vec_unpacks_float_hi,
12604         OTI_vec_unpacks_float_lo, OTI_vec_unpacku_float_hi,
12605         OTI_vec_unpacku_float_lo, OTI_vec_pack_sfix_trunc and
12606         OTI_vec_pack_ufix_trunc.
12607         (vec_unpacks_float_hi_optab): Define new macro.
12608         (vec_unpacks_float_lo_optab): Ditto.
12609         (vec_unpacku_float_hi_optab): Ditto.
12610         (vec_unpacku_float_lo_optab): Ditto.
12611         (vec_pack_sfix_trunc_optab): Ditto.
12612         (vec_pack_ufix_trunc_optab): Ditto.
12613         * genopinit.c (optabs): Implement vec_unpack[s|u]_[hi|lo]_optab
12614         and vec_pack_[s|u]fix_trunc_optab using
12615         vec_unpack[s|u]_[hi\lo]_* and vec_pack_[u|s]fix_trunc_* patterns
12616         * tree-vectorizer.c (supportable_widening_operation): Handle
12617         FLOAT_EXPR and CONVERT_EXPR.  Update comment.
12618         (supportable_narrowing_operation): New function.
12619         * tree-vectorizer.h (supportable_narrowing_operation): Prototype.
12620         * tree-vect-transform.c (vectorizable_conversion): Handle
12621         (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
12622         (vect_gen_widened_results_half): Move before vectorizable_conversion.
12623         (vectorizable_type_demotion): Call supportable_narrowing_operation()
12624         to check for target support.
12625         * optabs.c (optab_for_tree_code) Return vec_unpack[s|u]_float_hi_optab
12626         for VEC_UNPACK_FLOAT_HI_EXPR, vec_unpack[s|u]_float_lo_optab
12627         for VEC_UNPACK_FLOAT_LO_EXPR and vec_pack_[u|s]fix_trunc_optab
12628         for VEC_PACK_FIX_TRUNC_EXPR.
12629         (expand_binop): Special case mode of the result for
12630         vec_pack_[u|s]fix_trunc_optab.
12631         (init_optabs): Initialize vec_unpack[s|u]_[hi|lo]_optab and
12632         vec_pack_[u|s]fix_trunc_optab.
12633
12634         * tree.def (VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR,
12635         VEC_PACK_FIX_TRUNC_EXPR): New tree codes.
12636         * tree-pretty-print.c (dump_generic_node): Handle
12637         VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
12638         VEC_PACK_FIX_TRUNC_EXPR.
12639         (op_prio): Ditto.
12640         * expr.c (expand_expr_real_1): Ditto.
12641         * tree-inline.c (estimate_num_insns_1): Ditto.
12642         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
12643
12644         * config/i386/sse.md (vec_unpacks_float_hi_v8hi): New expander.
12645         (vec_unpacks_float_lo_v8hi): Ditto.
12646         (vec_unpacku_float_hi_v8hi): Ditto.
12647         (vec_unpacku_float_lo_v8hi): Ditto.
12648         (vec_unpacks_float_hi_v4si): Ditto.
12649         (vec_unpacks_float_lo_v4si): Ditto.
12650         (vec_pack_sfix_trunc_v2df): Ditto.
12651
12652         * doc/c-tree.texi (Expression trees) [VEC_UNPACK_FLOAT_HI_EXPR]:
12653         Document.
12654         [VEC_UNPACK_FLOAT_LO_EXPR]: Ditto.
12655         [VEC_PACK_FIX_TRUNC_EXPR]: Ditto.
12656         * doc/md.texi (Standard Names) [vec_pack_sfix_trunc]: Document.
12657         [vec_pack_ufix_trunc]: Ditto.
12658         [vec_unpacks_float_hi]: Ditto.
12659         [vec_unpacks_float_lo]: Ditto.
12660         [vec_unpacku_float_hi]: Ditto.
12661         [vec_unpacku_float_lo]: Ditto.
12662
12663 2007-05-16  Uros Bizjak  <ubizjak@gmail.com>
12664
12665         * soft-fp/README: Update for new files.
12666         * soft-fp/floattisf.c: New file.
12667         * soft-fp/floattidf.c: New file.
12668         * soft-fp/floattitf.c: New file.
12669         * soft-fp/floatuntisf.c: New file.
12670         * soft-fp/floatuntidf.c: New file.
12671         * soft-fp/floatuntitf.c: New file.
12672         * soft-fp/fixsfti.c: New file.
12673         * soft-fp/fixdfti.c: New file.
12674         * soft-fp/fixtfti.c: New file.
12675         * soft-fp/fixunssfti.c: New file.
12676         * soft-fp/fixunsdfti.c: New file.
12677         * soft-fp/fixunstfti.c: New file.
12678         * soft-fp/extendxftf.c: New file.
12679         * soft-fp/trunctfxf.c: New file.
12680
12681         * libgcc-std.ver (__extendxftf2): Added to GCC_4.3.0 section.
12682         (__trunctfxf2): Ditto.
12683
12684         * config/i386/libgcc-x86_64-glibc.ver (__addtf3, __divtf3, __eqtf2,
12685         __extenddftf2, __extendsftf2, __fixtfdi, __fixtfsi, __fixtfti,
12686         __fixunstfdi, __fixunstfsi, __fixunstfti, __floatditf, __floatsitf,
12687         __floattitf, __floatunditf, __floatunsitf, __floatuntitf, __getf2,
12688         __letf2, __multf3, __negtf2, __subtf3, __trunctfdf2, __trunctfsf2,
12689         __unordtf2): Exclude and add to GCC_4.3.0 section for x86_64 targets.
12690
12691         * config/i386/t-fprules-softfp64: New file.
12692         * config/i386/sfp-machine.h: New file.
12693         * config.gcc (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu,
12694         x86_64-*-knetbsd*-gnu): Add i386/t-fprules-softfp64
12695         and soft-fp/t-softfp to tmake_file.
12696         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
12697         i[34567]86-*-knetbsd*-gnu): Ditto for --enable-targets=all.
12698
12699         * config/i386/t-linux64 (softfp_wrap_start): New.
12700         (softfp_wrap_end): New.
12701         * config/i386/i386.c (ix86_scalar_mode_supported): TFmode is
12702         supported for TARGET_64BIT.
12703
12704 2007-05-16  Rafael Avila de Espindola  <espindola@google.com>
12705
12706         * c-common.c (c_common_signed_or_unsigned_type): Emulate
12707         c_common_unsigned_type behavior.
12708
12709 2007-05-16  Paolo Bonzini  <bonzini@gnu.org>
12710
12711         * config/i386/i386.c (legitimize_tls_address): Mark __tls_get_addr
12712         calls as pure.
12713
12714 2007-05-16  Eric Christopher  <echristo@apple.com>
12715
12716         * config/rs6000/rs6000.c (rs6000_emit_prologue): Move altivec register
12717         saving after stack push. Set sp_offset whenever we push.
12718         (rs6000_emit_epilogue): Move altivec register restore before
12719         stack push.
12720
12721 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
12722
12723         * configure.ac: Allow sysroots to be relocated under $prefix as
12724         well as $exec_prefix.
12725         * configure: Regenerate.
12726
12727 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
12728
12729         Revert:
12730
12731         2007-05-12  Richard Sandiford  <richard@codesourcery.com>
12732
12733         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
12734         (gcc_tooldir): Likewise.
12735         * configure: Regenerate.
12736         * Makefile.in (libsubdir_to_prefix): New variable, based on the
12737         old configure.ac gcc_tooldir setting.
12738         (prefix_to_exec_prefix): New variable.
12739         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
12740         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
12741
12742 2007-05-14  Janis Johnson  <janis187@us.ibm.com>
12743
12744         * c-typeck.c (build_binary_op): Return early for error.
12745
12746 2007-05-15  Zdenek Dvorak  <dvorakz@suse.cz>
12747
12748         * tree-ssa-loop-niter.c (record_estimate): Use GGC_NEW to allocate
12749         struct nb_iter_bound.
12750         (free_numbers_of_iterations_estimates_loop): Use ggc_free.
12751         * gengtype.c (open_base_files): Add cfhloop.h to the list of includes.
12752         * cfgloopmanip.c (place_new_loop): Vector larray is gc-allocated.
12753         * tree-scalar-evolution.c: Include gt-tree-scalar-evolution.h.
12754         (struct scev_info_str, scalar_evolution_info): Add GTY markers.
12755         (new_scev_info_str): Use GGC_NEW to allocate struct scev_info_str.
12756         (del_scev_info): Use ggc_free.
12757         (scev_initialize): Allocate scalar_evolution_info in gc memory.
12758         * loop-init.c: Include ggc.h.
12759         (loop_optimizer_init): Use GGC_CNEW to allocate struct loops.
12760         (loop_optimizer_finalize): Use ggc_free.
12761         * tree-ssa-loop.c (pass_tree_unswitch, pass_vectorize,
12762         pass_linear_transfom, pass_empty_loop, pass_complete_unroll,
12763         pass_iv_optimize): Add TODO_ggc_collect.
12764         * function.h (struct function): Remove skip marker from
12765         x_current_loops.
12766         * cfgloop.c: Include ggc.h.
12767         (flow_loops_free, flow_loop_free): Free the loop descriptions in gc
12768         memory.
12769         (establish_preds): Vector superloops is gc allocated.
12770         (alloc_loop): Allocate loop using GGC_CNEW.  Allocate head of
12771         loop->exits list.
12772         (flow_loops_find): Vector larray is gc allocated.
12773         (loop_exit_free): Use ggc_free.
12774         (rescan_loop_exit): Use GGC_NEW to allocate struct loop_exit.  Reflect
12775         that head of exits list is now not a part of struct loop.
12776         (record_loop_exits): Allocate exits table in gc memory.
12777         (get_loop_exit_edges, verify_loop_structure, single_exit): Reflect
12778         that head of exits list is now not a part of struct loop.
12779         * cfgloop.h (struct lpt_decision, struct nb_iter_bound,
12780         struct loop_exit): Add GTY marker.
12781         (struct loop): Add GTY marker.  Make superloops vector gc allocated.
12782         Add skip marker to aux field.  Make head of exits list a separate
12783         object.
12784         (struct loops): Add GTY marker.  Make larray vector gc allocated.
12785         Add param marker to exits table.
12786         (get_loops): Type changed.
12787         * Makefile.in (tree-scalar-evolution.o): Add
12788         gt-tree-scalar-evolution.h dependency.
12789         (cfgloop.o, loop-init.o): Add ggc.h dependency.
12790         (GTFILES): Add cfgloop.h and tree-scalar-evolution.c.
12791         * basic-block.h (struct basic_block_def): Remove skip marker from
12792         loop_father field.
12793
12794 2007-05-14  Uros Bizjak  <ubizjak@gmail.com>
12795
12796         * builtins.c (expand_builtin_mathfn): Use EXPAND_NORMAL instead
12797         of 0 in the call to expand_expr().
12798         (expand_builtin_mathfn_3): Ditto.
12799         (expand_builtin_interclass_mathfn): Ditto.
12800         (expand_builtin_cexpi): Ditto.
12801         (expand_builtin_int_roundingfn): Ditto.
12802         (expand_builtin_int_roundingfn_2): Ditto.
12803         (expand_builtin_pow): Ditto.
12804         (expand_builtin_powi): Ditto.
12805         (expand_builtin_bswap): Ditto.
12806         (expand_builtin_unop): Ditto.
12807         (expand_builtin_fabs): Ditto.
12808         (get_builtin_sync_mem): Use NULL_RTX instead of NULL in
12809         the call to expand_expr().
12810         (expand_builtin_sync_operation): Ditto.
12811         (expand_builtin_compare_and_swap): Ditto.
12812         (expand_builtin_lock_test_and_set): Ditto.
12813         * except.c (expand_builtin_eh_return_data_regno): Use EXPAND_NORMAL
12814         instead of 0 in the call to expand_expr().
12815         (expand_builtin_extract_return_addr): Ditto.
12816         (expand_builtin_eh_return): Ditto.
12817         (expand_eh_return): Ditto.
12818         * explow.c (expr_size): Ditto.
12819         * expr.c (optimize_bitfield_assignment_op): Ditto.
12820         (expand_assignement): Ditto.
12821         (store_expr): Ditto.
12822         (store_field): Ditto.
12823         (expand_expr_addr_expr_1): Use NULL_RTX instead of NULL in
12824         the call to expand_expr().
12825         (expand_expr_real_1) [COMPLEX_CST]: Use EXPAND_NORMAL instead of 0
12826         in the call to expand_expr().
12827         [CONSTRUCTOR, PLUS_EXPR, MINUS_EXPR, NEGATE_EXPR, ABS_EXPR,
12828         BIT_NOT_EXPR, LSHIFT_EXPR, LT_EXPR, TRUTH_NOT_EXPR]: Ditto.
12829         [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO]: Use expand_normal() instead
12830         of expand_expr().
12831         * optabs.c (expand_vec_shift_expr): Ditto.
12832         (expand_vec_cond_expr): Ditto.
12833         (vector_compare_rtx): Use EXPAND_STACK_PARM instead of 1 in the
12834         call to expand_expr().
12835         * stmt.c (expand_return): Use EXPAND_NORMAL instead of 0
12836         in the call to expand_expr().
12837
12838 2007-05-14  Dave Korn  <dave.korn@artimi.com>
12839
12840         * genautomata.c (gen_regexp_el): Allocate correct size for regexp.
12841
12842 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
12843
12844         * c-common.c (warnings_for_convert_and_check): Use unsigned_type_for
12845         instead of c_common_unsigned_type.
12846         (c_common_unsigned_type): Remove.
12847         (shorten_compare): Use c_common_signed_or_unsigned_type instead of
12848         c_common_unsigned_type.
12849         (c_common_nodes_and_builtins): Use unsigned_type_for instead of
12850         c_common_unsigned_type.
12851         * c-common.h (c_common_unsigned_type): Remove.
12852         * c-decl.c (grokdeclarator): Use unsigned_type_for instead of
12853         c_common_unsigned_type.
12854         * c-format.c (check_format_types): Use unsigned_type_for instead of
12855         c_common_unsigned_type.
12856         * c-objc-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
12857         * c-typeck.c (convert_for_assignment): Use unsigned_type_for instead
12858         of c_common_unsigned_type.
12859         * convert.c (convert_to_integer): Use unsigned_type_for instead of
12860         lang_hooks.types.unsigned_type.
12861         * expmed.c (make_tree): Use unsigned_type_for instead of
12862         lang_hooks.types.unsigned_type.
12863         * fold-const.c (fold_negate_expr): Use unsigned_type_for instead of
12864         lang_hooks.types.unsigned_type.
12865         (build_range_check): Likewise.
12866         (fold_unary): Likewise.
12867         (fold_binary): Likewise.
12868         (fold_ternary): Likewise.
12869         * langhooks-def.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
12870         * langhooks.h (lang_hooks_for_types): Remove unsigned_type.
12871         * tree.c (get_unsigned_type): New.
12872         (unsigned_type_for): Use get_unsigned_type instead of
12873         lang_hooks.types.unsigned_type.
12874
12875 2007-05-14  Kazu Hirata  <kazu@codesourcery.com>
12876
12877         * config/m68k/m68k-protos.h: Rename m68k_interrupt_function_p
12878         to m68k_get_function_kind.  Update its prototype.
12879         * config/m68k/m68k.c (m68k_attribute_table): Add an entry for
12880         interrupt_thread.
12881         (m68k_interrupt_function_p): Return enum m68k_function_type
12882         instead of bool.  Rename to m68k_get_function_kind.
12883         (m68k_handle_fndecl_attribute): Reject interrupt_thread if the
12884         target is not fido.
12885         (m68k_compute_frame_layout): Don't mark any register for save
12886         if an interrupt_thread attribute is specified.
12887         (m68k_hard_regno_rename_ok): Update a use of
12888         m68k_interrupt_function_p.
12889         * config/m68k/m68k.h (EPILOGUE_USES): Update a use of
12890         m68k_interrupt_function_p.
12891         (m68k_function_type): New.
12892         * config/m68k/m68k.md (*return): Output a 'sleep' instruction
12893         for a function with an interrupt_thread attribute.
12894         * doc/extend.texi: Document the interrupt_thread attribute.
12895
12896 2007-05-13  Daniel Berlin  <dberlin@dberlin.org>
12897
12898         Fix PR tree-optimization/31911
12899         * tree-ssa-pre.c (phi_translate): Make sure to cache results even
12900         if they didn't change the expression.
12901
12902 2007-05-13  Zdenek Dvorak  <dvorakz@suse.cz>
12903
12904         * tree-scalar-evolution.c (resolve_mixers): Exported.
12905         * tree-scalar-evolution.h (resolve_mixers): Declare.
12906         * tree-data-ref.c (object_analysis, ptr_decl_may_alias_p,
12907         ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
12908         record_record_differ_p, record_array_differ_p, array_ptr_differ_p,
12909         base_object_differ_p, base_addr_differ_p, analyze_array_indexes,
12910         init_array_ref, init_pointer_ref, analyze_indirect_ref,
12911         strip_conversion, analyze_offset_expr, address_analysis,
12912         object_analysis, analyze_offset): Removed.
12913         (dr_analyze_innermost, dr_analyze_indices, dr_analyze_alias,
12914         split_constant_offset, canonicalize_base_object_address,
12915         object_address_invariant_in_loop_p, disjoint_objects_p,
12916         dr_may_alias_p, dr_address_invariant_p): New functions.
12917         (create_data_ref): Use dr_analyze_innermost, dr_analyze_indices
12918         and dr_analyze_alias.
12919         (initialize_data_dependence_relation): Use dr_may_alias_p
12920         and object_address_invariant_in_loop_p.
12921         (compute_self_dependence): Handle the case when
12922         DDR_ARE_DEPENDENT (ddr) is chrec_dont_know.
12923         (find_data_references_in_stmt): Restrict the analysis of data
12924         references to the given loop nest.
12925         (find_data_references_in_loop): Made static.  Pass loop nest to
12926         find_data_references_in_stmt.
12927         (compute_data_dependences_for_loop): Use DR_VOPS.
12928         (free_data_ref): Free DR_VOPS.
12929         * tree-data-ref.h (struct first_location_in_loop): Replaced by ...
12930         (struct innermost_loop_behavior): ... new.
12931         (struct base_object_info): Replaced by ...
12932         (struct indices): ... new.
12933         (struct dr_alias): New.
12934         (enum data_ref_type): Removed.
12935         (struct data_reference): Consist of struct innermost_loop_behavior,
12936         struct indices and struct dr_alias.
12937         (DR_SET_ACCESS_FNS, DR_FREE_ACCESS_FNS): Removed.
12938         (DR_MEMTAG): Renamed to ...
12939         (DR_SYMBOL_TAG): ... this.
12940         (find_data_references_in_loop): Declaration removed.
12941         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use DR_INIT
12942         instead of DR_OFFSET_MISALIGNMENT.  DR_ALIGNED_TO is never NULL.
12943         (vect_analyze_data_refs): Use DR_SYMBOL_TAG instead of DR_MEMTAG.
12944         * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
12945
12946 2007-05-13  Revital Eres  <eres@il.ibm.com>
12947
12948         * tree-ssa-dse.c (get_use_of_stmt_lhs): New function
12949         which walks virtual def-use chains to find redundant stores.
12950         (dse_optimize_stmt): Call it.
12951
12952 2007-05-12  Steven Bosscher  <steven@gcc.gnu.org>
12953
12954         * gcse.c (gcse_main): Do jump bypassing in CPROP2.
12955         * passes.c (init_optimization_passes): Move pass_jump_bypass
12956         after loop2.
12957
12958         * basic-block.h (bb_has_eh_pred): Fix style issue.
12959
12960 2007-05-12  Steven Bosscher  <steven@gcc.gnu.org>
12961
12962         PR rtl-optimization/31848
12963         * loop-invariant.c (move_invariant_reg): If we move an insn
12964         with a REG_EQUAL note, and that insn is not always executed,
12965         remove the REG_EQUAL note.
12966
12967 2007-05-12  Richard Guenther  <rguenther@suse.de>
12968
12969         PR tree-optimization/31797
12970         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
12971         propagate into a stmt that has volatile ops.
12972
12973 2007-05-12  Richard Sandiford  <richard@codesourcery.com>
12974
12975         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
12976         (gcc_tooldir): Likewise.
12977         * configure: Regenerate.
12978         * Makefile.in (libsubdir_to_prefix): New variable, based on the
12979         old configure.ac gcc_tooldir setting.
12980         (prefix_to_exec_prefix): New variable.
12981         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
12982         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
12983
12984 2007-05-11  Silvius Rus  <rus@google.com>
12985
12986         * Makefile.in (OBJS-common): Add tree-ssa-alias-warnings.o.
12987         * c-common.c (strict_aliasing_warning): Modify -Wstrict-aliasing logic.
12988         * c-common.h (strict_aliasing_warning): Change return type.
12989         * c-opts.c (c_common_handle_option): Add call to set_Wstrict_aliasing.
12990         * c-typeck.c (build_indirect_ref): Add call to strict_aliasing_warning.
12991         (build_c_cast): Condition call to strict_aliasing_warning.
12992         * doc/invoke.texi: Update description of -Wstrict-aliasing[=n].
12993         * flags.h (set_Wstrict_aliasing): Declare.
12994         * opts.c (set_Wstrict_alising): Define, add call to.
12995         * tree-flow.h (strict_aliasing_warning_backend): Declare.
12996         * tree-ssa-alias-warnings.c: New file.
12997         * tree-ssa-alias.c (compute_may_aliases): Add call to
12998         strict_aliasing_warning_backend.
12999
13000 2007-05-11  Zdenek Dvorak  <dvorakz@suse.cz>
13001
13002         * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
13003         Use loop_depth and loop_outer accessor functions.
13004         * tree-ssa-loop-im.c (outermost_invariant_loop, set_level,
13005         determine_invariantness_stmt, move_computations_stmt): Ditto.
13006         * cfgloopmanip.c (fix_bb_placement, fix_loop_placement, remove_path,
13007         add_loop, loopify, unloop, fix_loop_structure): Ditto.
13008         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Ditto.
13009         * tree-scalar-evolution.c (interpret_loop_phi,
13010         compute_scalar_evolution_in_loop, analyze_scalar_evolution_in_loop,
13011         instantiate_parameters_1, scev_const_prop): Ditto.
13012         * cfghooks.c (make_forwarder_block): Ditto.
13013         * cfgloopanal.c (mark_irreducible_loops, mark_loop_exit_edges): Ditto.
13014         * modulo-sched.c (loop_canon_p): Ditto.
13015         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg,
13016         slpeel_can_duplicate_loop_p): Ditto.
13017         * lambda-code.c (invariant_in_loop_and_outer_loops): Ditto.
13018         * tree-cfg.c (tree_duplicate_sese_region): Ditto.
13019         * cfgloop.c (flow_loop_dump, flow_loop_nodes_find, rescan_loop_exit,
13020         cancel_loop, verify_loop_structure): Ditto.
13021         (flow_loop_nested_p, superloop_at_depth, flow_loop_free,
13022         add_bb_to_loop, remove_bb_from_loops, find_common_loop): Use the
13023         superloops vector instead of "pred" array.
13024         (establish_preds): Take father loop as an argument.  Initialize the
13025         superloops vector.
13026         (flow_loop_tree_node_add): Pass father loop to establish_preds.
13027         Do not initialize loop->outer.
13028         (flow_loop_tree_node_remove): Truncate the superloops vector.
13029         * cfgloop.h (struct loop): Removed field "outer", fields "depth" and
13030         "pred" merged to "superloops" vector.
13031         (loop_depth, loop_outer): New.
13032         (fel_init): Use loop_outer.
13033
13034 2007-05-11  Jan Hubicka  <jh@suse.cz>
13035
13036         * cgraphunit.c: Include gt-cgraphunit.h
13037         (static_ctors, static_dtors): New static vars.
13038         (record_cdtor_fn, build_cdtor, cgraph_build_cdtor_fns): New functions,
13039         based on implementation in c-common.c
13040         (cgraph_finalize_function): Call record_cdtor_fn.
13041         (cgraph_optimize): Call cgraph_build_cdtor_fns.
13042         * decl.c (finish_function): Do not call c_record_cdtor_fn.
13043         (c_write_global_declarations): Do not call c_build_cdtor_fns.
13044         * c-common.c (static_ctors, static_dtors, c_record_cdtor_fn,
13045         build_cdtor, c_build_cdtor_fns): Remove.
13046         * c-common.h (static_ctors, static_dtors, c_record_cdtor_fn,
13047         c_build_cdtor_fns): Remove prototype.
13048
13049 2007-05-11  Paolo Carlini  <pcarlini@suse.de>
13050
13051         PR other/31852
13052         * builtin-types.def: Add BT_FN_PTR_CONST_PTR_INT_SIZE.
13053         * builtins.def: Add BUILT_IN_MEMCHR, use the latter.
13054         * builtins.c (fold_builtin_memchr): New.
13055         (expand_builtin_memchr): Call the latter.
13056         (expand_builtin, fold_builtin_3): Deal with BUILT_IN_MEMCHR.
13057         * doc/extend.texi ([Other built-in functions provided by GCC]):
13058         Document memchr.
13059
13060 2007-05-11  Andreas Krebbel  <krebbel1@de.ibm.com>
13061
13062         * config/s390/s390.md (GPR0_REGNUM, FPR0_REGNUM, FPR2_REGNUM,
13063         PFPO_CONVERT, PFPO_OP_TYPE_SF, PFPO_OP_TYPE_DF, PFPO_OP_TYPE_TF,
13064         PFPO_OP_TYPE_SD, PFPO_OP_TYPE_DD, PFPO_OP_TYPE_TD, PFPO_OP0_TYPE_SHIFT,
13065         PFPO_OP1_TYPE_SHIFT): Constants added.
13066         (DFP_ALL): Mode macro defined.
13067         ("*trunc<BFP:mode><DFP_ALL:mode>2", "*trunc<DFP_ALL:mode><BFP:mode>2",
13068         "*extend<BFP:mode><DFP_ALL:mode>2", "*extend<DFP_ALL:mode><BFP:mode>2"):
13069         Insn definitions added.
13070         ("trunc<BFP:mode><DFP_ALL:mode>2", "trunc<DFP_ALL:mode><BFP:mode>2",
13071         "extend<BFP:mode><DFP_ALL:mode>2", "extend<DFP_ALL:mode><BFP:mode>2"):
13072         Expanders added.
13073
13074 2007-05-10  Zdenek Dvorak  <dvorakz@suse.cz>
13075
13076         PR tree-optimization/31885
13077         * tree-chrec.c (chrec_contains_undetermined): Do not consider
13078         NULL_TREE to be undetermined.
13079         (automatically_generated_chrec_p): Return false for NULL.
13080
13081 2007-05-08  Bernd Schmidt  <bernd.schmidt@analog.com>
13082
13083         * config/bfin/bfin.h (MOVE_RATIO): Define.
13084
13085 2007-05-10  Richard Sandiford  <richard@codesourcery.com>
13086
13087         * config.gcc (sparc-wrs-vxworks): New target.
13088         * config/sparc/vxworks.h, config/sparc/t-vxworks: New files.
13089         * config/sparc/sparc-protos.h (sparc_emit_call_insn): Declare.
13090         * config/sparc/sparc.h: Include vxworks-dummy.h.
13091         (PRINT_OPERAND_ADDRESS): Extend SYMBOL_REF handling to
13092         include LABEL_REFs too.
13093         * config/sparc/sparc.c (sparc_expand_move): Don't assume that
13094         _GLOBAL_OFFSET_TABLE_ - label_ref is a link-time constant on
13095         VxWorks.
13096         (legitimize_pic_address): Handle LABEL_REFs like SYMBOL_REFs
13097         on VxWorks.
13098         (load_pic_register): Use gen_vxworks_load_got for VxWorks.
13099         (sparc_emit_call_insn): New function.
13100         (sparc_function_ok_for_sibcall): Restrict sibcalls to locally-binding
13101         functions when generating VxWorks PIC.
13102         * config/sparc/sparc.md (vxworks_load_got): New pattern.
13103         (call, call_value): Use sparc_emit_call_insn instead of
13104         emit_call_insn.
13105
13106 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
13107
13108         * config/xtensa/xtensa.c (xtensa_output_literal): Don't use #if.
13109
13110 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
13111
13112         * config/xtensa/xtensa.c (xtensa_output_literal): Mask out high bits
13113         for floating-point values if HOST_BITS_PER_LONG > 32.  Use
13114         split_double instead of operand_subword.
13115
13116 2007-05-08  Bernd Schmidt  <bernd.schmidt@analog.com>
13117
13118         * config/bfin/bfin.h (LOCAL_ALIGNMENT): Define.
13119         * config/bfin/bfin.c (bfin_local_alignment): New function.
13120         * config/bfin/bfin-protos.h (bfin_local_alignment): Declare it.
13121
13122 2007-05-08  Chao-ying Fu  <fu@mips.com>
13123
13124         * doc/md.texi (msub@var{m}@var{n}4, usub@var{m}@var{n}4): Document.
13125         * optabs.h (OTI_smsub_widen, OTI_umsub_widen): New optab_indexes.
13126         (smsub_widen_optab, umsub_widen_optab): Define.
13127         * optabs.c (init_optabs): Initialize smsub_widen_optab and
13128         umsub_widen_optab.
13129         * genopinit.c (optabs): Fill in smsub_widen_optab and
13130         umsub_widen_optab.
13131         * expr.c (expand_expr_real_1): Try to use smsub_widen_optab
13132         and umsub_widen_optab to implement multiply-subtract sequences.
13133         * config/mips/mips.md (*msac<u>_di): Rename to...
13134         (<u>msubsidi4): ...this.  Extend condition to include
13135         GENERATE_MADD_MSUB and TARGET_DSPR2.  Change the constraint
13136         of operand 0 to "ka" and use the three-operand form of msub<u>
13137         for TARGET_DSPR2.
13138         * config/mips/mips-dspr2.md (mips_msub, mips_msubu): Convert
13139         to define_expands.
13140
13141 2007-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
13142
13143         PR rtl-optimization/28011
13144         * reload.c (push_reload): Set dont_share if IN appears in OUT
13145         also when IN is a PLUS rtx.
13146         (reg_overlap_mentioned_for_reload_p): Return true if X and IN
13147         are same PLUS rtx.
13148
13149 2007-05-08  Kazu Hirata  <kazu@codesourcery.com>
13150
13151         * emit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL.  Don't
13152         call unshare_all_decls.
13153         (unshare_all_rtl): Adjust the call to unshare_all_rtl_1.
13154         (unshare_all_decls): Remove.
13155
13156 2007-05-08  Simon Martin  <simartin@users.sourceforge.net>
13157
13158         PR 31847
13159         * tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree
13160         dumps.
13161
13162 2007-05-08  Sandra Loosemore  <sandra@codesourcery.com>
13163             Nigel Stephens  <nigel@mips.com>
13164
13165         * config/mips/mips.h (MAX_FPRS_PER_FMT): Renamed from FP_INC.
13166         Update comments and all uses.
13167         (MIN_FPRS_PER_FMT): Define.
13168         * config/mips/mips.c (function_arg): Fix to correctly handle
13169         the -mips32r2 -mfp64 -mabi=32 case.
13170         (override_options): Enable use of odd-numbered registers for
13171         SFmode values on MIPS32.
13172         (mips_save_reg_p): Save whole floating-point register pair if
13173         either half is used.
13174         (compute_frame_size): Fix comment.
13175
13176 2007-05-08  Jie Zhang  <jie.zhang@analog.com>
13177
13178         * config/bfin/bfin-protos.h (bfin_expand_epilogue): Add a third
13179         argument of type bool.
13180         * config/bfin/bfin.c (add_to_reg): Add epilogue_p as a fourth
13181         argument. Safely select temporary P register according to it.
13182         (do_link): Change call site of add_to_reg accordingly.
13183         (do_unlink): Add epilogue_p as a fourth argument and pass it
13184         to add_to_reg.
13185         (expand_interrupt_handler_epilogue): Change call of do_unlink
13186         accordingly.
13187         (bfin_expand_prologue): Add a third argument sibcall_p.
13188         * config/bfin/bfin.md (epilogue): Change call of
13189         bfin_expand_epilogue accordingly.
13190         (sibcall_epilogue): Likewise.
13191         (eh_return_internal): Likewise.
13192
13193         * config/bfin/bfin-protos.h (enum bfin_cpu): Add
13194         BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.
13195         * config/bfin/bfin.c (bfin_handle_option): Handle
13196         -mcpu=bf534, -mcpu=bf536 and -mcpu=bf561.
13197         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS):
13198         Support bf534, bf536 and bf561.
13199         * doc/invoke.texi (Blackfin Options): Document -mcpu and -msim.
13200
13201 2007-05-08  Uros Bizjak  <ubizjak@gmail.com>
13202
13203         PR target/31854
13204         * config/i386/i386.c (ix86_function_regparm): Process local
13205         functions only when TREE_CODE (decl) equals FUNCTION_DECL.
13206
13207 2007-05-07  Mike Stump  <mrs@apple.com>
13208
13209         * doc/invoke.texi (Warning Options): Document that -Wempty-body
13210         also checks for and while statements in C++.
13211
13212 2007-05-07  Nathan Froyd  <froydnj@codesourcery.com>
13213
13214         * gcc.c (at_file_supplied): New variable.
13215         (main): Set it if we expanded argv.
13216         (do_spec_1): Pass an @-file to the linker if we were called with
13217         an @-file argument and HAVE_GNU_LD.
13218         * collect2.c (at_file_supplied): New variable.
13219         (response_file): New variable.
13220         (collect_exit): Unlink response_file if necessary.
13221         (handler): Likewise.
13222         (do_wait): Likewise.
13223         (main): Set at_file_supplied if we expanded argv.
13224         (collect_execute): Pass an @-file to subprocesses if we were called
13225         with an @-file argument.
13226         * configure.ac: Add define for HAVE_GNU_LD.
13227         * configure: Regenerate.
13228         * config.in: Regenerate.
13229
13230 2007-05-07  Naveen.H.S  <naveen.hs@kpitcummins.com>
13231
13232         * config/m32c/muldiv.md (mulhisi3_c): Limit the mode of the 2nd
13233         operand to HI mode.
13234         (mulsi3): New.
13235         (divsi3): New.
13236         (udivsi3): New.
13237
13238 2007-05-07  Jayant Sonar  <jayants@kpitcummins.com>
13239
13240         * config/m32c/m32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
13241         (TARGET_ENCODE_SECTION_INFO): Re-define.
13242         (m32c_encode_section_info): New
13243         (function_vector_handler): New
13244         (current_function_special_page_vector): New
13245         (m32c_special_page_vector_p): New.
13246         * config/m32c/m32c-protos.h (m32c_special_page_vector_p):
13247         Prototype.
13248         * config/m32c/jump.md: Added instruction JSRS for functions
13249         with attribute "function_vector".
13250         * doc/extend.texi (function_vector): Added description
13251         for M16C, M32C targets.
13252
13253 2007-05-07  DJ Delorie  <dj@redhat.com>
13254
13255         PR 31794
13256         * config/m32c/shift.md (ashlpsi3_i, ashrpsi3_i, ashlpsi3,
13257         ashrpsi3, lshrpsi3): Update shift count constraint.
13258
13259 2007-05-07  Danny Smith  <dannysmith@users.sourceforge.net>
13260             Nathan Froyd  <froydnj@codesourcery.com>
13261
13262         PR 22133
13263         * c-incpath.c (add_path): Strip trailing path separators.
13264
13265 2007-05-07  Eric Botcazou  <ebotcazou@adacore.com>
13266
13267         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.
13268         Free dominance info before purging EH edges.
13269         (eliminate_degenerate_phis): Likewise.
13270         (propagate_rhs_into_lhs): Set cfg_altered to true instead of 1.
13271
13272 2007-05-07  Jan Hubicka  <jh@suse.cz>
13273
13274         * gimplify.c (gimplify_expr): Do not crash when folding
13275         (void *)(int)&a + 4.
13276
13277 2007-05-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13278
13279         PR driver/31694
13280         * c-opts.c (lang_fortran): Make it non static.
13281         * c-common.h (lang_fortran): New prototype.
13282         * c-cppbuiltin.c (c_cpp_builtins): Create a __GFORTRAN__ if the
13283         -lang-fortran option was passed by the driver.
13284
13285 2007-05-06  Eric Botcazou  <ebotcazou@adacore.com>
13286
13287         * timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead
13288         of ASSERT_CHECKING.  Tweak message.
13289
13290 2007-05-06  Revital Eres  <eres@il.ibm.com>
13291
13292         PR 30957
13293         * loop-unroll.c (insert_var_expansion_initialization):
13294         Initialize the expansions with -zero instead of +zero.
13295
13296 2007-05-05  Aurelien Jarno  <aurelien@aurel32.net>
13297
13298         * config/pa/pa.md: Split tgd_load, tld_load and tie_load
13299         into pic and non-pic versions. Mark r19 as used for
13300         tgd_load_pic, tld_load_pic and tie_load_pic. Mark r27 as used
13301         for tgd_load, tld_load and tie_load .
13302         * config/pa/pa.c (legitimize_tls_address): Emit pic or non-pic
13303         version of tgd_load, tld_load and tie_load depending on the
13304         value of flag_pic.
13305
13306 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
13307             Jakub Jelinek  <jakub@redhat.com>
13308
13309         * crtstuff.c (HIDDEN_DTOR_LIST_END): New macro.
13310         (__do_global_dtors_aux): Use more paranoid loop to run
13311         destructors if HIDDEN_DTOR_LIST_END.
13312         (__DTOR_END__): Export as a hidden symbol when HIDDEN_DTOR_LIST_END.
13313
13314 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
13315
13316         * varasm.c (align_variable): Don't increase alignment for
13317         DECL_THREAD_LOCAL_P variables above BITS_PER_WORD through
13318         DATA_ALIGNMENT or CONSTANT_ALIGNMENT.
13319
13320 2007-05-04  Josh Conner  <jconner@apple.com>
13321
13322         * basic-block.h (cdi_direction): Assign values to all enumeration
13323         constants.
13324         (dom_computed): Remove.
13325         (dom_info_state): New.
13326         (set_dom_info_availability): New.
13327         * tree-ssa-loop-im.c (determine_invariantness): Initialize
13328         walk_data.dom_direction.
13329         * cfghooks.c (delete_basic_block): Use dom_info_available_p()
13330         instead of dom_computed[].
13331         (split_edge): Likewise.
13332         (create_basic_block): Likewise.
13333         (merge_blocks): Likewise.
13334         * ifcvt.c (find_if_header): Likewise.
13335         * tree-cfgcleanup.c (cleanup_tree_cfg): Likewise.
13336         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
13337         * tree-ssa.c (verify_ssa): Likewise.
13338         * tree-cfg.c (tree_verify_flow_info): Likewise.
13339         (remove_edge_and_dominated_blocks): Likewise.
13340         * dominance.c (dom_computed): Make static.
13341         (calc_dfs_tree_nonrec): Change third param to a bool.
13342         (calc_dfs_tree): Change second param to a bool.
13343         (calc_idioms): Change second param to a bool.  Use
13344         dom_convert_dir_to_idx.
13345         (init_dom_info): Validate dir before using.
13346         (dom_convert_dir_to_idx): New.
13347         (calculate_dominance_info): Use dom_convert_dir_to_idx.  New
13348         variable 'reverse' used for calling calc_dfs_tree and calc_idoms.
13349         (free_dominance_info): Use dom_convert_dir_to_idx.
13350         (get_immediate_dominator): Likewise.
13351         (set_immediate_dominator): Likewise.
13352         (get_dominated_by): Likewise.
13353         (redirect_immediate_dominators): Likewise.
13354         (nearest_common_denominator): Likewise.
13355         (dominated_by_p): Likewise.
13356         (bb_dom_dfs_in): Likewise.
13357         (bb_dom_dfs_out): Likewise.
13358         (recount_dominator): Likewise.
13359         (iterate_fix_dominators): Likewise.
13360         (add_to_dominance_info): Likewise.
13361         (delete_from_dominance_info): Likewise.
13362         (first_dom_son): Likewise.
13363         (next_dom_son): Likewise.
13364         (dom_info_available_p): Likewise.
13365         (dom_info_state): New.
13366         (set_dom_info_availability): New.
13367
13368 2007-05-04  Andreas Krebbel  <krebbel1@de.ibm.com>
13369
13370         * config/s390/s390.md ("fix_trunc<mode>di2", "fix_trunc<mode>si2"):
13371         Expander removed.
13372         ("fix_trunc<DSF:mode><GPR:mode>2"): Expander added.
13373
13374 2007-05-04  Bob Wilson  <bob.wilson@acm.org>
13375
13376         * config/xtensa/xtensa.md (adddi3, adddi_carry): Delete.
13377         (subdi3, subdi_carry): Delete.
13378
13379 2007-05-04  Jan Hubicka  <jh@suse.cz>
13380             Richard Guenther  <rguenther@suse.de>
13381
13382         * opts.c (decode_options): Do not fiddle with inlining
13383         parameters in case of optimizing for size.
13384         * ipa-inline.c (cgraph_decide_recursive_inlining): When optimizing
13385         for size do nothing.
13386         (cgraph_decide_inlining_of_small_function): When optimizing for
13387         size never inline functions increasing caller size.
13388         (cgraph_early_inlining): Inline for size when optimizing for size.
13389
13390 2007-05-04  Bernd Schmidt  <bernd.schmidt@analog.com>
13391
13392         * config/bfin/bfin.md (<optab>di3): Now a define_expand which expands
13393         logical operations piecewise.
13394         (<optab>di_zesidi_di, <optab>di_sesidi_di, negdi2, one_cmpldi2,
13395         zero_extendsidi2, subdi_di_zesidi, subdi_zesidi_di, subdi_di_sesidi,
13396         subdi_sesidi_di): Delete.
13397         (add_with_carry): Produce carry in CC instead of a DREG to shorten
13398         the generated sequence.  Allow three-reg add in constraints.  Rewrite
13399         the rtl expression for carry to avoid zero_extend of a constant.
13400         (sub_with_carry): New pattern.
13401         (adddi3, subdi3): Change into define_expand.  For subtract, generate a
13402         different sequence not involving jumps.
13403         (notbi): Now a named pattern.
13404
13405 2007-05-04  Bradley Lucier  <lucier@math.purdue.edu>
13406
13407         * doc/invoke.texi (i386 and x86-64 Options) [-mpc32, -mpc64, -mpc80]:
13408         Add the note about a significant loss of accuracy of some
13409         mathematical routines when these options are used.
13410
13411 2007-05-04  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
13412
13413         * haifa-sched.c (rtx_vec_t): New typedef.
13414         (contributes_to_priority_p): Extract piece of priority () into new
13415         static function.
13416         (priority): Use the function.  Add assertion.
13417         (rank_for_schedule, set_priorities): Add assertion to check that
13418         insn's priority is initialized.
13419         (clear_priorities, calc_priorities): Change signature.  Make it update
13420         all relevant insns.  Update all callers ('add_to_speculative_block ()'
13421         and 'create_block_check_twin ()').
13422         * sched-int.h (struct haifa_insn_data): Remove field 'priority_known'.
13423         Add new field 'priority_status'.
13424         (INSN_PRIORITY_STATUS): New macro.
13425         (INSN_PRIORITY_KNOWN): Change to use INSN_PRIORITY_STATUS.
13426
13427 2007-05-04  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
13428
13429         * sched-ebb.c (debug_ebb_dependencies): New static function.
13430         (init_ready_list): Use it.
13431
13432         * sched-rgn.c (debug_dependencies): Split into 'debug_dependencies ()'
13433         with changed signature and 'debug_rgn_dependencies ()'.
13434         (debug_rgn_dependencies): New static function.
13435         (init_ready_list): Use it.
13436
13437         * sched-int.h (debug_dependencies): Declare.
13438
13439 2007-05-04  Andreas Krebbel  <krebbel1@de.ibm.com>
13440
13441         * libgcc-std.ver (__ffssi2): Added to GCC_4.3.0 section.
13442
13443 2007-05-04  Dirk Mueller  <dmueller@suse.de>
13444
13445         * c.opt(Wmain,ffreestanding): Enable for C++,ObjC++.
13446
13447 2007-05-03  Jan Hubicka  <jh@suse.cz>
13448
13449         * fold-const.c (fold_unary): Convert (T1)(X op Y) into
13450         ((T1)X op (T1)Y), for pointer type in more cases than before.
13451
13452         * gimplify.c (gimplify_expr): Fold (void *)&a + 4.
13453
13454         * tree-object-size.c (plus_expr_object_size): When operand size is
13455         unknown, return unknown.
13456
13457 2007-05-03  Dirk Mueller  <dmueller@suse.de>
13458
13459         * doc/invoke.texi (-m386,-m486,-mpentium,-mpentiumpro): Remove.
13460
13461         * config/i386/i386.h (CC1_CPU_SPEC): Remove handling for deprecated
13462         options.
13463
13464         * config/i386/i386.opt (m386,m486,mpentium,mpentiumpro): Remove.
13465
13466 2007-05-03  Janis Johnson  <janis187@us.ibm.com>
13467
13468         * doc/sourcebuild.texi (Test Directives) Clarify dg-excess-errors.
13469
13470 2007-05-03  Joseph Myers  <joseph@codesourcery.com>
13471
13472         * config/soft-fp/double.h, config/soft-fp/extended.h,
13473         config/soft-fp/floatundidf.c, config/soft-fp/floatundisf.c,
13474         config/soft-fp/floatunsidf.c, config/soft-fp/floatunsisf.c,
13475         config/soft-fp/op-2.h, config/soft-fp/op-4.h,
13476         config/soft-fp/op-common.h, config/soft-fp/quad.h: Update from
13477         glibc CVS.
13478
13479 2007-05-03  Ian Lance Taylor  <iant@google.com>
13480
13481         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
13482         MASK_PPC_GFXOPT for 8540 or 8548.
13483
13484 2007-05-03  Uros Bizjak  <ubizjak@gmail.com>
13485
13486         * tree-vect-transform.c (vect_update_inits_of_drs): Use
13487         vect_print_dump_info() to output debug information.
13488
13489 2007-05-03  Uros Bizjak  <ubizjak@gmail.com>
13490
13491         PR target/31768
13492         * config/i386/i386.c (print_operand) ['z']: Output 'w' for
13493         operands of size 2 when operand is not MEM_P.
13494
13495 2007-05-03  Zdenek Dvorak  <dvorakz@suse.cz>
13496
13497         PR tree-optimization/30565
13498         * lambda-code.c (perfect_nestify): Fix updating of dominators.
13499
13500 2007-05-03  Bernd Schmidt  <bernd.schmidt@analog.com>
13501
13502         * config/bfin/bfin.md (addpdi3, us_truncpdisi2): New patterns.
13503         (umulsi3_highpart): Use them.
13504         * config/bfin/lib1funcs.asm (__umulsi3_highpart): Use unsigned move
13505         for final accumulator to D regisster tranfser.
13506
13507 2007-05-03  Dorit Nuzman  <dorit@il.ibm.com>
13508
13509         PR tree-optimization/31699
13510         * tree-vect-analyze.c (vect_update_misalignment_for_peel): Remove
13511         wrong code.
13512         (vect_enhance_data_refs_alignment): Compute peel amount using
13513         TYPE_VECTOR_SUBPARTS instead of vf.
13514         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Likewise.
13515
13516 2007-05-02  Brooks Moses  <brooks.moses@codesourcery.com>
13517
13518         PR bootstrap/31776
13519         * system.h: Remove inclusion of double-int.h
13520         * tree.h: Include double-int.h
13521         * gengtype.c: Likewise
13522         * cfgloop.h: Likewise
13523         * Makefile.in: Adjust dependencies on double-int.h
13524
13525 2007-05-02  Eric Christopher  <echristo@apple.com>
13526
13527         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Translate
13528         -shared to -Zdynamiclib.
13529
13530 2007-05-02  Seongbae Park  <seongbae.park@gmail.com>
13531
13532         PR c++/31663
13533         * c-common.c (strip_pointer_or_array_types): New function.
13534         * c-common.h (strip_pointer_or_array_types): New function declaration.
13535
13536 2007-05-03  Zdenek Dvorak  <dvorakz@suse.cz>
13537
13538         PR tree-optimization/31771
13539         * tree-cfg.c (move_block_to_fn): Assign bb to the correct index.
13540
13541 2007-05-02  Paul Brook  <paul@codesourcery.com>
13542
13543         * config/arm/bpabi.S (aeabi_lcmp): Fix result on overflow.
13544
13545 2007-05-02  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13546
13547         PR middle-end/29715
13548         * fold-const.c (fold_comparision): Remove the "foo++ == CONST"
13549         transformation.
13550
13551 2007-05-02  Nick Clifton  <nickc@redhat.com>
13552
13553         * config/frv/predicates.md (symbolic_operand): Accept CONSTs.
13554
13555 2007-05-02  Richard Guenther  <rguenther@suse.de>
13556
13557         PR tree-optimization/31146
13558         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
13559         argument, single_use_p.  If we have a single use that is
13560         a conversion to the definition rhs type, propagate that rhs.
13561         (forward_propagate_addr_expr): Pass single_use_p argument
13562         to forward_propagate_addr_expr_1.
13563
13564 2007-05-01  H.J. Lu  <hongjiu.lu@intel.com>
13565
13566         * config/i386/i386.c (ix86_expand_sse_comi): Remove unused
13567         variable.
13568
13569 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
13570
13571         * doc/invoke.texi: Fix typo, 'AMD Family 10h core' instead of
13572         'AMD Family 10 core'.
13573
13574 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
13575
13576         * config/i386/i386.c (override_options): Accept k8-sse3, opteron-sse3
13577         and athlon64-sse3 as improved versions of k8, opteron and athlon64
13578         with SSE3 instruction set support.
13579         * doc/invoke.texi: Likewise.
13580
13581 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
13582
13583         * config/i386/i386.c (override_options): Tuning 32-byte loop
13584         alignment for amdfam10 architecture. Increasing the max loop
13585         alignment to 24 bytes.
13586
13587 2007-05-01  Kazu Hirata  <kazu@codesourcery.com>
13588
13589         * config/m68k/constraints.md: New.
13590         * config/m68k/m68k.h (REG_CLASS_FROM_LETTER,
13591         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
13592         EXTRA_CONSTRAINT): Remove.
13593         * config/m68k/m68k.md: Include constraints.md.
13594         * expr.c (expand_expr_real_1): Copy DECL_RTL before using it.
13595
13596 2007-05-01  Ian Lance Taylor  <iant@google.com>
13597
13598         PR tree-optimization/31739
13599         * tree-vrp.c (vrp_val_is_max): New static function.
13600         (vrp_val_is_min): New static function.
13601         (set_value_range_to_value): Use TYPE_{MAX,MIN}_VALUE rather than
13602         copying the node.
13603         (set_value_range): Use vrp_val_is_{max,min}.
13604         (extract_range_from_assert): Likewise.
13605         (extract_range_from_binary_expr): Likewise.
13606         (extract_range_from_unary_expr): Likewise.
13607         (dump_value_range, vrp_meet): Likewise.
13608         (vrp_visit_phi_node): Likewise.
13609         * tree.c (build_distinct_type_copy): Revert change of 2007-04-27.
13610
13611 2007-05-01  Mark Mitchell  <mark@codesourcery.com>
13612
13613         * config/i386/gmon-sol2.c (size_t): New type.
13614         (intptr_t): Likewise.
13615         (s_textsize): Declare as size_t.
13616         (sbrk): Declare.
13617         (monstartup): Use size_t for sizes.
13618         (_mcount): Save and restore registers.
13619         (internal_mcount): Pass 0 as the first argument to monstartup
13620         in 64-bit mode.
13621         (moncontrol): Convert pointer to appropriately sized integer
13622         before passing to profil.
13623
13624 2007-05-01  Joseph Myers  <joseph@codesourcery.com>
13625
13626         * config/rs6000/darwin-ldouble.c (__gcc_qunord): Define if
13627         __NO_FPRS__, not just if _SOFT_DOUBLE.
13628         * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qunord): Likewise.
13629         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use __gcc_qunord
13630         also for E500 double.
13631         * config/rs6000/rs6000.md (buneq, bunge, bungt, bunle, bunlt,
13632         suneq, sunge, sungt, sunle, sunlt): Disable for (TARGET_HARD_FLOAT
13633         && !TARGET_FPRS).
13634
13635 2007-05-01  Richard Guenther  <rguenther@suse.de>
13636
13637         * tree-ssa-loop-manip.c (ip_normal_pos): Check if last stmt
13638         is NULL.
13639
13640 2007-05-01  Joseph Myers  <joseph@codesourcery.com>
13641
13642         * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qgt): Fix typo.
13643
13644 2007-05-01  Jan Hubicka  <jh@suse.cz>
13645
13646         * tree-vectorize.c (vect_is_simple_use): gimple_min_invariant is
13647         invariant.
13648
13649 2007-05-01  Jan Hubicka  <jh@suse.cz>
13650
13651         * tree.h (maybe_fold_offset_to_component_ref): Remove.
13652         (maybe_fold_offset_to_reference): Declare.
13653         * fold-const.c (fold_unary): Do not fold
13654         (type *)&A into &A->field_of_type_and_offset_0
13655         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): When base type
13656         size is unknown, give up.
13657         (maybe_fold_offset_to_component_ref): Ignore firelds with unknown
13658         offsets.
13659         (maybe_fold_offset_to_reference): New.
13660         (maybe_fold_stmt_indirect): Use it.
13661         (fold_stmt_r): Fold (type *)&A+offset into A->field_if_type_and_offset.
13662         * gimplify.c (gimplify_conversion): Canonicalize conversions to
13663         field references.
13664         (gimplify_expr): Likewise for plus_expr.
13665
13666 2007-05-01  Zdenek Dvorak  <dvorakz@suse.cz>
13667
13668         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Use
13669         bsi_after_labels.  Always insert statements before bsi.
13670         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
13671         * predict.c (apply_return_prediction): Check for empty blocks.
13672         * cfgexpand.c (lab_rtx_for_bb): New variable.
13673         (label_rtx_for_bb): Do not create new tree labels.
13674         (expand_gimple_basic_block): Add labels recorded in lab_rtx_for_bb.
13675         (tree_expand_cfg): Initialize lab_rtx_for_bb.
13676         * tree-cfg.c (build_tree_cfg): Call cleanup_dead_labels after
13677         creating edges.
13678         (label_for_bb): Add field used.
13679         (update_eh_label, main_block_label): Mark the label used.
13680         (cleanup_dead_labels): Remove unused labels.
13681
13682 2007-05-01  Richard Guenther  <rguenther@suse.de>
13683
13684         * tree-vrp.c (set_value_range): Do not allocate equiv bitmap
13685         if it is not about to be set.
13686         (get_value_range): Do not pre-allocate equiv bitmap.
13687         (update_value_range): No need to clear equiv field.
13688         (add_equivalence): Change prototype to get bitmap pointer.
13689         Allocate bitmap here if it is not already.
13690         (extract_range_from_assert): Do not allocate bitmap here.
13691         Update callers to add_equivalence.
13692         (extract_range_from_ssa_name): Likewise.
13693         (get_vr_for_comparison): New static helper.
13694         (compare_name_with_value): Handle NULL equiv bitmap by
13695         peeling the first iteration of the comparison loop.
13696         Use get_vr_for_comparison.
13697         (compare_names): Handle NULL equiv bitmaps by using fake
13698         ones.  Use get_vr_for_comparison.
13699
13700 2007-04-30  Brooks Moses  <brooks.moses@codesourcery.com>
13701
13702         * double-int.c (mpz_set_double_int): Moved from
13703         tree-ssa-loop-niter.c.
13704         (mpz_get_double_int): Likewise; also, add option to wrap
13705         out-of-range integers.
13706         * double-int.h: New prototypes for above.
13707         * tree.c (get_static_type_bounds): Moved from
13708         tree-ssa-loop-niter.c; now returns TYPE_MIN_VALUE and
13709         TYPE_MAX_VALUE if they exist..
13710         * tree.h: New prototype for above.
13711         * tree-ssa-loop-niter.c: Adjust mpz_to_double_int and
13712         get_type_bounds calls.
13713         (mpz_set_double_int): Move to double-int.c.
13714         (get_type_bounds): Move to tree.c, rename to
13715         get_static_type_bounds.
13716         (mpz_to_double_int): Move to double-int.c, rename to
13717         mpz_get_double_int.
13718
13719 2007-04-30  Bob Wilson  <bob.wilson@acm.org>
13720
13721         * config/xtensa/lib1funcs.asm (__umodsi3, __modsi3): Rearrange so that
13722         DIV0 exception can fall through to a normal return.
13723
13724 2007-04-30  Alexandre Oliva  <aoliva@redhat.com>
13725
13726         PR middle-end/22156
13727         Temporarily revert:
13728         2007-04-06  Andreas Tobler  <a.tobler@schweiz.org>
13729         * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
13730         2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
13731         * tree-sra.c (try_instantiate_multiple_fields): Needlessly
13732         initialize align to silence bogus warning.
13733         2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
13734         * tree-sra.c (struct sra_elt): Add in_bitfld_block.  Remove
13735         all_no_warning.
13736         (struct sra_walk_fns): Remove use_all parameter from use.
13737         (sra_hash_tree): Handle BIT_FIELD_REFs.
13738         (sra_elt_hash): Don't hash bitfld blocks.
13739         (sra_elt_eq): Skip them in parent compares as well.  Handle
13740         BIT_FIELD_REFs.
13741         (sra_walk_expr): Don't maintain or pass down use_all_p.
13742         (scan_use): Remove use_all parameter.
13743         (scalarize_use): Likewise.  Re-expand assignment to
13744         BIT_FIELD_REF of gimple_reg.  De-scalarize before input or
13745         output, and re-scalarize after output.  Don't mark anything
13746         for no warning.
13747         (scalarize_ldst): Adjust.
13748         (scalarize_walk_gimple_modify_statement): Likewise.
13749         (build_element_name_1): Handle BIT_FIELD_REFs.
13750         (instantiate_element): Don't warn for any element whose parent
13751         is used as a whole.
13752         (instantiate_missing_elements_1): Return the sra_elt.
13753         (canon_type_for_field): New.
13754         (try_instantiate_multiple_fields): New.
13755         (instantiate_missing_elemnts): Use them.
13756         (mark_no_warning): Removed.
13757         (generate_one_element_ref): Handle BIT_FIELD_REFs.
13758         (REPLDUP, sra_build_elt_assignment): New.
13759         (generate_copy_inout): Use them.
13760         (generate_element_copy): Likewise.  Handle bitfld differences.
13761         (generate_element_zero): Don't recurse for blocks.  Use
13762         sra_build_elt_assignment.
13763         (generate_one_element_int): Take elt instead of var.  Use
13764         sra_build_elt_assignment.
13765         (generate_element_init_1): Adjust.
13766         (scalarize_use, scalarize_copy): Use REPLDUP.
13767         (scalarize_ldst): Move assert before dereference.
13768         (dump_sra_elt_name): Handle BIT_FIELD_REFs.
13769
13770 2007-04-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13771
13772         PR C++/31721
13773         * tree.c (reconstruct_complex_type): Reconstruct a reference
13774         correctly.
13775         Also use the same mode for the pointer as the old pointer type.
13776
13777 2007-04-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
13778
13779         * doc/trouble.texi (Interoperation): Remove note about Ultrix
13780         Fortran compiler.
13781
13782 2007-04-29  Zdenek Dvorak  <dvorakz@suse.cz>
13783
13784         PR rtl-optimization/31676
13785         * df-scan.c (record_nonlocal_goto_receiver_defs): New function.
13786         (df_refs_record): Call it.
13787
13788 2007-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
13789
13790         * rtl.def (SS_ABS): New code.
13791         * config/bfin/bfin.c (print_operand): New modifier 'v'.
13792         (enum bfin_builtins): Add BFIN_BUILTIN_SUM_2X16, BFIN_BUILTIN_ABS_1x32,
13793         BFIN_BUILTIN_ROUND_1x32, BFIN_BUILTIN_MULT_1x32x32,
13794         BFIN_BUILTIN_MULT_1x32x32NS, BFIN_BUILTIN_SSASHIFT_1x32.
13795         (bfin_init_builtins): Define them.
13796         (bdesc_1arg, bdesc_2arg): Add some of them here, ...
13797         (bfin_expand_builtin): ... and handle the others here.
13798         * config/bfin/bfin.md (ssabssi2, ssroundsi2, ssashiftsi3,
13799         flag_mul_macv2hi_parts_acconly_andcc0): New patterns.
13800         (ss_absv2hi2): Renamed from absv2hi; use ss_abs code.
13801         (ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3): Shift count
13802         operand is only HImode.
13803
13804 2007-04-29  Steven Bosscher  <steven@gcc.gnu.org>
13805
13806         * regclass.c (scan_one_insn): Remove splitting of
13807         two address insns.
13808
13809 2007-04-28  Sandra Loosemore  <sandra@codesourcery.com>
13810             Nigel Stephens  <nigel@mips.com>
13811
13812         * config/mips/mips.h (SLOW_BYTE_ACCESS): Turn off for MIPS16.
13813
13814 2007-04-28  Jan Hubicka  <jh@suse.cz>
13815
13816         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Use
13817         insn_locators_alloc instead of insn_locators_initialize;
13818         call reset_block_changes.
13819         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
13820         * config/sh/sh.c (sparc_output_mi_thunk): Likewise.
13821         * config/is64/ia64.c (ia64_output_mi_thunk): Likewise.
13822         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
13823         * config/score/score.c (th_output_mi_thunk): Likewise.
13824         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
13825         * cfglyaout.c (set_curr_insn_source_location, set_curr_insn_block):
13826         tolerate uninitialized locator info.
13827
13828         Re-apply:
13829         * function.c (init_function_start): Don't init line number info.
13830         (expand_function_end): Update.
13831         (reset_block_changes, record_block_change, finalize_block_changes,
13832         check_block_change, free_block_changes): Kill.
13833         * function.h (reset_block_changes, record_block_change,
13834         finalize_block_changes, check_block_change, free_block_changes):
13835         Remove prototypes.
13836         (struct function): Remove ib_boundaries_block.
13837         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
13838         Use curr_insn_locator to initialize locator.
13839         (emit_line_note): Remove.
13840         * cfgexpand.c (expand_gimple_cond_expr): Update.
13841         (construct_exit_block): Likewise.
13842         (tree_expand_cfg): Initialize/finalize locators.
13843         * expr.c (expand_expr_real): Update.
13844         * cfglayout.c (line_locators_locs, line_locators_lines,
13845         file_locators_locs, file_locators_files): Remove.
13846         (set_block_levels): Move to cfgexpand.c.
13847         (insn_locators_initialize): Remove.
13848         (pass_insn_locators_initialize): Remove.
13849         (locations_locators_locs, locations_locators_vals): New static vars.
13850         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
13851         Likewise.
13852         (insn_locators_alloc, insn_locators_finalize,
13853         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
13854         New functions.
13855         (locator_location): New.
13856         (locator_line, locator_file): Rewrite.
13857         * rtl.h (emit_line_note): Kill.
13858         (insn_locators_alloc, insn_locators_finalize,
13859         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
13860         Declare.
13861         * tree-inline.c (initialize_cfun): Do not initialize
13862         ib_boundaries_block.
13863         * passes.c (pass_insn_locators_initialize): Remove.
13864
13865 2007-04-28  Zdenek Dvorak  <dvorakz@suse.cz>
13866
13867         * tree-cfg.c (move_block_to_fn): Release bb from dominance
13868         info.  Update last_basic_block correctly.
13869
13870 2007-04-27  Kaz Kojima  <kkojima@gcc.gnu.org>
13871
13872         PR target/31701
13873         * config/sh/sh.c (output_stack_adjust): Avoid using the frame
13874         register itself to hold the offset constant.  Tell flow the use
13875         of r4 and r5 when they are used.
13876
13877 2007-04-27  Richard Guenther  <rguenther@suse.de>
13878
13879         * tree-ssa-forwprop.c (forward_propagate_into_cond): Keep track
13880         if we simplified anything.
13881         (tree_ssa_forward_propagate_single_use_vars): Defer overflow
13882         warnings until we did a simplification and the stmt was not
13883         marked as TREE_NO_WARNING.
13884
13885 2007-04-27  Mike Stump  <mrs@apple.com>
13886
13887         * config/rs6000/darwin.h (ALWAYS_PUSH_CONSTS_USING_REGS_P): Remove.
13888
13889 2007-04-27  Ian Lance Taylor  <iant@google.com>
13890
13891         PR middle-end/31710
13892         * tree.c (build_distinct_type_copy): If TYPE_MIN_VALUE or
13893         TYPE_MAX_VALUE exist, convert them to the new type.
13894
13895 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
13896
13897         * tree-cfgcleanup.c (cleanup_tree_cfg): Verify dominance info
13898         if it claims to be available.
13899         * tree-ssa-dce.c (remove_dead_stmt): Mark cfg as altered when
13900         edge is redirected.
13901         (perform_tree_ssa_dce): Always free postdominators.
13902
13903 2007-04-27  Richard Henderson  <rth@redhat.com>
13904
13905         * config/alpha/predicates.md (aligned_memory_operand): Mark
13906         as define_special_predicate.
13907         (unaligned_memory_operand, normal_memory_operand): Likewise.
13908         (reg_or_unaligned_mem_operand): Remove.
13909         (any_memory_operand): Match the documentation and check for
13910         non-renumbered pseudos during reload.
13911         * config/alpha/alpha.c (alpha_secondary_reload): Rename from
13912         alpha_secondary_reload_class, update to new interface, make static.
13913         Handle CQImode like HImode.  Remove FP subreg check.
13914         (alpha_expand_mov): Use replace_equiv_address.
13915         (alpha_expand_mov_nobwx): Use any_memory_operand.
13916         (TARGET_SECONDARY_RELOAD): New.
13917         * config/alpha/alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Remove.
13918         (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
13919         * config/alpha/sync.md (I12MODE, I48MODE, modesuffix): Move ...
13920         * config/alpha/alpha.md: ... here.
13921         (RELOAD12, reloadmode): New.
13922         (movcqi): New.
13923         (reload_in<RELOAD12>): Macro-ize from reload_inqi, reload_inhi.
13924         Don't handle the aligned case here.
13925         (reload_out<RELOAD12>): Macro-ize from reload_outqi, reload_outhi.
13926         (reload_in<I12MODE>_aligned): Macro-ize from reload_inqi_help,
13927         reload_inhi_help.  Don't expect a scratch register.
13928         (reload_out<I12MODE>_aligned): Macro-ize from reload_outqi_help,
13929         reload_outhi_help.
13930         * config/alpha/alpha-protos.h (alpha_secondary_reload_class): Remove.
13931
13932 2007-04-27  Richard Guenther  <rguenther@suse.de>
13933
13934         * tree-ssa-forwprop.c (get_prop_dest_stmt): Fix comment typo.
13935
13936 2007-04-27  Richard Guenther  <rguenther@suse.de>
13937
13938         PR tree-optimization/30965
13939         PR tree-optimization/30978
13940         * Makefile.in (tree-ssa-forwprop.o): Depend on $(FLAGS_H).
13941         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove.
13942         (find_equivalent_equality_comparison): Likewise.
13943         (simplify_cond): Likewise.
13944         (get_prop_source_stmt): New helper.
13945         (get_prop_dest_stmt): Likewise.
13946         (can_propagate_from): Likewise.
13947         (remove_prop_source_from_use): Likewise.
13948         (combine_cond_expr_cond): Likewise.
13949         (forward_propagate_comparison): New function.
13950         (forward_propagate_into_cond): Rewrite to use fold for
13951         tree combining.
13952         (tree_ssa_forward_propagate_single_use_vars): Call
13953         forward_propagate_comparison to propagate comparisons.
13954
13955 2007-04-27  Richard Guenther  <rguenther@suse.de>
13956
13957         PR tree-optimization/31715
13958         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make
13959         sure to do computation on the offset in an appropriate
13960         signed type.
13961
13962 2007-04-27  Richard Sandiford  <richard@codesourcery.com>
13963
13964         * reload.h (elimination_target_reg_p): Declare.
13965         * reload.c (find_reloads): Don't apply the reg_rtx move
13966         optimization if the SET_DEST satisfies elimination_target_reg_p.
13967         * reload1.c (elimination_target_reg_p): New function.
13968         (gen_reload): In the move/add2 fallback, make sure that op0
13969         does not overlap the destination register.
13970
13971 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
13972
13973         * tree-ssa-loop-im.c (determine_invariantness_stmt): Attempt to
13974         transform only GIMPLE_MODIFY_STMTs.
13975         * tree-complex.c (expand_complex_operations_1): Ditto.
13976         (expand_complex_div_wide): Do not create gotos in COND_EXPR branches.
13977         * tree-ssa-loop-manip.c (build_if_stmt): Removed.
13978         (tree_transform_and_unroll_loop): Do not create gotos in COND_EXPR
13979         branches.
13980         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
13981         tree_mod_subtract, tree_ic, tree_stringop_fixed_value): Ditto.
13982         * omp-low.c (expand_parallel_call, expand_omp_for_generic,
13983         expand_omp_for_static_chunk, expand_omp_for_static_nochunk): Ditto.
13984         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes,
13985         slpeel_add_loop_guard): Ditto.
13986         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
13987         * lambda-code.c (perfect_nestify): Ditto.
13988         * tree-iterator.c (tsi_split_statement_list_before): Fix splitting
13989         before the first statement.
13990         * tree-optimize.c (execute_free_datastructures): Fix comments.
13991         (execute_free_cfg_annotations): Do not call disband_implicit_edges.
13992         * tree-flow.h (disband_implicit_edges): Declaration removed.
13993         * tree-cfg.c (make_cond_expr_edges): Remove gotos from COND_EXPR
13994         branches.
13995         (cleanup_dead_labels, tree_redirect_edge_and_branch): Handle
13996         COND_EXPRs without gotos.
13997         (disband_implicit_edges, has_label_p): Removed.
13998         (tree_verify_flow_info): Verify that COND_EXPR branches are empty.
13999         (tree_lv_add_condition_to_bb): Do not create gotos in COND_EXPR
14000         branches.
14001         * tree.c (build3_stat): Mark COND_EXPRs used as statements as having
14002         side effects.
14003         * tree-pretty-print.c (dump_implicit_edges): Dump implicit edges
14004         also for COND_EXPRs.
14005         * cfgexpand.c (label_rtx_for_bb): New function.
14006         (expand_gimple_cond_expr): Do not expect gotos in COND_EXPR branches.
14007         Use label_rtx_for_bb to find the labels.
14008         (expand_gimple_basic_block): Remove RETURN_EXPR at the end of the
14009         last block.  Detect fallthru edges.
14010
14011 2007-04-26  Ian Lance Taylor  <iant@google.com>
14012
14013         PR target/28675
14014         * reload.c (find_reloads_subreg_address): If the address was valid
14015         in the original mode but not in the new mode, reload the whole
14016         address.
14017
14018 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
14019
14020         * tree-cfgcleanup.c (cfgcleanup_altered_bbs): New global variable.
14021         (remove_fallthru_edge): Use remove_edge_and_dominated_blocks.
14022         (cleanup_control_expr_graph): Do not invalidate dominance info.
14023         Record altered blocks.
14024         (cleanup_control_flow, cleanup_forwarder_blocks): Removed.
14025         (cleanup_control_flow_bb, split_bbs_on_noreturn_calls,
14026         cleanup_tree_cfg_bb): New functions.
14027         (remove_forwarder_block): Do not maintain the worklist of blocks.
14028         Record altered blocks.
14029         (cleanup_tree_cfg_1): Iterate over cfgcleanup_altered_bbs,
14030         not over whole cfg.
14031         (cleanup_tree_cfg): Do not iterate cleanup_tree_cfg_1.  Only call
14032         delete_unreachable_blocks if dominators are not available.
14033         * tree-inline.c (optimize_inline_calls): Free dominance information
14034         earlier.
14035         * tree-flow.h (remove_edge_and_dominated_blocks,
14036         cfgcleanup_altered_bbs): Altered.
14037         * tree-cfg.c (replace_uses_by, tree_merge_blocks): Record altered
14038         blocks.
14039         (get_all_dominated_blocks, remove_edge_and_dominated_blocks): New
14040         functions.
14041         (tree_purge_dead_eh_edges): Use remove_edge_and_dominated_blocks,
14042         do not invalidate dominators.
14043
14044 2007-04-26  Anatoly Sokolov <aesok@post.ru>
14045
14046         * config/avr/avr.c (avr_mcu_types): Add support for ATmega8HVA and
14047         ATmega16HVA devices. Move AT90USB82 device to 'avr5' architecture.
14048         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
14049         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
14050
14051 2007-04-26  Steve Ellcey  <sje@cup.hp.com>
14052
14053         * config/ia64/ia64.md (ip_value): Fix itanium_class attribute.
14054
14055 2007-04-26  Richard Guenther  <rguenther@suse.de>
14056
14057         PR tree-optimization/31703
14058         * tree-ssa-loop-im.c (rewrite_bittest): Make sure to use
14059         the right type for the target of the bittest.
14060
14061 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
14062
14063         * config/i386/vx-common.h (RETURN_IN_MEMORY): Use
14064         ix86_sol10_return_in_memory.
14065
14066 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
14067
14068         * config/i386/i386.c (ix86_sol10_return_in_memory): Remove unused
14069         variables.
14070
14071 2007-04-26  Jakub Jelinek  <jakub@redhat.com>
14072
14073         PR c++/31598
14074         * tree-inline.c (copy_body_r): Don't touch TREE_TYPE of OMP_CLAUSE.
14075
14076         PR tree-optimization/30558
14077         * tree-eh.c (lower_eh_filter): If EH_FILTER_MUST_NOT_THROW
14078         clear this_state.prev_try.
14079
14080 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
14081             Mark Mitchell  <mark@codesourcery.com>
14082
14083         * config/i386/i386-protos.h (ix86_sol10_return_in_memory): Declare.
14084         * config/i386/i386.c (ix86_sol10_return_in_memory): New function.
14085         * config/i386/sol2-10.h (RETURN_IN_MEMORY): Use it.
14086
14087 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
14088
14089         PR driver/31107
14090         * doc/invoke.texi (%:print-asm-header): Document.
14091         * gcc.c (asm_options): Use %:print-asm-header() for --target-help
14092         and -ftarget-help.
14093         (static_spec_functions): Add print-asm-header.
14094         (main): Print a banner before the --target-help linker options.
14095         (print_asm_header_spec_function): New function.
14096
14097 2007-04-25  Kaz Kojima  <kkojima@gcc.gnu.org>
14098
14099         PR target/31403
14100         * config/sh/sh.md (movsi_ie): Fix length for TARGET_SH2A.
14101         (movsf_ie): Likewise.
14102
14103 2007-04-25  Paolo Carlini  <pcarlini@suse.de>
14104
14105         * doc/extend.texi ([Type Traits]): Adjust per N2255.
14106
14107 2007-04-25  Bob Wilson  <bob.wilson@acm.org>
14108
14109         * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Throw an
14110         exception for divide-by-zero.
14111         (__umodsi3, __modsi3): Likewise.
14112
14113 2007-04-25  Dirk Mueller  <dmueller@suse.de>
14114
14115         * c-typeck.c (build_compound_expr): Annotate warning()
14116         call with OPT_Wunused_value.
14117         * tree-ssa.c (warn_uninit): Annotate warning with
14118         OPT_Wunintialized.
14119         * c-common.c (handle_sentinel_attribute): Annotate warning
14120         call with OPT_Wattributes.
14121
14122 2007-04-25  Thiemo Seufer  <ths@mips.com>
14123
14124         * config/mips/mips.opt (mdmx, mmt, mno-mdmx): New options.
14125         (mips16): Fix typo.
14126         * config/mips/mips.h (ASM_SPEC): Pass -mmt/-mno-mt and -mdmx/-mno-mdmx
14127         on to the assembler.  Improve handling of -mno-mips16.  Add handling
14128         of -mno-mips3d, -mno-dsp, -mno-dspr2.
14129         * doc/invoke.texi (MIPS Options): Whitespace cleanup.  Fix wrong use
14130         of @itemx.  Document -mno-dsp, -mno-dspr2, -mno-paired-single, -mdmx,
14131         -mno-mdmx, -mno-mips3d, -mmt and -mno-mt.
14132
14133 2007-04-25  Danny Smith  <dannysmith.users.sourceforge.net>
14134
14135         PR target/31680
14136         * config/i386/winnt.c (i386_pe_file_end): Strip only
14137         USER_LABEL_PREFIX when writing export name.
14138
14139 2007-04-25  Richard Sandiford  <richard@codesourcery.com>
14140
14141         * config.gcc (sh-wrs-vxworks): Don't include dbxelf.h.  Include
14142         sh/elf.h, vx-common.h and vxworks.h.
14143         * config/sh/sh.h: Include config/vxworks-dummy.h.
14144         (SUBTARGET_OVERRIDE_OPTIONS): Define.
14145         (OVERRIDE_OPTIONS): Use it.
14146         * config/sh/sh.md (GOTaddr2picreg): Add suport for VxWorks RTPs.
14147         (vxworks_picreg): New pattern.
14148         * config/sh/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
14149         VXWORKS_OS_CPP_BUILTINS.
14150         (LIB_SPEC, LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine
14151         to their VXWORKS_* equivalents.
14152         (SUBTARGET_OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
14153         (SUBTARGET_LINK_EMUL_SUFFIX, FUNCTION_PROFILER): Define.
14154         * config/sh/lib1funcs.asm (NO_FPSCR_VALUES): Define for VxWorks PIC.
14155         (set_fpscr, ic_invalidate): Add VxWorks PIC sequences.
14156         * config/sh/t-vxworks (MULTILIB_OPTIONS): Add m4a, -mrtp and
14157         -mrtp/-fPIC multilibs.
14158         (MULTILIB_EXCEPTIONS): Generalize globs accordingly.
14159         (MULTILIB_MATCHES, EXTRA_MULTILIB_PARTS): Define.
14160         (MULTILIB_OSDIRNAMES): Delete.
14161
14162 2007-04-25  Anatoly Sokolov <aesok@post.ru>
14163
14164         PR target/18989
14165         * config/avr/avr.h (ASM_OUTPUT_ALIGN): Redefine.
14166
14167 2007-04-24  Brooks Moses  <brooks.moses@codesourcery.com>
14168
14169         * real.c (mpfr_from_real): Handle Inf and NaN, and allow the
14170         rounding mode to be specified by the caller.
14171         (real_to_mpfr) Likewise.
14172         * real.h: Update mpfr_from_real, mpfr_to_real prototypes to
14173         include new arguments.
14174         * builtins.c: Update mpfr_from_real, mpfr_to_real calls.
14175
14176 2007-04-24  Ian Lance Taylor  <iant@google.com>
14177
14178         PR tree-optimization/31605
14179         * tree-vrp.c (set_value_range): Check that min and max are not
14180         both overflow infinities.
14181         (set_value_range_to_value): New static function.
14182         (extract_range_from_binary_expr): Call set_value_range_to_value.
14183         (extract_range_from_cond_expr): Likewise.
14184         (extract_range_from_expr): Likewise.
14185         (extract_range_from_unary_expr): Likewise.  Don't create a range
14186         which overflows on both sides.
14187         (vrp_meet): Check for a useless range.
14188         (vrp_visit_phi_node): If we see a constant which looks like an
14189         overflow infinity, turn off the TREE_OVERFLOW flag.
14190
14191 2007-04-24  Ian Lance Taylor  <iant@google.com>
14192
14193         * flow.c (elim_reg_cond): Handle a comparison of a subreg.
14194
14195 2007-04-24  Simon Martin  <simartin@users.sourceforge.net>
14196
14197         PR diagnostic/25923
14198         * tree-pass.h (TDF_DIAGNOSTIC): New dump control to specify that a
14199         diagnostic message is being built.
14200         * tree-pretty-print.c (dump_generic_node): Only write the
14201         formatted text into BUFFER's stream if we are not building a
14202         diagnostic message.
14203         * toplev.c (default_tree_printer): Pass TDF_DIAGNOSTIC to
14204         dump_generic_node.
14205         * Makefile.in (toplev.o): Depend on tree-pass.h.
14206
14207 2007-04-24  Ian Lance Taylor  <iant@google.com>
14208
14209         PR tree-optimization/31602
14210         * tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING for
14211         conditionals in the copied loop header.
14212         * tree-cfg.c (fold_cond_expr_cond): Don't issue undefined overflow
14213         warnings if TREE_NO_WARNING is set.
14214         * doc/invoke.texi (Warning Options): Clarify that
14215         -Wstrict-overflow does not warn about loops.
14216
14217 2007-04-24  Janis Johnson  <janis187@us.ibm.com>
14218
14219         * config/rs6000/rs6000.c (function_arg_advance): For 32-bit ELF ABI,
14220         expand on the comment about _Decimal128 arguments and check the
14221         integer result of the modulus operation; for 64-bit ELF ABI, ensure
14222         that _Decimal128 argument uses even/odd register pair.
14223         (function_arg): Ditto.
14224
14225 2007-04-24  Hui-May Chang <hm.chang@apple.com>
14226
14227         * reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER
14228         instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction.
14229
14230 2007-04-24  Richard Guenther  <rguenther@suse.de>
14231             Olga Golovanevsky  <olga@il.ibm.com>
14232
14233         * fold-const.c (multiple_of_p): Check for bottom
14234         to be zero.
14235
14236 2007-04-24  Richard Henderson  <rth@redhat.com>
14237
14238         * libgcc2.h (AVOID_FP_TYPE_CONVERSION): Rename from
14239         IS_IBM_EXTENDED.  Also define in terms of WIDEST_HARDWARE_FP_SIZE.
14240         * libgcc2.c (__floatdisf): Avoid double-word arithmetic when
14241         looking for non-zero bits shifted out.  Avoid a recursive call
14242         when constructing the scalar.
14243         (__floatundisf): Likewise.
14244
14245 2007-04-24  Nathan Froyd  <froydnj@codesourcery.com>
14246
14247         * dwarf2out.c (field_byte_offset): Move the existing logic
14248         under the control of PCC_BITFIELD_TYPE_MATTERS and just use
14249         the bit offset of the field if !PCC_BITFIELD_TYPE_MATTERS.
14250
14251 2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
14252
14253         PR target/31641
14254         * config/s390/s390.c (s390_expand_setmem): Don't ICE for constant
14255         length argument of 0 for memset.
14256         (s390_expand_movmem, s390_expand_setmem, s390_expand_cmpmem): Use
14257         unsigned shift instead of the signed variant.
14258
14259 2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
14260
14261         * config/s390/s390.md ("*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs_ibm",
14262         "fix_trunc<BFP:mode><GPR:mode>2_ieee", "fix_truncdfsi2_ibm",
14263         "floatsidf2_ibm", "floatsisf2", "truncdfsf2_ieee", "truncdfsf2_ibm",
14264         "*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
14265         "*trunctfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
14266         "*extenddftf2_ieee", "*extenddftf2_ibm", "*extendsftf2_ieee",
14267         "*extendsftf2_ibm", "*add<mode>3", "*add<mode>3_ibm", "*sub<mode>3_ibm",
14268         "*mul<mode>3", "*mul<mode>3_ibm", "*div<mode>3", "*div<mode>3_ibm",
14269         "*neg<mode>2_ibm", "*abs<mode>2_ibm"): Insn definitions removed.
14270         ("fix_trunc<BFP:mode><GPR:mode>2_bfp", "floatsi<mode>2",
14271         "truncdfsf2", "trunctf<mode>2", "add<mode>3", "sub<mode>3",
14272         "mul<mode>3", "div<mode>3"): Insn definitions added.
14273         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fix_trunc<mode>di2",
14274         "fix_trunc<mode>si2"): gen_fix_trunc<BFP:mode><GPR:mode>2_ieee renamed
14275         to gen_fix_trunc<BFP:mode><GPR:mode>2_bfp.
14276         ("fix_truncdfsi2", "floatsitf2", "truncdfsf2", "trunctfdf2",
14277         "trunctfsf2", "extendsfdf2", "extenddftf2", "extendsftf2", "add<mode>3",
14278         "sub<mode>3", "mul<mode>3", "div<mode>3"): Expander removed.
14279         ("fix_trunc<mode>si2", "extend<DSF:mode><BFP:mode>2"): Expander added.
14280         * config/s390/s390.h (TARGET_IBM_FLOAT, TARGET_IEEE_FLOAT,
14281         TARGET_FLOAT_FORMAT): Macro definitions removed.
14282         (FP_REGNO_P): No special case for !TARGET_IEEE_FLOAT anymore.
14283         * config/s390/s390.c (struct processor_costs, z900_cost, z990_cost,
14284         z9_109_cost): Remove fields for hexfloat instructions: dxr, ddr and der.
14285         (s390_rtx_costs): Remove !TARGET_IEEE_FLOAT special branches.
14286         (s390_gen_rtx_const_DI): Function removed.
14287         * config/s390/s390-protos.h (s390_gen_rtx_const_DI): Prototype removed.
14288
14289 2007-04-24  Richard Sandiford  <richard@codesourcery.com>
14290
14291         * optabs.c (set_conv_libfunc): Prefer libgcc2's __ffsMM2 functions
14292         over an external ffs function.
14293
14294 2007-04-24  Chao-ying Fu  <fu@mips.com>
14295             Richard Sandiford  <richard@nildram.co.uk>
14296
14297         * doc/md.texi (madd@var{m}@var{n}4, umadd@var{m}@var{n}4): Document.
14298         * optabs.h (OTI_smadd_widen, OTI_umadd_widen): New optab_indexes.
14299         (smadd_widen_optab, umadd_widen_optab): Define.
14300         * optabs.c (init_optabs): Initialize smadd_widen_optab and
14301         umadd_widen_optab.
14302         * genopinit.c (optabs): Fill in smadd_widen_optab and
14303         umadd_widen_optab.
14304         * expr.c (expand_expr_real_1): Try to use smadd_widen_optab
14305         and umadd_widen_optab to implement multiply-add sequences.
14306         * config/mips/mips.md (*<su>mul_acc_di): Rename to...
14307         (<u>maddsidi4): ...this.  Extend condition to include
14308         GENERATE_MADD_MSUB and TARGET_DSPR2.  Change the constraint
14309         of operand 0 to "ka" and use the three-operand form of madd<u>
14310         for TARGET_DSPR2.
14311         * config/mips/mips-dspr2.md (mips_madd, mips_maddu): Convert
14312         to define_expands.
14313         * config/mips/constraints.md (ka): New register constraint.
14314
14315 2007-04-24  Jan Hubicka  <j@suse.cz>
14316
14317         Revert:
14318
14319         2007-04-23  Jan Hubicka  <jh@suse.cz>
14320         * function.c (init_function_start): Don't init line number info.
14321         (expand_function_end): Update.
14322         (reset_block_changes, record_block_change, finalize_block_changes,
14323         check_block_change, free_block_changes): Kill.
14324         * function.h (reset_block_changes, record_block_change,
14325         finalize_block_changes, check_block_change, free_block_changes):
14326         Remove prototypes.
14327         (struct function): Remove ib_boundaries_block.
14328         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
14329         Use curr_insn_locator to initialize locator.
14330         (emit_line_note): Remove.
14331         * cfgexpand.c (expand_gimple_cond_expr): Update.
14332         (construct_exit_block): Likewise.
14333         (tree_expand_cfg): Initialize/finalize locators.
14334         * expr.c (expand_expr_real): Update.
14335         * cfglayout.c (line_locators_locs, line_locators_lines,
14336         file_locators_locs, file_locators_files): Remove.
14337         (set_block_levels): Move to cfgexpand.c.
14338         (insn_locators_initialize): Remove.
14339         (pass_insn_locators_initialize): Remove.
14340         (locations_locators_locs, locations_locators_vals): New static vars.
14341         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
14342         Likewise.
14343         (insn_locators_alloc, insn_locators_finalize,
14344         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
14345         New functions.
14346         (locator_location): New.
14347         (locator_line, locator_file): Rewrite.
14348         * rtl.h (emit_line_note): Kill.
14349         (insn_locators_alloc, insn_locators_finalize,
14350         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
14351         Declare.
14352         * tree-inline.c (initialize_cfun): Do not initialize
14353         ib_boundaries_block.
14354         * passes.c (pass_insn_locators_initialize): Remove.
14355
14356 2007-04-24  Daniel Franke  <franke.daniel@gmail.com>
14357
14358         * doc/invoke.texi: Removed leading '-' from option index entries.
14359
14360 2007-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
14361
14362         * tree-phinodes.c (reserve_phi_args_for_new_edge, remove_phi_node):
14363         Use phi_nodes_ptr.
14364         (create_phi_node): Use set_phi_nodes.
14365         * omp-low.c (expand_omp_parallel): Use bb_stmt_list.
14366         * tree-if-conv.c (process_phi_nodes): Use set_phi_nodes.
14367         (combine_blocks): Use bb_stmt_list and set_bb_stmt_list.
14368         * tree-flow-inline.h (phi_nodes, set_phi_nodes,
14369         (bsi_start, bsi_last): Use bb_stmt_list.
14370         (phi_nodes_ptr, bb_stmt_list, set_bb_stmt_list): New functions.
14371         * cfgexpand.c (expand_gimple_basic_block): Use bb_stmt_list.
14372         Traverse the statements using tsi iterator.
14373         * basic-block.h (struct basic_block_def): Fields stmt_list
14374         and phi_nodes moved to ...
14375         (struct tree_bb_info): ... new structure.
14376         * tree-cfg.c (create_bb): Allocate il.tree.  Use set_bb_stmt_list.
14377         (tree_merge_blocks): Use bb_stmt_list and set_bb_stmt_list.
14378         (remove_bb): Handle blocks with NULL stmt list.  Clear il.tree field.
14379         (tree_verify_flow_info): Verify that il.tree is not set for
14380         entry and exit block.
14381         (tree_split_block): Use set_bb_stmt_list.
14382
14383 2007-04-23  Mike Stump  <mrs@apple.com>
14384
14385         * config/i386/i386.c (ix86_tune_features
14386         [X86_TUNE_DEEP_BRANCH_PREDICTION]: Prefer call over thunks on
14387         nocona and core2.
14388
14389 2007-04-23  H.J. Lu  <hongjiu.lu@intel.com>
14390
14391         * config/i386/i386.md (prefix_extra): New attribute.
14392         (length): Add prefix_extra.
14393
14394         * onfig/i386/sse.md (sse2_movdqu): Set prefix_data16.
14395         (sse2_movntv2di): Likewise.
14396         (sse2_cvtps2dq): Likewise.
14397         (sse2_cvtpd2pi): Likewise.
14398         (sse2_cvttpd2pi): Likewise.
14399         (*sse2_cvtpd2ps): Likewise.
14400         (*add<mode>3): Likewise.
14401         (sse2_ssadd<mode>3): Likewise.
14402         (sse2_usadd<mode>3): Likewise.
14403         (*sub<mode>3): Likewise.
14404         (sse2_sssub<mode>3): Likewise.
14405         (sse2_ussub<mode>3): Likewise.
14406         (*mulv8hi3): Likewise.
14407         (*smulv8hi3_highpart): Likewise.
14408         (*umulv8hi3_highpart): Likewise.
14409         (sse2_umulv2siv2di3): Likewise.
14410         (sse2_pmaddwd): Likewise.
14411         (ashr<mode>3): Likewise.
14412         (lshr<mode>3): Likewise.
14413         (ashl<mode>3): Likewise.
14414         (sse2_ashlti3): Likewise.
14415         (sse2_lshrti3): Likewise.
14416         (*umaxv16qi3): Likewise.
14417         (*smaxv8hi3): Likewise.
14418         (*uminv16qi3): Likewise.
14419         (*sminv8hi3): Likewise.
14420         (sse2_eq<mode>3): Likewise.
14421         (sse2_gt<mode>3): Likewise.
14422         (*and<mode>3): Likewise.
14423         (sse2_nand<mode>3): Likewise.
14424         (*ior<mode>3): Likewise.
14425         (*xor<mode>3): Likewise.
14426         (sse2_packsswb): Likewise.
14427         (sse2_packssdw): Likewise.
14428         (sse2_packuswb): Likewise.
14429         (sse2_punpckhbw): Likewise.
14430         (sse2_punpcklbw): Likewise.
14431         (sse2_punpckhwd): Likewise.
14432         (sse2_punpcklwd): Likewise.
14433         (sse2_punpckhdq): Likewise.
14434         (sse2_punpckldq): Likewise.
14435         (sse2_punpckhqdq): Likewise.
14436         (sse2_punpcklqdq): Likewise.
14437         (*sse2_pinsrw): Likewise.
14438         (*sse2_pextrw): Likewise.
14439         (sse2_pshufd_1): Likewise.
14440         (sse2_uavgv16qi3): Likewise.
14441         (sse2_uavgv8hi3): Likewise.
14442         (sse2_psadbw): Likewise.
14443         (sse2_pmovmskb): Likewise.
14444         (*sse2_maskmovdqu): Likewise.
14445         (*sse2_maskmovdqu_rex64): Likewise.
14446         (sse4a_extrqi): Likewise.
14447         (sse4a_extrq): Likewise.
14448         (sse3_lddqu): Set prefix_rep.
14449         (sse3_addsubv4sf3): Likewise.
14450         (sse3_haddv4sf3): Likewise.
14451         (sse3_hsubv4sf3): Likewise.
14452         (sse_cvtss2si): Likewise.
14453         (sse_cvtss2si_2): Likewise.
14454         (sse_cvtss2siq): Likewise.
14455         (sse_cvtss2siq_2): Likewise.
14456         (sse_cvttss2si): Likewise.
14457         (sse_cvttss2siq): Likewise.
14458         (sse2_cvttps2dq): Likewise.
14459         (sse3_movshdup): Likewise.
14460         (sse3_movsldup): Likewise.
14461         (sse2_cvtsd2si): Likewise.
14462         (sse2_cvtsd2si_2): Likewise.
14463         (sse2_cvtsd2siq): Likewise.
14464         (sse2_cvtsd2siq_2): Likewise.
14465         (sse2_cvttsd2si): Likewise.
14466         (sse2_cvttsd2siq): Likewise.
14467         (*sse2_cvtpd2dq): Likewise.
14468         (*sse2_cvttpd2dq): Likewise.
14469         (sse2_pshuflw_1): Likewise.
14470         (sse2_pshufhw_1): Likewise.
14471         (sse4a_insertqi): Likewise.
14472         (sse4a_insertq): Likewise.
14473         (ssse3_phaddwv8hi3): Set prefix_data16 and prefix_extra.
14474         (ssse3_phadddv4si3): Likewise.
14475         (ssse3_phaddswv8hi3): Likewise.
14476         (ssse3_phsubwv8hi3): Likewise.
14477         (ssse3_phsubdv4si3): Likewise.
14478         (ssse3_phsubswv8hi3): Likewise.
14479         (ssse3_pmaddubswv8hi3): Likewise.
14480         (ssse3_pmulhrswv8hi3): Likewise.
14481         (ssse3_pshufbv16qi3): Likewise.
14482         (ssse3_psign<mode>3): Likewise.
14483         (ssse3_palignrti): Likewise.
14484         (abs<mode>2): Likewise.
14485         (ssse3_phaddwv4hi3): Set prefix_extra.
14486         (ssse3_phadddv2si3): Likewise.
14487         (ssse3_phaddswv4hi3): Likewise.
14488         (ssse3_phsubwv4hi3): Likewise.
14489         (ssse3_phsubdv2si3): Likewise.
14490         (ssse3_phsubswv4hi3): Likewise.
14491         (ssse3_pmaddubswv4hi3): Likewise.
14492         (ssse3_pmulhrswv4hi3): Likewise.
14493         (ssse3_pshufbv8qi3): Likewise.
14494         (ssse3_psign<mode>3): Likewise.
14495         (ssse3_palignrdi): Likewise.
14496         (abs<mode>2): Likewise.
14497         (sse2_cvtdq2ps): Set mode to V4SF instead of V2DF.
14498         (*vec_dupv2df): Set mode to V2DF instead of V4SF.
14499         (sse2_pmovmskb): Set mode to SI instead of V2DF.
14500
14501 2007-04-23  Nick Clifton  <nickc@redhat.com>
14502
14503         * params.def: Fix formatting of emacs local variables.
14504
14505 2007-04-23  H.J. Lu  <hongjiu.lu@intel.com>
14506
14507         * config/i386/sse.md (sse2_stored): Don't split to inter-unit
14508         move if inter-unit move isn't allowed.
14509         Don't split moving the first element of V2DI to DI to inter-unit
14510         move if inter-unit move isn't allowed.
14511
14512 2007-04-23  Richard Guenther  <rguenther@suse.de>
14513
14514         * tree-ssa-sink.c (execute_sink_code): Calculate CDI_DOMINATORS
14515         and CDI_POST_DOMINATORS separately.
14516
14517 2007-04-23  Nick Clifton  <nickc@redhat.com>
14518
14519         * c.opt (Wformat-contains-nul): Add warning attribute.
14520
14521 2007-04-23  Jan Hubicka  <jh@suse.cz>
14522
14523         * function.c (init_function_start): Don't init line number info.
14524         (expand_function_end): Update.
14525         (reset_block_changes, record_block_change, finalize_block_changes,
14526         check_block_change, free_block_changes): Kill.
14527         * function.h (reset_block_changes, record_block_change,
14528         finalize_block_changes, check_block_change, free_block_changes):
14529         Remove prototypes.
14530         (struct function): Remove ib_boundaries_block.
14531         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
14532         Use curr_insn_locator to initialize locator.
14533         (emit_line_note): Remove.
14534         * cfgexpand.c (expand_gimple_cond_expr): Update.
14535         (construct_exit_block): Likewise.
14536         (tree_expand_cfg): Initialize/finalize locators.
14537         * expr.c (expand_expr_real): Update.
14538         * cfglayout.c (line_locators_locs, line_locators_lines,
14539         file_locators_locs, file_locators_files): Remove.
14540         (set_block_levels): Move to cfgexpand.c.
14541         (insn_locators_initialize): Remove.
14542         (pass_insn_locators_initialize): Remove.
14543         (locations_locators_locs, locations_locators_vals): New static vars.
14544         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
14545         Likewise.
14546         (insn_locators_alloc, insn_locators_finalize,
14547         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
14548         New functions.
14549         (locator_location): New.
14550         (locator_line, locator_file): Rewrite.
14551         * rtl.h (emit_line_note): Kill.
14552         (insn_locators_alloc, insn_locators_finalize,
14553         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
14554         Declare.
14555         * tree-inline.c (initialize_cfun): Do not initialize
14556         ib_boundaries_block.
14557         * passes.c (pass_insn_locators_initialize): Remove.
14558
14559 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14560
14561         PR middle-end/31448
14562         * expr.c (reduce_to_bit_field_precision): Handle
14563         CONST_INT rtx's.
14564
14565 2007-04-22  Uros Bizjak  <ubizjak@gmail.com>
14566
14567         PR tree-optimization/24659
14568         * optabs.h (enum optab_index) [OTI_vec_unpacks_hi,
14569         OTI_vec_unpacks_lo]: Update comment to mention floating point operands.
14570         (vec_pack_trunc_optab): Rename from vec_pack_mod_optab.
14571         * genopinit.c (optabs): Rename vec_pack_mod_optab
14572         to vec_pack_trunc_optab.
14573         * tree-vect-transform.c (vectorizable_type_demotion): Do not fail
14574         early for scalar floating point operands for NOP_EXPR.
14575         (vectorizable_type_promotion): Ditto.
14576         * optabs.c (optab_for_tree_code) [VEC_PACK_TRUNC_EXPR]: Return
14577         vec_pack_trunc_optab.
14578         (expand_binop): Rename vec_float_trunc_optab to vec_pack_mod_optab.
14579
14580         * tree.def (VEC_PACK_TRUNC_EXPR): Rename from VEC_PACK_MOD_EXPR.
14581         * tree-pretty-print.c (dump_generic_node) [VEC_PACK_TRUNC_EXPR]:
14582         Rename from VEC_PACK_MOD_EXPR.
14583         (op_prio) [VEC_PACK_TRUNC_EXPR]: Ditto.
14584         * expr.c (expand_expr_real_1): Ditto.
14585         * tree-inline.c (estimate_num_insns_1): Ditto.
14586         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
14587
14588         * config/i386/sse.md (vec_unpacks_hi_v4sf): New expander.
14589         (vec_unpacks_lo_v4sf): Ditto.
14590         (vec_pack_trunc_v2df): Ditto.
14591         (vec_pack_trunc_v8hi): Rename from vec_pack_mod_v8hi.
14592         (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
14593         (vec_pack_trunc_v2di): Rename from vec_pack_mod_v2di.
14594
14595         * config/rs6000/altivec.md (vec_pack_trunc_v8hi): Rename from
14596         vec_pack_mod_v8hi.
14597         (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
14598
14599         * doc/c-tree.texi (Expression trees) [VEC_PACK_TRUNC_EXPR]:
14600         Rename from VEC_PACK_MOD_EXPR.  This expression also represent
14601         packing of floating point operands.
14602         [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR]: These expression also
14603         represent unpacking of floating point operands.
14604         * doc/md.texi (Standard Names) [vec_pack_trunc]: Update documentation.
14605         [vec_unpacks_hi]: Ditto.
14606         [vec_unpacks_lo]: Ditto.
14607
14608 2007-04-22  Jan Hubicka  <jh@suse.cz>
14609
14610         * final.c (rest_of_handle_final): Call
14611         targetm.asm_out.constructor/targetm.asm_out.destructor
14612         * cgraphunit.c (cgraph_build_static_cdtor): Don't do it here; set
14613         proper priority via decl_*_priority_insert.
14614         * c-common.c (c_expand_body): Likewise.
14615
14616 2007-04-22  Richard Guenther  <rguenther@suse.de>
14617
14618         PR tree-optimization/29789
14619         * tree-ssa-loop-im.c (stmt_cost): Adjust cost of shifts.
14620         (rewrite_reciprocal): New helper split out from
14621         determine_invariantness_stmt.
14622         (rewrite_bittest): Likewise.
14623         (determine_invariantness_stmt): Rewrite (A >> B) & 1 to
14624         A & (1 << B) if (1 << B) is loop invariant but (A >> B)
14625         is not.
14626
14627 2007-04-22  Revital Eres  <eres@il.ibm.com>
14628
14629         * loop-unroll.c (var_to_expand): New field to support also
14630         insns of the form x = something + x.
14631         (analyze_insn_to_expand_var): Use it.
14632         (expand_var_during_unrolling): Likewise.
14633
14634 2007-04-21  Zdenek Dvorak  <dvorakz@suse.cz>
14635
14636         * predict.c: Include pointer-set.h.
14637         (bb_predictions): New variable.
14638         (tree_predicted_by_p, tree_predict_edge,
14639         remove_predictions_associated_with_edge): Use bb_predictions map
14640         instead of bb->predictions.
14641         (clear_bb_predictions, assert_is_empty): New functions.
14642         (combine_predictions_for_bb): Use bb_predictions map.  Call
14643         clear_bb_predictions.
14644         (tree_estimate_probability): Create and free bb_predictions map.
14645         * Makefile.in (predict.o): Add pointer-set.h dependency.
14646         * basic-block.h (struct basic_block_def): Remove predictions
14647         field.
14648         * cfgrtl.c (rtl_verify_flow_info_1): Do not check bb->predictions.
14649
14650 2007-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
14651
14652         PR target/31480
14653         * config/sh/sh.md (length): Check if prev_nonnote_insn (insn)
14654         is null.
14655
14656 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14657
14658         * timevar.c (timevar_print): Change reference of --disable-checking to
14659         --enable-checking=release.  Also warn if assert checking is disabled.
14660
14661 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14662
14663         PR C/30265
14664         * c-gimplifier.c (gimplify_compound_literal_expr): Mark the
14665         decl as addressable if the compound literal was marked as
14666         addressable.
14667         Mark the decl as a gimple register if it is a complex or
14668         vector decl and does not live in memory.
14669
14670 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14671
14672         * tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs.
14673         (GENERIC_NEXT): New function macro.
14674         (PHI_CHAIN): Use phi_node's new chain variable.
14675         (tree_phi_node): Change tree_common to tree_base
14676         and add the chain field.
14677         * tree-phinodes.c (make_phi_node): Don't set
14678         TREE_TYPE on the new node.
14679         * c-decl.c (lang_tree_node): Use GENERIC_NEXT
14680         instead of checking GIMPLE_TUPLE_P in chain_next.
14681         * tree-vect-transform.c
14682         (get_initial_def_for_induction): Look at
14683         PHI_RESULT_TREE for the type of the phi node.
14684         (update_vuses_to_preheader): Use PHI_CHAIN
14685         instead of TREE_CHAIN on the phi node.
14686         * tree-ssa-structalias.c (compute_points_to_sets):
14687         Likewise.
14688         (ipa_pta_execute): Likewise.
14689
14690 2007-04-21  Richard Guenther  <rguenther@suse.de>
14691
14692         PR middle-end/31136
14693         * fold-const.c (fold_unary): Call fold_convert_const on the
14694         original tree.
14695
14696 2007-04-21  Alexandre Oliva  <aoliva@redhat.com>
14697
14698         * gcse.c (store_killed_in_insn): Handle PARALLELs.
14699         (store_killed_in_pat): New.
14700
14701 2007-04-20  Richard Henderson  <rth@redhat.com>
14702
14703         PR target/31628
14704         * config/i386/i386.c (type_has_variadic_args_p): Look for any
14705         TREE_LIST with a void_type_node value, not void_list_node exactly.
14706
14707 2007-04-21  Douglas Gregor  <doug.gregor@gmail.com>
14708
14709         * doc/standards.texi: Re-arrange into language-specific
14710         subsections. Add a C++ section, documenting which standards we
14711         support.
14712
14713 2007-04-21  Zdenek Dvorak  <dvorakz@suse.cz>
14714
14715         * tree-ssa-structalias.c (delete_points_to_sets): Free graph->complex.
14716         * tree-ssa-operands.c (finalize_ssa_vuse_ops): Free new_ops.
14717
14718 2007-04-20  Daniel Jacobowitz  <dan@codesourcery.com>
14719
14720         * config/rs6000/sysv4.h (STARTFILE_DEFAULT_SPEC): Include
14721         ecrti.o and crtbegin.o.
14722         (LIB_DEFAULT_SPEC): Include -lc.
14723         (ENDFILE_DEFAULT_SPEC): Include crtend.o and ecrtn.o.
14724
14725 2007-04-20  Richard Henderson  <rth@redhat.com>
14726
14727         PR target/28623
14728         * config/alpha/alpha.c (get_unaligned_address): Remove extra_offset
14729         argument; update all callers.
14730         (get_unaligned_offset): New.
14731         * config/alpha/alpha.md (extendqidi2, extendhidi2): Don't use
14732         get_unaligned_address, just pass on the address directly.
14733         (unaligned_extendqidi): Use gen_lowpart instead of open-coding
14734         the subreg in the helper patterns.
14735         (unaligned_extendqidi_le): Use get_unaligned_offset.
14736         (unaligned_extendqidi_be, unaligned_extendhidi_le): Likewise.
14737         (unaligned_extendhidi_be): Likewise.
14738         (unaligned_extendhidi): Tidy.
14739         * config/alpha/alpha-protos.h: Update.
14740
14741 2007-04-20  Richard Henderson  <rth@redhat.com>
14742
14743         * config/alpha/alpha.h (CPP_SPEC, CPP_SUBTARGET_SPEC): Remove.
14744         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
14745         * config/alpha/linux.h (CPP_SPEC): Undef before redefine.
14746         * config/alpha/linux-elf.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
14747         * config/alpha/freebsd.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
14748         (CPP_SPEC): Don't include %(cpp_subtarget).
14749         * config/alpha/netbsd.h (CPP_SPEC): Rename CPP_SUBTARGET_SPEC.
14750         (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
14751         * config/alpha/osf.h (CPP_SPEC, EXTRA_SPECS): Similarly.
14752
14753 2007-04-20  Jakub Jelinek  <jakub@redhat.com>
14754
14755         * config/i386/i386.c (bdesc_2arg): Use ORDERED rather than UNORDERED
14756         for __builtin_ia32_cmpordss.
14757
14758         PR tree-optimization/31632
14759         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
14760         and arg1 for optimizations of comparison against min/max values.
14761         Fold arg0 to arg1's type for optimizations of comparison against
14762         min+1 and max-1 values.
14763
14764 2007-04-19  Bernd Schmidt  <bernd.schmidt@analog.com>
14765
14766         * reload.c (combine_reloads): When trying to use a dying register,
14767         check whether it's uninitialized and don't use if so.
14768
14769 2007-04-19  Brooks Moses  <brooks.moses@codesourcery.com>
14770
14771         * fold-const.c: Remove prototypes for native_encode_expr and
14772         native_interpret_expr.
14773         (native_encode_expr): Make non-static.
14774         (native_interpret_expr): Likewise.
14775         * tree.h: Add prototypes for the above.
14776
14777 2007-04-19  Joseph Myers  <joseph@codesourcery.com>
14778
14779         * config/rs6000/spe.md (*frob_tf_ti, *frob_ti_tf, *frob_ti_tf_2,
14780         *mov_si<mode>_e500_subreg0, *mov_si<mode>_e500_subreg0_2,
14781         *mov_sitf_e500_subreg8, *mov_sitf_e500_subreg8_2, spe_extenddftf2,
14782         spe_fix_trunctfsi2_internal, spe_negtf2_internal, cmptfeq_gpr,
14783         tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr, tsttflt_gpr):
14784         Add length attributes.
14785
14786 2007-04-19  Janis Johnson  <janis187@us.ibm.com>
14787
14788         * ginclude/float.h: Check that __STDC_WANT_DEC_FP__ is defined,
14789         not that it is 1.
14790
14791         * c-cppbuiltin.c (c_cpp_builtins): Remove definition of
14792         __STDC_WANT_DEC_FP__.
14793
14794 2007-04-19  Joseph Myers  <joseph@codesourcery.com>
14795
14796         * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu*
14797         for long double compatibility.
14798         * configure: Regenerate.
14799
14800 2007-04-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
14801
14802         PR rtl-optimization/29841
14803         * cfgbuild.c (control_flow_insn_p): Return TRUE for unconditional
14804         trap instructions.
14805         * sched-deps.c (sched_analyze_insn): Prevent all non-jump instructions
14806         that may cause control flow transfer from being moved.
14807
14808 2007-04-18  Jan Hubicka  <jh@suse.cz>
14809
14810         * fold-const.c (div_if_zero_remainder): Do signed divide for pointer
14811         types.
14812
14813 2007-04-18  Eric Christopher  <echristo@apple.com>
14814
14815         * config/rs6000/darwin.md (load_macho_picbase): Use link register
14816         only. Update operands.
14817         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update caller.
14818         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Ditto. Move from
14819         link register to pic register.
14820
14821 2007-04-18  Dirk Mueller  <dmueller@suse.de>
14822
14823         PR diagnostic/31227
14824         * tree-vrp.c (search_for_addr_array): New.
14825         (check_array_bounds): Suppress warning about
14826         address taken of array refs if its not de-referenced.
14827
14828 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
14829
14830         * tree-vectorizer.c (destroy_loop_vec_info): Set loop->aux to NULL.
14831         * tree-vect-analyze.c (vect_analyze_loop_form): Set loop->aux.
14832
14833         * tree-vectorizer.h (NITERS_KNOWN_P): New.
14834         * tree-vect-analyze.c (vect_analyze_loop_form): Call NITERS_KNOWN_P
14835         instead of LOOP_VINFO_INT_NITERS to avoid having to geneate loop_info.
14836
14837         * tree-vect-analyze.c (vect_determine_vectorization_factor): Add
14838         dump print.
14839         (vect_analyze_operations): Fix indenetation.  Fix a comment.  Fix a
14840         print message.
14841         (vect_analyze_scalar_cycles): Fix indentation.
14842         (vect_enhance_data_refs_alignment): Fix check in case of peeling.
14843         (vect_mark_relevant): Include phis in relevance analysis.
14844
14845         * tree-vect-transform.c (vect_transform_loop): Add an assert.
14846
14847 2007-04-18  Anatoly Sokolov <aesok@post.ru>
14848
14849         * config/avr/avr.c (ptrreg_to_str): Replace error() with
14850         output_operand_lossage().
14851
14852 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
14853
14854         * tree-vect-transform.c (get_initial_def_for_reduction): Clean away
14855         the unused code for reduction without adjust-in-epilog to simplify the
14856         function.
14857
14858 2007-04-18  Wolfgang Gellerich  <gellerich@de.ibm.com>
14859
14860         * config/s390/s390.h (S390_TDC_POSITIVE_ZERO): New constant.
14861         (S390_TDC_NEGATIVE_ZERO): New constant.
14862         (S390_TDC_POSITIVE_NORMALIZED_NUMBER): New constant.
14863         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): New constant.
14864         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): New constant.
14865         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): New constant.
14866         (S390_TDC_POSITIVE_INFINITY): New constant.
14867         (S390_TDC_NEGATIVE_INFINITY): New constant.
14868         (S390_TDC_POSITIVE_QUIET_NAN): New constant.
14869         (S390_TDC_NEGATIVE_QUIET_NAN): New constant.
14870         (S390_TDC_POSITIVE_SIGNALING_NAN): New constant.
14871         (S390_TDC_NEGATIVE_SIGNALING_NAN): New constant.
14872         (S390_TDC_INFINITY): New constant.
14873         * config/s390/s390.c (s390_canonicalize_comparison): Renamed
14874         UNSPEC_CMPINT to UNSPEC_CCU_TO_INT, added a UNSPEC_CCU_TO_INT-like
14875         optimization for UNSPEC_CCZ_TO_INT.
14876         * config/s390/s390.md ("*TDC_insn_<mode>"): New insn.
14877         ("*ccz_to_int"): New insn.
14878         ("isinf<mode>2"): New insn.
14879         (UNSPEC_CMPINT): Renamed to UNSPEC_CCU_TO_INT.
14880         (UNSPEC_CCU_TO_INT): New constant, replaces UNSPEC_CMPINT.
14881         (UNSPEC_CCZ_TO_INT): New constant.
14882
14883 2007-04-18  Richard Guenther  <rguenther@suse.de>
14884
14885         PR tree-optimization/19431
14886         PR tree-optimization/21463
14887         * tree-pass.h (pass_phiprop): Declare.
14888         * passes.c (init_optimization_passes): New phiprop pass.
14889         * tree-ssa-forwprop.c (struct phiprop_d): New structure.
14890         (phivn_valid_p): New helper function.
14891         (phiprop_insert_phi): Likewise.
14892         (propagate_with_phi): Likewise.
14893         (tree_ssa_phiprop): New propagator propagating loads
14894         through phi nodes if profitable.
14895
14896 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
14897
14898         * tree-vect-analyze.c (process_use): New function.
14899         (vect_mark_stmts_to_be_vectorized): Factor out code to process_use.
14900         Check phis in all bbs.
14901         * tree-vectorizer.c (vect_is_simple_use): Remove a no longer relavant
14902         assert.
14903
14904 2007-04-18  Bernd Schmidt  <bernd.schmidt@analog.com>
14905
14906         * reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way
14907         we use REG_EQUAL.
14908
14909 2007-04-17  Anatoly Sokolov <aesok@post.ru>
14910
14911         PR target/30483
14912         * config/avr/avr.c (ptrreg_to_str): Replace gcc_unreachable() with
14913         error().
14914
14915 2007-04-17  H.J. Lu  <hongjiu.lu@intel.com>
14916
14917         * config/i386/sse.md (sse_vmaddv4sf3): Use register_operand
14918         on "0".
14919         (sse_vmmulv4sf3): Likewise.
14920         (sse2_vmaddv2df3): Likewise.
14921         (sse2_vmmulv2df3): Likewise.
14922
14923 2007-04-17  Zdenek Dvorak  <dvorakz@suse.cz>
14924
14925         PR rtl-optimization/31360
14926         * cfgloopanal.c (target_small_cost, target_pres_cost): Removed.
14927         (target_reg_cost): New.
14928         (init_set_costs): Initialize target_reg_cost.  Add comments
14929         regarding the rationale of the costs.
14930         (global_cost_for_size): Renamed to...
14931         (estimate_reg_pressure_cost): ... and simplify.  Decrease importance
14932         of register pressure.
14933         * tree-ssa-loop-ivopts.c (ivopts_global_cost_for_size): Use
14934         estimate_reg_pressure_cost.  Add number of ivs.
14935         (determine_set_costs): Dump target_reg_cost.
14936         * loop-invariant.c (gain_for_invariant): Use
14937         estimate_reg_pressure_cost.  Removed n_inv_uses argument.
14938         (best_gain_for_invariant, find_invariants_to_move): Remove
14939         n_inv_uses.
14940         * cfgloop.h (target_small_cost, target_pres_cost): Removed.
14941         (target_reg_cost): Declare.
14942         (global_cost_for_size): Declaration removed.
14943         (estimate_reg_pressure_cost): Declare.
14944
14945 2007-04-17  Peter Bergner  <bergner@vnet.ibm.com>
14946
14947         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Force TDmode
14948         regnos into even/odd register pairs.
14949         * config/rs6000/rs6000.h [SLOW_UNALIGNED_ACCESS]: Treat DDmode and
14950         TDmode similar to the other floating point modes.
14951         [SECONDARY_MEMORY_NEEDED]: Treat DDmode similar to DFmode.
14952         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): New
14953         define_expand's.
14954         (negdd2_fpr, absdd2_fpr, nabsdd2_fpr, negtd2_fpr, abstd2_fpr,
14955         nabstd2_fpr, movdd_hardfloat64_mfpgpr): New define_insn's.
14956         (movdd_hardfloat64): Use TARGET_MFPGPR.
14957
14958 2007-04-17  Bernd Schmidt  <bernd.schmidt@analog.com>
14959
14960         * reload1.c (delete_output_reload): Don't count output in n_inherited.
14961
14962         Revert
14963         2005-01-05  Richard Henderson  <rth@redhat.com>
14964         PR rtl-opt/10692
14965         * reload1.c (do_input_reload): Restrict the optimization deleteing
14966         a previous output reload to RELOAD_FOR_INPUT.
14967
14968 2007-04-17  Dorit Nuzman  <dorit@il.ibm.com>
14969
14970         * tree-vectorizer.h (stmt_vec_info_type): Add enum value
14971         induc_vec_info_type.
14972         (vectorizable_induction): New function declaration.
14973         * tree-vect-transform.c (get_initial_def_for_induction): No need to
14974         check if already vectorized.  Find first place in BB where new stmts
14975         can be inserted.  Takes only one argument.
14976         (vectorizable_induction): New function.
14977         (vect_transform_stmt): Add case for induc_vec_info_type to call
14978         vectorizable_induction.
14979         (vect_transform_loop): Consider phis for vectorization.
14980         * tree-vect-analyze.c (vect_determine_vectorization_factor): Simplify
14981         condition.
14982         (analyze_operations): Call vectorizable_induction when analyzing phis.
14983         Fix comment.
14984         (vect_mark_stmts_to_be_vectorized): Remove redundant checks.
14985         (vect_mark_relevant): Include phis in relevance analysis.
14986         (vect_mark_stmts_to_be_vectorize): Likewise.
14987         * tree-vect-patterns.c (widened_name_p): Remove obsolete asserts.
14988
14989 2007-04-16  Lawrence Crowl  <crowl@google.com>
14990
14991         * doc/invoke.texi (Debugging Options): Add documentation for the
14992         -femit-struct-debug options -femit-struct-debug-baseonly,
14993         -femit-struct-debug-reduced, and
14994         -femit-struct-debug-detailed[=...].
14995
14996         * c-opts.c (c_common_handle_option): Add
14997         OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
14998         and OPT_femit_struct_debug_detailed_.
14999         * c.opt: Add specifications for
15000         -femit-struct-debug-baseonly, -femit-struct-debug-reduced,
15001         and -femit-struct-debug-detailed[=...].
15002         * opts.c (set_struct_debug_option): Parse the
15003         -femit-struct-debug-... options.
15004         * opts.c (matches_main_base, main_input_basename,
15005         main_input_baselength, base_of_path, matches_main_base): Add
15006         variables and functions to compare header base name to compilation
15007         unit base name.
15008         * opts.c (should_emit_struct_debug): Add to determine to emit a
15009         structure based on the option.
15010         (dump_struct_debug) Also disabled function to debug this
15011         function.
15012         * opts.c (handle_options): Save the base name of the
15013         compilation unit.
15014
15015         * langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
15016         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
15017         This hook indicates if a type is generic.  Set it by default
15018         to "never generic".
15019         * langhooks.h (struct lang_hooks_for_types): Add a new hook
15020         to determine if a struct type is generic or not.
15021         * cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
15022         * cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
15023         * cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
15024         with live C++ hook.
15025
15026         * flags.h (enum debug_info_usage): Add an enumeration to describe
15027         a program's use of a structure type.
15028         * dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
15029         to indicate the program's usage of the type.  Filter structs based
15030         on the -femit-struct-debug-... specification.
15031         (gen_type_die): Split into two routines, gen_type_die and
15032         gen_type_die_with_usage.  gen_type_die is now a wrapper
15033         that assumes direct usage.
15034         (gen_type_die_with_usage): Replace calls to gen_type_die
15035         with gen_type_die_with_usage adding the program usage of
15036         the referenced type.
15037         (dwarf2out_imported_module_or_decl): Suppress struct debug
15038         information using should_emit_struct_debug when appropriate.
15039
15040 2007-04-16  Ian Lance Taylor  <iant@google.com>
15041
15042         PR tree-optimization/31522
15043         * tree-vrp.c (vr_phi_edge_counts): New static variable.
15044         (vrp_initialize): Allocate vr_phi_edge_counts.
15045         (vrp_visit_phi_node): Don't push to infinity if we saw a new
15046         executable edge.  Drop test for all constants.
15047         (vrp_finalize): Free vrp_phi_edge_counts.
15048
15049         * doc/cpp.texi (Common Predefined Macros): Clarify description of
15050         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
15051
15052         * tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer
15053         predecessors at head rather than tail.
15054
15055 2007-04-16  Matthias Klose  <doko@debian.org>
15056
15057         * config/alpha/linux.h (CPP_SPEC): Define.
15058         * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Extend.
15059
15060 2007-04-16  Aldy Hernandez  <aldyh@redhat.com>
15061
15062         * function.h: Remove sequence_stack extern declaration.
15063
15064 2007-04-16  Kazu Hirata  <kazu@codesourcery.com>
15065
15066         * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Change to 64 on
15067         TARGET_FIDOA.
15068         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Change to 64 if __mfido__ is
15069         defined.
15070
15071 2007-04-16  Anatoly Sokolov <aesok@post.ru>
15072
15073         * config/avr/avr.c (avr_arch_types): Rearranging  array.
15074         (enum avr_arch): Add.
15075         (avr_mcu_types): Use avr_arch enumeration constants instead of
15076         numbers.
15077         * config/avr/avr.h (LINK_SPEC): Simplify.
15078
15079 2007-04-16  Kazu Hirata  <kazu@codesourcery.com>
15080
15081         * config/m68k/m68k.c (m68k_libcall_value,
15082         m68k_function_value): Use macros for register names more.
15083
15084         * config/m68k/m68k.h (FRAME_POINTER_REGNUM): Use A6_REG
15085         instead.
15086         (M68K_REGNAME): Use A6_REG.
15087         * config/m68k/m68k.md (FP_REG): Rename to A6_REG.
15088
15089 2007-04-16  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
15090
15091         PR middle-end/28071
15092         * sched-int.h (struct deps): Split field 'pending_lists_length' into
15093         'pending_read_list_length' and 'pending_write_list_length'.  Update
15094         comment.
15095         * sched-deps.c (add_insn_mem_dependence): Change signature.  Update
15096         to handle two length counters instead of one.  Update all uses.
15097         (flush_pending_lists, sched_analyze_1, init_deps): Update to handle
15098         two length counters instead of one.
15099         * sched-rgn.c (propagate_deps): Update to handle two length counters
15100         instead of one.
15101
15102 2007-04-16  H.J. Lu  <hongjiu.lu@intel.com>
15103
15104         PR target/31582
15105         * config/i386/i386.c (ix86_expand_vec_set_builtin): Make a
15106         copy of source, pass it to ix86_expand_vector_set and return
15107         it as target.
15108
15109 2007-04-16  David Ung  <davidu@mips.com>
15110             Joseph Myers  <joseph@codesourcery.com>
15111
15112         * config/mips/mips.h (PROCESSOR_74KC, PROCESSOR_74KF,
15113         PROCESSOR_74KX, TUNE_74K, GENERATE_MADD_MSUB): Define.
15114         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
15115         Add 74K processor information.
15116         * config/mips/mips.md: Include 74k.md.
15117         (cpu): Add 74kc,74kf,74kx.
15118         (ISA_HAS_MADD_MSUB): Change to GENERATE_MADD_MSUB throughout.
15119         * config/mips/74k.md: New.
15120         * doc/invoke.texi (MIPS Options): Document 74K support.
15121
15122 2007-04-16  Dorit Nuzman  <dorit@il.ibm.com>
15123
15124         * tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to
15125         vectorizable_* functions.
15126         * tree-vect-transform.c (vectorizable_call): Add check for
15127         STMT_VINFO_RELEVANT_P, STMT_VINFO_DEF_TYPE and STMT_VINFO_LIVE_P.
15128         (vectorizable_store): likewise.
15129         (vectorizable_conversion): Add check for STMT_VINFO_DEF_TYPE.
15130         Add comments.
15131         (vectorizable_operation, vectorizable_type_demotion): Likewise.
15132         (vectorizable_type_promotion, vectorizable_load): Likewise.
15133         (vectorizable_live_operation, vectorizable_condition): Likewise.
15134         (vectorizable_assignment): Add check for STMT_VINFO_DEF_TYPE and
15135         STMT_VINFO_LIVE_P.
15136         (vect_transform_stmt): Reorganize calls to vectorizable_* functions.
15137
15138 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
15139
15140         * config/m68k/linux.h (FUNCTION_VALUE_REGNO_P): Use macros for
15141         register numbers more.
15142         * config/m68k/m68k.h (STACK_POINTER_REGNUM,
15143         FRAME_POINTER_REGNUM, STATIC_CHAIN_REGNUM,
15144         M68K_STRUCT_VALUE_REGNUM, FUNCTION_VALUE, LIBCALL_VALUE,
15145         FUNCTION_VALUE_REGNO_P): Likewise.
15146         * config/m68k/m68kelf.h (M68K_STRUCT_VALUE_REGNUM,
15147         STATIC_CHAIN_REGNUM): Likewise.
15148         * config/m68k/m68kemb.h (FUNCTION_VALUE_REGNO_P): Likewise.
15149         * config/m68k/netbsd-elf.h (M68K_STRUCT_VALUE_REGNUM,
15150         STATIC_CHAIN_REGNUM, FUNCTION_VALUE_REGNO_P): Likewise.
15151         * config/m68k/m68k.md (FP_REG): New.
15152
15153 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
15154
15155         * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit
15156         alignment on fido.
15157
15158 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
15159
15160         * config/i386/i386.c, config/s390/s390.c, config/s390/s390.md,
15161         tree-ssa-loop-niter.c, tree-ssa-structalias.c, tree-vrp.c: Fix
15162         comment typos.
15163
15164 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
15165
15166         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore
15167         cold loops.
15168
15169 2007-04-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15170
15171         PR c/31520
15172         * c-decl.c (finish_decl): Grab the type of the decl after the call
15173         to store_init_value.
15174
15175 2007-04-14  Steven Bosscher  <steven@gcc.gnu.org>
15176
15177         * common.opt (fforward-propagate): Fix "Optimization" annotation.
15178
15179 2007-04-14  Jakub Jelinek  <jakub@redhat.com>
15180
15181         PR c++/25874
15182         * omp-low.c (expand_omp_parallel): If child_cfun->cfg, free
15183         dominators, post dominators and cleanup cfg before returning.
15184
15185 2007-04-14  Bernd Schmidt  <bernd.schmidt@analog.com>
15186
15187         * config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
15188         * config/bfin/bfin.md (movsi_insn): Delete two unused alternatives.
15189
15190 2007-04-14  Kazu Hirata  <kazu@codesourcery.com>
15191
15192         * config.gcc: Recognize fido.
15193         * config/m68k/m68k-devices.def (fidoa): New.
15194         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define
15195         __mfido__.
15196         (FL_FIDOA, TARGET_FIDOA): New.
15197         * config/m68k/m68k.opt (mfidoa): New.
15198
15199 2007-04-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15200
15201         PR middle-end/31322
15202         * dwarf2out.c (output_call_frame_info): Call assemble_external_libcall
15203         when a personality function is used.
15204
15205 2007-04-13  Bob Wilson  <bob.wilson@acm.org>
15206
15207         * config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
15208
15209 2007-04-13  Mike Stump  <mrs@apple.com>
15210
15211         * config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
15212         we can...
15213         * config/darwin.opt (fapple-kext): Make C++ only.
15214         * config/darwin.c (darwin_override_options): Remove code to ensure
15215         -fapple-kext is given for C++ only.
15216
15217 2007-04-13  Richard Sandiford  <richard@codesourcery.com>
15218
15219         * config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
15220         * config/mips/mips.c (override_options): Call
15221         SUBTARGET_OVERRIDE_OPTIONS, if defined.
15222
15223 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
15224
15225         * config/i386/i386.opt (msvr3-shlib): Removed.
15226
15227         * doc/invoke.texi: Remove -msvr3-shlib.
15228
15229 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
15230
15231         * config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
15232         with "popcnt" instruction.
15233
15234 2007-04-13  Richard Guenther  <rguenther@suse.de>
15235
15236         PR tree-optimization/21258
15237         * tree-vrp.c (compare_case_labels): New helper.
15238         (find_switch_asserts): New function.
15239         (find_assert_locations): Call it for SWITCH_EXPRs.
15240
15241 2007-04-13  Uros Bizjak  <ubizjak@gmail.com>
15242
15243         * config/i386/i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
15244         * config/i386/i386.md (*cmpfp0): Remove check for TARGET_80387, this
15245         check is now implied in X87_FLOAT_MODE_P.
15246         (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
15247         (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
15248         (fix_trunc<mode>_i386_fisttp): Ditto.
15249         (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
15250         (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
15251         (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
15252         (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
15253         (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
15254         (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
15255         (unnamed_splitters): Ditto.
15256         * config/i386/i386.c (function_value_32): Generate FIRST_FLOAT_REG
15257         for X87_FLOAT_MODE_P mode.  Override FIRST_FLOAT_REG with
15258         FIRST_SSE_REG for local functions when SSE math is enabled or
15259         for functions with sseregparm attribute.
15260         (standard_80387_constant_p): Return -1 if mode is not
15261         X87_FLOAT_MODE_P.
15262         (ix86_cc_mode): Assert that scalar mode is not DECIMAL_FLOAT_MODE_P.
15263         (ix86_expand_compare): Ditto.
15264         (ix86_expand_carry_flag_compare): Ditto.
15265         (ix86_expand_int_movcc): Check for SCALAR_FLOAT_MODE_P instead
15266         of FLOAT_MODE_P for cmp_mode and assert that cmp_mode is not
15267         DECIMAL_FLOAT_MODE_P.
15268         (ix86_preferred_output_reload_class): Use X87_FLOAT_MODE_P instead
15269         of SCALAR_FLOAT_MODE_P.
15270         (ix86_rtx_costs) [PLUS] Remove FLOAT_MODE_P and fall through to ...
15271         [MINUS]: ... here.  Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P
15272         checks before FLOAT_MODE_P.
15273         [MULT]: Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P checks
15274         before FLOAT_MODE_P.
15275         [DIV]: Ditto.
15276         [NEG]: Ditto.
15277         [ABS]: Ditto.
15278         [SQRT]: Ditto.
15279         [FLOAT_EXTEND]: Use SSE_FLOAT_MODE_P.
15280
15281 2007-04-12  Paolo Bonzini  <bonzini@gnu.org>
15282             Charles Wilson  <libtool@cwilson.fastmail.fm>
15283
15284         * Makefile.in (stamp-as, stamp-collect-ld, stamp-nm): Remove.
15285         (libgcc.mvars): Don't depend on them.
15286         * configure.ac (as, collect-ld, nm): Create from exec-tool.in.
15287         * exec-tool.in: New.
15288
15289 2007-04-12  Brooks Moses  <brooks.moses@codesourcery.com>
15290
15291         * doc/invoke.text (--help): Document --help=common.
15292
15293 2007-04-12  Thomas Neumann  <tneumann@users.sourceforge.net>
15294
15295         * stub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.
15296
15297 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
15298
15299         * Makefile.in (insn-emit.o): Depend on $(INTEGRATE_H).
15300         * genemit.c (main): Emit #include "integrate.h".
15301         * config/mips/mips-protos.h (SYMBOL_HALF): New mips_symbol_type.
15302         (LOADGP_RTP): New mips_loadgp_style.
15303         * config/mips/mips.h: Include config/vxworks-dummy.h.
15304         (TARGET_RTP_PIC): New macro.
15305         (TARGET_USE_GOT): Return true for TARGET_RTP_PIC.
15306         (TARGET_USE_PIC_FN_ADDR_REG): Return true for TARGET_VXWORKS_RTP.
15307         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit function-relative case tables
15308         for TARGET_RTP_PIC.
15309         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Define.  Pass down
15310         -mvxworks-pic when using -mrtp and a PIC option.
15311         * config/mips/mips.c (mips_classify_symbol): Return SYMBOL_GOT_DISP
15312         for RTP PIC.
15313         (mips_symbolic_constant_p, mips_symbolic_address_p)
15314         (mips_symbol_insns): Handle SYMBOL_HALF.
15315         (override_options): Warn about -G and -mrtp being used together.
15316         Initialize mips_lo_relocs[SYMBOL_HALF].
15317         (mips_current_loadgp_style): Return LOADGP_RTP for RTP PIC.
15318         (mips_emit_loadgp): Handle LOADGP_RTP.
15319         (mips_in_small_data_p): Return false for TARGET_VXWORKS_RTP.
15320         * config/mips/mips.md (loadgp_rtp): New insn and splitter.
15321         (tablejump): Handle function-relative case table entries if
15322         TARGET_RTP_PIC.
15323         * config/mips/predicates.md (symbol_ref_operand): New predicate.
15324
15325 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
15326
15327         * config/mips/mips.md (load_call<mode>): Allow any general register.
15328         destination.
15329         (sibcall_value_internal, sibcall_value_multiple_internal)
15330         (call_value_internal, call_value_split, call_value_multiple_internal)
15331         (call_value_multiple_split): Remove constraints from operand 0.
15332
15333 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
15334
15335         * config/mips/mips-protos.h: In comments, refer to loadgp_absolute
15336         rather than loadgp_noshared.
15337         * config/mips/mips.c (mips_emit_loadgp): Use gen_loadgp_absolute
15338         instead of gen_loadgp_noshared.  Use gen_loadgp_newabi instead of
15339         gen_loadgp.
15340         * config/mips/mips.md (loadgp): Rename to...
15341         (loadgp_newabi): ...this.
15342         (loadgp_noshared): Rename to...
15343         (loadgp_absolute): ...this.
15344
15345 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
15346
15347         * config/mips/mips.c (mips_ok_for_lazy_binding_p): Always return
15348         false for locally-binding symbols.
15349         (mips_dangerous_for_la25_p): Check mips_global_symbol_p.
15350
15351 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
15352
15353         * config/mips/mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
15354         (SYMBOL_GOT_PAGE_OFST): ...this.
15355         (SYMBOL_GOT_GLOBAL): Rename to...
15356         (SYMBOL_GOT_DISP): ...this.
15357         (SYMBOL_GOTOFF_GLOBAL): Rename to...
15358         (SYMBOL_GOTOFF_DISP): ...this.  Update comments accordingly.
15359         * config/mips/mips.c (mips_global_symbol_p): New function.
15360         (mips_symbol_binds_local_p): Likewise.
15361         (mips_classify_symbol): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP
15362         and SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST.  Use
15363         mips_global_symbol_p and mips_symbol_binds_local_p.
15364         (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
15365         (override_options): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP,
15366         SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST and SYMBOL_GOTOFF_GLOBAL to
15367         SYMBOL_GOTOFF_DISP.
15368         (mips_ok_for_lazy_binding_p): New function.
15369         (mips_load_call_address, mips_expand_call): Use it.
15370         (mips_dangerous_for_la25_p): Likewise.
15371         * config/mips/mips.md (*xgot_hi<mode>, *xgot_lo<mode>)
15372         (*got_disp<mode>): Use got_disp_operand instead of
15373         global_got_operand.  Use SYMBOL_GOTOFF_DISP instead of
15374         SYMBOL_GOTOFF_GLOBAL.
15375         (*got_page<mode>): Use got_page_ofst_operand instead of
15376         local_got_operand.
15377         * config/mips/predicates.md (const_call_insn_operand): Use
15378         SYMBOL_GOT_DISP instead of SYMBOL_GOT_GLOBAL.
15379         (global_got_operand): Rename to...
15380         (got_disp_operand): ...this and use SYMBOL_GOT_DISP instead of
15381         SYMBOL_GOT_GLOBAL.
15382         (local_got_operand): Rename to...
15383         (got_page_ofst_operand): ...this and use SYMBOL_GOT_PAGE_OFST instead
15384         of SYMBOL_GOT_LOCAL.
15385
15386 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
15387
15388         * config/mips/mips.h (TARGET_SPLIT_CALLS): Check
15389         TARGET_CALL_CLOBBERED_GP.
15390         (TARGET_SIBCALLS): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
15391         (TARGET_USE_GOT, TARGET_CALL_CLOBBERED_GP): New macros.
15392         (TARGET_CALL_SAVED_GP, TARGET_USE_PIC_FN_ADDR_REG): Likewise.
15393         (STARTING_FRAME_OFFSET): Check TARGET_CALL_CLOBBERED_GP instead
15394         of TARGET_ABICALLS && !TARGET_NEWABI.
15395         (MIPS_CALL): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
15396         * config/mips/mips.c (mips_load_call_address): Check
15397         TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
15398         (mips_global_pointer): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
15399         Check TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
15400         (mips_save_reg_p): Check TARGET_CALL_SAVED_GP instead of
15401         TARGET_ABICALLS && TARGET_NEWABI.
15402         (mips_current_loadgp_style): Check TARGET_USE_GOT instead of
15403         TARGET_ABICALLS.
15404         (mips_expand_prologue): Check TARGET_OLDABI instead of !TARGET_NEWABI.
15405         (mips_expand_epilogue): Check TARGET_CALL_SAVED_GP instead of
15406         TARGET_ABICALLS && TARGET_NEWABI.
15407         (mips_output_mi_thunk): Check TARGET_USE_GOT instead of
15408         TARGET_ABICALLS.  Check TARGET_CALL_SAVED_GP instead of
15409         TARGET_NEWABI.  Use TARGET_USE_PIC_FN_ADDR_REG to decide
15410         whether indirect calls must use $25.
15411         (mips_extra_live_on_entry): Check TARGET_GOT instead of
15412         TARGET_ABICALLS.
15413         * config/mips/mips.md (jal_macro): Check flag_pic and
15414         TARGET_CALL_CLOBBERED_GP instead of TARGET_ABICALLS and TARGET_NEWABI.
15415         (builtin_setjmp_setup, builtin_longjmp): Check TARGET_USE_GOT
15416         instead of TARGET_ABICALLS.
15417         (exception_receiver): Check TARGET_CALL_CLOBBERED_GP instead of
15418         TARGET_ABICALLS && TARGET_OLDABI.
15419         (load_call<mode>): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
15420         (sibcall): In the comment above the define_insn, mention
15421         TARGET_USE_PIC_FN_ADDR_REG instead of TARGET_ABICALLS.
15422         * config/mips/constraints.md (c): Check TARGET_USE_PIC_FN_ADDR_REG
15423         instead of TARGET_ABICALLS.
15424
15425 2007-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
15426
15427         * doc/md.texi (Blackfin family constraints): Document PA and PB.
15428         * config/bfin/bfin.h (CONST_OK_FOR_P): Handle PA and PB.
15429         (MACFLAGS_MATCH_P): New macro.
15430         * config/bfin/bfin.c (print_operand): Handle MACFLAG_IS_M.
15431         (bfin_secondary_reload): Treat EVEN_AREGS and ODD_AREGS like AREGS.
15432         * config/bfin/bfin.md (MACFLAG_IS_M): New constant.  Renumber some of
15433         the other MACFLAG constants.
15434         (sum_of_accumulators, lshrpdi3, ashrpdi3): New patterns.
15435         (flag_machi): Tighten constraints.  Renumber some of the operands.
15436         (flag_machi_acconly): Tighten constraints.  Correct operand numbers in
15437         output template.
15438         (flag_machi_parts_acconly): New pattern.
15439         (flag_macinithi): Tighten constraints.  Allow any accumulator to be
15440         used.
15441         (flag_macinit1hi): Tighten constraints.
15442         (flag_mul_macv2hi_parts_acconly): New pattern.
15443
15444         * config/bfin/lib1funcs.asm (___umulsi3_highpart, __smulsi3_highpart):
15445         Use a more efficient implementation.
15446         * config/bfin/bfin.md (umulsi3_highpart, smulsi3_highpart): Emit
15447         inline sequences when not optimizing for size.
15448
15449         * config/bfin/bfin.md (movhi_low2high, movhi_high2high, movhi_low2low,
15450         movhi_high2low): Delete, merge functionality into...
15451         (packv2hi): ... this pattern.
15452
15453         2007-02-11  Jie Zhang  <jie.zhang@analog.com>
15454         * config/bfin/bfin.opt (msim): New option.
15455         (mcpu=): New option.
15456         * config/bfin/bfin-protos.h (enum bfin_cpu): New.
15457         (bfin_cpu_t): Typedef of enum bfin_cpu.
15458         (bfin_cpu_type): New declaration.
15459         * config/bfin/elf.h (STARTFILE_SPEC): Add support for
15460         -msim and -mcpu= options.
15461         (LIB_SPEC): Likewise.
15462         * config/bfin/bfin.c (bfin_cpu_type): Define.
15463         (bfin_handle_option): Handle -mcpu= option.
15464         * config/bfin/bfin.h (DEFAULT_CPU_TYPE): Define as BFIN_CPU_BF532.
15465         (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF531__, __ADSPBF532__,
15466         __ADSPBF533__ or __ADSPBF537__ according to the cpu type.
15467
15468 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
15469
15470         * config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.
15471         (arm-wrs-vxworks, mips-wrs-vxworks, powerpc-wrs-vxworks)
15472         (powerpc-wrs-vxworksae): Use ${tm_file}.
15473         (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add svr4.h
15474         after elfos.h.  Remove i386/sysv4.h and add i386/vx-common.h.
15475         * config/i386/vx-common.h: New file.
15476
15477 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
15478
15479         * config/vxworks.h (VXWORKS_STARTFILE_SPEC): Use -l:crt0.o instead
15480         of crt0.o%s.
15481
15482 2007-04-12  Andreas Krebbel  <krebbel1@de.ibm.com>
15483
15484         * config/s390/s390.md ("trunctddd2"): Use TDmode for the target of
15485         ldxtr.
15486
15487 2007-04-12  Douglas Gregor  <doug.gregor@gmail.com>
15488
15489         PR c++/31078
15490         PR c++/31103
15491         * c-common.c (c_build_qualified_type): Set canonical type
15492         appropriately.
15493
15494 2007-04-12  Richard Guenther  <rguenther@suse.de>
15495
15496         * tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
15497         lower bound and element size if lower bound is not zero
15498         or either of the ARRAY_REF operands is set.
15499
15500 2007-04-12  Richard Guenther  <rguenther@suse.de>
15501
15502         PR tree-optimization/24689
15503         PR tree-optimization/31307
15504         * fold-const.c (operand_equal_p): Compare INTEGER_CST array
15505         indices by value.
15506         * gimplify.c (canonicalize_addr_expr): To be consistent with
15507         gimplify_compound_lval only set operands two and three of
15508         ARRAY_REFs if they are not gimple_min_invariant.  This makes
15509         it never at this place.
15510         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
15511
15512 2007-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15513
15514         * pa.c (pa_som_asm_init_sections): Ensure that cfun->machine is not
15515         null before emitting a .nsubspa directive.
15516
15517 2007-04-11  Diego Novillo  <dnovillo@redhat.com>
15518
15519         * tree-ssa-alias.c (dump_mem_ref_stats): Do not call
15520         need_to_partition_p if there are no memory statements in the
15521         function.
15522
15523 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
15524
15525         * tree-data-ref.c (chrec_steps_divide_constant_p): Removed.
15526         (gcd_of_steps_may_divide_p): New function.
15527         (analyze_miv_subscript): Use gcd_of_steps_may_divide_p.
15528
15529 2007-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
15530
15531         * reload.c (find_reloads_toplev, find_reloads_address,
15532         find_reloads_address_1, find_reloads_subreg_address): Use rtx_equal_p,
15533         not a pointer equality test, to decide if we need to call
15534         push_reg_equiv_alt_mem.
15535
15536 2007-04-11  Sebastian Pop  <sebastian.pop@inria.fr>
15537
15538         * tree-data-ref.c (affine_function_zero_p, constant_access_functions,
15539         insert_innermost_unit_dist_vector, add_distance_for_zero_overlaps):
15540         New.
15541         (build_classic_dist_vector): Call add_distance_for_zero_overlaps.
15542
15543 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
15544
15545         * tree-data-ref.c (add_multivariate_self_dist): Force the distance
15546         vector to be positive.
15547
15548 2007-04-11  Diego Novillo  <dnovillo@redhat.com>
15549
15550         PR 30735
15551         PR 31090
15552         * doc/invoke.texi: Document --params max-aliased-vops and
15553         avg-aliased-vops.
15554         * tree-ssa-operands.h (get_mpt_for, dump_memory_partitions,
15555         debug_memory_partitions): Move to tree-flow.h
15556         * params.h (AVG_ALIASED_VOPS): Define.
15557         * tree-ssa-alias.c (struct mp_info_def): Remove.  Update all
15558         users.
15559         (mp_info_t): Likewise.
15560         (get_mem_sym_stats_for): New.
15561         (set_memory_partition): Move from tree-flow-inline.h.
15562         (mark_non_addressable): Only clear the set of symbols for the
15563         partition if it exists.
15564         (dump_memory_partitions): Move from tree-ssa-operands.c
15565         (debug_memory_partitions): Likewise.
15566         (need_to_partition_p): New.
15567         (dump_mem_ref_stats): New.
15568         (debug_mem_ref_stats): New.
15569         (dump_mem_sym_stats): New.
15570         (debug_mem_sym_stats): New.
15571         (update_mem_sym_stats_from_stmt): New.
15572         (compare_mp_info_entries): New.
15573         (mp_info_cmp): Call it.
15574         (sort_mp_info): Change argument to a list of mem_sym_stats_t
15575         objects.
15576         (get_mpt_for): Move from tree-ssa-operands.c.
15577         (find_partition_for): New.
15578         (create_partition_for): Remove.
15579         (estimate_vop_reduction): New.
15580         (update_reference_counts): New.
15581         (build_mp_info): New.
15582         (compute_memory_partitions): Refactor.
15583         Document new heuristic.
15584         Call build_mp_info, update_reference_counts,
15585         find_partition_for and estimate_vop_reduction.
15586         (compute_may_aliases): Populate virtual operands before
15587         calling debugging dumps.
15588         (delete_mem_sym_stats): New.
15589         (delete_mem_ref_stats): New.
15590         (init_mem_ref_stats): New.
15591         (init_alias_info): Call it.
15592         (maybe_create_global_var): Remove alias_info argument.
15593         Get number of call sites and number of pure/const call sites
15594         from gimple_mem_ref_stats().
15595         (dump_alias_info): Call dump_memory_partitions first.
15596         (dump_points_to_info_for): Show how many times a pointer has
15597         been dereferenced.
15598         * opts.c (decode_options): For -O2 set --param
15599         max-aliased-vops to 500.
15600         For -O3 set --param max-aliased-vops to 1000 and --param
15601         avg-aliased-vops to 3.
15602         * fortran/options.c (gfc_init_options): Remove assignment to
15603         MAX_ALIASED_VOPS.
15604         * tree-flow-inline.h (gimple_mem_ref_stats): New.
15605         * tree-dfa.c (dump_variable): Dump memory reference
15606         statistics.
15607         Dump NO_ALIAS* settings.
15608         (referenced_var_lookup): Tidy.
15609         (mem_sym_stats): New.
15610         * tree-ssa-copy.c (may_propagate_copy): Return true if DEST
15611         and ORIG are different SSA names for a memory partition.
15612         * tree-ssa.c (delete_tree_ssa): Call delete_mem_ref_stats.
15613         * tree-flow.h (struct mem_sym_stats_d): Define.
15614         (mem_sym_stats_t): Define.
15615         (struct mem_ref_stats_d): Define.
15616         (struct gimple_df): Add field mem_ref_stats.
15617         (enum noalias_state): Define.
15618         (struct var_ann_d): Add bitfield noalias_state.
15619         (mem_sym_stats, delete_mem_ref_stats, dump_mem_ref_stats,
15620         debug_mem_ref_stats, debug_memory_partitions,
15621         debug_mem_sym_stats): Declare.
15622         * tree-ssa-structalias.c (update_alias_info): Update call
15623         sites, pure/const call sites and asm sites in structure
15624         returned by gimple_mem_ref_stats.
15625         Remove local variable IS_POTENTIAL_DEREF.
15626         Increase NUM_DEREFS if the memory expression is a potential
15627         dereference.
15628         Call update_mem_sym_stats_from_stmt.
15629         If the memory references memory, call
15630         update_mem_sym_stats_from_stmt for all the direct memory
15631         symbol references found.
15632         (intra_create_variable_infos): Set noalias_state field for
15633         pointer arguments according to the value of
15634         flag_argument_noalias.
15635         * tree-ssa-structalias.h (struct alias_info): Remove fields
15636         num_calls_found and num_pure_const_calls_found.
15637         (update_mem_sym_stats_from_stmt): Declare.
15638         * params.def (PARAM_MAX_ALIASED_VOPS): Change description.
15639         Set default value to 100.
15640         (PARAM_AVG_ALIASED_VOPS): Define.
15641
15642 2007-04-11  Richard Guenther  <rguenther@suse.de>
15643
15644         PR middle-end/31530
15645         * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
15646         a * -b + c as c - a * b if we honor sign dependent rounding.
15647
15648 2007-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
15649
15650         * config/bfin/bfin-protos.h (bfin_expand_movmem): Renamed from
15651         bfin_expand_strmov.
15652         * config/bfin/bfin.c (bfin_expand_prologue, bfin_delegitimize_address,
15653         bfin_function_ok_for_sibcall, split_load_immediate): Remove unused
15654         variables.
15655         (initialize_trampoline): Don't use old-style function definition.
15656         (bfin_secondary_reload): Mark IN_P argument as unused.
15657
15658 2007-04-10  Sebastian Pop  <sebastian.pop@inria.fr>
15659
15660         PR tree-optimization/31343
15661         * tree-chrec.h (chrec_zerop): Moved before build_polynomial_chrec.
15662         (build_polynomial_chrec): Return a scalar when the evolution is zero.
15663         * testsuite/gcc.dg/vect/pr31343.c: New.
15664
15665 2007-04-10  Eric Christopher  <echristo@apple.com>
15666
15667         * config/i386/i386.h (X87_FLOAT_MODE_P): New.
15668         * config/i386/i386.md (*cmpfp0): Use.
15669         (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
15670         (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
15671         (fix_trunc<mode>_i386_fisttp): Ditto.
15672         (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
15673         (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
15674         (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
15675         (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
15676         (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
15677         (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
15678         (unnamed_splitters): Ditto.
15679         * config/i386/i386.c (output_fix_trunc): Assert that
15680         we're not being passed a TFmode operand.
15681
15682 2007-04-10  Zdenek Dvorak  <dvorakz@suse.cz>
15683
15684         PR tree-optimization/31526
15685         * tree-inline.c (copy_cfg_body): Use last_basic_block instead of
15686         n_basic_blocks to find newly added blocks.
15687
15688 2007-04-10  Uros Bizjak  <ubizjak@gmail.com>
15689
15690         * config/i386/i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm"
15691         alternative.
15692         (fix_trunc<mode>si_sse): Ditto.
15693         (*floatsisf2_mixed, *floatsisf2_sse): Ditto.
15694         (*floatsidf2_mixed, *floatsidf2_sse): Ditto.
15695         (*floatdisf2_mixed, *floatdisf2_sse): Ditto.
15696         (*floatdidf2_mixed, *floatdidf2_sse): Ditto.
15697         (floathi<mode>2): Rename from floathisf2 and floathidf2. Macroize
15698         expander using SSEMODEF mode macro.
15699         (floatsi<mode>2): Rename from floatsisf2 and floashidf2. Macroize
15700         expander using SSEMODEF mode macro.
15701         (*floathi<mode>2_i387): Rename from *floathisf2_i387 and
15702         *floathidf2_i387. Macroize insn using X87MODEF12 mode macro.
15703         (*floatsi<mode>2_i387): Rename from *floatsisf2_i387 and
15704         *floatsidf2_i387. Macroize insn using X87MODEF12 mode macro.
15705         (*floatdi<mode>2_i387): Rename from *floatdisf2_i387 and
15706         *floatdidf2_i387. Macroize insn using X87MODEF12 mode macro.
15707         (float<mode>xf2): Rename from floathixf2, floatsixf2 and floatdixf2.
15708         Macroize insn using X87MODEF mode macro.
15709
15710 2007-04-09  H.J. Lu  <hongjiu.lu@intel.com>
15711
15712         * config/i386/sse.md (sse2_pinsrw): Removed.
15713         (sse2_pextrw): Renamed to ...
15714         (*sse2_pextrw): This.
15715
15716 2007-04-09  Jan Hubicka  <jh@suse.cz>
15717
15718         PR target/27869
15719         * config/i386/sse.md
15720         (sse_vmaddv4sf3, sse_vmmulv4sf3): Remove '%' modifier.
15721         (sse_vmsmaxv4sf3_finite, sse_vmsminv4sf3_finite): Remove.
15722         (sse2_vmaddv2df3, sse2_vmmulv2df3): Remove '%' modifier.
15723         (sse2_vmsmaxv2df3_finite, sse2_vmsminv2df3_finite): Remove.
15724
15725 2007-04-09  Jan Hubicka  <jh@suse.cz>
15726
15727         * tree-ssa-ccp (maybe_fold_offset_to_component_ref): Recurse into
15728         multiple fields of union.
15729
15730 2007-04-09  Zdenek Dvorak  <dvorakz@suse.cz>
15731
15732         * cfgloopmanip.c (create_preheader): Do not use loop_preheader_edge.
15733         (create_preheaders): Check that loops are available.
15734         (fix_loop_structure): Clean up, improve comments.
15735         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa):
15736         Check that loops are available.  Set LOOP_CLOSED_SSA to the loops
15737         state flags.
15738         * tree-scalar-evolution.c (scev_finalize): Clear scalar_evolution_info.
15739         * predict.c (tree_estimate_probability): Do not call
15740         calculate_dominance_info.  Call create_preheaders.
15741         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Only call
15742         rewrite_into_loop_closed_ssa if LOOP_CLOSED_SSA is set in loops state
15743         flags.
15744         * cfgloop.c (loop_preheader_edge): Assert that loops have preheaders.
15745         * cfgloop.h (LOOP_CLOSED_SSA): New constant.
15746         * tree-cfg.c (tree_split_edge): Make an assert more precise.
15747         * tree-ssa-threadedge.c (thread_across_edge): Comment the function
15748         arguments.
15749
15750 2007-04-08  Jan Hubicka  <jh@suse.cz>
15751
15752         * tree.h (maybe_fold_offset_to_component_ref): Declare.
15753         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Export.
15754         * fold-const.c (fold_unary): Use it.
15755
15756 2007-04-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15757
15758         * varasm.c (assemble_variable): Remove call to
15759         lang_hooks.decls.prepare_assemble_variable.
15760         * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Kill.
15761         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE.
15762         * langhooks.h (lang_hooks_for_decls): Remove
15763         prepare_assemble_variable.
15764
15765 2007-04-08  Mike Stump  <mrs@apple.com>
15766
15767         * config/i386/i386.c: Use inc/dec on Core2.
15768
15769 2007-04-08  Steven Bosscher  <steven@gcc.gnu.org>
15770
15771         * langhooks.c (lhd_tree_inlining_add_pending_fn_decls,
15772         lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
15773         lhd_tree_inlining_end_inlining): Remove.
15774         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove then
15775         add_pending_fn_decls, anon_aggr_type_p, start_inlining, and
15776         end_inlining hooks.
15777         * langhooks-def.h (lhd_tree_inlining_add_pending_fn_decls,
15778         lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
15779         lhd_tree_inlining_end_inlining): Remove prototypes.
15780         (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS,
15781         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
15782         LANG_HOOKS_TREE_INLINING_START_INLINING,
15783         LANG_HOOKS_TREE_INLINING_END_INLINING): Remove.
15784
15785         * c-objc-common.h (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do
15786         not set it.
15787
15788 2007-04-08  Anatoly Sokolov <aesok@post.ru>
15789
15790         PR target/29932
15791         * config/avr/predicates.md (io_address_operand): Delete predicate.
15792         (low_io_address_operand): Don't use 'mode' argument.
15793         (higth_io_address_operand): Rename ...
15794         (high_io_address_operand): ... to this. Don't use 'mode' argument.
15795         * config/avr/avr.md (*sbix_branch_tmp, *sbix_branch_tmp_bit7): Adjust
15796         for above change.
15797
15798 2007-04-07  Daniel Berlin  <dberlin@dberlin.org>
15799
15800         Revert change removing staticp.
15801
15802 2007-04-07  Anatoly Sokolov <aesok@post.ru>
15803
15804         PR target/30289
15805         * config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as
15806         earlyclobber.
15807
15808 2007-04-07  Bruce Korb  <bkorb@gnu.org>
15809
15810         * c.opt: Add -Wformat-contains-nul.
15811         * c-format.c (set_Wformat): Set warn_format_contains_nul to the
15812           -Wformat setting.
15813         (check_format_info_main): Check OPT_Wformat_contains_nul before emitting
15814         the NUL byte warning.
15815
15816 2007-04-07  H.J. Lu  <hongjiu.lu@intel.com>
15817
15818         * config/i386/i386.c (ix86_handle_option): Handle SSSE3.
15819
15820 2007-04-06  Daniel Berlin  <dberlin@dberlin.org>
15821
15822         * tree.c (staticp): No longer use staticp langhook.
15823         * langhooks.c (lhd_staticp): Removed.
15824         * langhooks.h (struct lang_hooks): Remove staticp.
15825         * c-common.c (c_staticp): Remove.
15826         * c-common.h (c_staticp): Ditto.
15827         * langhooks-defs.h (lhd_staticp): Ditto.
15828         (LHD_HOOKS_STATICP): Ditto
15829         * tree.h (gcc_assert_lowered): New macro.
15830
15831 2007-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
15832
15833         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Add and use
15834         argument "reliable".
15835         (infer_loop_bounds_from_ref, infer_loop_bounds_from_array):
15836         Add argument "reliable".  Propagate it through calls.
15837         (infer_loop_bounds_from_undefined): Derive number of iterations
15838         estimates from references in blocks that do not dominate loop latch.
15839         (gcov_type_to_double_int): New function.
15840         (estimate_numbers_of_iterations_loop): Use gcov_type_to_double_int
15841         and expected_loop_iterations_unbounded.
15842         * cfgloopanal.c (expected_loop_iterations_unbounded): New function.
15843         (expected_loop_iterations): Use expected_loop_iterations_unbounded.
15844         * tree-data-ref.c (estimated_loop_iterations): Export.
15845         (get_references_in_stmt): Fix -- do not return addresses of local
15846         objects.
15847         * cfgloop.h (expected_loop_iterations_unbounded,
15848         estimated_loop_iterations): Declare.
15849
15850 2007-04-06  Andreas Tobler  <a.tobler@schweiz.org>
15851
15852         * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
15853
15854 2007-04-06  Uros Bizjak  <ubizjak@gmail.com>
15855
15856         * config/i386/i386.md (extend<mode>xf2): Rename from extendsfxf2
15857         and extenddfxf2. Macroize expander using X87MODEF12 mode macro.
15858         (*truncdfsf_mixed, *truncdfsf_i387, *truncdfsf2_i387_1):
15859         Use output_387_reg_move().
15860         (*truncxf<mode>2): Rename from *truncxfsf2 and truncxfdf2. Macroize
15861         expander using X87MODEF12 mode macro.
15862         (*truncxfsf2_mixed): Combine alternatives, ignore "r" alternative when
15863         choosing register preferences.  Use output_387_reg_move().
15864         (*truncxfdf2_mixed): Combine alternatives, use "r" alternative
15865         instead of "x".  Use output_387_reg_move().
15866         (*truncxf<mode>2_i387_noop): Rename from *truncxfsf2_i387_noop and
15867         *truncxfdf2_i387_noop.  Macroize insn using X87MODEF12 mode macro.
15868         (*truncxf<mode>2_i387): Rename from *truncxfsf2_i387 and
15869         *truncxfdf2_i387.  Macroize insn using X87MODEF12 mode macro.
15870         Use output_387_reg_move().
15871         (*truncxf?f_mixed splitter): Macroize splitter using X87MODEF12
15872         mode macro.
15873         (*truncxf?f_i387 splitter): Ditto.
15874
15875 2007-04-06  Daniel Berlin  <dberlin@dberlin.org>
15876
15877         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
15878         LANG_HOOKS_SAFE_FROM_P.
15879         * expr.c (safe_from_p): Remove langhook call.
15880         * langhooks.h (lang_hooks): Remove safe_from_p.
15881         (lhd_safe_from_p): Remove prototype.
15882         * langhooks.c (lhd_safe_from_p): Remove.
15883
15884 2007-04-06  Jan Hubicka  <jh@suse.cz>
15885
15886         * cgraphunit.c (decide_is_function_needed): Do not keep always_inline
15887         functions.
15888
15889 2007-04-06  Uros Bizjak  <ubizjak@gmail.com>
15890
15891         * config/i386/i386.c (output_387_reg_move): Handle memory operand[0].
15892         * config/i386/i386.md (*movsf_1, *movdf_nointeger,
15893         *movdf_integer_rex64, *movdf_integer, *movxf_nointeger,
15894         *movxf_integer): Use output_387_reg_move() for x87 reg->mem
15895         alternative.
15896         (*extendsfdf2_mixed, *extendsfdf2_i387, *extendsfxf2_i387,
15897         *extenddfxf2_i387, *truncdfsf_fast_mixed): Ditto.
15898
15899 2007-04-05  Richard Henderson  <rth@redhat.com>
15900
15901         * config/alpha/alpha.c (print_operand) [+]: Remove.
15902         (alpha_end_function): Print nop if call at end of function.
15903         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Remove +.
15904         * config/alpha/alpha.md (UNSPEC_LDGP1): New.
15905         (call_osf_1_er_noreturn, call_value_osf_1_er_noreturn): New.
15906         (call_osf_2_er_nogp, call_value_osf_2_er_nogp): New.
15907         (call_osf_2_er, call_value_osf_2_er): Merge the ldgp highpart into
15908         the call pattern. Update peepholes to match.
15909
15910 2007-04-05  Janis Johnson  <janis187@us.ibm.com>
15911
15912         * doc/extend.texi (Other Builtins): Add decimal float variants
15913         of signbit.
15914         * builtins.def: Ditto.
15915         * builtins.c (expand_builtin): Ditto.
15916
15917 2007-04-05  Uros Bizjak  <ubizjak@gmail.com>
15918             H.J. Lu  <hongjiu.lu@intel.com>
15919
15920         PR target/31478
15921         * config/i386/sse.md (sse2_umulv2siv2di3): Use V4SImode instead
15922         of V8HImode when calling ix86_binary_operator_ok.
15923         (sse2_pmaddwd): Call ix86_binary_operator_ok.
15924         (sdot_prodv8hi): Operands 1 and 2 must be register.
15925
15926 2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
15927
15928         * tree-sra.c (try_instantiate_multiple_fields): Needlessly
15929         initialize align to silence bogus warning.
15930
15931 2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
15932
15933         PR middle-end/22156
15934         * tree-sra.c (struct sra_elt): Add in_bitfld_block.  Remove
15935         all_no_warning.
15936         (struct sra_walk_fns): Remove use_all parameter from use.
15937         (sra_hash_tree): Handle BIT_FIELD_REFs.
15938         (sra_elt_hash): Don't hash bitfld blocks.
15939         (sra_elt_eq): Skip them in parent compares as well.  Handle
15940         BIT_FIELD_REFs.
15941         (sra_walk_expr): Don't maintain or pass down use_all_p.
15942         (scan_use): Remove use_all parameter.
15943         (scalarize_use): Likewise.  Re-expand assignment to
15944         BIT_FIELD_REF of gimple_reg.  De-scalarize before input or
15945         output, and re-scalarize after output.  Don't mark anything
15946         for no warning.
15947         (scalarize_ldst): Adjust.
15948         (scalarize_walk_gimple_modify_statement): Likewise.
15949         (build_element_name_1): Handle BIT_FIELD_REFs.
15950         (instantiate_element): Don't warn for any element whose parent
15951         is used as a whole.
15952         (instantiate_missing_elements_1): Return the sra_elt.
15953         (canon_type_for_field): New.
15954         (try_instantiate_multiple_fields): New.
15955         (instantiate_missing_elemnts): Use them.
15956         (mark_no_warning): Removed.
15957         (generate_one_element_ref): Handle BIT_FIELD_REFs.
15958         (REPLDUP, sra_build_elt_assignment): New.
15959         (generate_copy_inout): Use them.
15960         (generate_element_copy): Likewise.  Handle bitfld differences.
15961         (generate_element_zero): Don't recurse for blocks.  Use
15962         sra_build_elt_assignment.
15963         (generate_one_element_int): Take elt instead of var.  Use
15964         sra_build_elt_assignment.
15965         (generate_element_init_1): Adjust.
15966         (scalarize_use, scalarize_copy): Use REPLDUP.
15967         (scalarize_ldst): Move assert before dereference.
15968         (dump_sra_elt_name): Handle BIT_FIELD_REFs.
15969
15970 2007-04-05  Steven Bosscher  <steven@gcc.gnu.org>
15971
15972         * regmove.c: Fix unused variable warnings due to previous commit.
15973
15974 2007-04-05  Steven Bosscher  <steven@gcc.gnu.org>
15975
15976         * regmove.c (STACK_GROWS_DOWNWARD): Don't boolean-ize.
15977         (regmove_bb_head): Remove.
15978         (copy_src_to_dest): Don't update regmove_bb_head and BB_HEAD.
15979         (regmove_optimize): Don't do unnecessary CFG fixes for non-existing
15980         problems with fixup_match_1.
15981         Don't initialize/free regmove_bb_head.
15982
15983         (reg_is_remote_constant_p): If an insn is in the same basic block
15984         but not before INSN, consider it remote, too.
15985
15986 2007-04-05  Anatoly Sokolov <aesok@post.ru>
15987
15988         PR target/25448
15989         * config/avr/avr.c (avr_handle_fndecl_attribute): Use the
15990         DECL_ASSEMBLER_NAME, not the DECL_NAME.
15991
15992 2007-04-05  H.J. Lu  <hongjiu.lu@intel.com>
15993
15994         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat.
15995         (CONDITIONAL_REGISTER_USAGE): Likewise.
15996
15997 2007-04-04  Richard Henderson  <rth@redhat.com>
15998
15999         * config/alpha/lib1funcs.asm: Remove unused file.
16000
16001 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
16002
16003         PR other/31356
16004         * opts.c (print_specific_help): Fix --help=<language>
16005         header line.
16006         (common_handle_option): Support --help=common.
16007
16008 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
16009
16010         PR other/31353
16011         * gcc.c (main): Do not run the linker if
16012         print_subprocess_help indicates that it shouldn't be
16013         run.
16014
16015 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
16016
16017         PR doc/31355
16018         * doc/invoke.texi (--help=): Document <languages> value, fix
16019         formatting in tables of values.
16020
16021 2007-04-04  Danny Smith  <dannysmith.users.sourceforge.net>
16022
16023         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore
16024         dllimport attribute of virtual methods.
16025
16026 2007-04-04  Chen Liqin  <liqin@sunnorth.com.cn>
16027
16028         * config/score/crti.asm: Change _bss_start to __bss_start.
16029         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Added.
16030         (OUTGOING_REG_PARM_STACK_SPACE) update.
16031         * config/score/score.opt: add options to make backend support
16032         score5, score5u, score7 and score7d.
16033         * config/score/score.md: Likewise.
16034         * config/score/misc.md: Likewise.
16035         * config/score/mac.md: Likewise.
16036         * doc/invoke.texi: Likewise.
16037         * doc/md.texi: update constraints define.
16038
16039 2007-04-03  Richard Henderson  <rth@redhat.com>
16040
16041         * expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield
16042         an appropriate type, use the mode instead.
16043
16044 2007-04-03  Richard Sandiford  <richard@codesourcery.com>
16045
16046         * config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file.
16047         Set the default --with-arch setting to mips2.
16048         * config/mips/t-vxworks (MULTILIB_OPTIONS, MULTILIB_MATCHES)
16049         (MULTILIB_EXCEPTIONS): Redefine with new multilibs.
16050         (MULTILIB_OSDIRNAMES): Delete.
16051         (MULTILIB_DIRNAMES): Define.
16052         * config/mips/vxworks.h (LINK_SPEC): Add VXWORKS_LINK_SPEC.
16053         (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Define.
16054         (TARGET_OS_CPP_BUILTINS): Incorporate old SUBTARGET_CPP_SPEC
16055         definitions, except for _WRS_R3K_EXC_SUPPORT.  Call
16056         VXWORKS_OS_CPP_BUILTINS.
16057         (SUBTARGET_CPP_SPEC): Redefine to VXWORKS_ADDITIONAL_CPP_SPEC.
16058         (MIPS_DEBUGGING_INFO): Undefine.
16059         (FUNCTION_PROFILER): Define to VXWORKS_FUNCTION_PROFILER.
16060
16061 2007-04-03  Jakub Jelinek  <jakub@redhat.com>
16062
16063         PR middle-end/30704
16064         * fold-const.c (native_encode_real): Encode real.c provided longs
16065         as a series of 32-bit native integers.
16066         (native_interpret_real): Interpret buffer as a series of 32-bit
16067         native integers.
16068
16069 2007-04-03  Richard Guenther  <rguenther@suse.de>
16070
16071         * genpreds.c (write_insn_constraint_len): Write function
16072         optimized for CONSTRAINT_LEN implementation.
16073         (write_tm_preds_h): Output insn_constraint_len inline and
16074         use it for CONSTRAINT_LEN.
16075         (write_insn_preds_c): Don't output insn_constraint_len.
16076         * doc/md.texi (define_register_constraint): Document multi-letter
16077         constraints shall have the same length if they start with the same
16078         letter.
16079
16080 2007-04-03  Uros Bizjak  <ubizjak@gmail.com>
16081
16082         PR target/31175
16083         * config/i386/i386.md (isinf<mode>2): Expand only when
16084         TARGET_C99_FUNCTIONS is set.
16085
16086 2007-04-03  Uros Bizjak  <ubizjak@gmail.com>
16087
16088         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.
16089         (x86_64-*-linux*): Ditto.
16090         * config/i386/i386.opt (mpc): New option.
16091         * config/i386/i386.c (overrride_options): Handle
16092         ix87_precision_string.
16093         * config/i386/crtprec.c: New file.
16094         * config/i386/t-crtpc: Ditto.
16095         * config/i386/linux.h (ENDFILE_SPEC): Add handling of -mpc32, -mpc64
16096         and -mpc80 options.
16097         * config/i386/linux64.h (ENDFILE_SPEC): Ditto.
16098         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
16099         crtprec32.o, crtprec64.o and crtprec80.o.
16100
16101         * doc/invoke.texi (Machine Dependent Options): Add -mpc32, -mpc64
16102         and -mpc80 options.
16103         (i386 and x86-64 Options): Document -mpc32, -mpc64 and -mpc80 options.
16104
16105 2007-04-02  Eric Christopher  <echristo@apple.com>
16106
16107         * doc/invoke.texi (i386 and x86-64 Options): Document -m64
16108         limitations on darwin.
16109
16110 2007-04-02  Anatoly Sokolov <aesok@post.ru>
16111
16112         PR target/31137
16113         * config/avr/avr.c (avr_rtx_costs): Add missing 'break' statements.
16114
16115 2007-04-02  Dave Korn  <dave.korn@artimi.com>
16116
16117         * doc/tm.texi (FUNCTION_MODE): Update and extend documentation.
16118
16119 2007-04-02  Dave Korn  <dave.korn@artimi.com>
16120
16121         * libgcc2.h (exception_descriptor): Don't forward-declare.
16122         (__get_eh_table_language, __get_eh_table_version): Delete
16123         prototypes of long-dead functions.
16124
16125 2007-04-01  Daniel Berlin  <dberlin@dberlin.org>
16126
16127         * ebitmap.h: New file
16128         * ebitmap.c: New file
16129         * Makefile.in (ebitmap.o): New target.
16130
16131 2007-04-01  Jan Hubicka  <jh@suse.cz>
16132
16133         * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
16134         before very first instruction.
16135
16136 2007-04-01  Jan Hubicka  <jh@suse.cz>
16137
16138         * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
16139         waring on 64bit hosts.
16140         * bitmap.h: Fix typo in bitmap_head_def.
16141
16142 2007-04-01  Steven Bosscher  <steven@gcc.gnu.org>
16143
16144         PR rtl-optimization/31391
16145         * cfgcleanup.c (try_optimize_cfg): If a removed label is turned
16146         into a DELETED_LABEL note, and the label is in an empty basic
16147         block, update BB_END as well as BB_HEAD.
16148
16149 2007-04-01  Richard Henderson  <rth@redhat.com>
16150
16151         PR tree-optimization/31169
16152         * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop
16153         to varying if the range is outside [0,  prec-1].
16154
16155 2007-04-01  Richard Sandiford  <richard@codesourcery.com>
16156
16157         PR target/31388
16158         * config/mips/mips.md (load_const_gp): New insn.
16159         * config/mips/mips.c (mips_split_symbol): Avoid using or creating
16160         the MIPS16 GP pseudo register if no_new_pseudos.
16161         (mips16_gp_pseudo_reg): Use gen_load_const_gp.
16162
16163 2007-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16164
16165         PR target/31364
16166         * config/rs6000/rs6000.md (call): Convert to LR hard reg for
16167         secureplt.
16168         (call_value): Likewise.
16169
16170 2007-03-31  Wolfgang Bangerth  <bangerth@dealii.org>
16171             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16172
16173         PR 14737
16174         * doc/invoke.texi: (optimization options): Reword description
16175         of -ffast-math. Document its primary purpose.
16176
16177 2007-03-31  Richard Guenther  <rguenther@suse.de>
16178
16179         * omp-low.c (splay-tree.h): Include.
16180         (lookup_decl): Replace splay-tree usage by pointer-map.
16181         (maybe_lookup_decl): Likewise.
16182         (new_omp_context): Likewise.
16183         (delete_omp_context): Likewise.
16184         * gimplify.c (splay-tree.h): Include.
16185         * tree-inline.c (insert_decl_map): Replace splay-tree usage by
16186         pointer-map.
16187         (remap_ssa_name): Likewise.
16188         (remap_decl): Likewise.
16189         (remap_type_1): Likewise.
16190         (remap_type): Likewise.
16191         (copy_body_r): Likewise.
16192         (expand_call_inline): Likewise.
16193         (clone_body): Likewise.
16194         (copy_tree_r): Likewise.
16195         (remap_save_expr): Likewise.
16196         (unsave_r): Likewise.
16197         (unsave_expr_now): Likewise.
16198         (tree_function_versioning): Likewise.
16199         (build_duplicate_type): Likewise.
16200         * tree-inline.h (pointer-set.h): Include instead of splay-tree.h.
16201         (struct copy_body_data): Replace splay-tree by pointer-map.
16202         * Makefile.in (TREE_INLINE_H): Depend on pointer-map.h,
16203         not $(SPLAY_TREE_H).
16204         (gimplify.o): Depend on $(SPLAY_TREE_H).
16205         (omp-low.p): Likewise.
16206
16207 2007-03-31  Anatoly Sokolov <aesok@post.ru>
16208
16209         * config/avr/predicates.md (even_register_operand,
16210         odd_register_operand): New predicates.
16211         * config/avr/avr.md (movw peephole2): New.
16212         (movw_r peephole2): New.
16213
16214 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
16215
16216         * tree.h (get_signed_or_unsigned_type): New.
16217         * fold-const.c (operand_equal_for_comparison_p): Use
16218         get_signed_or_unsigned_type instead of
16219         lang_hooks.types.signed_or_unsigned_type.
16220         * expr.c (store_expr): Ditto.
16221         * langhooks.c (get_signed_or_unsigned_type): New.
16222         (lhd_signed_or_unsigned_type): New.
16223         * langhooks.h (lhd_signed_or_unsigned_type): New.
16224         * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
16225
16226 2007-03-30  Richard Henderson  <rth@redhat.com>
16227
16228         * tree-ssa-loop-ivopts.c: Include target.h.
16229         (produce_memory_decl_rtl): Pass the rtx through encode_section_info.
16230         (get_address_cost): Force SYMBOL_FLAG_LOCAL set.
16231         (force_expr_to_var_cost): Use produce_memory_decl_rtl.
16232         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on TARGET_H.
16233
16234 2007-03-30  Richard Henderson  <rth@redhat.com>
16235             Kai Tietz  <kai.tietz@onevision.com>
16236
16237         * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by
16238         default for 64-bit.
16239         (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit.
16240         (TARGET_64BIT_MS_ABI): New.
16241         (DBX_REGISTER_NUMBER): Handle 64-bit.
16242         (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit.
16243         (LONG_TYPE_SIZE): Force to 32.
16244         (REG_PARM_STACK_SPACE): New.
16245         (OUTGOING_REG_PARM_STACK_SPACE): New.
16246         (REGPARM_MAX, SSE_REGPARM_MAX): New.
16247         (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
16248         (STACK_BOUNDARY): Use 128 for 64-bit.
16249         * config/i386/cygwin.asm: Use push/ret to preserve call stack.
16250         Add 64-bit implementation.
16251         * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor
16252         argument unused.
16253         * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New.
16254         (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI.
16255         Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm
16256         for 64-bit; use TARGET_SUBTARGET64_DEFAULT.
16257         (ix86_handle_cconv_attribute): Don't warn when ignoring if
16258         TARGET_64BIT_MS_ABI.
16259         (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI.
16260         (ix86_pass_by_reference): Likewise.
16261         (ix86_function_value_regno_p): Likewise.
16262         (ix86_build_builtin_va_list): Likewise.
16263         (ix86_va_start, ix86_gimplify_va_arg): Likewise.
16264         (function_arg_advance_ms_64): New.
16265         (function_arg_advance): Call it.
16266         (function_arg_ms_64): New.
16267         (function_arg): Call it.
16268         (function_value_ms_64): New.
16269         (ix86_function_value_1): Call it.
16270         (return_in_memory_ms_64): New.
16271         (ix86_return_in_memory): Call it.
16272         (setup_incoming_varargs_ms_64): New.
16273         (ix86_setup_incoming_varargs): Call it.
16274         (ix86_expand_prologue): Handle 64-bit stack probing.
16275         (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI.
16276         (output_pic_addr_const): Likewise.
16277         (x86_this_parameter): Likewise.
16278         (x86_output_mi_thunk): Likewise.
16279         (x86_function_profiler): Likewise.
16280         (TARGET_STRICT_ARGUMENT_NAMING): New.
16281         * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New.
16282         (TARGET_64BIT_MS_ABI): New.
16283         (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI.
16284         * config/i386/i386.md (allocate_stack_worker): Remove.
16285         (allocate_stack_worker_32): Rename from allocate_stack_worker_1;
16286         describe the clobber of eax without a match_scratch.
16287         (allocate_stack_worker_postreload): Remove.
16288         (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64;
16289         describe the clobbers of rax, r10, r11 properly; use __chkstk symbol.
16290         (allocate_stack_worker_rex64_postreload): Remove.
16291         (allocate_stack): Handle 64-bit.
16292         * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove.
16293         * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit.
16294         (EXTRA_OS_CPP_BUILTINS): Handle 64-bit.
16295         (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT.
16296         (STANDARD_STARTFILE_PREFIX_1): Likewise.
16297         * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New.
16298         * config.build (x86_64-*-mingw*): New host.
16299         * config.host (x86_64-*-mingw*): New host.
16300         * config.gcc (x86_64-*-mingw*): New target.
16301         * gthr-win32.h (__gthread_key_create): Mark dtor unused.
16302
16303 2007-03-30  Richard Henderson  <rth@redhat.com>
16304             Kai Tietz  <kai.tietz@onevision.com>
16305
16306         * c-pragma.c (struct def_pragma_macro_value): New.
16307         (struct def_pragma_macro): New.
16308         (pushed_macro_table): New.
16309         (dpm_hash, dpm_eq): New.
16310         (handle_pragma_push_macro, handle_pragma_pop_macro): New.
16311         (init_pragma): Install them.
16312         * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
16313
16314 2007-03-30  Anatoly Sokolov <aesok@post.ru>
16315
16316         * config/avr/avr.c (avr_override_options): Clear
16317         'flag_delete_null_pointer_checks'.
16318
16319 2007-03-30  Paolo Carlini  <pcarlini@suse.de>
16320
16321         PR c++/26099
16322         * c-common.h (enum rid): Add RID_HAS_NOTHROW_ASSIGN,
16323         RID_HAS_NOTHROW_CONSTRUCTOR, RID_HAS_NOTHROW_COPY,
16324         RID_HAS_TRIVIAL_ASSIGN, RID_HAS_TRIVIAL_CONSTRUCTOR,
16325         RID_HAS_TRIVIAL_COPY, RID_HAS_TRIVIAL_DESTRUCTOR,
16326         RID_HAS_VIRTUAL_DESTRUCTOR, RID_IS_ABSTRACT, RID_IS_BASE_OF,
16327         RID_IS_CONVERTIBLE_TO, RID_IS_CLASS, RID_IS_EMPTY, RID_IS_ENUM,
16328         RID_IS_POD, RID_IS_POLYMORPHIC, RID_IS_UNION, as
16329         C++ extensions.
16330         * doc/extend.texi (Extensions to the C++ Language): Add Type Traits.
16331
16332 2007-03-30  Steven Bosscher  <steven@gcc.gnu.org>
16333
16334         * regmove.c: Move all of pass_stack_adjustments from here...
16335         * combine-stack-adj.c: ...to this new file.
16336         * Makefile.in: Add rules for combine-stack-adj.o.
16337
16338 2007-03-30  Zdenek Dvorak  <dvorakz@suse.cz>
16339
16340         PR tree-optimization/31383
16341         * tree-data-ref.c (affine_function_equal_p): Do not require the
16342         vectors to have the same length.
16343
16344 2007-03-30  Jan Hubicka  <jh@suse.cz>
16345
16346         PR middle-end/30700
16347         * dwarf2out.c (reference_to_unused): Ask cgraph for functions
16348         availablility; add more sanity checking; ask varpool only about
16349         VAR_DECL.
16350
16351 2007-03-29  Richard Henderson  <rth@redhat.com>
16352
16353         * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
16354         to decide, but __SIZEOF_LONG_LONG__.
16355
16356 2007-03-29  Richard Henderson  <rth@redhat.com>
16357
16358         * emutls.c (struct __emutls_array): New.
16359         (emutls_destroy): Use it instead of casting element 0 from void*.
16360         (__emutls_get_address): Likewise.
16361
16362 2007-03-29  Richard Henderson  <rth@redhat.com>
16363
16364         * varasm.c (initializer_constant_valid_p): Don't deny
16365         DECL_DLLIMPORT_P on functions.
16366
16367         * config/i386/cygming.h: Remove function declarations.
16368         (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
16369         (ASM_OUTPUT_LABELREF): Remove.
16370         (COMMON_ASM_OP): Remove.
16371         (ASM_OUTPUT_COMMON): Remove.
16372         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
16373         (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
16374         (ASM_DECLARE_FUNCTION_NAME): Likewise.
16375         * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
16376         Rename from TARGET_ENCODE_SECTION_INFO.
16377         * config/i386/netware.h: Likewise.
16378         * config/i386/i386-protos.h: Update.
16379         * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
16380         of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
16381         (legitimate_constant_p): Reject dllimports.
16382         (dllimport_map, get_dllimport_decl): New.
16383         (legitimize_dllimport_symbol): New.
16384         (legitimize_address, ix86_expand_move): Use it.
16385         (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
16386         * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
16387         (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
16388         (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
16389         * config/i386/predicates.md (constant_call_address_operand): Only
16390         accept symbols; reject dllimport_p symbols.
16391         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
16392         i386_pe_maybe_record_exported_symbol.
16393         * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
16394         (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
16395         (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
16396         trust the setting of DECL_DLLIMPORT_P.
16397         (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
16398         (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
16399         (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
16400         tidy the argument scanning loop.
16401         (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
16402         SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
16403         (i386_pe_strip_name_encoding): Remove.
16404         (i386_pe_binds_local_p): New.
16405         (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
16406         (i386_pe_output_labelref): Remove.
16407         (i386_pe_asm_output_aligned_decl_common): New.
16408         (i386_pe_maybe_record_exported_symbol): Rename from
16409         i386_pe_record_exported_symbol; check for dllexported symbols.
16410
16411 2007-03-29  Zack Weinberg  <zack@mrtock.ucsd.edu>
16412
16413         * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
16414         add comment explaining why vsnprintf cannot be used.
16415
16416 2007-03-29  Douglas Gregor  <doug.gregor@gmail.com>
16417
16418         PR tree-optimization/30666
16419         * tree.c (build_complex_type): When creating type names for DWARF2
16420         debug info, create TYPE_DECLs for TYPE_NAME instead of
16421         IDENTIFIER_NODEs.
16422         (build_common_tree_nodes_2): Use build_complex_type when building
16423         predefined complex types, to preserve canonical types.
16424
16425 2007-03-29  Steven Bosscher  <steven@gcc.gnu.org>
16426
16427         * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
16428         (noce_get_alt_condition): Look at it to determine whether to
16429         reverse the condition or not.
16430         (noce_get_condition): Substitute the truth for lies.
16431         (noce_find_if_block): Set the then_else_reversed field.
16432
16433 2007-03-29  Lars Poeschel <larsi@wh2.tu-dresden.de>
16434
16435         * config/fr30/fr30.md (movdi): Do not accept immediates as the
16436         destination of this insn.
16437         * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
16438         than calling gen_rtx_SET directly.  Use r0 to hold the value of
16439         'address + 4' rather than a stack based temporary which can be
16440         mis-optimized away.
16441
16442 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
16443
16444         * config/s390/s390.c (s390_secondary_input_reload_class,
16445         s390_secondary_output_reload_class): Functions removed.
16446         (s390_secondary_reload): New function.
16447         (TARGET_SECONDARY_RELOAD): Target macro defined.
16448         * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
16449         SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
16450         * config/s390/s390.md ("reload_outti", "reload_outdi",
16451         "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
16452         "reload_out<mode>"): Expanders removed.
16453         ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
16454         "reload<mode>_nonoffmem_out"): Expanders added.
16455
16456 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
16457
16458         * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair
16459         action if SRC->DEST replacement failed anyway.
16460
16461 2007-03-28  Mike Stump  <mrs@apple.com>
16462
16463         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
16464         * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
16465         * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
16466
16467 2007-03-28  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
16468
16469         * config.gcc: Accept barcelona as a variant of amdfam10.
16470         * config/i386/i386.c (override_options): Likewise.
16471         * doc/invoke.texi: Likewise.
16472
16473 2007-03-28  Eric Botcazou  <ebotcazou@adacore.com>
16474
16475         * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
16476         offsets for BIT_FIELD_REF and COMPONENT_REF.
16477
16478 2007-03-28  Richard Guenther  <rguenther@suse.de>
16479
16480         * tree.c (is_global_var): Move ...
16481         * tree-flow-inline.h (is_global_var): ... here.
16482         * tree.h (is_global_var): Remove declaration.
16483
16484 2007-03-28  Uros Bizjak  <ubizjak@gmail.com>
16485
16486         * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
16487         option.
16488         (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
16489         * config/i386/i386.c (ix86_tune_features): Initialize new
16490         tuning option.
16491         * config/i386/predicates.md (promotable_binary_operator): Use
16492         TARGET_TUNE_PROMOTE_HIMODE_IMUL.
16493
16494 2007-03-28  Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
16495
16496         PR target/31380
16497         * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
16498
16499 2007-03-28  Lars Poeschel <larsi@wh2.tu-dresden.de>
16500
16501         * config/fr30/fr30.md (movsi_internal): Change destination
16502         constraint from m to V and add m to the end.
16503
16504 2007-03-28  Christian Bruel  <christian.bruel@st.com>
16505
16506         * config/sh/sh.md (movsi_i): Fix type attribute.
16507
16508 2007-03-28  Christian Bruel  <christian.bruel@st.com>
16509
16510         * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
16511         (movsf_ie): Likewise.
16512
16513 2007-03-28  Christian Bruel  <christian.bruel@st.com>
16514
16515         * config.gcc: Add sh4-300 to multilib.
16516         * config/sh/t-mlib-sh4-300: New file.
16517
16518 2007-03-28  Andreas Krebbel  <krebbel1@de.ibm.com>
16519
16520         * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
16521         ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
16522         fix_trunc<mode>di2.
16523         ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use
16524         fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
16525         ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
16526         "fixuns_trunctddi2"): Whitespace fix.
16527
16528 2007-03-28  Kaz Kojima  <kkojima@gcc.gnu.org>
16529
16530         * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
16531         the definition of struct sh_args.
16532         (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
16533         CALL_COOKIE_INT_REG_GET): Likewise.
16534
16535 2007-03-28  Steven Bosscher  <steven@gcc.gnu.org>
16536
16537         * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
16538         transformations are applied successfully.
16539
16540 2007-03-27  Douglas Gregor  <doug.gregor@gmail.com>
16541
16542         * tree.c (tree_contains_struct): Permit 512 tree codes.
16543         * tree.h (tree_contains_struct): Ditto.
16544         (MAX_TREE_CODES): Ditto.
16545         (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
16546         SPARE member to store remaining padding bits.
16547
16548 2007-03-27  Anatoly Sokolov <aesok@post.ru>
16549
16550         * config/avr/avr.c (avr_mcu_types): Move at90usb82 device to 'avr4'
16551         architecture.
16552
16553 2007-03-27  Janis Johnson  <janis187@us.ibm.com>
16554
16555         * configure.ac: Fix assembler test for powerpc*-linux decimal float.
16556         * configure: Regenerate.
16557
16558         * configure: Regenerate using the correct version of autoconf.
16559
16560 2007-03-27  Anatoly Sokolov  <aesok@post.ru>
16561
16562         * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
16563         pointer regs.
16564         * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
16565         regs to "__SP_L__" and "__SP_H__".
16566
16567 2007-03-27  Richard Guenther  <rguenther@suse.de>
16568
16569         * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
16570         computations with it with a HOST_WIDE_INT variable.
16571
16572 2007-03-26  Mike Stump  <mrs@apple.com>
16573
16574         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Add
16575         objective-c-header, objective-c++-header and objc++-cpp-output
16576         support.
16577         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
16578
16579 2007-03-26  Richard Henderson  <rth@redhat.com>
16580
16581         PR target/31361
16582         * config/i386/i386.c (IX86_BUILTIN_PSLLDQ128, IX86_BUILTIN_PSLLW128,
16583         IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128, IX86_BUILTIN_PSRAW128,
16584         IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128, IX86_BUILTIN_PSRLD128,
16585         IX86_BUILTIN_PSRLQ128): New.
16586         (ix86_init_mmx_sse_builtins): Add them.
16587         (ix86_expand_builtin): Expand them.
16588         * config/i386/sse.md (ashr<mode>3, lshr<mode>3, ashl<mode>3): Make
16589         operand 2 be TImode.
16590         * config/i386/emmintrin.h (_mm_slli_epi64, _mm_srai_epi16,
16591         _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
16592         _mm_srli_epi64): Mark __B const.
16593         (_mm_srli_si128, _mm_srli_si128): Fix disabled inline versions.
16594         (_mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64, _mm_sra_epi16,
16595         _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32, _mm_srl_epi64): Use
16596         new two-vector shift builtins.
16597
16598 2007-03-26  Ian Lance Taylor  <iant@google.com>
16599
16600         PR tree-optimization/31345
16601         * tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
16602         [+INF, +INF(OVF)] into VARYING.
16603
16604 2007-03-26  Zack Weinberg  <zackw@panix.com>
16605
16606         * gengtype-parse.c: New file.
16607         * gengtype-yacc.y: Delete.
16608         * gengtype-lex.l: Don't include gengtype-yacc.h.
16609         Define YY_DECL and yyterminate appropriately for recursive
16610         descent parser.  yylval is now a string out-parameter to yylex.
16611         (HWS, EOID): New shorthand.
16612         (IWORD): Add a couple more types.
16613         (yylex): Add a setup stanza.  Remove the complex rules for
16614         detecting GTY'ed types and typedefs; replace with simple
16615         keyword detectors.  Adjust everything for the changed
16616         definition of yylval.  Ignore all pp-directives, not just #define.
16617         (yyerror): Delete.
16618         (parse_file): Rename yybegin; do not call yyparse.
16619         (yyend): New.
16620         * gengtype.c (xasprintf): Export again.
16621         (this_file): New.  Use everywhere __FILE__ was being used.
16622         (get_lang_bitmap): Special case types defined in gengtype.c.
16623         (do_typedef, new_structure): Suppress definition of certain types.
16624         (new_structure): Improve diagnostics of duplicate definitions.
16625         Make sure location_s is associated with input.h.
16626         (nreverse_pairs, define_location_structures): New functions.
16627         (main): Improve tagging of kludge types.  Remove old kludges
16628         for input.h types; use define_location_structures.
16629         * gengtype.h: Update prototypes.  Define token codes here.
16630         * Makefile.in: Remove all references to gengtype-yacc.
16631         Add rules for gengtype-parse.o.  Adjust rules for gengtype-lex.o
16632         and gengtype.
16633         * bitmap.h (struct bitmap_head_def): Coalesce definitions,
16634         add GTY((skip)) to the field that's only conditionally there.
16635         * doc/install.texi: Document that Bison is no longer required
16636         unless building treelang.
16637
16638         * gengtype.c: Don't include gtyp-gen.h.
16639         (srcdir): Declare here.
16640         (base_files, lang_dir_names): Allocate dynamically.
16641         (gt_files, num_gt_files, num_lang_dirs): New globals.
16642         (measure_input_list, read_input_line, read_input_list)
16643         (set_lang_bitmap): New functions.
16644         (get_base_file_bitmap): Rename get_lang_bitmap and drastically
16645         simplify, relying on read_input_list to set up the bitmaps.
16646         (main): Arguments are no longer unused.  Check for correct number
16647         of command line arguments, set srcdir and srcdir_len, then call
16648         read_input_list, before doing anything else.  No need to worry
16649         about duplicates in main loop.
16650         * configure.ac: Simplify the calculation of all_gtfiles.
16651         Put language tags in there.  Don't set or substitute
16652         all_gtfiles_files_langs or all_gtfiles_files_frags.
16653         * Makefile.in: Revamp the way gengtype is invoked, now that it
16654         takes a file on its command line with a much simpler format.
16655         Remove or replace with gtyp-input.list all references to gtyp-gen.h.
16656         (GTFILES): Remove duplicates and C source files.
16657         * c-config-lang.in, cp/config-lang.in, objc/config-lang.in
16658         * objcp/config-lang.in: Add c-pragma.h to gtfiles.
16659         * configure: Regenerate.
16660
16661         * gengtype.h: Remove all type definitions to gengtype.c; leave
16662         only definitions of options_p, type_p, and pair_p as opaque
16663         pointers.  Update prototypes.
16664         * gengtype.c: Many type definitions moved here from gengtype.h.
16665         Consolidate type definitions at the top of the file.
16666         (xvasprintf): Delete.
16667         (xasprintf): Make static.
16668         (create_nested_pointer_option): Add 'next' parameter.
16669         (create_field_all, create_field_at): New functions.
16670         (create_field): Now a thin wrapper around create_field_all.
16671         (create_optional_field): Rename create_optional_field_ and add
16672         line argument.  Original name is now a macro which supplies
16673         __LINE__.
16674         (oprintf): Use vsnprintf directly.
16675         (close_output_files): Use fatal rather than perror/exit.
16676         (note_def_vec, note_def_vec_alloc): Use create_field_at.
16677         (main): Set progname.  Don't use exit.
16678         * gengtype-yacc.y (struct_fields): Use create_field_at.
16679         (option, optionseqopt): Delete.
16680         (optionseq): Consolidate productions from option here so we
16681         can use the first argument to create_option.
16682
16683         * gengtype-lex.l: Distinguish unions from structures in the
16684         token type.  Don't call find_structure; return the tag as a string.
16685         * gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and
16686         ENT_UNION.  Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is
16687         string.  Reorganize typedef_struct production accordingly.
16688         Use create_nested_ptr_option.
16689         * gengtype.c (create_nested_ptr_option): New function.
16690         * gengtype.h: Declare it.
16691
16692         * gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
16693         (string_type): Don't declare.
16694         (do_scalar_typedef): Declare.
16695         (create_scalar_type): Update prototype.
16696         * gengtype.c (string_type): Make static.
16697         (scalar_nonchar, scalar_char): New.
16698         (do_scalar_typedef): Export.  Always use scalar_nonchar for the type.
16699         (resolve_typedef): Use scalar_nonchar for error recovery.
16700         (create_scalar_type): Remove name_len field.  Return scalar_char
16701         or scalar_nonchar as appropriate.
16702         (adjust_field_type): Look at scalar_is_char boolean to decide whether
16703         to use string_type.
16704         (throughout): Use scalar_nonchar instead of calling
16705         create_scalar_type, whenever possible.
16706         (main): Initialize scalar_char and scalar_nonchar before calling
16707         gen_rtx_next.
16708         * gengtype-lex.l: Adjust for removal of second argument to
16709         create_scalar_type.  Use yylval.s instead of yylval.t when
16710         returning SCALAR.
16711         * gengtype-yacc.y: Type of SCALAR is string.  Call
16712         create_scalar_type from type:SCALAR rule.  Adjust for removal of
16713         second argument to create_scalar_type.
16714
16715         * vec.h: Remove all #if IN_GENGTYPE blocks.
16716         Add comment saying that changes may require adjustments to gengtype.
16717         * gengtype.c: Don't include coretypes.h or tm.h.
16718         Add comment to inclusion of errors.h.
16719         (note_def_vec, note_def_vec_alloc): New functions.
16720         * gengtype.h: Declare new functions.
16721         * gengtype-lex.l: Don't include coretypes.h.
16722         (YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
16723         Delete.
16724         (update_lineno): Remove unnecessary prototype.
16725         (DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
16726         (VEC rule): Just return VEC_TOKEN.
16727         * gengtype-yacc.y (VEC_TOKEN): New token type.
16728         (type): Add a production for VEC(a,b).
16729         * Makefile.in: Update dependencies.
16730
16731         * gengtype-lex.l: Remove rules for parsing pointer-to-function
16732         typedefs that use the old PARAMS macro.
16733
16734         * gengtype-lex.l: Remove all rules and states relating to yacc
16735         input files.
16736         * gengtype-yacc.y: Similarly.
16737         * gengtype.c (note_yacc_type): Delete function.
16738         * gengtype.h: Update prototypes.
16739
16740 2007-03-26  Joseph Myers  <joseph@codesourcery.com>
16741
16742         * tree-pretty-print.c (dump_generic_node): Report precision of
16743         unnamed integer types.
16744
16745 2007-03-26  Steven Bosscher  <steven@gcc.gnu.org>
16746
16747         * ifcvt.c (noce_try_store_flag_constants): Don't check
16748         no_new_pseudos here.
16749         (noce_try_store_flag_constants): Don't check no_new_pseudos.
16750         (noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
16751         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
16752         noce_try_sign_mask): Likewise.
16753         (if_convert): Check no_new_pseudos here.
16754
16755         (cond_exec_process_if_block, noce_process_if_block, find_if_block):
16756         Remove prototypes.
16757         (struct noce_if_info): Add then_bb, else_bb, join_bb members.
16758         (noce_get_condition): Handle new then_else_reversed argument.
16759         (noce_init_if_info): Remove, fold into noce_find_if_block.
16760         (noce_process_if_block): Take a struct noce_if_info as the
16761         argument.  Don't set up one based on ce_if_info.  Update pointer
16762         references accordingly.
16763         (cond_move_process_if_block): Likewise.
16764         (process_if_block): Removed.
16765         (find_if_block): Removed.  Move functionality two new functions,
16766         noce_find_if_block and cond_exec_find_if_block.
16767         (noce_find_if_block): New function.  Be aware of IF-THEN-JOIN
16768         blocks and the symmetric IF-ELSE-JOIN case.
16769         (cond_exec_find_if_block): Also new function mostly based on old
16770         find_if_block and process_if_block.
16771         (find_if_header): Replace find_if_block call with separately
16772         guarded calls to noce_find_if_block and cond_exec_find_if_block.
16773         (find_cond_trap): Update noce_get_condition call.
16774         (dead_or_predicable): Likewise.
16775
16776 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
16777
16778         * config/i386/i386.c (IX86_BUILTIN_CMPNEPD, IX86_BUILTIN_CMPNESD):
16779         Remove.
16780         (IX86_BUILTIN_PSLLW128, IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128,
16781         IX86_BUILTIN_PSRAW128, IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128,
16782         IX86_BUILTIN_PSRLD128, IX86_BUILTIN_PSRLQ128): Remove.
16783         (ix86_init_mmx_sse_builtins): Remove v8hi_ftype_v8hi_v2di and
16784         v4si_ftype_v4si_v2di.  Remove __builtin_ia32_psllw128,
16785         __builtin_ia32_pslld128, __builtin_ia32_psllq128,
16786         __builtin_ia32_psrlw128, __builtin_ia32_psrld128,
16787         __builtin_ia32_psrlq128, __builtin_ia32_psraw128 and
16788         __builtin_ia32_psrad128 builtins.
16789
16790 2007-03-26  Uros Bizjak  <ubizjak@gmail.com>
16791
16792         * reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
16793         * config/i386/constraints.md
16794         (define_constraint "I"): Use IN_RANGE macro.
16795         (define_constraint "J"): Ditto.
16796         (define_constraint "K"): Ditto.
16797         (define_constraint "M"): Ditto.
16798         (define_constraint "N"): Ditto.
16799         (define_constraint "O"): Ditto.
16800         * config/i386/predicates.md
16801         (define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
16802         (define_predicate "const_0_to_3_operand"): Ditto.
16803         (define_predicate "const_0_to_7_operand"): Ditto.
16804         (define_predicate "const_0_to_15_operand"): Ditto.
16805         (define_predicate "const_0_to_63_operand"): Ditto.
16806         (define_predicate "const_0_to_255_operand"): Ditto.
16807         (define_predicate "const_1_to_31_operand"): Ditto.
16808         (define_predicate "const_2_to_3_operand"): Ditto.
16809         (define_predicate "const_4_to_7_operand"): Ditto.
16810
16811 2007-03-25  David Edelsohn  <edelsohn@gnu.org>
16812
16813         * config/rs6000/rs6000.c (rs6000_emit_prologue): Always clobber LR
16814         in SImode for save_world.
16815         * config/rs6000/altivec.md (save_world, restore_world): Convert to
16816         LR hard reg.
16817
16818 2007-03-25  Dorit Nuzman  <dorit@il.ibm.com>
16819
16820         PR tree-optimization/30784
16821         * fold-const.c (fold_ternary): Handle CONSTRUCTOR in case
16822         BIT_FIELD_REF.
16823
16824 2007-03-25  Revital Eres  <eres@il.ibm.com>
16825
16826         * tree-if-conv.c (if_convertible_gimple_modify_stmt_p):
16827           Fold movement_possibility function into it.
16828
16829 2007-03-25  David Edelsohn  <edelsohn@gnu.org>
16830
16831         * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
16832         (load_macho_picbase_{si,di}): Convert to LR hard reg.
16833         (call_indirect_nonlocal_darwin64): Same.
16834         (call_nonlocal_darwin64): Same.
16835         (call_value_indirect_nonlocal_darwin64): Same.
16836         (call_value_nonlocal_darwin64): Same.
16837         (sibcall_nonlocal_darwin64): Same.
16838         (sibcall_value_nonlocal_darwin64): Same.
16839         (sibcall_symbolic_64): Same.
16840         (sibcall_value_symbolic_64): Same.
16841         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
16842         LR pseudo.
16843         (rs6000_emit_load_toc_table): Same.
16844         * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
16845         * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
16846         (mull_call): Same.
16847         (divss_call): Same.
16848         (divus_call): Same.
16849         (quoss_call): Same.
16850         (quous_call): Same.
16851         (load_toc_v4_pic_si): Same
16852         (load_toc_v4_PIC_1): Same.
16853         (load_toc_v4_PIC_1b): Same.
16854         (call_indirect_aix{32,64}): Same.
16855         (call_value_indirect_aix{32,64}): Same.
16856         (call): Same.
16857         (call_value): Same.
16858         (call_local{32,64}): Same.
16859         (call_value_local{32,64}): Same.
16860         (call_indirect_nonlocal_aix{32,64}): Same.
16861         (call_nonlocal_aix{32,64}): Same.
16862         (call_value_indirect_nonlocal_aix{32,64}): Same.
16863         (call_value_nonlocal_aix{32,64}): Same.
16864         (call_indirect_nonlocal_sysv<mode>): Same.
16865         (call_nonlocal_sysv<mode>): Same.
16866         (call_value_indirect_nonlocal_sysv<mode>): Same.
16867         (call_value_nonlocal_sysv<mode>): Same.
16868         (sibcall): Same.
16869         (sibcall_local{32,64}): Same.
16870         (sibcall_value_local{32,64}): Same.
16871         (sibcall_nonlocal_aix{32,64}): Same.
16872         (sibcall_value_nonlocal_aix{32,64}): Same.
16873         (sibcall_nonlocal_sysv<mode>): Same.
16874         (sibcall_value): Same.
16875         (sibcall_value_nonlocal_sysv<mode>): Same.
16876
16877 2007-03-24  Paul Brook  <paul@codesourcery.com>
16878
16879         * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
16880         * config/arm/linux-eabi.h: Remove legacy syscall hack.
16881
16882 2007-03-24  Richard Henderson  <rth@redhat.com>
16883
16884         * config/ia64/constraints.md: New file.
16885         * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
16886         satisfies_constraint_?.
16887         * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
16888         ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
16889         ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
16890         ia64_output_mi_thunk): Likewise.
16891         (ia64_const_ok_for_letter_p): Remove.
16892         (ia64_const_double_ok_for_letter_p): Remove.
16893         (ia64_extra_constraint): Remove.
16894         * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
16895         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
16896         CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
16897         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
16898         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
16899         EXTRA_MEMORY_CONSTRAINT): Remove.
16900         * config/ia64/ia64.md: Include constriants.md.  Replace
16901         CONST_OK_FOR_? with satisfies_constraint_?.
16902
16903 2007-03-23  Michael Meissner  <michael.meissner@amd.com>
16904             H.J. Lu  <hongjiu.lu@intel.com>
16905
16906         * config/dfp-bit.h (DPD_BID_NAME): New macro to give either the
16907         DPD or BID name.
16908         (name macros): Use DPD_BID_NAME to convert names properly.
16909
16910         * optabs.c (DECIMAL_PREFIX): Prefix string to use for the current
16911         decimal floating point format.
16912         (init_floating_libfuncs): Change decimal functions so that they
16913         have a "bid_" prefix if the decimal system uses the BID format,
16914         and "dpd_" prefix if the decimal system uses the DPD format.
16915         (init_interclass_conv_libfuncs): Ditto.
16916         (init_intraclass_conv_libfuncs): Ditto.
16917
16918         * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
16919         using the BID format.
16920
16921         * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
16922         whether we are using the BID decimal format.
16923         * configure: Regenerate.
16924
16925         * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
16926         the compiler has decimal floating point enabled.  Define
16927         __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
16928         instead of DPD.
16929
16930         * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
16931         using the BID format.
16932
16933         * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
16934         whether we are using the BID decimal format.
16935         * configure: Regenerate.
16936
16937         * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
16938         the compiler has decimal floating point enabled.  Define
16939         __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
16940         instead of DPD.
16941
16942         * doc/install.texi (--enable-decimal-float): Document BID and DPD
16943         options, and that it is enabled for i386/x86_64 systems.
16944
16945         * Makefile.in (enable_decimal_float): New.
16946         (DECNUMFMT): New.
16947         (DECNUMINC): Add  -I$(DECNUMFMT).
16948         (DECNUM_H): Mov decimal32.h, decimal64.h and decimal128.h
16949         to $(DECNUMFMT) from $(DECNUM).
16950
16951         * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
16952         Substitute enable_decimal_float.
16953         * configure: Regenerated.
16954
16955         PR other/30529
16956         * config/dfp-bit.c (__dec_byte_swap): Use uint32_t instead of
16957         unsigned long.
16958
16959         * configure.ac: Enable decimal float for x86_64-*-linux*.
16960         * configure: Regenerated.
16961
16962         PR other/30530
16963         * dfp.c (decimal_real_arithmetic): Use decimal128FlipSign and
16964         decimal128ClearSign to flip and clear the sign bit in decimal128.
16965         (decimal_real_maxval): Set decimal128SetSign to set the sign
16966         bit in decimal128.
16967
16968 2007-03-23  Ian Lance Taylor  <iant@google.com>
16969
16970         * fold-const.c (fold_binary): Correct warning for X - c >= X.
16971
16972 2007-03-23  Ian Lance Taylor  <iant@google.com>
16973
16974         * tree-dump.c (dump_files): Correct comment.
16975
16976 2007-03-23  Ian Lance Taylor  <iant@google.com>
16977
16978         * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
16979
16980 2007-03-23  Steven Bosscher  <steven@gcc.gnu.org>
16981
16982         * tracer.c (tracer): Don't take FLAGS argument.  Assert we are
16983         in cfglayout mode.  Don't go into and out of cfglayout mode.
16984         Link the blocks in the order of the constructed traces.
16985         (rest_of_handle_tracer): Adjust call to tracer.
16986         * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
16987         Don't go into cfglayout mode.
16988         (rtl_loop_done): Don't go out of cfglayout mode.
16989         * cfglayout.c (relink_block_chain): New function, split out from...
16990         (fixup_reorder_chain): ...here.  Remove redundant checking.
16991         (cfg_layout_finalize): Don't clear the header, footer, and aux
16992         fields here, move the code to do so to relink_block_chain.  Likewise
16993         for free_original_copy_tables.
16994         * rtl.h (tracer): Update prototype.
16995         * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
16996         Assert we are in cfglayout mode.  Don't go into and out of cfglayout
16997         mode.  Use relink_block_chain to serialize the CFG according to the
16998         new basic block order.  Move targetm.cannot_modify_jumps_p check from
16999         here...
17000         (gate_handle_reorder_blocks): ...to here.
17001         (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
17002         from here...
17003         (gate_duplicate_computed_gotos): ...to here.
17004         (rest_of_handle_reorder_blocks): Don't see if anything has changed,
17005         something always changes when going into and out of cfglayout mode.
17006         Perform an expensive cfg cleanup while going into cfglayout mode.
17007         Always update liveness information on HAVE_conditional_execution
17008         targets.  Reserialize the basic blocks and go out of cfglayout mode.
17009         * reg-stack.c: Include cfglayout.h.
17010         (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
17011         the call to reorder_basic_blocks.
17012         * basic-block.h (reorder_basic_blocks): Update prototype.
17013         (relink_block_chain): New prototype.
17014         * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
17015
17016 2007-03-23  Joseph Myers  <joseph@codesourcery.com>
17017
17018         * config/mips/mips.md (type, hazard, *movdi_32bit,
17019         *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
17020         *movhi_internal, *movqi_internal, *movsf_hardfloat,
17021         *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
17022         movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
17023         mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
17024         applicable.
17025         (movcc): Change first xfer to multi.
17026         * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
17027         config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
17028         config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
17029         config/mips/generic.md: Change reservations using "xfer" to use
17030         "mfc,mtc".
17031         * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
17032         using match_operand.
17033         (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
17034         * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
17035         examining mode.
17036         (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
17037
17038 2007-03-22  Richard Henderson  <rth@redhat.com>
17039
17040         * config/i386/i386.c: Remove unnecessary function declarations.
17041         Move targetm definition, and all related macros, to the end of
17042         the file.  Resort some functions to put definitions before uses.
17043         (ix86_attribute_table): Make static.  Move to end of file.
17044         (ix86_gimplify_va_arg): Make static.
17045
17046 2007-03-22  Richard Henderson  <rth@redhat.com>
17047
17048         * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
17049         don't increase local_regparm with force_align_arg_pointer check.
17050         (ix86_function_sseregparm): Assert 32-bit.
17051         (type_has_variadic_args_p): New.
17052         (ix86_return_pops_args): Early exit for 64-bit.  Reindent; use
17053         type_has_variadic_args_p.
17054         (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
17055         (init_cumulative_args): Remove TARGET_DEBUG_ARG.  Remove zero_cum;
17056         use memset instead.  Do maybe_vaarg check first; skip attribute
17057         tests if true; skip attribute tests for 64-bit.
17058         (construct_container): Remove TARGET_DEBUG_ARG.
17059         (function_arg_advance_32, function_arg_advance_64): Split out ...
17060         (function_arg_advance): ... from here.
17061         (function_arg_32, function_arg_64): Split out ...
17062         (function_arg): ... from here.
17063         (ix86_pass_by_reference): Tidy.
17064         (ix86_function_value_regno_p): Rearrange w/ switch on regno.
17065         (function_value_32): New, from parts of ix86_function_value
17066         and ix86_value_regno.
17067         (function_value_64): New, from parts of ix86_function_value
17068         and ix86_libcall_value.
17069         (ix86_function_value_1): New.
17070         (ix86_function_value, ix86_libcall_value): Use it.
17071         (return_in_memory_32, return_in_memory_64): Split out ...
17072         (ix86_return_in_memory): ... from here.
17073         (ix86_struct_value_rtx): Skip for 64-bit.
17074         (ix86_libcall_value, ix86_value_regno): Remove.
17075         (setup_incoming_varargs_64): Split out ...
17076         (ix86_setup_incoming_varargs): ... from here.
17077         (ix86_va_start): Remove TARGET_DEBUG_ARG.
17078         (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
17079         * config/i386/i386-protos.h (ix86_function_value): Remove.
17080         * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
17081
17082 2007-03-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17083
17084         PR other/23572
17085         * c-lex.c (interpret_float): On overflow, emit pedantic warning if
17086         infinities not supported, otherwise emit warning if -Woverflow. On
17087         underflow, emit warning if -Woverflow.
17088         * real.c (real_from_string): Return -1 if underflow, +1 if overflow
17089         and 0 otherwise.
17090         * real.h (real_from_string): Update declaration
17091
17092 2007-03-22  Kai Tietz  <kai.tietz@onevision.com>
17093             Richard Henderson  <rth@redhat.com>
17094
17095         * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
17096         * calls.c (compute_argument_block_size, expand_call,
17097         emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
17098         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
17099         * function.c (STACK_DYNAMIC_OFFSET): Likewise.
17100         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
17101         * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
17102         config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
17103         config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
17104         config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
17105         Set to 1.
17106
17107 2007-03-22  Joseph Myers  <joseph@codesourcery.com>
17108
17109         * c-incpath.c (add_sysroot_to_chain): New.
17110         (merge_include_chains): Add sysroot argument.  Call
17111         add_sysroot_to_chain if sysrooted.
17112         (register_include_chains): Update call to merge_include_chains.
17113         * doc/cppopts.texi: Document use of '=' in include directory
17114         arguments.
17115
17116 2007-03-22  Uros Bizjak  <ubizjak@gmail.com>
17117
17118         * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
17119         Macroize expander using SSEMODEF mode macro.  Use SSE_FLOAT_MODE_P.
17120         (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
17121         insn pattern using X87MODEF12 mode macro.
17122
17123 2007-03-21  Seongbae Park <seongbae.park@gmail.com>
17124
17125         * regmove.c (regmove_optimize): Use reg_mentioned_p
17126         instead of reg_overlap_mentioned_p for DST.
17127
17128 2007-03-21  Mike Stump  <mrs@apple.com>
17129
17130         * c.opt: Fixup for Objective-C/C++.
17131
17132 2007-03-21  Steve Ellcey  <sje@cup.hp.com>
17133
17134         * explow.c (convert_memory_address): Fold memory reference when
17135         POINTERS_EXTEND_UNSIGNED < 0
17136
17137 2007-03-21  Richard Henderson  <rth@redhat.com>
17138
17139         PR target/31245
17140         * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
17141         * config/i386/mmintrin.h (__m64): Likewise.
17142         * config/i386/xmmintrin.h (__m128): Likewise.
17143
17144 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
17145
17146         * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
17147         (VXWORKS_OS_CPP_BUILTINS): Define.
17148         * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
17149         (TARGET_OS_CPP_BUILTINS): ...here.  Use VXWORKS_OS_CPP_BUILTINS.
17150
17151 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
17152
17153         * rtl.h (constant_pool_reference_p): Delete.
17154         (find_constant_src): Declare.
17155         * rtlanal.c (find_constant_src): New function.
17156         * simplify-rtx.c (constant_pool_reference_p): Delete.
17157         * config/i386/i386.md: Use find_constant_src instead of
17158         constant_pool_reference_p/avoid_constant_pool_reference pairs.
17159
17160 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
17161
17162         * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
17163         * c-cppbuiltin.c (c_cpp_builtins): Define them.
17164
17165 2007-03-20  Mark Mitchell  <mark@codesourcery.com>
17166
17167         * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
17168         * config/arm/arm.c (arm_elf_asm_cdtor): New function.
17169         (arm_elf_asm_constructor): Use it.
17170         (arm_elf_asm_destructor): New function.
17171
17172 2007-03-20  Bernd Schmidt  <bernd.schmidt@analog.com>
17173
17174         * jump.c (mark_jump_label): Treat SEQUENCE specially.
17175
17176 2007-03-20  Nathan Sidwell  <nathan@codesourcery.com>
17177
17178         * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
17179
17180 2007-03-19  Andrew Haley  <aph@redhat.com>
17181
17182         PR tree-optimization/31264
17183         * tree-vrp.c (register_edge_assert_for_1): Don't look though
17184         VIEW_CONVERT_EXPRs.
17185
17186 2007-03-19  Paolo Bonzini  <bonzini@gnu.org>
17187
17188         PR rtl-optimization/30907
17189         * fwprop.c (forward_propagate_into): Never propagate inside a loop.
17190         (fwprop_init): Always call loop_optimizer_initialize.
17191         (fwprop_done): Always call loop_optimizer_finalize.
17192         (fwprop): We always have loop info now.
17193         (gate_fwprop_addr): Remove.
17194         (pass_fwprop_addr): Use gate_fwprop as gate.
17195
17196         PR rtl-optimization/30841
17197         * df-problems.c (df_ru_local_compute, df_rd_local_compute,
17198         df_chain_alloc): Call df_reorganize_refs unconditionally.
17199         * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
17200         refs_organized to refs_organized_size.
17201         (df_ref_create_structure): Use refs_organized_size instead of
17202         bitmap_size if refs had been organized, and keep refs_organized_size
17203         up-to-date.
17204         * df.h (struct df_ref_info): Change refs_organized to
17205         refs_organized_size.
17206         (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
17207         bitmap_size.
17208
17209 2007-03-19  Mark Mitchell  <mark@codesourcery.com>
17210
17211         * except.c (output_function_exception_table): Do not reference the
17212         EH personality routine for functions that do not require an
17213         exception table.
17214
17215 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
17216
17217         PR c/30762
17218         * c-typeck.c (convert_for_assignment): Call comptypes for
17219         RECORD_TYPE or UNION_TYPE.
17220
17221         PR inline-asm/30505
17222         * reload1.c (reload): Do invalid ASM checking after
17223         cleanup_subreg_operands.
17224
17225 2007-03-19  Jeff Law  <law@redhat.com>
17226
17227         * tree-cfg.c (find_taken_edge): Tighten conditions for
17228         optimizing computed gotos.
17229
17230 2007-03-19  Michael Matz  <matz@suse.de>
17231
17232         * builtins.c (expand_builtin_sync_operation,
17233         expand_builtin_compare_and_swap,
17234         expand_builtin_lock_test_and_set): Care for extending CONST_INTs
17235         correctly.
17236
17237         * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
17238         sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
17239         for operand 3.
17240
17241 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
17242
17243         * doc/tm.texi: Add brackets around the return type of
17244         TARGET_SECONDARY_RELOAD.
17245
17246 2007-03-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17247         Richard Guenther  <rguenther@suse.de>
17248
17249         PR tree-optimization/31254
17250         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
17251         Use handled_component_p () where appropriate.  Continue
17252         propagating into the rhs if we propagated into an INDIRECT_REF
17253         on the lhs.
17254
17255 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
17256
17257         * config/s390/s390.md (op_type attribute): RRR instruction type added.
17258         (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
17259         (xde, xdee): Mode attributes adjusted to support DFP modes.
17260         (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
17261         ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
17262         DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
17263         "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
17264         "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
17265         "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
17266         "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
17267         numbers.
17268         ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
17269         "movsf"): Insn definitions removed.
17270         ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
17271         "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
17272         "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
17273         definitions added.
17274         ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
17275         "reload_in<mode>", "reload_out<mode>"): Expander added.
17276         ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
17277         Expander removed.
17278
17279 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
17280
17281         * config/s390/s390.md: Only non-functional changes.  Renamed
17282         FPR mode macro to BFP all over the file.
17283
17284 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
17285
17286         * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
17287         (op_type attribute): RRF instruction type added.
17288         (fT0): New mode attribute.
17289         ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
17290         "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
17291         * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new
17292         instruction no secondary memory is needed when moving DFmode values
17293         between GPRs and FPRs.
17294
17295 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
17296
17297         * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
17298         inverted and documentation adjusted.
17299         ("mhard-dfp", "msoft-dfp"): New options.
17300         * config/s390/s390.c (s390_handle_arch_option): New architecture
17301         switch: z9-ec.
17302         (override_options): Sanity checks for the new options added.
17303         * config.gcc: New architecture switch: z9-ec.
17304         * config/s390/s390.h (processor_flags): PF_DFP added.
17305         (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
17306         (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
17307         when the bit is NOT set so remove it from the defaults.
17308
17309 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
17310
17311         * genemit.c (main): Print include statement for dfp.h.
17312         * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
17313         is not available.
17314
17315 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
17316
17317         * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
17318
17319 2007-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
17320
17321         PR target/31022
17322         * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
17323         instead of PATTERN.
17324
17325 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17326
17327         * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
17328         attr_length_call, output_call, output_indirect_call): Cleanup
17329         formatting of targetm calls.
17330
17331 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
17332
17333         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
17334
17335 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17336
17337         * pa.md: Add fpstore_load and store_fpload instruction types.  Provide
17338         reservation, bypass and anti-bypass descriptions for these
17339         instructions.  Update move patterns.
17340         * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
17341         TYPE_FPSTORE.
17342
17343 2007-03-18  Dorit Nuzman  <dorit@il.ibm.com>
17344
17345         * tree-vect-transform.c (get_initial_def_for_induction): Replace
17346         GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
17347         (get_initial_def_for_reduction): Likewise.
17348
17349 2007-03-16  Daniel Berlin  <dberlin@dberlin.org>
17350
17351         Fix PR tree-optimization/29922
17352         * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
17353         (get_representative): Removed.
17354         (value_dies_in_block_x): Update for rvuse removal.
17355         (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
17356         (compute_antic_aux): Handle when PHI nodes appear in
17357         non-single-successors.
17358         (dump_bitmap_of_names): Removed.
17359         (compute_antic_safe): Renamed and removed rvuse calculation.
17360         Calculate only antic safe.
17361         (insert_into_preds_of_block): Remove assert.
17362         (execute_pre): Update for renamed functions.
17363         (defer_or_phi_translate_block): New function.
17364
17365 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
17366
17367         * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
17368         config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
17369         typos.
17370         * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
17371         Follow spelling conventions.
17372
17373         * tree-data-ref.h: Remove the prototype for analyze_array.
17374
17375 2007-03-17  Dorit Nuzman  <dorit@il.ibm.com>
17376
17377         PR tree-optimization/31041
17378         * tree-vect-transform.c (get_initial_def_for_induction): Call
17379         force_gimple_operand.
17380
17381 2007-03-17  Olga Golovanevsky  <olga@il.ibm.com>
17382
17383         * ipa-type-escape.c (look_for_casts) : Revert code to use
17384         handled_component_p due to ada test a-numaux.adb.
17385
17386 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
17387
17388         * final.c (final_scan_insn): Alter the condition of a
17389         conditional trap if we have nonstandard CC.
17390
17391 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
17392
17393         * configure.ac: Remove excess quoting from asm line 0 test.
17394         * configure: Rebuilt.
17395
17396 2007-03-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17397
17398         * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
17399         * c-common.c (convert_and_check): Move warning logic to...
17400         (warnings_for_convert_and_check): ...here. Define.
17401         * c-common.h (warnings_for_convert_and_check): Declare.
17402
17403 2007-03-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17404
17405         * pa.c (attr_length_call): Partially revert change of 2007-03-09.
17406         (output_call): Likewise.
17407
17408 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
17409
17410         * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
17411
17412 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
17413
17414         * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
17415
17416 2007-03-16  Uros Bizjak  <ubizjak@gmail.com>
17417
17418         * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
17419         opteron, athlon-64 and athlon-fx processor_alias_table entries.
17420
17421 2007-03-16  Sebastian Pop  <sebastian.pop@inria.fr>
17422
17423         PR tree-optimization/31183
17424         * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
17425         Use double_int instead of unsigned int for representing access_strides.
17426         * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
17427
17428 2007-03-16  Richard Guenther  <rguenther@suse.de>
17429
17430         PR tree-optimization/31146
17431         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
17432         to allow recursion of forward_propagate_addr_expr.
17433         (forward_propagate_addr_into_variable_array_index): Likewise.
17434         (forward_propagate_addr_expr): Likewise.
17435         (tree_ssa_forward_propagate_single_use_vars): Likewise.
17436         (forward_propagate_addr_expr_1): Recurse on simple copies
17437         instead of propagating into them.  Do so for useless conversions
17438         as well.
17439         (forward_propagate_addr_expr): Clean up unused statements after
17440         recursion.
17441
17442 2007-03-16  Richard Guenther  <rguenther@suse.de>
17443
17444         * builtins.c (expand_builtin_cexpi): Use the right argument
17445         for the expansion via cexp.
17446
17447 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
17448
17449         * configure.ac: Don't require ELF binutils to tolerate # 0 "".
17450         * configure: Rebuilt.
17451
17452 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
17453
17454         PR debug/29906
17455         * dwarf2out.c (force_type_die): Adjust comment.
17456         (dwarf2out_imported_module_or_decl): Handle base AT_import types.
17457
17458 2007-03-15  DJ Delorie  <dj@redhat.com>
17459
17460         * config/frv/predicates.md (minmax_operator): Don't check operands
17461         here.
17462
17463 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
17464
17465         * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
17466         Update constant estimates of number of iterations.
17467         (record_nonwrapping_iv): Add "upper" argument.  "data_size_bounds_p"
17468         argument renamed to "realistic".
17469         (compute_estimated_nb_iterations): Removed.
17470         (record_niter_bound): New function.
17471         (idx_infer_loop_bounds): For possible but unlikely tail arrays,
17472         call record_nonwrapping_iv with upper = false.
17473         (infer_loop_bounds_from_signedness): Pass upper argument to
17474         record_nonwrapping_iv.
17475         (estimate_numbers_of_iterations_loop): Do not call
17476         compute_estimated_nb_iterations.  Record estimate based on profile
17477         information.  Initialize the constant estimates of number of
17478         iterations.
17479         * tree-data-ref.c (estimated_loop_iterations): Return the recorded
17480         estimates.
17481         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
17482         number of iterations is too small.
17483         * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
17484         (EST_NOT_AVAILABLE): Removed.
17485         (struct loop): Replace estimated_nb_iterations by any_upper_bound,
17486         nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
17487         fields.
17488
17489 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
17490
17491         * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
17492         Handle NE_EXPR guards.
17493
17494 2007-03-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17495
17496         PR c++/24924
17497         * c-opts.c (c_common_post_options): Handle C++ post-processing here.
17498         Set also -pedantic-errors by default for the  preprocessor unless
17499         -fpermissive is given.
17500
17501 2007-03-15  Richard Guenther  <rguenther@suse.de>
17502
17503         PR middle-end/29719
17504         PR middle-end/31161
17505         * builtins.c (expand_builtin_cexpi): As a fallback if we
17506         don't have builtins for sincos or cexp create a function
17507         declaration for cexp and expand to a call to that.
17508         (expand_builtin_int_roundingfn): Always fall
17509         back to floor/ceil and its variants even if they may be
17510         not available.
17511
17512 2007-03-15  Steven Bosscher  <steven@gcc.gnu.org>
17513
17514         PR middle-end/31159
17515         * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
17516         jump tables, move the call to delete_dead_jumptables from here...
17517         (cfg_layout_finalize): ...to here.  But rebuild jump labels first.
17518         * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
17519         don't allow merging of blocks that try_redirect_by_replacing_jump
17520         also does not handle when not optimizing.
17521
17522 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
17523             Francois-Xavier Coudert  <coudert@clipper.ens.fr>
17524
17525         * config/i386/i386.md (x86_sahf_1): Correctly handle
17526         HAVE_AS_IX86_SAHF.
17527
17528 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
17529
17530         PR target/31167
17531         * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
17532         x86_64_general_operand as operand[2] predicate.  Remove "iF"
17533         from operand constraints and use "e" constraint instead.
17534         (*subti3_1, *subti3_1 splitter): Ditto.
17535         (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
17536         operand[1] predicate.
17537
17538 2007-03-14  Sebastian Pop  <sebastian.pop@inria.fr>
17539
17540         * tree-loop-linear.c (gather_interchange_stats): For multidimensional
17541         arrays, multiply the access strides by the size of the sub-array.
17542         * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
17543
17544 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
17545
17546         * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
17547         the configured assembler supports the sahf mnemonic.
17548         * configure: Regenerate.
17549         * config.in: Regenerate.
17550
17551         * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
17552         emit "sahf" or ".byte\t0x9e" as asm template.
17553
17554 2007-03-14  Michael Meissner  <michael.meissner@amd.com>
17555
17556         PR 31018
17557         * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
17558         option to replace hard coded TARGET_xxx in md file.
17559         (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
17560         (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
17561         (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
17562         (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
17563         (X86_TUNE_NOT_UNPAIRABLE): Ditto.
17564         (X86_TUNE_NOT_VECTORMODE): Ditto.
17565         (TUNE_SHORTEN_X87_SSE): Use new tuning option.
17566         (TUNE_AVOID_VECTOR_DECODE): Ditto.
17567         (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
17568         (TUNE_SLOW_IMUL_IMM8): Ditto.
17569         (TUNE_MOVE_M1_VIA_OR): Ditto.
17570         (TUNE_NOT_UNPAIRABLE): Ditto.
17571         (TUNE_NOT_VECTORMODE): Ditto.
17572
17573         * config/i386/i386.c (ix86_tune_features): Fill in new tuning
17574         options.
17575
17576         * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
17577         tuning options instead of hard coded TARGET_xxx.
17578         (fix ssemode peephole2's): Ditto.
17579         (imul peephole2's): Ditto.
17580         (movsi_or): Ditto.
17581         (movdi_or_rex64): Ditto.
17582         (move peephole2): Ditto.
17583         (not peephole2's): Ditto.
17584
17585 2007-03-14  Dirk Mueller  <dmueller@suse.de>
17586
17587         * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
17588         * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
17589         * c-parser.c (c_parser_if_body): Always add an empty statement in case
17590         of empty body.
17591         * c-parser.c (c_parser_do_statement): Warn about empty body in
17592         do/while statement.
17593         * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
17594         * doc/invoke.texi (-Wempty-body): Update documentation.
17595
17596 2007-03-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17597
17598         PR c/21438
17599         * c-common.h (warn_for_div_by_zero): Declare.
17600         * c-common.c (warn_for_div_by_zero): Define.
17601         * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
17602         warning.
17603
17604 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
17605
17606         * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
17607         to PREFIX and STANDARD_PREFIX.
17608
17609 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
17610             Phil Edwards  <phil@codesourcery.com>
17611
17612         * gthr-vxworks.h: Add an extern "C" wrapper for C++.
17613         (__gthread_once_t): Remove busy field for RTPs.
17614         (__GTHREAD_ONCE_INIT): Update accordingly.
17615
17616 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
17617
17618         * doc/invoke.texi: Document VxWorks options.
17619
17620 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
17621
17622         * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
17623
17624 2007-03-13  Seongbae Park <seongbae.park@gmail.com>
17625
17626         PR tree-optimization/30590
17627         * tree-nrv.c (tree_nrv): Check for the partial update of the
17628         return value.
17629
17630 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
17631
17632         * flags.h (flag_random_seed): Remove declaration, in favor of...
17633         * toplev.h (get_random_seed, set_random_seed): ... these.
17634         * tree.c (get_file_function_name): Use the former.
17635         * opts.c (common_handle_option): Use the latter.
17636         * toplev.c
17637
17638 2007-03-13  Steven Bosscher  <steven@gcc.gnu.org>
17639
17640         PR middle-end/31127
17641         * cse.c (cse_find_path): Do not bail out if a basic block that
17642         we already visited now becomes part of a path that starts at a
17643         different basic block.  Just disallow this, to make sure we
17644         visit each basic block at most once.
17645
17646 2007-03-13  Jan Hubicka  <jh@suse.cz>
17647
17648         * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold
17649         attributes, when profile esitmate is present, calls with very low
17650         frequency are cold.
17651
17652 2007-03-13  Zdenek Dvorak  <dvorakz@suse.cz>
17653
17654         PR tree-optimization/30730
17655         PR tree-optimization/26900
17656         * tree-ssa-loop-niter.c: Include gmp.h.
17657         (bounds): New type.
17658         (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
17659         split_to_var_and_offset, determine_value_range,
17660         bound_difference_of_offsetted_base, refine_bounds_using_guard,
17661         bound_difference, bounds_add, bounds_negate,
17662         number_of_iterations_ne_max, dump_affine_iv): New functions.
17663         (number_of_iterations_ne, number_of_iterations_lt_to_ne,
17664         assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
17665         difference of initial and final value of control iv to validate
17666         results.
17667         (number_of_iterations_cond): Add loop parameter.  Determine bounds
17668         on the difference of the extremes of the control iv.  Add dumps.
17669         (expand_simple_operations): Handle phi nodes.
17670         (simplify_using_initial_conditions): Do not record used conditions.
17671         (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
17672         Do not set additional_info.
17673         (implies_nonnegative_p, implies_ge_p): Removed.
17674         (derive_constant_upper_bound): Do not use parameter `additional'.
17675         (record_estimate): Parameter `additional' removed.  Parameter
17676         `i_bound' added.  Do not call derive_constant_upper_bound.
17677         (record_nonwrapping_iv): Use derive_constant_upper_bound to
17678         bound the number of iterations estimate.
17679         (estimate_numbers_of_iterations_loop): Pass the estimate from
17680         the number of iterations analysis to record_estimate.
17681         * tree.h (multiple_of_p): Declare.
17682         * tree-scalar-evolution.c (expression_expensive_p): Removed.
17683         (scev_const_prop): Do not check expression_expensive_p.
17684         * fold-const.c (multiple_of_p): Exported.
17685         * double-int.c (double_int_mask): Exported.
17686         * double-int.h (double_int_mask): Declare.
17687         * tree-flow.h (struct tree_niter_desc): Removed additional_info
17688         field.  Added max field.
17689
17690 2007-03-13  David Taylor  <taylor@candd.org>
17691
17692         PR driver/12448:
17693         * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
17694         default -MQ.
17695
17696 2007-03-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17697
17698         PR target/31123
17699         * pa.md (vdepi_ior): Don't allow zero length deposit.  Likewise for
17700         two unamed patterns.
17701
17702 2007-03-13  Uros Bizjak  <ubizjak@gmail.com>
17703
17704         * config/i386/i386.opt (mcx16, msahf): New options.
17705         * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
17706         (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
17707
17708         * config/i386/driver-i386.c (bit_LAHF_LM): New define.
17709         (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
17710         Output -mcx16 and -msahf options when corresponding bit is set.
17711
17712         * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
17713         and -msahf options.
17714
17715 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
17716
17717         * configure.ac: Test for assembler tolerance to # 0 "".
17718         * configure, config.in: Rebuilt.
17719         * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
17720
17721 2007-03-13  Geoffrey Keating  <geoffk@apple.com>
17722
17723         * doc/invoke.texi (Spec Files): Update for '%{,' spec.
17724
17725         * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
17726         (handle_syscall): Handle direct system calls.
17727         * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
17728
17729 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
17730
17731         * doc/invoke.texi: Fix cpp.info cross-reference.
17732         * doc/passes.texi: Fix gcc.info cross-reference.
17733
17734 2007-03-12  Zdenek Dvorak  <dvorakz@suse.cz>
17735
17736         PR tree-optimization/30835
17737         * lambda-code.c (can_convert_to_perfect_nest): Check whether
17738         bb_for_stmt is not NULL before accessing it.
17739
17740 2007-03-12  Joseph Myers  <joseph@codesourcery.com>
17741
17742         * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
17743         some multilibs.
17744
17745 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
17746
17747         PR 30635
17748         * doc/install.texi: Document --enable-stage1-languages
17749
17750 2007-03-12  Steven Bosscher  <steven@gcc.gnu.org>
17751
17752         * tree-pass.h (pass_into_cfg_layout_mode,
17753         pass_outof_cfg_layout_mode): Declare.
17754         * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
17755         pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
17756         * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
17757         (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
17758
17759 2007-03-12  Seongbae Park <seongbae.park@gmail.com>
17760
17761         * c-decl.c (warn_variable_length_array): New function.
17762         Refactored from grokdeclarator to handle warn_vla
17763         and handle unnamed array case.
17764         (grokdeclarator): Refactored VLA warning case.
17765         * c.opt (Wvla): New flag.
17766         * doc/invoke.texi (Wvla): New warning.
17767
17768 2007-03-12  Richard Henderson  <rth@redhat.com>
17769
17770         * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
17771         (TARGET_SECTION_TYPE_FLAGS): New.
17772
17773 2007-03-12  Richard Henderson  <rth@redhat.com>
17774
17775         * config/darwin.c (machopic_reloc_rw_mask): New.
17776         * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
17777         * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
17778
17779 2007-03-12  Mark Mitchell  <mark@codesourcery.com>
17780
17781         * cppdefault.c (cpp_EXEC_PREFIX): New variable.
17782         * cppdefault.h (cpp_PREFIX): Document.
17783         (cpp_PREFIX_len): Likewise.
17784         (cpp_EXEC_PREFIX): New variable.
17785         * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
17786         * c-incpath.c (add_standard_paths): Correct logic for relocating
17787         paths within prefix.
17788
17789 2007-03-12  Uros Bizjak  <ubizjak@gmail.com>
17790
17791         * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
17792         fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
17793         mode macro.
17794         (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
17795         fix_truncdfdi_sse using SSEMODEF mode macro.
17796         (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
17797         fix_truncdfsi_sse using SSEMODEF mode macro.
17798         (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
17799         (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
17800
17801 2007-03-12  Richard Sandiford  <richard@codesourcery.com>
17802
17803         * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
17804         elfos.h to tm_file.
17805
17806 2007-03-12  Olga Golovanevsky  <olga@il.ibm.com>
17807
17808         * tree.h : Add multiple_of_p declaration.
17809         * fold-const.c (multiple_of_p): Make multiple_of_p public.
17810         * ipa-type-escape.c (results_of_malloc): Redundant.
17811         (visited_stmts): New. Visited stmt for walk_use_def_chains.
17812         (cast_type): Extended with new members.
17813         (check_cast): Returns cast_type.
17814         (cast): New structure for data of walk_use_def_chains.
17815         (is_malloc_result, is_cast_from_non_pointer_1,
17816         is_cast_from_non_pointer,
17817         is_array_access_through_pointer_and_index): New functions.
17818         (look_for_casts): Returns cast types.
17819         (check_call): Returns void.
17820         (okay_pointer_operation): Use support of pointer plus index,
17821         pointer plus constant and allow all multiplications.
17822
17823 2007-03-11  Richard Guenther  <rguenther@suse.de>
17824
17825         PR tree-optimization/31115
17826         * tree-vrp.c (extract_range_from_binary_expr): Make sure
17827         the shift count is positive and non-anti-range for RSHIFT_EXPR.
17828         A shift count of zero is not special as with *_DIV_EXPR.
17829         (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
17830         direction.
17831
17832 2007-03-11  Ian Lance Taylor  <iant@google.com>
17833
17834         * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
17835         the *_DIV_EXPR codes correctly with overflow infinities.
17836
17837 2007-03-11  Ira Rosen  <irar@il.ibm.com>
17838
17839         * tree-data-ref.c (analyze_offset): Add a return value (bool) to
17840         indicate success/failure of the analysis. Add negation to subtrahend
17841         in case of subtraction. Fail if both operands contain constants.
17842         (create_data_ref): Fail if analyze_offset fails.
17843
17844 2007-03-11  Uros Bizjak  <ubizjak@gmail.com>
17845
17846         * config/i386/i386.md (frndintxf2): Rename to ...
17847         (rintxf2): ... this. Remove expander having same name.
17848         (rintsf2, rintdf2): Implement using SSEMODEF macro.
17849         (roundsf2, rounddf2): Ditto.
17850         (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
17851         (lround<mode>di2, lround<mode>si2): Ditto.
17852
17853 2007-03-11  Steven Bosscher  <steven@gcc.gnu.org>
17854
17855         * lower-subreg.c: Include except.h.
17856         (decompose_multiword_subregs): Verify that the only control flow
17857         insns we can split are loads to multi-words pseudos.
17858         Handle breaking such blocks after splitting, instead of calling
17859         find_many_sub_basic_blocks.
17860
17861         * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
17862         on the new basic block.  Add a lengthy comment explaining why we
17863         thought this was necessary.
17864         * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
17865
17866 2007-03-10  Mark Mitchell  <mark@codesourcery.com>
17867
17868         PR c++/30924
17869         * tree.c (walk_type_fields): Recurse into the element type of
17870         ARRAY_TYPEs if there is a pointer set.
17871
17872 2007-03-10  Dirk Mueller  <dmueller@suse.de>
17873
17874         * c-common.c (warn_logical_operator): Fix condition.
17875
17876 2007-03-10  Tobias Schl�ter  <tobi@gcc.gnu.org>
17877
17878         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
17879         quotation mark.
17880         * config/darwin.c (machopic_select_section): Remove superfluous
17881         argument in call to categorize_decl_for_section.  Remove unused
17882         variable shlib.
17883
17884 2007-03-10  Joseph Myers  <joseph@codesourcery.com>
17885
17886         * configure.ac (glibc_header_dir): Set using with_build_sysroot if
17887         defined.
17888         * configure: Regenerate.
17889
17890 2007-03-10  Uros Bizjak  <ubizjak@gmail.com>
17891
17892         PR target/31101
17893         * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
17894         (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
17895         (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
17896         Add LABEL_NUSES to emitted label.
17897         * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
17898         branch probability value to emitted jump insn.
17899         * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
17900         Do not check life information and do not re-arrange input operands
17901         for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
17902
17903 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
17904
17905         * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
17906         the change of decode_asm_operands.
17907
17908 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
17909
17910         * mode-switching.c (create_pre_exit): Skip blockage insn.
17911
17912 2007-03-09  Diego Novillo  <dnovillo@redhat.com>
17913
17914         * tree-pass.h (TODO_update_smt_usage): Remove.
17915         Update all users.
17916         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
17917         argument SOME.
17918         Update all users.
17919
17920 2007-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17921
17922         * pa.c (attr_length_call): Revise condition for long
17923         pc-relative branch.
17924         (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long
17925         local calls on the SOM target.  Don't use "LONG_PIC_PCREL" call
17926         sequence on SOM target.
17927
17928 2007-03-09  Geoffrey Keating  <geoffk@apple.com>
17929
17930         * gcc.c: Document %{, in big comment at top.
17931         (input_suffix_matches): Remove special handling for .s and
17932         .S.
17933         (input_spec_matches): New.
17934         (handle_braces): Handle %{,.
17935         (validate_switches): ',' indicates a value which is not a switch.
17936         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
17937         to detect assembler input.
17938         * config/i386/sol2.h (CPP_SPEC): Likewise.
17939         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
17940         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17941         * config/rs6000/lynx.h (ASM_SPEC): Likewise.
17942         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
17943         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
17944         -m64 causes deployment target to default to 10.5.
17945         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
17946
17947 2007-03-09  Richard Henderson  <rth@redhat.com>
17948
17949         PR target/26090
17950         * target.h (targetm.asm.out.reloc_rw_mask): New.
17951         * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
17952         (TARGET_ASM_OUT): Use it.
17953         * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
17954         * varasm.c (categorize_decl_for_section): Remove shlib argument;
17955         use the new reloc_rw_mask target hook instead.
17956         (default_section_type_flags_1): Merge into...
17957         (default_section_type_flags): ... here.
17958         (decl_readonly_section_1): Merge into...
17959         (decl_readonly_section): ... here.
17960         (default_elf_select_section_1): Merge into...
17961         (default_elf_select_section): ... here.
17962         (default_unique_section_1): Merge into...
17963         (default_unique_section): ... here.
17964         (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
17965         (default_select_rtx_section): Use it.
17966         (default_elf_select_rtx_section): Likewise.
17967         * output.h: Update to match.
17968         * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
17969         * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
17970         (TARGET_ASM_RELOC_RW_MASK): New.
17971         * config/i386/i386.c (x86_64_elf_select_section): Adjust call
17972         to categorize_decl_for_section.
17973         (x86_64_elf_unique_section): Likewise.
17974         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
17975         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
17976         (TARGET_ASM_RELOC_RW_MASK): New.
17977         * config/ia64/ia64.c (ia64_rwreloc_select_section,
17978         ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
17979         (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
17980         (TARGET_RWRELOC): Remove.
17981         (ia64_section_type_flags): Adjust call to default_section_type_flags.
17982         * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
17983         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
17984         (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
17985         (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
17986         (rs6000_xcoff_select_section): Use decl_readonly_section.
17987         (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
17988         * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
17989         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
17990         (TARGET_SECTION_TYPE_FLAGS): Remove.
17991         * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
17992
17993 2007-03-09  Roger Sayle  <roger@eyesopen.com>
17994
17995         * fold-const.c (fold_comparison): Remove compile-time evaluation of
17996         complex constant equality/inequality comparisons for here.
17997         (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
17998         known at compile-time or can be simplified to a scalar comparison.
17999         (fold_relational_const): Move compile-time evaluation of complex
18000         constant equality/inequality comparisons to here.
18001
18002 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
18003
18004         PR rtl-optimization/30643
18005         * cse.c (cse_insn): Recompute dest_hash after insert_regs for
18006         dest_addr_elt.
18007         (fold_rtx): Recurse, like before 2006-11-03.
18008
18009 2007-03-09  DJ Delorie  <dj@redhat.com>
18010
18011         * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
18012         m32c-pragma.o.
18013
18014 2007-03-09  Aldy Hernandez  <aldyh@redhat.com>
18015
18016         PR tree-optimization/30375
18017         * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
18018         LHS of statements is not the same.
18019         * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
18020
18021 2007-03-09  Chao-ying Fu  <fu@mips.com>
18022
18023         * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
18024         REV 2.
18025         * doc/invoke.texi (-mdspr2): Document new option.
18026         * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
18027         New unspec for DSP REV 2.
18028         (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
18029         these instructions are extended in DSP REV 2.
18030         (mips-dspr2.md): Include.
18031         * config/mips/mips.opt (mdspr2): New option.
18032         * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
18033         MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
18034         MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
18035         (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
18036         (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
18037         (dsp_bdesc): Add DSP REV 2 builtins.  Remove 32-bit only DSP builtins.
18038         (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
18039         and 2 builtins.
18040         (bdesc_map): Add one field of unsupported_target_flags.
18041         (bdesc_arrays): Update entries to have extra fields.  Add
18042         dsp_32only_bdesc.
18043         (mips_init_builtins): Initialize new function types.
18044         Check unsupported_target_fileds to filter out builtins.
18045         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
18046         TARGET_DSPR2.
18047         (ASM_SPEC): Pass mdspr2 to the assembler.
18048         * config/mips/mips-dspr2.md: New file.
18049
18050 2007-03-09  Sa Liu  <saliu@de.ibm.com>
18051
18052         * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
18053
18054 2007-03-09  Ian Lance Taylor  <iant@google.com>
18055
18056         * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
18057         argument) like -Wstrict-overflow=2.
18058         * doc/invoke.texi (Warning Options): Update documentation.
18059
18060 2007-03-09  Dirk Mueller  <dmueller@suse.de>
18061
18062         PR c++/17946
18063         * doc/invoke.texi (-Wlogical-op): Document.
18064         * common.opt (-Wlogical-op): New.
18065         * c-common.h (warn_logical_operator): Declare.
18066         * c-common.c (warn_logical_operator): Define.
18067         * c-typeck.c (parser_build_binary_op): Call
18068         warn_logical_operator.
18069
18070 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
18071
18072         * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
18073         * final.c (final_scan_insn): Test for non-"" file name.
18074
18075 2007-03-09  Sebastian Pop  <sebastian.pop@inria.fr>
18076
18077         * doc/loop.texi: Document the Omega linear constraints solver.
18078         * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
18079         omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
18080         omega-hash-table-size, omega-max-keys, and
18081         omega-eliminate-redundant-constraints.
18082         * tree-pass.h (pass_check_data_deps): Declared.
18083         * omega.c: New.
18084         * omega.h: New.
18085         * timevar.def (TV_CHECK_DATA_DEPS): Declared.
18086         * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
18087         pass_check_data_deps): New.
18088         * tree-data-ref.c (init_data_ref): Remove declaration.
18089         (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
18090         (analyze_array): Renamed init_array_ref, move up initializations.
18091         (init_data_ref): Renamed init_pointer_ref.  Moved before its call.
18092         Removed arguments that are set to NULL.
18093         (analyze_indirect_ref): Correct indentation, correct call to
18094         init_pointer_ref.
18095         (object_analysis): Call init_array_ref instead of analyze_array.
18096         (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
18097         (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
18098         of DR_ACCESS_FNS_ADDR.
18099         (init_omega_eq_with_af, omega_extract_distance_vectors,
18100         omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
18101         ddr_consistent_p): New.
18102         (compute_affine_dependence): Check consistency of ddrs when
18103         flag_check_data_deps is passed.
18104         (analyze_all_data_dependences): Uncomment.
18105         (tree_check_data_deps): New.
18106         * tree-data-ref.h: Include omega.h.
18107         (DR_ACCESS_FNS_ADDR): Removed.
18108         (data_dependence_relation): Add inner_loop.
18109         (DDR_INNER_LOOP): New.
18110         * common.opt (fcheck-data-deps): New.
18111         * tree-flow.h (tree_check_data_deps): Declare.
18112         * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
18113         (OBJS-common): Depend on omega.o.
18114         (omega.o): Define.
18115         * passes.c (pass_check_data_deps): Scheduled.
18116         * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
18117         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
18118         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
18119         PARAM_VECT_MAX_VERSION_CHECKS,
18120         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
18121
18122 2007-03-09  Richard Guenther  <rguenther@suse.de>
18123
18124         PR tree-optimization/30904
18125         PR middle-end/31058
18126         * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
18127         the same way as *_DIV_EXPR.
18128
18129 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
18130
18131         * recog.c (decode_asm_operands): No mixed declarations and code.
18132
18133 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
18134
18135         * rtl.def (ASM_INPUT): Add location.
18136         * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
18137         (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
18138         (decode_asm_operands): Add loc operand.
18139         (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
18140         * stmt.c (expand_asm): Rename to...
18141         (expand_asm_loc): ... this.  Add locus argument.  Pass it on to
18142         gen_rtx_ASM_INPUT_loc.
18143         (expand_asm_expr): Adjust.
18144         * recog.c (decode_asm_operands): Add loc operand.
18145         (check_asm_operands, extract_insn): Adjust.
18146         * reload1.c (maybe_fix_stack_asms): Likewise.
18147         * final.c (asm_insn_count): Likewise.
18148         (final_scan_insn): Output # line before and after asm.
18149
18150 2007-03-09  Daniel Berlin  <dberlin@dberlin.org>
18151
18152         * tree-ssa-structalias.c (variable_info): Remove
18153         finished_solution.
18154         (new_var_info): Ditto.
18155         (shared_bitmap_info_t): New structure.
18156         (shared_bitmap_table): New variable.
18157         (shared_bitmap_hash): New function.
18158         (shared_bitmap_eq): Ditto
18159         (shared_bitmap_lookup): Ditto.
18160         (shared_bitmap_add): Ditto.
18161         (merge_smts_into): Change to take bitmap directly.
18162         (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
18163         (init_alias_vars): Init shared bitmap hashtable.
18164         (delete_points_to_sets): Delete shared bitmap hashtable.
18165         * tree-ssa-operands.c (add_virtual_operand): Partially revert the
18166         is_aliased removal as a change that was still necessary was
18167         deleted.
18168
18169 2007-03-09  Uros Bizjak  <ubizjak@gmail.com>
18170
18171         * config/i386/i386.h (override_options): Conditionally disable
18172         x86_sahf for 64bit targets only.
18173
18174 2007-03-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18175
18176         PR C/31072
18177         * c-decl.c (merge_decls): Don't call make_var_volatile.
18178         * varasm.c (make_var_volatile): Remove.
18179         * output.h (make_var_volatile): Remove.
18180
18181 2007-03-08  Zdenek Dvorak  <dvorakz@suse.cz>
18182
18183         PR tree-optimization/31085
18184         * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
18185
18186 2007-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18187
18188         * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
18189         llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
18190         ATTR_CONST_NOTHROW_LIST.
18191
18192         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
18193         FIX_TRUNC_EXPR.
18194
18195 2007-03-08  Diego Novillo  <dnovillo@redhat.com>
18196
18197         * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
18198
18199 2007-03-08  Geoffrey Keating  <geoffk@apple.com>
18200
18201         PR 31013
18202         * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
18203         is declared.
18204         * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
18205         passed, use shared libgcc.
18206
18207 2007-03-08  Roger Sayle  <roger@eyesopen.com>
18208
18209         * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
18210         instead of calling build2 with a GIMPLE_MODIFY_STMT.
18211         (honor_protect_cleanup_actions, lower_try_finally_switch):
18212         Likewise.
18213         * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
18214         ifc_temp_var): Likewise.
18215         * tree-inline.c (setup_one_parameter): Likewise.
18216         * tree-mudflap.c (mf_decl_cache_locals,
18217         mf_build_check_statement_for): Likewise.
18218         * tree-nested.c (init_tmp_var, save_tmp_var,
18219         finalize_nesting_tree_1): Likewise.
18220         * tree-outof-ssa.c (insert_copy_on_edge,
18221         insert_backedge_copies): Likewise.
18222         * tree-profile.c (tree_gen_edge_profiler,
18223         tree_gen_ic_profiler): Likewise.
18224         * tree-scalar-evolution.c (scev_const_prop): Likewise.
18225         * tree-sra.c (sra_build_assignment): Likewise.
18226         * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
18227         * tree-ssa-math-opts.c (insert_reciprocals,
18228         execute_cse_sincos_1): Likewise.
18229         * tree-tailcall.c (adjust_accumulator_values,
18230         adjust_return_value): Likewise.
18231         * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
18232         * tree-vect-transform.c (vect_create_data_ref_ptr,
18233         bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
18234         vect_create_epilog_for_reduction, vectorizable_reduction,
18235         vectorizable_call, vectorizable_conversion,
18236         vectorizable_assignment, vectorizable_operation,
18237         vectorizable_type_demotion, vect_gen_widened_results_half,
18238         vect_permute_store_chain, vectorizable_store,
18239         vect_setup_realignment, vect_permute_load_chain,
18240         vectorizable_load, vectorizable_condition,
18241         vect_create_cond_for_align_checks): Likewise.
18242         * tree-vrp.c (build_assert_expr_for): Likewise.
18243
18244 2007-03-08  Ian Lance Taylor  <iant@google.com>
18245
18246         * tree-vrp.c: Include "intl.h".
18247         (usable_range_p): New static function.
18248         (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
18249         overflowed values, juts set *strict_overflow_p.
18250         (compare_values): Only return -2 if one of the operands is not a
18251         constant.
18252         (compare_ranges): Call usable_range_p.
18253         (compare_range_with_value): Likewise.
18254         (vrp_evaluate_conditional_warnv): Rename from
18255         vrp_evaluate_conditional.  Make static.  Change all callers.
18256         (vrp_evaluate_conditional): New function.
18257         (simplify_div_or_mod_using_ranges): Issue warning about reliance
18258         on signed overflow.
18259         (simplify_abs_using_ranges): Likewise.
18260         (simplify_stmt_for_jump_threading): Add within_stmt parameter.
18261         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
18262         within_stmt parameter.
18263         * tree-ssa-propagate.c (fold_predicate_in): Update call to
18264         vrp_evaluate_conditional.
18265         * tree-ssa-threadedge.c
18266         (record_temporary_equivalences_from_stmts_at_dest): Change
18267         simplify parameter to take a second tree parameter.
18268         (simplify_control_stmt_condition): Likewise.
18269         (thread_across_edge): Likewise.
18270         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
18271         (thread_across_edge): Likewise.
18272         * Makefile.in (tree-vrp.o): Depend upon intl.h.
18273
18274 2007-03-08  Uros Bizjak  <ubizjak@gmail.com>
18275
18276         * config/i386/i386.h (TARGET_SAHF): New define.
18277         * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
18278         Also enable for m_K8, m_AMDFAM10 and m_CORE2.
18279         (x86_sahf): New global variable.
18280         (override_options): Add PTA_NO_SAHF to pta_flags enum.  Recode
18281         pta_flags masks using shifts.  Add PTA_NO_SAHF to x86_64 and
18282         nocona processor flags.  Set x86_sahf when PTA_NO_SAHF is not set
18283         in processor flags.  Do not unconditionally disable TARGET_USE_SAHF
18284         for 64-bit.
18285         (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
18286         (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
18287         when expanding fcomi/sahf based tests.
18288         (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
18289         expanding sahf based alternative. Emit sahf based sequence when
18290         optimizing for code size.
18291         * config/i386/i386.md (x86_sahf_1): Do not disable for
18292         TARGET_64BIT, enable for TARGET_SAHF.
18293
18294 2007-03-08  Martin Michlmayr  <tbm@cyrius.com>
18295
18296         * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
18297         spurious whitespace from error message.
18298
18299 2007-03-08  Volker Reichelt  <reichelt@netcologne.de>
18300
18301         PR c++/30852
18302         * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
18303
18304 2007-03-08  Alexandre Oliva  <aoliva@redhat.com>
18305
18306         * c-decl.c (grokdeclarator): Disable warnings for anonymous
18307         bitfields.
18308         * tree-sra.c (instantiate_element): Propagate disabled warnings
18309         from the element itself to the created variable.
18310
18311 2007-03-07  Richard Henderson  <rth@redhat.com>
18312
18313         PR target/30848
18314         * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
18315         silently fix up the stack in the case of a missing register.
18316
18317 2007-03-07  Paul Brook  <paul@codesourcery.com>
18318
18319         * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
18320
18321 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
18322
18323         * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
18324         New.
18325         (phase1_vrs): Use them.
18326         (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
18327         (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
18328         __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
18329         (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
18330         __gnu_Unwind_Restore_WMMXC if required.
18331         (_Unwind_VRS_Pop): Implement iWMMXt support.
18332         * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
18333         gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
18334         gnu_Unwind_Save_WMMXC): Define.
18335
18336 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
18337
18338         * config/vxworks.h (vxworks_override_options): Declare.
18339         (VXWORKS_OVERRIDE_OPTIONS): Use it.
18340         * config/vxworks.c: Include target.h and toplev.h.
18341         (vxworks_override_options): New function.
18342         * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
18343
18344 2007-03-07  Andreas Krebbel  <krebbel1@de.ibm.com>
18345
18346         * config/s390/s390.c (override_options): Don't emit an error when
18347         -mstack-size is used without providing -mstack-guard.
18348         (s390_emit_prologue): Choose stack_guard value automatically if not
18349         provided via command line.
18350         * doc/invoke.texi: Adjust description of -mstack-guard and
18351         -mstack-size.
18352
18353 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
18354
18355         * config/i386/i386.c (output_set_got): Add a GOT initialization
18356         sequence for VxWorks PIC.
18357         (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
18358         around labels as well as symbols.  Use gotoff_operand instead
18359         of local_symbolic_operand.
18360         (legitimize_pic_address): Use gotoff_operand instead of
18361         local_symbolic_operand.  Use @GOT accesses for labels as
18362         well as symbols.
18363         (ix86_output_addr_diff_elt): Use PC-relative rather than
18364         GP-relative offsets for VxWorks PIC.
18365         (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
18366         no_new_pseudos.  Check whether the returned register is op0.
18367         * config/i386/i386.md (tablejump): Use PC-relative rather than
18368         GP-relative offsets for VxWorks PIC.
18369         * config/i386/predicates.md (gotoff_operand): New predicate.
18370
18371 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
18372
18373         * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
18374         before defining.
18375         * config/vxworks-dummy.h: New file.
18376         * config/i386/i386.h: Include it.
18377
18378 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
18379
18380         * dwarf2out.c (is_inlined_entry_point): New
18381         (add_high_low_attributes): Emit DW_AT_entry_pc along with
18382         DW_AT_ranges if the first subblock is the entry point.
18383
18384 2007-03-06  David Daney  <ddaney@avtrex.com>
18385
18386         * doc/install.texi (mips-*-*): Change recommended binutils
18387         version.
18388
18389 2007-03-06  Anatoly Sokolov <aesok@post.ru>
18390
18391         * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
18392         ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
18393         devices.
18394         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
18395         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
18396
18397 2007-03-06  Jan Hubicka  <jh@suse.cz>
18398
18399         * errors.h (warning, error, fatal, internal_error): Mark as cold.
18400         * predict.c (maybe_hot_bb): Cold functions are never hot; hot
18401         functions are hot.
18402         (probably_cold_bb_p): Cold functions are cold.
18403         (probably_never_executed_bb_p): Cold functions are cold.
18404         (tree_bb_level_predictions): Predict calls to cold functions as not
18405         taken.
18406         (compute_function_frequency): Check hot/cold attributes.
18407         * function.h (function_frequency): Update comments.
18408         * predict.def (PRED_COLD_FUNCTION): Predict cold function.
18409         * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
18410         (c_common_att): Add cold and hot.
18411
18412         * doc/extend.texi (hot,cold attributes): Document.
18413
18414 2007-03-06  Andrew Haley  <aph@redhat.com>
18415
18416         * function.c (expand_function_end): Move blockage to just after we
18417         emit the label for the naked return from the function.
18418
18419 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
18420
18421         * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
18422         before redefining.
18423
18424 2007-03-06  Jan Hubicka  <jh@suse.cz>
18425
18426         * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
18427         loaded for constant large models.  Non-large 64bit PIC can do.
18428         * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
18429         * cmodel.h: Add LARGE PIC.
18430         * i386.md (UNSPEC_PLTOFF): New.
18431         (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other
18432         unspecs as needed.
18433         (*call_1_rex64): Disable for large models.
18434         (*call_1_rex64_large): New.
18435         (*call_value_1_rex64): Disable for large models.
18436         (*call_value_1_rex64_large): New.
18437         (set_rip_rex4): New.
18438         (set_got_offset_rex64): New.
18439         * predicates.md (constant_call_address_operand): For large model
18440         constant calls are not possible.
18441         * i386-protos.h (construct_plt_address): Declare.
18442         * i386.c (override_options): Accept large models.
18443         (ix86_expand_prologue): Expand large PIC GOT pointer load.
18444         (legitimate_constant_p): Add new UNSPECs.
18445         (legitimate_pic_operand_p): Likewise.
18446         (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
18447         (legitimize_pic_address): Do easy RIP relative way for TLS only for
18448         non-large model.
18449         (output_pic_addr_const): Add PLTOFF.
18450         (ix86_output_addr_diff_elt): Output 64bit tables when needed.
18451         (ix86_expand_move): Legitimize pic address when in PIC mode.
18452         (construct_plt_address): New function.
18453         (ix86_expand_call): Offload the address to register and use GOT
18454         pointer for large model.
18455         * invoke.texi (mcmodel=large): Update documentation.
18456
18457 2007-03-06  Richard Henderson  <rth@redhat.com>
18458
18459         * config/i386/i386.c (x86_use_leave, x86_push_memory,
18460         x86_zero_extend_with_and, x86_movx, x86_double_with_add,
18461         x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
18462         x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
18463         x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
18464         x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
18465         x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
18466         x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
18467         x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
18468         x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
18469         x86_partial_reg_dependency, x86_memory_mismatch_stall,
18470         x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
18471         x86_sse_partial_reg_dependency, x86_sse_split_regs,
18472         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
18473         x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
18474         x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
18475         x86_schedule, x86_use_bt, x86_pad_returns,
18476         x86_use_xchgb): Merge into ...
18477         (ix86_tune_features): ... here.  New array.
18478         (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
18479         x86_bswap): Merge into ...
18480         (ix86_arch_features): ... here.  New array.
18481         (x86_3dnow_a): Remove.
18482         (x86_accumulate_outgoing_args): Make static.
18483         (x86_arch_always_fancy_math_387): Make static.
18484         (ix86_tune_mask, ix86_arch_mask): Move ...
18485         (override_options): ... to local variables here.  Apply the
18486         appropriate mask to each element of ix86_arch_features and
18487         ix86_tune_features.  Adjust TARGET_CMOVE and TARGET_USE_SAHF
18488         as were done in the old macros.
18489         (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
18490         * config/i386/i386.h (x86_use_leave, x86_push_memory,
18491         x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
18492         x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
18493         x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
18494         x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
18495         x86_read_modify_write, x86_read_modify, x86_split_long_moves,
18496         x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
18497         x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
18498         x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
18499         x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
18500         x86_partial_reg_dependency, x86_memory_mismatch_stall,
18501         x86_accumulate_outgoing_args, x86_prologue_using_move,
18502         x86_epilogue_using_move, x86_decompose_lea,
18503         x86_arch_always_fancy_math_387, x86_shift1,
18504         x86_sse_partial_reg_dependency, x86_sse_split_regs,
18505         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
18506         x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
18507         x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
18508         x86_use_incdec, x86_pad_returns, x86_bswap,
18509         x86_partial_flag_reg_stall): Remove.
18510         (enum ix86_tune_indices): New.
18511         (ix86_tune_features): New.
18512         (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
18513         TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
18514         TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
18515         TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
18516         TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
18517         TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
18518         TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
18519         TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
18520         TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
18521         TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
18522         TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
18523         TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
18524         TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
18525         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
18526         TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
18527         TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
18528         TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
18529         TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
18530         TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
18531         TARGET_EXT_80387_CONSTANTS): Use it.
18532         (enum ix86_arch_indices): New.
18533         (ix86_arch_features): New.
18534         (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
18535         TARGET_BSWAP): Use it.
18536         (ix86_tune_mask, ix86_arch_mask): Remove.
18537
18538 2007-03-06  Joseph Myers  <joseph@codesourcery.com>
18539
18540         PR bootstrap/31020
18541         * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
18542         Define using $${sysroot_headers_suffix}.
18543         * configure: Regenerate.
18544         * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
18545         multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
18546         defined.
18547         * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
18548         * gcc.c (print_sysroot_headers_suffix): New.
18549         (option_map): Include --print-sysroot-headers-suffix.
18550         (display_help): Mention -print-sysroot-headers-suffix.
18551         (process_command): Handle -print-sysroot-headers-suffix.
18552         (do_spec_1): Append multilib directory to include-fixed path if
18553         sysroot suffixes in use.
18554         (main): Handle -print-sysroot-headers-suffix.
18555         * Makefile.in (start.encap): Don't depend on xlimits.h
18556         (xlimits.h): Remove.
18557         (stmp-int-hdrs): Don't depend on xlimits.h.  Inline generation of
18558         limits.h for each multilib in fixinc_list.
18559         (fixinc_list, s-fixinc_list): New.
18560         (stmp-fixinc): Depend on fixinc_list.  If not copying headers,
18561         generate them for each multilib in fixinc_list.
18562         (stmp-fixproto): Use include-fixed.  Run fixproto for each
18563         multilib in fixinc_list.
18564         (mostlyclean): Don't remove xlimits.h.
18565         (clean): Remove include-fixed.
18566         (real-install-headers-tar, real-install-headers-cpio,
18567         real-install-headers-cp): Don't copy include, only include-fixed.
18568         (install-mkheaders): Depend on fixinc_list.  Don't depend on
18569         xlimits.h.  Save limits.h files for each multilib in fixinc_list.
18570         Always save mkinstalldirs.  Preserve ${sysroot_headers_suffix} in
18571         SYSTEM_HEADER_DIR setting in mkheaders.conf.
18572
18573 2007-03-06  Jan Hubicka  <jh@suse.cz>
18574
18575         * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
18576         NANs easilly.
18577
18578 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
18579
18580         * configure.ac: Allow tm_file to contain build-directory files.
18581         * configure: Regenerate.
18582         * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
18583         * config/m68k/t-uclinux (sysroot-suffix.h): New target.
18584         * config/m68k/print-sysroot-suffix.sh: New file.
18585
18586 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
18587
18588         * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
18589         of pic_offset_table_rtx if reload_completed.
18590         (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
18591         PIC_OFFSET_TABLE_REGNUM.
18592         * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
18593         return true.
18594         (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
18595         (m68k_output_mi_thunk): Rewrite to use RTL.  Honor vcall_offset.
18596
18597 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
18598
18599         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
18600         functions that call eh_return.
18601
18602 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
18603
18604         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
18605         functions that need a constant pool.
18606
18607 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
18608
18609         PR target/28181
18610         * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
18611         (m68k_preferred_reload_class): Likewise.
18612         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
18613         (SECONDARY_RELOAD_CLASS): Define.
18614         (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
18615         (LIMIT_RELOAD_CLASS): Delete.
18616         * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
18617         registers from storing bytes.
18618         (m68k_secondary_reload_class): New function.
18619         (m68k_preferred_reload_class): Likewise.
18620
18621 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
18622
18623         * config/m68k/m68k.c (m68k_save_reg): Remove special case for
18624         leaf functions.
18625         (m68k_expand_prologue): Likewise.
18626
18627 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
18628
18629         * config/m68k/m68k-protos.h (output_sibcall): Declare.
18630         (mips_expand_epilogue): Add a bool parameter.
18631         (m68k_legitimize_sibcall_address): Declare.
18632         * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
18633         (m68k_expand_epilogue): Add a parameter to select between sibling
18634         and normal epilogues.  Only generate a return for the latter.
18635         (m68k_ok_for_sibcall_p): New function.
18636         (m68k_legitimize_sibcall_address, output_sibcall): New functions.
18637         * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
18638         (sibcall_value, *sibcall_value): Likewise.
18639         (*call, *call_value): Require !SIBLING_CALL_P.
18640         (epilogue): Update call to m68k_expand_epilogue.
18641         (sibcall_epilogue): New pattern.
18642         * config/m68k/predicates.md (const_call_operand): Say that this
18643         predicate applies to sibling calls too.
18644         (sibcall_operand): New predicate.
18645
18646 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
18647
18648         * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
18649         alternatives as movsi_cf.
18650         (movsf_cf_hard): Add commentary.
18651
18652 2007-03-06  Kazu Hirata  <kazu@codesourcery.com>
18653             Richard Sandiford  <richard@codesourcery.com>
18654
18655         * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
18656         (m68k_movem_pattern_p, m68k_output_movem): Likewise.
18657         (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
18658         * config/m68k/m68k.h (EPILOGUE_USES): Define.  Treat all registers
18659         as being live on exit from an interrupt function.
18660         (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
18661         * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
18662         (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
18663         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
18664         (m68k_interrupt_function_p): Globalize.
18665         (m68k_compute_frame_layout): Remove reverse mask code.
18666         (m68k_emit_movem, m68k_set_frame_related): New functions.
18667         (m68k_output_function_prologue): Delete in favor of...
18668         (m68k_expand_prologue): ...this new function.
18669         (m68k_output_function_epilogue): Delete in favor of...
18670         (m68k_expand_epilogue): ...this new function.
18671         (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
18672         functions.
18673         (print_operand): Handle %?.
18674         * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
18675         (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
18676         (prologue, epilogue): New patterns.
18677         (return): Turn into a define_expand.
18678         (*return): New pattern, derived from old "return" pattern.  Use rte
18679         rather than rts for interrupt functions.  Only use rtd if the pop
18680         count is nonzero.
18681         (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
18682         (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
18683         (link, *link, unlink, *unlink, load_got): Likewise.
18684
18685 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
18686
18687         PR target/23482
18688         PR target/17114
18689         * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
18690         (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
18691         (m68k_matches_q_p, m68k_matches_u_p): Likewise.
18692         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
18693         and m68k_matches_u_p.
18694         (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
18695         (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
18696         (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
18697         (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
18698         (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
18699         (REG_STRICT_P): New macro.
18700         (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
18701         PCREL_GENERAL_OPERAND_OK.
18702         (REG_OK_FOR_BASE_P): Merge definitions.  Use REG_STRICT_P and
18703         m68k_legitimate_base_reg_p.
18704         (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
18705         (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
18706         (PIC_CASE_VECTOR_ADDRESS): Update comment.
18707         * config/m68k/m68k.c (m68k_address): New structure.
18708         (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
18709         (m68k_decompose_index, m68k_legitimate_constant_address_p)
18710         (m68k_jump_table_ref_p, m68k_decompose_address)
18711         (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
18712         (m68k_matches_u_p): New functions.
18713         (print_operand_address): Rewrite to use m68k_decompose_index.
18714
18715 2007-03-05  David Taylor  <dtaylor@emc.com>
18716
18717         * gcc.c: Correct copyright date in --version output.
18718
18719 2007-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18720
18721         * pa.md: In unamed move patterns, disparge copies between general
18722         and floating point registers using '?' modifier.  Don't include 'f'
18723         constraint for register preferences in DImode, SImode, HImode and
18724         QImode patterns.  Likewise for 'r' in DFmode and SFmode patterns.
18725         Remove constraints for copies between general and floating registers
18726         in soft-float DFmode pattern.
18727         (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
18728         floating register.
18729         (movsf): Likewise.
18730
18731 2007-03-05  Mike Stump  <mrs@apple.com>
18732
18733         * c-common.c (targetcm): Add.
18734         * c-opts.c (c_common_handle_option): Handle language specific
18735         target options.
18736         * opts.c (handle_option): Verify language for target options, if
18737         any are given.
18738         * opth-gen.awk: Add CL_LANG_ALL.
18739         * target-def.h (TARGET_HANDLE_C_OPTION): Add.
18740         (TARGETCM_INITIALIZER): Add.
18741         * target.h (struct gcc_targetcm): Add.
18742         (targetcm): Add.
18743         * targhooks.c (default_handle_c_option): Add.
18744         * targhooks.h (default_handle_c_option): Add.
18745         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
18746
18747         * config/darwin.opt (iframework): Add.
18748         * config/darwin.h (TARGET_HAS_TARGETCM): Add.
18749         * config/darwin-c.c (handle_c_option): Add.
18750         (TARGET_HANDLE_C_OPTION): Add.
18751         (targetcm): Add.
18752         * doc/invoke.texi (Darwin Options): Add -iframework.
18753
18754 2007-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18755
18756         * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
18757         conversion.
18758
18759 2007-03-05  Ian Lance Taylor  <iant@google.com>
18760
18761         * c.opt (fgnu89-inline): New option.
18762         * c-opts.c (c_common_post_options): Set default value for
18763         flag_gnu89_inline.
18764         * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
18765         (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
18766         inline functions.
18767         (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
18768         (grokdeclarator, start_function): Likewise.
18769         * c-cppbuiltin.c (c_cpp_builtins): Define either
18770         __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
18771         * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
18772         (C Dialect Options): Document -fgnu89-inline.
18773         * doc/extend.texi (Function Attributes): Explain what the
18774         gnu_inline attribute does.
18775         * doc/cpp.texi (Common Predefined Macros): Document
18776         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
18777
18778 2007-03-05  Ian Lance Taylor  <iant@google.com>
18779
18780         PR tree-optimization/31034
18781         * tree-vrp.c (extract_range_from_assert): Don't try to handle a
18782         half-range if the other side is an overflow infinity.
18783
18784 2007-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
18785
18786         * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
18787         (bfin*-linux-uclibc*): New configuration.
18788         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
18789         defining.
18790         * config/bfin/linux.h: New file.
18791         * config/bfin/libgcc-bfin.ver: New file.
18792         * config/bfin/t-bfin-uclinux: New file.
18793         * config/bfin/t-bfin-linux: New file.
18794         * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
18795         (TARGET_OS_CPP_BUILTINS): New macro.
18796
18797 2007-03-05  Richard Guenther  <rguenther@suse.de>
18798
18799         * fold-const.c (fold_binary): Remove duplicate folding
18800         of comparison of non-null ADDR_EXPR against null.
18801
18802 2007-03-05  Richard Guenther  <rguenther@suse.de>
18803             Dorit Nuzman  <dorit@il.ibm.com>
18804
18805         PR tree-optimization/26420
18806         * tree-vectorizer.c (vectorize_loops): Bail out early if there
18807         are no loops in the function.  Only print the number of
18808         vectorized loops if it is greater than zero or we are supposed
18809         to print information about unvectorized loops.
18810
18811 2007-03-05  Revital Eres  <eres@il.ibm.com>
18812
18813         * gcc.dg/var-expand1.c: New test.
18814         * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
18815         when an accumulator is expanded.
18816
18817 2007-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18818
18819         PR other/30465
18820         * c-common.c (convert_and_check): Don't give warnings for
18821         conversion if 'expr' already overflowed.
18822
18823 2007-03-04  Roger Sayle  <roger@eyesopen.com>
18824
18825         PR middle-end/30744
18826         * fold-const.c (fold_comparison): Enforce type consistency when
18827         transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
18828
18829 2007-03-04  Zdenek Dvorak  <dvorakz@suse.cz>
18830
18831         * tree-ssa-address.c (create_mem_ref): Do not put an expression
18832         containing a cast to the base of TARGET_MEM_REF.
18833
18834 2007-03-04  Martin Michlmayr  <tbm@cyrius.com>
18835
18836         * tree.c (tree_contains_struct_check_failed): Remove spurious
18837         whitespace from error message.
18838
18839 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
18840
18841         PR target/30406
18842         * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
18843         instead of precision.
18844
18845 2007-03-04  Roman Zippel <zippel@linux-m68k.org>
18846             Nathan Sidwell  <nathan@codesourcery.com>
18847
18848         * emit-rtl.c (find_auto_inc): New.
18849         (try_split): recreate REG_INC notes,
18850         Use regular for loops rather than whiles.
18851
18852 2007-03-03  Andreas Schwab  <schwab@suse.de>
18853
18854         * configure.ac (HAVE_AS_REL16): Move test back to correct place.
18855         * configure: Regenerate.
18856
18857 2007-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18858
18859         * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
18860         flag_rounding_math, not flag_unsafe_math_optimizations.
18861
18862         * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
18863         fold_build2.
18864         * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
18865         alpha_fold_vector_minmax): Likewise.
18866         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
18867         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
18868
18869 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
18870
18871         * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
18872         (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
18873         if the lhs has side-effects.
18874         <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
18875
18876 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
18877
18878         * config/i386/i386.h (TUNEMASK): Remove define.
18879         (ARCHMASK): Remove define.
18880         (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
18881          Use ix86_arch_mask variable instead of ARCHMASK.
18882         * config/i386/i386.c (override_options): Ditto.
18883         (standard_80387_constant_p): Ditto.
18884
18885 2007-03-02  Ian Lance Taylor  <iant@google.com>
18886
18887         Used signed infinities in VRP.
18888         * tree-vrp.c (uses_overflow_infinity): New static function.
18889         (supports_overflow_infinity): New static function.
18890         (make_overflow_infinity): New static function.
18891         (negative_overflow_infinity): New static function.
18892         (positive_overflow_infinity): New static function.
18893         (is_negative_overflow_infinity): New static function.
18894         (is_positive_overflow_infinity): New static function.
18895         (is_overflow_infinity): New static function.
18896         (overflow_infinity_range_p): New static function.
18897         (compare_values_warnv): New function split out of compare_values.
18898         (compare_value): Call it.
18899         (set_value_range_to_nonnegative): Add overflow_infinity
18900         parameter.  Change caller.
18901         (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
18902         Change callers.
18903         (vrp_expr_computes_nonzero): Likewise.
18904         (compare_ranges, compare_range_with_value): Likewise.
18905         (compare_name_with_value, compare_names): Likewise.
18906         (vrp_evaluate_conditional): Likewise.
18907         (set_value_range): Handle infinity
18908         (vrp_operand_equal_p, operand_less_p): Likewise.
18909         (extract_range_from_assert): Likewise.
18910         (vrp_int_const_binop): Likewise.
18911         (extract_range_from_binary_expr): Likewise.
18912         (extract_range_from_unary_expr): Likewise.
18913         (extract_range_from_comparison): Likewise.
18914         (extract_range_from_expr): Likewise.
18915         (dump_value_range): Likewise.
18916         (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
18917         (test_for_singularity): Likewise.
18918         (vrp_int_const_binop): Remove inline qualifier.
18919         (adjust_range_with_scev): Add comment.
18920         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
18921
18922 2007-03-02  Diego Novillo  <dnovillo@redhat.com>
18923
18924         * tree-ssa-structalias.c (could_have_pointers): Tidy.
18925         (get_constraint_for): Likewise.
18926         (do_structure_copy): Likewise.
18927         (find_func_aliases): Fix references to MODIFY_EXPR.
18928         (intra_create_variable_infos): Tidy.
18929         * tree-ssa-operands.c (add_virtual_operand): Add argument
18930         IS_CALL_SITE.
18931         When adding members of alias sets, if IS_CALL_SITE is true and
18932         the symbol is not call-clobbered, skip it.
18933         Adjust all callers.
18934
18935 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
18936
18937         * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
18938         entry by means of emit_insn_at_entry.
18939
18940 2007-03-02  Richard Henderson  <rth@redhat.com>
18941
18942         * expr.h (promoted_input_arg): Remove decl.
18943         * function.c (promoted_input_arg): Merge into ...
18944         * combine.c (setup_incoming_promotions): ... only caller.
18945         Rearrange to avoid double loop.
18946
18947 2007-03-02  Ben Elliston  <bje@au.ibm.com>
18948             Peter Bergner  <bergner@vnet.ibm.com>
18949             Janis Johnson  <janis187@us.ibm.com>
18950
18951         * config/rs6000/dfp.md: New file.
18952         * config/rs6000/rs6000.md: Include dfp.md.
18953         (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
18954         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
18955         and TDmode decimal float modes in FP registers.
18956         (num_insns_constant): Likewise.
18957         (rs6000_legitimate_offset_address_p): Likewise.
18958         (rs6000_legitimize_address): Likewise.
18959         (rs6000_legitimize_reload_address): Likewise.
18960         (rs6000_legitimate_address): Likewise.
18961         (rs6000_emit_move): Likewise.
18962         (function_arg_boundary): Likewise.
18963         (function_arg_advance): Likewise.
18964         (rs6000_darwin64_record_arg_recurse): Likewise.
18965         (function_arg): Likewise.
18966         (rs6000_gimplify_va_arg): Likewise.
18967         (rs6000_split_multireg_move): Likewise.
18968         (rs6000_output_function_epilogue): Likewise.
18969         (rs6000_output_function_epilogue): Likewise.
18970         (rs6000_register_move_cost): Likewise.
18971         (rs6000_function_value): Likewise.
18972         (rs6000_libcall_value): Likewise.
18973
18974 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
18975
18976         * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
18977
18978 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
18979
18980         * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
18981         Use $MULTIDIR to choose between the kernel and RTP headers,
18982         and use $WIND_BASE and $WIND_USR to locate them.
18983
18984 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
18985
18986         * config/i386/i386.c (override_options): Put initialization of
18987         ix86_tune_mask and ix86_arch_mask to the correct place.
18988
18989 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
18990             Michael Meissner  <michael.meissner@amd.com>
18991
18992         PR target/31019
18993         * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
18994         (ARCHMASK): Define.
18995         (TARGET_CMOVE): Use ARCHMASK.
18996         (TARGET_CMPXCHG): Ditto.
18997         (TARGET_CMPXCHG8B): Ditto.
18998         (TARGET_XADD): Ditto.
18999         (TARGET_BSWAP): Ditto.
19000         * config/i386/i386.c (ix86_tune_mask): New global variable.
19001         (ix86_arch_mask): Ditto.
19002         (override_options): Initialize ix86_tune_mask and
19003         ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
19004         target_flags.
19005
19006 2007-03-02  Ben Elliston  <bje@au.ibm.com>
19007
19008         PR 30992
19009         * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
19010
19011 2007-03-02  Joseph Myers  <joseph@codesourcery.com>
19012
19013         * target.h (init_dwarf_reg_sizes_extra): New target hook.
19014         * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
19015         * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
19016         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
19017         hook.
19018         * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
19019         rs6000_init_dwarf_reg_sizes_extra): New.
19020         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
19021         SPE register high parts.
19022
19023 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
19024
19025         * Makefile.in: Add install-pdf target as
19026         copied from automake v1.10 rules.
19027         * configure.ac: Add install-pdf to target list.
19028         * configure: Regenerate.
19029
19030 2007-03-01  Paul Brook  <paul@codesourcery.com>
19031
19032         * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
19033         modes to LDRD for DImode.
19034         (output_move_double): Fixup out of range ldrd/strd.
19035         (vfp_secondary_reload_class): Rename...
19036         (coproc_secondary_reload_class): ... to this.  Add wb argument.
19037         * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
19038         coproc_secondary_reload_class for CLASS_IWMMXT.
19039         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
19040         * arm-protos.h (coproc_secondary_reload_class): Update prototype.
19041
19042 2007-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
19043
19044         * tree-ssa-loop-prefetch.c (determine_unroll_factor): Bound the
19045         unroll factor by the estimated number of iterations.
19046         (loop_prefetch_arrays): Do not prefetch in loops that iterate less
19047         than prefetch latency.
19048
19049         * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
19050         decode_caches_intel, detect_caches_intel): New functions.
19051         (host_detect_local_cpu): Use detect_caches_amd and
19052         detect_caches_intel.
19053
19054 2007-03-01  Richard Henderson  <rth@redhat.com>
19055
19056         * expr.c (emit_move_complex_push): Export.
19057         (emit_move_complex_parts): Split out from ...
19058         (emit_move_complex): ... here.
19059         * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
19060         * config/i386/i386.md (movcdi): New.
19061
19062 2007-03-01  Uros Bizjak  <ubizjak@gmail.com>
19063
19064         * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
19065         size of mode1 to check for tieable modes in MMX case.
19066
19067 2007-03-01  Richard Sandiford  <richard@codesourcery.com>
19068
19069         * Makefile.in (rtlanal.o): Depend on tree.h.
19070         * rtl.h (offset_within_section_p, split_const): Declare.
19071         * rtlanal.c: Include tree.h.
19072         (offset_within_block_p): New function, taken from
19073         mips_offset_within_object_p.
19074         (split_const): New function, taken from mips_split_const.
19075         * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
19076         Declare.
19077         * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
19078         (CONSTANT_ADDRESS_P): Only accept legitimate constants.
19079         (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
19080         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
19081         (m68k_illegitimate_symbolic_constant_p): New function.
19082         * config/m68k/m68k.md (movsi): Remove misleading predicates.
19083         If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
19084         symbolic constant that might be outside the symbol's section,
19085         move the symbol first and then add the offset.
19086         * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
19087         Override.
19088         * config/mips/mips.c (mips_split_const): Delete.
19089         (mips_offset_within_object_p): Delete.
19090         (mips_symbolic_constant_p): Use offset_within_section_p and
19091         split_const instead of mips_offset_within_object_p and
19092         mips_split_const.
19093         (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
19094         (mips_legitimize_const_move, print_operand_reloc)
19095         (mips_dangerous_for_la25_p): Use split_const instead of
19096         mips_split_const.
19097
19098 2007-02-28  Eric Christopher  <echristo@apple.com>
19099
19100         * Makefile.in (install-include-dir): Don't rm -rf include.
19101
19102 2007-02-28  Richard Guenther  <rguenther@suse.de>
19103
19104         PR middle-end/30364
19105         * fold-const.c (fold_binary): Do not associate expressions
19106         with more than one variable for integer types that do not wrap.
19107
19108 2007-02-28  Sandra Loosemore  <sandra@codesourcery.com>
19109
19110         * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
19111         Delete, and replace with...
19112         (fold_builtin_call_array): This.  Update callers to use it.
19113         * fold-const.c (fold_build_call_list): Delete, and replace with...
19114         (fold_build_call_array): This.
19115         (fold_build_call_list_initializer): Delete, and replace with...
19116         (fold_build_call_array_initializer): This.
19117         * tree.h: Update declarations to reflect above changes.
19118
19119         * c-typeck.c (build_function_call): Store converted arguments
19120         in a stack-allocated array instead of building a list.
19121         (convert_arguments): Store arguments in the array passed in as an
19122         argument, and return the actual number of arguments.
19123         * c-format.c: (check_function_format): Pass arguments in an
19124         array instead of a list.
19125         * c-common.c (check_function_nonnull): Likewise.
19126         (check_function_sentinel): Likewise.
19127         (check_function_arguments): Likewise.
19128         * c-common.h: Update declarations to reflect above changes.
19129
19130 2007-02-28  Jan Hubicka  <jh@suse.cz>
19131
19132         * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
19133         PRED_NEGATIVE_RETURN): Update outcomes.
19134
19135 2007-02-28  Bernd Schmidt  <bernd.schmidt@analog.com>
19136
19137         * calls.c (emit_library_call_value_1): Handle partial registers
19138         correctly when building up CALL_INSN_FUNCTION_USAGE.
19139
19140 2007-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19141
19142         * pa/predicates.md (move_src_operand): Allow zero for mode.
19143         * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
19144         move pattern.
19145
19146 2007-02-27  Uros Bizjak  <ubizjak@gmail.com>
19147
19148         PR target/30970
19149         * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
19150         *movv2df_internal): Enable pattern only for valid operand
19151         combinations.
19152         * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
19153         tie only 128bit modes. For MMX registers, tie only 64bit modes.
19154
19155 2007-02-27  Mike Stump  <mrs@apple.com>
19156
19157         * config/darwin-crt3.c: Avoid compilation when compiling for a
19158         kext multilib.
19159
19160 2007-02-27  Joseph Myers  <joseph@codesourcery.com>
19161
19162         * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
19163         FIXED_INCLUDE_DIR.
19164         (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
19165         for fixed headers and limits.h.
19166         (install-include-dir, install-headers-tar, install-headers-cpio,
19167         install-headers-cp, real-install-headers-tar,
19168         real-install-headers-cpio, real-install-headers-cp): Handle
19169         include-fixed as well as include.
19170         (install-mkheaders): Don't install files that go only in include
19171         not include-fixed.
19172         * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
19173         from GCC_INCLUDE_DIR.
19174         * gcc.c (process_command): Remove special -BstageN/ handling.
19175         (do_spec_1): Add include-fixed directories.
19176
19177 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
19178
19179         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
19180         _smulsi3_highpart.
19181         * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
19182         New functions.
19183         * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
19184         patterns.
19185
19186 2007-02-27  Mark Mitchell  <mark@codesourcery.com>
19187
19188         * c-common.c (get_priority): Add check for
19189         SUPPORTS_INIT_PRIORITY.
19190
19191 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
19192
19193         * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
19194
19195         * config/bfin/bfin.c: Include "cfglayout.h".
19196         (MAX_LSETUP_DISTANCE): New macro.
19197         (struct loop_info): New members incoming, incoming_src and
19198         incoming_dest.  Delete member predecessor.
19199         (length_for_loop): New function.
19200         (bfin_optimize_loop): Handle more different loop structures.
19201         (bfin_discover_loop): Rework detection of predecessor blocks by
19202         examining incoming edges.
19203         (bfin_discover_loops, bfin_free_loops): New functions, broken out of
19204         bfin_reorg_loops.
19205         (bfin_reorder_loops): New function.
19206         (bfin_reorg_loops): Use these three new functions.
19207
19208         * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
19209         REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
19210         (CONSTRAINT_LEN): Add entry for 'q'.
19211         (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
19212         Add 'q' constraints.
19213         (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
19214         (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
19215
19216         * config/bfin/bfin.md (add_with_carry): New pattern.
19217         (s_or_u, su_optab, su_modifier): New code macros/attrs.
19218         (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
19219         <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
19220         support unsigned multiplies too.  Removed incorrect commutativity from
19221         operand 1 constraint where appropriate.
19222         (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
19223         patterns.
19224         (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
19225         <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
19226         New patterns.
19227         (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
19228         usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
19229         usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
19230         usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
19231         usmulhisi_hh_huh): New patterns.
19232
19233         * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
19234         lshifthi3): Fix output template to use half reg for operand 2.
19235
19236         * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
19237         instead of R2.
19238
19239         * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
19240
19241 2007-02-27  Andreas Schwab  <schwab@suse.de>
19242
19243         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
19244
19245 2007-02-27  Jan Hubicka  <jh@suse.cz>
19246
19247         * predict.c (last_basic_block_p): Remove.
19248         (tree_estimate_probability): Update return heuristic for commonized
19249         return blocks.
19250
19251 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
19252
19253         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
19254
19255 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
19256
19257         * doc/include/gcc-common.texi (versionsubtitle): New macro.
19258         * doc/cpp.texi: Standardize title page.
19259         * doc/cppinternals.texi: Likewise.
19260         * doc/gcc.texi: Standardize title page, remove version number
19261         from copyright page.
19262         * doc/gccint.texi: Likewise.
19263         * doc/install.texi: Standardize title page, add table of
19264         contents.
19265
19266 2007-02-26  Jan Hubicka  <jh@suse.cz>
19267
19268         * predict.def: Set outcomes according to more recent results.
19269         (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
19270         Remove dead predictors.
19271         * predict.c (return_prediction): Fix pasto.
19272
19273 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
19274
19275         * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
19276         change; avoid a memory leak when returning early.
19277
19278 2007-02-26  Mark Mitchell  <mark@codesourcery.com>
19279
19280         * c-decl.c (static_ctors): Move to c-common.c.
19281         (static_dtors): Likewise.
19282         (finish_function): Use c_record_cdtor_fn.
19283         (build_cdtor): Move to c-common.c.
19284         (c_write_global_declarations): Use c_build_cdtor_fns.
19285         * c-common.h (static_ctors): Declare.
19286         (static_dtors): Likewise.
19287         (c_record_cdtor_fn): Likewise.
19288         (c_build_cdtor_fns): Likewise.
19289         * c-common.c (static_ctors): New variable.
19290         (static_dtors): Likewise.
19291         (c_record_cdtor_fn): New function.
19292         (build_cdtor): Move from c-decl.c
19293         (c_build_cdtor_fns): New function.
19294
19295         * output.h (assemble_addr_to_section): Declare.
19296         (get_cdtor_priority_section): Likewise.
19297         * varasm.c (assemble_addr_to_section): New function.
19298         (get_cdtor_priority_section): Likewise.
19299         (default_named_section_asm_out_destructor): Use them.
19300         (destor_dtor_section_asm_out_destructor): Likewise.
19301         (default_named_section_asm_out_constructor): Likewise.
19302         (default_ctor_section_asm_out_constructor): Likewise.
19303         * config.gcc (*-*-vxworks*): Include vxworks.o.
19304         * config/t-vxworks (vxworks.o): New target.
19305         * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
19306         (TARGET_ASM_CONSTRUCTOR): Define.
19307         (TARGET_ASM_DESTRUCTOR): Likewise.
19308         (vxworks_asm_out_constructor): Declare.
19309         (vxworks_asm_out_destructor): Likewise.
19310
19311         * c-common.c (get_priority): Check that we have not just an
19312         INTEGER_CST, but an integer constant with integeral type.
19313
19314 2007-02-25  Uros Bizjak  <ubizjak@gmail.com>
19315
19316         PR tree-optimization/30938
19317         * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
19318         use &dt[nargs-1] instead of &dt[nargs] in the call to
19319         vect_is_simple_use().
19320
19321 2007-02-25  Ulrich Weigand  <uweigand@de.ibm.com>
19322
19323         * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
19324         from register elimination as PRE_MODIFY / POST_MODIFY increments.
19325         Do not attempt to handle MEM inside auto-inc expressions.
19326         * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
19327         of a register modified by an auto-inc expression.  However, do handle
19328         elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
19329         (elimination_effects): Prohibit elimination of a register modified
19330         by an auto-inc expression.  Disable register elimination rules whose
19331         target register is modified by an auto-inc expression with variable
19332         increment.
19333
19334 2007-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
19335
19336         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
19337         off-by-one error.
19338         (array_at_struct_end_p): New function.
19339         (idx_infer_loop_bounds): Use it.
19340         (estimate_numbers_of_iterations_loop): Export.
19341         * predict.c (predict_loops): Use estimated_loop_iterations_int.
19342         Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
19343         (tree_estimate_probability): Call record_loop_exits.
19344         * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
19345         (estimated_loop_iterations, estimated_loop_iterations_int,
19346         estimated_loop_iterations_tree): New functions.
19347         (analyze_siv_subscript_cst_affine,
19348         compute_overlap_steps_for_affine_1_2,
19349         analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
19350         (analyze_miv_subscript): Use estimated_loop_iterations_tree.
19351         * predict.def (PRED_LOOP_ITERATIONS): Update comment.
19352         (PRED_LOOP_ITERATIONS_GUESSED): New.
19353         * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
19354         * cfgloop.h (estimate_numbers_of_iterations_loop,
19355         estimated_loop_iterations_int): Declare.
19356
19357 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
19358
19359         * doc/extend.texi: Document optional priority argument to
19360         constructors and destructors.
19361         * tree.c (init_priority_for_decl): Adjust GTY markers.
19362         (init_ttree): Use priority-info hash functions for
19363         init_priority_for_decl.
19364         (tree_map_eq): Rename to ...
19365         (tree_map_base_eq): ... this.
19366         (tree_map_marked_p): Rename to ...
19367         (tree_map_base_marked_p): ... this.
19368         (tree_map_base_hash): New function.
19369         (decl_init_priority_lookup): Rework.
19370         (decl_fini_priority_lookup): New function.
19371         (decl_priority_info): New function.
19372         (decl_init_priority_insert): Use it.
19373         (decl_fini_priority_insert): Likewise.
19374         (decl_restrict_base_lookup): Adjust for refactoring of tree_map
19375         hierarchy.
19376         (decl_restrict_base_insert): Likewise.
19377         (decl_debug_expr_insert): Likewise.
19378         (decl_value_expr_lookup): Likewise.
19379         (decl_value_expr_insert): Likewise.
19380         * tree.h (priority_type): New type.
19381         (decl_init_priority_lookup): Use priority_type.
19382         (decl_fini_priority_lookup): New function.
19383         (decl_init_priority_insert): Use priority_type.
19384         (decl_fini_priority_insert): New function.
19385         (DECL_HAS_INIT_PRIORITY): Tweak comments.
19386         (DECL_INIT_PRIORITY): Likewise.
19387         (SET_DECL_INIT_PRIORITY): Add comment.
19388         (DECL_FINI_PRIORITY): New macro.
19389         (SET_DECL_FINI_PRIORITY): Likewise.
19390         (DEFAULT_INIT_PRIORITY): Document.
19391         (MAX_INIT_PRIORITY): Likewise.
19392         (MAX_RESERVED_INIT_PRIORITY): Likewise.
19393         (tree_map_base): New type.
19394         (tree_map_base_eq): New function.
19395         (tree_map_base_hash): Likewise.
19396         (tree_map_base_marked_p): Likewise.
19397         (tree_map): Inherit from tree_map_base.
19398         (tree_map_eq): Make it a macro.
19399         (tree_map_marked_p): Likewise.
19400         (tree_int_map): Inherit from tree_map_base.
19401         (tree_int_map_eq): Make it a macro.
19402         (tree_int_map_hash): Likewise.
19403         (tree_int_map_marked_p): Likewise.
19404         (tree_priority_map): New type.
19405         (tree_priority_map_eq): New macro.
19406         (tree_priority_map_hash): Likewise.
19407         (tree_priority_map_marked_p): Likewise.
19408         * varasm.c (emults_decl): Adjust for refactoring of tree_map
19409         hierarchy.
19410         (emutls_common_1): Likewise.
19411         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
19412         * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
19413         of tree_map hierarchy.
19414         * tree-cfg.c (move_stmt_r): Likewise.
19415         (new_label_mapper): Likewise.
19416         * c-tree.h (c_expand_body): Move to ...
19417         * c-common.h (c_expand_body): ... here.
19418         * c-decl.c (c_expand_body): Move to ...
19419         * c-common.c (c_expand_body): ... here.
19420         (c_common_attribute_table): Allow 1 argument for the constructor
19421         and destructor attributes.
19422         (get_priority): New function.
19423         (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
19424         (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
19425
19426 2007-02-24  Jan Hubicka  <jh@suse.cz>
19427
19428         PR middle-end/30509
19429         * tree-inline.c (copy_bb): Produce exact copy of EH info when
19430         copying for inlining.
19431
19432 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
19433             Jan Hubicka  <jh@suse.cz>
19434
19435         PR target/30778
19436         * i386.c (counter_mode): New function.
19437         (expand_set_or_movmem_via_loop): Use it.
19438         (expand_movmem_epilogue): Likewise; fix pasto.
19439         (ix86_expand_movmem): Do emit guard even for constant counts.
19440         (ix86_expand_setmem): Likewise.
19441
19442 2007-02-25  Nick Clifton  <nickc@redhat.com>
19443
19444         * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
19445         (JUMP_TABLES_IN_TEXT_SECTION): Define.
19446
19447 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
19448
19449         PR target/30770
19450         * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
19451         count argument with 0x10, not with 0x16.
19452         (expand_setmem_epilogue): Ditto.
19453
19454 2007-02-24  Mike Stump  <mrs@apple.com>
19455
19456         * config/i386/i386.c (output_pic_addr_const): Stubify optimized
19457         symbols.
19458
19459 2007-02-24  Richard Guenther  <rguenther@suse.de>
19460
19461         PR middle-end/30951
19462         * fold-const.c (fold_binary): Fold x +- CST op x for
19463         EQ_EXPR and NE_EXPR.
19464
19465 2007-02-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19466
19467         * pa.md (muldi3): Force subregs to registers in 64-bit expander.
19468
19469 2007-02-24  Jan Hubicka  <jh@suse.cz>
19470
19471         * cgraphunit.c (decide_is_function_needed): Honor
19472         -fkeep-inline-functions.
19473
19474 2007-02-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19475
19476         * builtins.c (fold_builtin_modf): New.
19477         (fold_builtin_2): Use it.
19478
19479 2007-02-24  Bernd Schmidt  <bernd.schmidt@analog.com>
19480
19481         * loop-iv.c (implies_p): Detect additional cases where A implies B.
19482         (determine_max_iter): Take additional LOOP arg; all callers changed.
19483         Lose broken logic dealing with PLUS.  Try to limit the upper bound by
19484         one using simplifications.
19485         (simplify_using_initial_values): Return if the expression becomes
19486         invalid due to altered regs.
19487
19488 2007-02-23  DJ Delorie  <dj@redhat.com>
19489
19490         * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
19491
19492 2007-02-23  Mike Stump  <mrs@apple.com>
19493
19494         * tlink.c (scan_linker_output): Parse linker messages from
19495         darwin9's linker better.
19496
19497 2007-02-23  Steve Ellcey  <sje@cup.hp.com>
19498
19499         PR debug/29614
19500         * varpool.c (varpool_assemble_pending_decls): Set
19501         varpool_last_needed_node to null.
19502
19503 2007-02-23  DJ Delorie  <dj@redhat.com>
19504
19505         * config/i386/i386.c (ix86_data_alignment): Don't specify an
19506         alignment bigger than the object file can handle.
19507
19508 2007-02-23  Uros Bizjak  <ubizjak@gmail.com>
19509
19510         PR target/30825
19511         * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
19512         zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
19513         (*movsf_1): Penalize MMX moves.
19514
19515 2007-02-23  Bernd Schmidt  <bernd.schmidt@analog.com>
19516
19517         * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
19518         2^32-1 or more times unless flag_unsafe_loop_optimizations.
19519
19520         * loop-iv.c (determine_max_iter): Moved in front of its sole user.
19521
19522 2007-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19523
19524         * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
19525         (fold_builtin_1): Use them.
19526         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
19527         BUILT_IN_SIGNIFICAND.
19528
19529 2007-02-23  H.J. Lu  <hongjiu.lu@intel.com>
19530
19531         * config/i386/i386.c (bdesc_1arg): Initialize
19532         IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
19533         "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
19534         (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
19535         and IX86_BUILTIN_MOVSLDUP.
19536
19537 2007-02-22  Paolo Bonzini  <bonzini@gnu.org>
19538
19539         PR rtl-optimization/30841
19540         * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
19541
19542 2007-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19543
19544         * builtins.c (fold_builtin_frexp): New.
19545         (fold_builtin_2): Use it.
19546
19547 2007-02-22  Mark Mitchell  <mark@codesourcery.com>
19548
19549         * doc/invoke.texi (Spec Files): Document getenv spec function.
19550
19551         * gcc.c (getenv_spec_function): New function.
19552         (static_spec_functions): Add it.
19553         * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
19554         (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
19555         header files.
19556
19557 2007-02-22  Michael Matz  <matz@suse.de
19558
19559         PR c++/29433
19560         * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
19561         (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
19562
19563 2007-02-22  Ian Lance Taylor  <iant@google.com>
19564
19565         PR debug/30898
19566         * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
19567         (mem_loc_descriptor): Call it.
19568
19569 2007-02-22  Zdenek Dvorak  <dvorakz@suse.cz>
19570             Ira Rosen  <irar@il.ibm.com>
19571
19572         * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
19573
19574 2007-02-22  Ira Rosen  <irar@il.ibm.com>
19575
19576         PR tree-optimization/30843
19577         * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
19578         stores only after all the group is vectorized.
19579
19580 2007-02-22  Dorit Nuzman  <dorit@il.ibm.com>
19581
19582         PR tree-optimization/30858
19583         * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
19584         in the reduction cycle have a single use in the loop.
19585         * tree-vectorizer.h (relevant): Add documentation.
19586
19587 2007-02-20  Mike Stump  <mrs@apple.com>
19588
19589         * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
19590         * configure: Regenerate.
19591
19592 2007-02-21  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
19593
19594         Change the defaults of some parameters and options.
19595         * config/spu/spu-protos.h (spu_optimization_options): Declare.
19596         * config/spu/spu.c (spu_optimization_options): Add.
19597         (spu_override_options): Change params in spu_optimization_options.
19598         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
19599
19600         Register 127 is only 16 byte aligned when used as a frame pointer.
19601         * config/spu/spu-protos.h (spu_init_expanders): Declare.
19602         * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
19603         HARD_FRAME_POINTER_REGNUM.
19604         (spu_legitimate_address): Use regno_aligned_for_reload.
19605         (regno_aligned_for_load): HARD_FRAME_POINTER_REGNUM is only 16 byte
19606         aligned when frame_pointer_needed is true.
19607         (spu_init_expanders): New.  Set alignment of HARD_FRAME_POINTER_REGNUM
19608         to 8 bits.
19609         * config/spu/spu.h (INIT_EXPANDERS): Define.
19610
19611         Make sure shift and rotate instructions have valid immediate operands.
19612         * config/spu/predicates.md (spu_shift_operand): Remove.
19613         * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
19614         * config/spu/constraints.md (W, O): Extend range.
19615         * config/spu/spu.md (umask, nmask): Define.
19616         (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
19617         lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
19618         rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
19619         rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
19620         spu_nonmem_operand instead of spu_shift_operands.  Use new modifiers.
19621         (lshr<mode>3_reg): Fix rtl description.
19622
19623         Make sure mulhisi immediate operands are valid.
19624         * config/spu/predicates.md (imm_K_operand): Add.
19625         * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
19626
19627         Generate constants using fsmbi and andi.
19628         * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
19629         (print_operand, spu_split_immediate, classify_immediate,
19630         fsmbi_const_p): Handle IC_FSMBI2.
19631
19632         Correctly handle a CONST_VECTOR containing symbols.
19633         * config/spu/spu.c (print_operand): Handle HIGH correctly.
19634         (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
19635         (immediate_load_p): Allow symbols that use 2 instructions to create.
19636         (classify_immediate, spu_builtin_splats): Don't accept a CONST_VECTOR
19637         with symbols when flag_pic is set.
19638         (const_vector_immediate_p): New.
19639         (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
19640         accept a CONST_VECTOR with symbols.
19641         (spu_legitimate_constant_p): Use const_vector_immediate_p.  Don't
19642         accept a CONST_VECTOR with symbols when flag_pic is set.  Handle HIGH
19643         correctly.
19644         * config/spu/spu.md (high, low): Delete.
19645         (low_<mode>): Define.
19646
19647         Remove INTRmode and INTR_REGNUM, which didn't work.
19648         * config/spu/spu.c (spu_conditional_register_usage): Remove reference
19649         of INTR_REGNUM.
19650         * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
19651         set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
19652         peephole2 pattern): Don't use INTR or 131.
19653         (movintrcc): Delete.
19654         * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
19655         CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
19656         * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
19657         (UNSPEC_SET_INTR): Add.
19658         * config/spu/spu-modes.def (INTR): Remove.
19659
19660         More accurate warnings about run-time relocations.
19661         * config/spu/spu.c (reloc_diagnostic): Test in_section.
19662
19663         Correctly warn about immediate arguments to specific intrinsics.
19664         * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
19665         (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
19666         the instruction predicate.
19667
19668         Fix tree check errors with latest update.
19669         * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
19670         CALL_EXPR_ARG.
19671         (spu_expand_builtin): Use CALL_EXPR_FN.
19672
19673         Add missing specific intrinsics.
19674         * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
19675         si_bislede.
19676         * config/spu/spu_internals.h: Ditto.
19677
19678         Fix incorrect operand modifiers.
19679         * config/spu/spu-builtins.md (spu_mpy, spu_mpyu): Remove use of %H.
19680         * config/spu/spu.md (xor<mode>3): Change %S to %J.
19681
19682         Optimize one case of zero_extend of a vec_select.
19683         * config/spu/spu.md (_vec_extractv8hi_ze): Add.
19684
19685         Accept any immediate for hbr.
19686         * config/spu/spu.md (hbr): Change s constraints to i.
19687
19688 2007-02-21  Paul Brook  <paul@codesourcery.com>
19689
19690         * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
19691         condexec_count when skipping USE and CLOBBER.
19692
19693 2007-02-21  Nick Clifton  <nickc@redhat.com>
19694
19695         * common.opt (Warray-bounds): Add Warning attribute.
19696         (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
19697         Likewise.
19698         (fsized-zeroes): Add Optimization attribute.
19699         (fsplit-wide-types, ftree-scev-cprop): Likewise.
19700         * c.opt (Wc++0x-compat): Add Warning attribute.
19701
19702 2007-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
19703
19704         PR middle-end/30761
19705         * reload1.c (eliminate_regs_in_insn): In the single_set special
19706         case, attempt to re-recognize the insn before falling back to
19707         having reload fix it up.
19708
19709 2007-02-20  Eric Christopher  <echristo@gmail.com>
19710
19711         * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
19712         Rewrite accordingly.
19713         (frv_read_iacc_argument): Ditto.
19714         (frv_expand_set_builtin): Take a call instead of arglist, update for
19715         above changes.
19716         (frv_expand_unop_builtin): Ditto.
19717         (frv_expand_binop_builtin): Ditto.
19718         (frv_expand_cut_builtin): Ditto.
19719         (frv_expand_binopimm_builtin): Ditto.
19720         (frv_expand_voidbinop_builtin): Ditto.
19721         (frv_expand_int_void2arg): Ditto.
19722         (frv_expand_prefetches): Ditto.
19723         (frv_expand_voidtriop_builtin): Ditto.
19724         (frv_expand_voidaccop_builtin): Ditto.
19725         (frv_expand_load_builtin): Ditto.
19726         (frv_expand_store_builtin): Ditto.
19727         (frv_expand_mdpackh_builtin): Ditto.
19728         (frv_expand_mclracc_builtin): Ditto.
19729         (frv_expand_mrdacc_builtin): Ditto.
19730         (frv_expand_mwtacc_builtin): Ditto.
19731         (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
19732         calls for above.
19733
19734 2007-02-20  Janis Johnson  <janis187@us.ibm.com>
19735
19736         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
19737         * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
19738         cmpb instruction.
19739         (HAVE_GAS_DFP): Check for assembler support of decimal floating
19740         point instructions.
19741         * configure: Regenerate.
19742         * config.in: Regenerate.
19743         * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
19744         * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
19745         masks to power6 and power6x and to POWERPC_MASKS.
19746         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
19747         _ARCH_PWR6.
19748         * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
19749         * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
19750         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
19751         Access PROTOTYPE as variable, not mask.
19752
19753 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
19754
19755         * rtl.h (remove_reg_equal_equiv_notes): New prototype.
19756         * rtlanal.c (remove_reg_equal_equiv_notes): New function.
19757         * combine.c (adjust_for_new_dest): Use it.
19758         * postreload.c (reload_combine): Likewise.
19759
19760 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
19761
19762         * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
19763         notes on an insn with multiple sets, even if single_set returns
19764         non-NULL for that insn.
19765
19766 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19767
19768         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
19769         scalbn and scalbln.
19770
19771 2007-02-20  Geoffrey Keating  <geoffk@apple.com>
19772
19773         * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
19774         if user didn't pass it.
19775         * config/i386/darwin.h (CC1_SPEC): Likewise.
19776         * config/rs6000/darwin.h (CC1_SPEC): Likewise.
19777         (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
19778         -mmacosx-version-min.
19779
19780 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19781             Uros Bizjak  <ubizjak@gmail.com>
19782
19783         * optabs.h (enum optab_index): Add new OTI_scalb.
19784         (scalb_optab): Define corresponding macro.
19785         * optabs.c (init_optabs): Initialize scalb_optab.
19786         * genopinit.c (optabs): Implement scalb_optab using scalb?f3
19787         patterns.
19788         * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
19789         BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
19790         (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
19791         and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
19792         flag_unsafe_math_optimizations is set.
19793
19794         * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
19795         to implement scalbf, scalb and scalbl built-ins as inline x87
19796         intrinsics.
19797
19798 2007-02-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19799             DJ Delorie <dj@redhat.com>
19800
19801         PR other/30824
19802         * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
19803         (diagnostic_report_diagnostic): ... here, and turn them into real
19804         errors. If warnings are inhibited, no need to do anything.
19805
19806 2007-02-20  Uros Bizjak  <ubizjak@gmail.com>
19807
19808         * config/i386/i386.md (expm1xf2): Reorder insn sequence for
19809         better code generation.
19810
19811 2007-02-20  Ben Elliston  <bje@au.ibm.com>
19812
19813         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
19814
19815 2007-02-20  Kazu Hirata  <kazu@codesourcery.com>
19816
19817         * config/alpha/alpha.c, config/alpha/alpha.md,
19818         config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
19819         config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
19820         config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
19821         config/arm/lib1funcs.asm: Follow spelling conventions.
19822
19823         * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
19824         config/fr30/fr30.md, config/i386/i386.h,
19825         config/iq2000/iq2000.h, config/iq2000/predicates.md,
19826         config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
19827         config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
19828         config/pdp11/pdp11.c, config/pdp11/pdp11.h,
19829         config/rs6000/altivec.md, config/rs6000/rs6000.c,
19830         config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
19831         config/sparc/sparc.c, config/sparc/sparc.h,
19832         config/sparc/sparc.md, config/spu/constraints.md,
19833         config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
19834         conventions.
19835
19836 2007-02-20  Alan Modra  <amodra@bigpond.net.au>
19837
19838         PR target/29943
19839         * varasm.c (use_blocks_for_decl_p): Return false for decls with
19840         alias attribute.
19841
19842 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
19843
19844         * doc/invoke.texi (-ftree-lrs): Remove.
19845
19846 2007-02-19  Diego Novillo  <dnovillo@redhat.com>
19847
19848         * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
19849         NULL.
19850
19851 2007-02-19  Lee Millward  <lee.millward@codesourcery.com>
19852
19853         * config/ia64/ia64.c (ia64_expand_builtin): Use the
19854         new CALL_EXPR_FN macro for retrieving the function
19855         declaration of the input expression.
19856
19857 2007-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19858
19859         * c.opt (Waddress): New.
19860         * common.opt (Walways-true): Delete.
19861         (Wstring-literal-comparison): Delete.
19862         * doc/invoke.texi (Warning Options): Delete -Walways-true and
19863         -Wstring-literal-comparison. Add -Waddress.
19864         (Waddress): New.
19865         (Walways-true): Delete.
19866         (Wstring-literal-comparison): Delete.
19867         * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
19868         consistently instead of -Walways-true in example.
19869         * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
19870         * c-typeck.c (parser_build_binary_op): Replace
19871         -Wstring-literal-comparison and -Walways-true with -Waddress.
19872         * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
19873         with -Waddress.
19874
19875 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
19876
19877         * tree-cfg.c (dump_function_to_file): Be prepared for functions
19878         without DECL_STRUCT_FUNCTION initialized.
19879
19880 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
19881
19882         * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
19883         due to calls to functions taking pointers as parameters.
19884
19885 2007-02-19  Richard Henderson  <rth@redhat.com>
19886
19887         PR debug/29558
19888         * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
19889         in memory.
19890
19891 2007-02-19  Andreas Krebbel  <krebbel1@de.ibm.com>
19892
19893         * config/s390/s390.c (s390_call_saved_register_used,
19894         s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
19895         accessed to the new scheme.
19896
19897 2007-02-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
19898
19899         * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
19900         (cris_print_index, cris_print_operand, cris_print_operand_address)
19901         (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
19902         (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
19903         (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
19904         GET_CODE () == xxx.
19905         * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
19906         EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
19907         GO_IF_LEGITIMATE_ADDRESS): Ditto.
19908         * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
19909         (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
19910         (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
19911         (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
19912         (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
19913         (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
19914         (uminsi3, call, call_value): Ditto.
19915         (define_split: indir_to_reg_split, unnamed): Ditto.
19916
19917 2007-02-19  Dorit Nuzman  <dorit@il.ibm.com>
19918
19919         PR tree-optimization/30975
19920         * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
19921         wrong assert.
19922
19923 2007-02-18  Eric Christopher  <echristo@gmail.com>
19924
19925         * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
19926         Remove use of arglist.
19927         (mips_expand_builtin): Remove use of arglist, pass in expr.
19928         (mips_expand_builtin_direct): Rewrite handling for arglist removal.
19929         (mips_expand_builtin_movtf): Ditto.
19930         (mips_expand_builtin_compare): Ditto.
19931
19932 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
19933
19934         * tree-sra.c (sra_build_assignment): Replace assertion
19935         checking with a comment explaining why it can't be done.
19936
19937 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
19938
19939         PR middle-end/30833
19940         * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
19941         during CALL_EXPR representation conversion.
19942         * tree-ssa-propagate.c (set_rhs): Likewise.
19943
19944 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
19945
19946         * tree-sra.c (sra_build_assignment): Disable assertion checking
19947         for now.
19948
19949 2007-02-18  Roger Sayle  <roger@eyesopen.com>
19950
19951         * function.c (gimplify_parameters): Call build_gimple_modify_stmt
19952         instead of calling build2 with a GIMPLE_MODIFY_STMT.
19953         * gimple-low.c (lower_function_body, lower_builtin_setjmp):
19954         Likewise.
19955         * gimplify.c (build_stack_save_restore, gimplify_return_expr,
19956         gimplify_decl_expr,  gimplify_self_mod_expr, gimplify_cond_expr,
19957         gimplify_init_ctor_eval_range, gimple_push_cleanup,
19958         gimplify_omp_for, gimplify_omp_atomic_pipeline,
19959         gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
19960         force_gimple_operand): Likewise.
19961         * ipa-cp.c (constant_val_insert): Likewise.
19962         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
19963         lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
19964         perfect_nestify): Likewise.
19965         * langhooks.c (lhd_omp_assignment): Likewise.
19966         * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
19967         lower_copyprivate_clauses, lower_send_clauses,
19968         lower_send_shared_vars, expand_parallel_call,
19969         expand_omp_for_generic, expand_omp_for_static_nochunk,
19970         expand_omp_for_static_chunk, expand_omp_sections,
19971         lower_omp_single_copy, lower_omp_for_lastprivate,
19972         lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
19973         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
19974         tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
19975         Likewise.
19976
19977 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
19978
19979         * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
19980         config/sh/sh.md: Follow spelling conventions.
19981
19982         * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
19983         config/frv/predicates.md: Follow spelling conventions.
19984
19985         * config/m68k/linux-unwind.h: Fix a comment typo.
19986         * target.h: Follow spelling conventions.
19987
19988 2007-02-18  Roger Sayle  <roger@eyesopen.com>
19989
19990         PR rtl-optimization/28173
19991         * simplify-rtx.c (simplify_binary_operation_1) <IOR>: Optimize
19992         (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
19993         Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
19994         Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
19995         <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
19996
19997 2007-02-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19998
19999         * builtins.c (fold_builtin_load_exponent): New.
20000         (fold_builtin_2): Use it.
20001
20002 2007-02-18  Steven Bosscher  <steven@gcc.gnu.org>
20003
20004         PR rtl-optimization/30773
20005         * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
20006         if we fail to attach a REG_EQUIV note.
20007
20008 2007-02-18  David Edelsohn  <edelsohn@gnu.org>
20009             Roger Sayle  <roger@eyesopen.com>
20010
20011         * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
20012
20013 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
20014
20015         * calls.c (initialize_argument_information): Pass original EXP
20016         and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments.  Move
20017         code to split complex arguments here, as part of initializing the
20018         ARGS array.
20019         (expand_call): Remove code that builds a list of arguments and
20020         inserts implicit arguments into it.  Instead, just count how many
20021         implicit arguments there will be so we can determine the size of
20022         the ARGS array, and let initialize_argument_information do the work.
20023         (split_complex_values): Delete unused function.
20024
20025 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
20026
20027         * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
20028
20029 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
20030
20031         * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
20032         for arg pointer based indexed addressing.
20033
20034 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
20035
20036         * config/ia64/ia64.h, config/ia64/ia64.md,
20037         config/ia64/predicates.md, config/ia64/sysv4.h: Follow
20038         spelling conventions.
20039
20040 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
20041
20042         * config/m68k/m68k.c (split_di): New.
20043         * config/m68k/m68k-protos.h: Declare split_di.
20044         * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
20045           Improve predicate handling and split constant shifts.
20046
20047 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
20048
20049         * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
20050         parameter for register bitfield operations, general predicates
20051         cleanup
20052
20053 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
20054
20055         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
20056         * config/m68k/linux-unwind.h: New file.
20057
20058 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
20059
20060         * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
20061         config/i386/athlon.md, config/ia64/ia64.md,
20062         config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
20063         df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
20064         ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
20065         tree-ssa-loop-niter.c, tree-vect-analyze.c,
20066         tree-vect-transform.c: Fix comment typos.
20067
20068 2007-02-17  Kazu Hirata  <kazu@codesourcery.com>
20069
20070         * sched-deps.c (find_insn_list): Remove.
20071         * sched-int.h: Remove the prototype for find_insn_list.
20072
20073 2007-02-16  Geoffrey Keating  <geoffk@apple.com>
20074
20075         * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
20076         to linker.
20077         (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
20078         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
20079         darwin_rs6000_override_options.
20080         (C_COMMON_OVERRIDE_OPTIONS): Expect
20081         darwin_macosx_version_min to be non-NULL always.
20082         (TARGET_C99_FUNCTIONS): Likewise.
20083         (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
20084         (DARWIN_MINVERSION_SPEC): New.
20085         * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
20086         * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
20087         to cc1*.
20088         (DARWIN_MINVERSION_SPEC): New.
20089         * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
20090         value.
20091         * config/darwin-c.c (darwin_cpp_builtins): Expect
20092         darwin_macosx_version_min to be non-NULL always.
20093
20094         * config/rs6000/rs6000.c: Clean up trailing whitespace.
20095
20096 2007-02-16  Uros Bizjak  <ubizjak@gmail.com>
20097
20098         * config/i386/i386.h (x86_use_xchgb): New.
20099         (TARGET_USE_XCHGB): New macro.
20100         * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
20101         * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
20102         Split after reload into bswaphi for shifts of 8.
20103         (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
20104         (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
20105         or when optimizing for size.
20106
20107 2007-02-16  Richard Guenther  <rguenther@suse.de>
20108             Christian Bruel  <christian.bruel@st.com>
20109
20110         * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
20111         DECLs but prefer SSA_NAMEs over DECLs.
20112
20113 2007-02-16  Richard Guenther  <rguenther@suse.de>
20114
20115         * tree-flow-inline.h (single_imm_use_p): Remove.
20116         (zero_imm_uses_p): Likewise.
20117         * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
20118         instead of single_imm_use_p.
20119         * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
20120         zero_imm_uses_p.
20121
20122 2007-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20123
20124         PR other/27843
20125         * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
20126         nested double- and backquotes.
20127
20128 2007-02-15  Roger Sayle  <roger@eyesopen.com>
20129
20130         PR middle-end/30391
20131         * tree.c (expr_align): Handle MODIFY_EXPR.  GIMPLE_MODIFY_STMT
20132         should be unreachable.
20133         (build2_stat): Allow construction of MODIFY_EXPR at any time.
20134         For the time being redirect GIMPLE_MODIFY_STMT to the new
20135         (renamed) build_gimple_modify_stmt_stat.
20136         (build2_gimple_stat): Rename to...
20137         (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
20138         Always build a GIMPLE_MODIFY_STMT node.
20139         * tree.h (build2_gimple, build2_gimple_stat): Delete.
20140         (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
20141         declarations.
20142
20143         * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
20144         gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
20145         * tree-complex.c (set_component_ssa_name, expand_complex_move,
20146         expand_complex_div_wide): Likewise.
20147         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
20148         * tree-ssa-loop-im.c (schedule_sm): Likewise.
20149         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
20150         * tree-ssa-loop-manip.c (create_iv): Likewise.
20151         * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
20152         abs_replacement): Likewise.
20153         * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
20154         realify_fake_stores): Likewise.
20155
20156         * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
20157         node rather than a GIMPLE_MODIFY_STMT node.
20158         (std_gimpify_va_arg_expr, expand_builtin_va_copy,
20159         fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
20160         Likewise.
20161         (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
20162         * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
20163         GIMPLE_MODIFY_STMT.
20164
20165 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20166
20167         PR middle-end/30433
20168         * fold-const.c (fold_comparison): Add back the
20169         folding of constant complex comparisions.
20170
20171 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20172
20173         PR middle-end/30729
20174         * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
20175         effects unknown to this function, return early.
20176
20177 2007-02-15  Ian Lance Taylor  <iant@google.com>
20178
20179         * lower-subreg.c (move_eh_region_note): New static function.
20180         (resolve_simple_move): Call it.
20181         (decompose_multiword_subregs): Track blocks for which we resolve a
20182         simple move which is also a control flow insn.  Pass them to
20183         find_many_sub_basic_blocks.
20184         (pass_lower_subreg): Add TODO_verify_flow.
20185         (pass_lower_subreg2): Likewise.
20186
20187 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
20188             Brooks Moses  <brooks.moses@codesourcery.com>
20189             Lee Millward  <lee.millward@codesourcery.com>
20190
20191         * tree.h (enum tree_code_class): Add tcc_vl_exp.
20192         (VL_EXP_CLASS_P): New.
20193         (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
20194         TREE_CODE_LENGTH.
20195         (TREE_OPERAND_CHECK_CODE): Likewise.
20196         (GIMPLE_STMT_OPERAND_CHECK): Likewise.
20197         (TREE_RTL_OPERAND_CHECK): Likewise.
20198         (tree_operand_check_failed): Make second parameter the whole tree
20199         instead of its code.  Fixed callers.
20200         (VL_EXP_CHECK): New.
20201         (TREE_OPERAND_LENGTH): New.
20202         (VL_EXP_OPERAND_LENGTH): New.
20203         (CALL_EXPR_FN): New.
20204         (CALL_EXPR_STATIC_CHAIN): New.
20205         (CALL_EXPR_ARGS): New.
20206         (CALL_EXPR_ARG): New.
20207         (call_expr_nargs): New.
20208         (CALL_EXPR_ARGP): New.
20209         (build_nt_call_list): Declare.
20210         (build_vl_exp_stat): Declare.
20211         (build_vl_exp): New.
20212         (build_call_list): Declare.
20213         (build_call_nary): Declare.
20214         (build_call_valist): Declare.
20215         (build_call_array): Declare.
20216         (call_expr_arg): Declare.
20217         (call_expr_argp): Declare.
20218         (call_expr_arglist): Declare.
20219         (fold_build_call_list): Declare.
20220         (fold_build_call_list_initializer): Declare.
20221         (fold_call_expr): Declare to replace fold_builtin.
20222         (fold_builtin_fputs): Update to agree with modified definition.
20223         (fold_builtin_strcpy): Likewise.
20224         (fold_builtin_strncpy): Likewise.
20225         (fold_builtin_memory_chk): Likewise.
20226         (fold_builtin_stxcpy_chk): Likewise.
20227         (fold_builtin_strncpy_chk): Likewise.
20228         (fold_builtin_next_arg): Likewise.
20229         (fold_build_call_expr): Declare.
20230         (fold_builtin_call_list): Declare.
20231         (fold_builtin_call_valist): Declare.
20232         (build_call_expr): Declare.
20233         (validate_arglist): Update to agree with modified definition.
20234         (tree_operand_length): New.
20235         (call_expr_arg_iterator): New.
20236         (init_call_expr_arg_iterator): New.
20237         (next_call_expr_arg): New.
20238         (first_call_expr_arg): New.
20239         (more_call_expr_args_p): New.
20240         (FOR_EACH_CALL_EXPR_ARG): New.
20241
20242         * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
20243         and tcc_gimple_stmt.
20244         (tree_code_size): Update documentation.  Use sizeof (tree) rather
20245         than sizeof (char *).
20246         (tree_size): Likewise.  Add case for tcc_vl_exp.
20247         (tree_node_structure): Add case for tcc_vl_exp.
20248         (contains_placeholder_p): Likewise.
20249         (substitute_in_expr): Likewise.
20250         (substitute_placeholder_in_expr): Likewise.
20251         (stabilize_reference_1): Likewise.
20252         (build3_stat): Remove logic for CALL_EXPRs.  Replace with assertion
20253         to diagnose breakage of this interface for constructing CALL_EXPRs.
20254         (build_nt): Add similar assertion here.
20255         (build_nt_call_list): New.
20256         (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
20257         (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
20258         TREE_CODE_LENGTH.
20259         (get_callee_fndecl): Use new CALL_EXPR accessors.
20260         (tree_operand_check_failed): Change parameters to pass entire node
20261         instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
20262         (process_call_operands): New.
20263         (build_vl_exp_stat): New.
20264         (build_call_list): New.
20265         (build_call_nary): New.
20266         (build_call_valist): New.
20267         (build_call_array): New.
20268         (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
20269         (call_expr_arglist): New.
20270
20271         * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
20272         tcc_vl_exp instead of a fixed-size tcc_expression.
20273
20274         * doc/c-tree.texi (CALL_EXPR): Document new representation and
20275         accessors for CALL_EXPRs.
20276         (AGGR_INIT_EXPR): Likewise.
20277
20278 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
20279             Brooks Moses  <brooks.moses@codesourcery.com>
20280             Lee Millward  <lee.millward@codesourcery.com>
20281
20282         * builtins.c (c_strlen): Return NULL_TREE instead of 0.
20283         (expand_builtin_nonlocal_goto): Change parameter to be entire
20284         CALL_EXPR instead of an arglist.  Use new CALL_EXPR accessors.
20285         (expand_builtin_prefetch): Likewise.
20286         (expand_builtin_classify_type): Likewise.
20287         (mathfn_built_in): Return NULL_TREE instead of 0.
20288         (expand_errno_check): Use new CALL_EXPR accessors.
20289         (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
20290         Return NULL_RTX instead of 0.
20291         (expand_builtin_mathfn_2): Likewise.
20292         (expand_builtin_mathfn_3): Likewise.
20293         (expand_builtin_interclass_mathfn): Likewise.
20294         (expand_builtin_sincos): Likewise.
20295         (expand_builtin_cexpi): Likewise.
20296         (expand_builtin_int_roundingfn): Likewise.
20297         (expand_builtin_int_roundingfn_2): Likewise.
20298         (expand_builtin_pow): Likewise.
20299         (expand_builtin_powi): Likewise.
20300         (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
20301         of arglist, fixing callers appropriately.  Use new CALL_EXPR
20302         accessors and constructors.  Return NULL_RTX instead of 0.
20303         (expand_builtin_strstr): Likewise.
20304         (expand_builtin_strchr): Likewise.
20305         (expand_builtin_strrchr): Likewise.
20306         (expand_builtin_strpbrk): Likewise.
20307         (expand_builtin_memcpy): Likewise.
20308         (expand_builtin_mempcpy): Likewise.
20309         (expand_builtin_mempcpy_args): New.
20310         (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
20311         (expand_builtin_memmove_args): New.
20312         (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
20313         (expand_movstr): Likewise.
20314         (expand_builtin_strcpy): Likewise.
20315         (expand_builtin_strcpy_args): New.
20316         (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
20317         (expand_builtin_strncpy): Likewise.
20318         (expand_builtin_memset): Likewise.
20319         (expand_builtin_memset_args): New.
20320         (expand_builtin_bzero): Similarly to expand_builtin_memset.
20321         (expand_builtin_memcmp): Likewise.
20322         (expand_builtin_strcmp): Likewise.
20323         (expand_builtin_strncmp): Likewise.
20324         (expand_builtin_strcat): Likewise.
20325         (expand_builtin_strncat): Likewise.
20326         (expand_builtin_strspn): Likewise.
20327         (expand_builtin_strcspn): Likewise.
20328         (expand_builtin_args_info): Likewise.
20329         (expand_builtin_va_start): Likewise.
20330         (gimplify_va_arg_expr): Likewise.
20331         (expand_builtin_va_end): Likewise.
20332         (expand_builtin_va_copy): Likewise.
20333         (expand_builtin_frame_address): Likewise.
20334         (expand_builtin_alloca): Likewise.
20335         (expand_builtin_bswap): Likewise.
20336         (expand_builtin_unop): Likewise.
20337         (expand_builtin_fputs): Likewise.
20338         (expand_builtin_expect): Likewise.
20339         (expand_builtin_fabs): Likewise.
20340         (expand_builtin_copysign): Likewise.
20341         (expand_builtin_printf): Likewise.
20342         (expand_builtin_fprintf): Likewise.
20343         (expand_builtin_sprintf): Likewise.
20344         (expand_builtin_init_trampoline): Likewise.
20345         (expand_builtin_signbit): Likewise.
20346         (expand_builtin_fork_or_exec): Likewise.
20347         (expand_builtin_sync_operation): Likewise.
20348         (expand_builtin_compare_and_swap): Likewise.
20349         (expand_builtin_lock_test_and_set): Likewise.
20350         (expand_builtin_lock_release): Likewise.
20351         (expand_builtin): Likewise.
20352         (builtin_mathfn_code): Likewise.
20353
20354         (fold_builtin_constant_p): Pass call arguments individually instead
20355         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
20356         accessors and constructors.  Return NULL_TREE instead of 0.
20357         (fold_builtin_expect): Likewise.
20358         (fold_builtin_classify_type): Likewise.
20359         (fold_builtin_strlen): Likewise.
20360         (fold_builtin_nan): Likewise.
20361         (integer_valued_real_p): Likewise.
20362         (fold_trunc_transparent_mathfn): Likewise.
20363         (fold_fixed_mathfn): Likewise.
20364         (fold_builtin_cabs): Likewise.
20365         (fold_builtin_sqrt): Likewise.
20366         (fold_builtin_cbrt): Likewise.
20367         (fold_builtin_cos): Likewise.
20368         (fold_builtin_cosh): Likewise.
20369         (fold_builtin_tan): Likewise.
20370         (fold_builtin_sincos): Likewise.
20371         (fold_builtin_cexp): Likewise.
20372         (fold_builtin_trunc): Likewise.
20373         (fold_builtin_floor): Likewise.
20374         (fold_builtin_ceil): Likewise.
20375         (fold_builtin_round): Likewise.
20376         (fold_builtin_int_roundingfn): Likewise.
20377         (fold_builtin_bitop): Likewise.
20378         (fold_builtin_bswap): Likewise.
20379         (fold_builtin_logarithm): Likewise.
20380         (fold_builtin_hypot): Likewise.
20381         (fold_builtin_pow): Likewise.
20382         (fold_builtin_powi): Likewise.
20383         (fold_builtin_exponent): Likewise.
20384         (fold_builtin_memset): Likewise.
20385         (fold_builtin_bzero): Likewise.
20386         (fold_builtin_memory_op): Likewise.
20387         (fold_builtin_bcopy): Deleted; call site changed to invoke
20388         fold_builtin_memory_op directly.
20389         (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
20390         (fold_builtin_strncpy): Likewise.
20391         (fold_builtin_memcmp): Likewise.
20392         (fold_builtin_strcmp): Likewise.
20393         (fold_builtin_strncmp): Likewise.
20394         (fold_builtin_signbit): Likewise.
20395         (fold_builtin_copysign): Likewise.
20396         (fold_builtin_isascii): Likewise.
20397         (fold_builtin_toascii): Likewise.
20398         (fold_builtin_isdigit): Likewise.
20399         (fold_builtin_fabs): Likewise.
20400         (fold_builtin_abs): Likewise.
20401         (fold_builtin_fmin_fmax): Likewise.
20402         (fold_builtin_carg): Likewise.
20403         (fold_builtin_classify): Likewise.
20404         (fold_builtin_unordered_cmp): Likewise.
20405
20406         (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
20407         New functions split out from fold_builtin_1.
20408         (fold_builtin_n): New.
20409         (fold_builtin_varargs): New.
20410         (fold_builtin): Deleted.  Most callers changed to use fold_call_expr
20411         instead.
20412         (fold_call_expr): New.
20413         (build_function_call_expr): Rewrite to use new helper function.
20414         (fold_builtin_call_list): New.
20415         (build_call_expr): New.
20416         (fold_builtin_call_valist): New.
20417         (rewrite_call_expr): New.
20418         (validate_arg): New.
20419         (validate_arglist): Change parameter to be entire CALL_EXPR instead
20420         of an arglist.  Change return type to bool.  Use new CALL_EXPR
20421         accessors.
20422
20423         (fold_builtin_strstr): Pass call arguments individually instead
20424         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
20425         accessors and constructors.  Return NULL_TREE instead of 0.
20426         (fold_builtin_strchr): Likewise.
20427         (fold_builtin_strrchr): Likewise.
20428         (fold_builtin_strpbrk): Likewise.
20429         (fold_builtin_strcat): Likewise.
20430         (fold_builtin_strncat): Likewise.
20431         (fold_builtin_strspn): Likewise.
20432         (fold_builtin_strcspn): Likewise.
20433         (fold_builtin_fputs): Likewise.
20434         (fold_builtin_next_arg): Likewise.
20435         (fold_builtin_sprintf): Likewise.
20436
20437         (expand_builtin_object_size): Use new CALL_EXPR accessors.  Use
20438         NULL_RTX instead of 0.
20439         (expand_builtin_memory_chk): Likewise.
20440         (maybe_emit_chk_warning): Likewise.
20441         (maybe_emit_sprintf_chk_warning): Likewise.
20442
20443         (fold_builtin_object_size): Pass call arguments individually instead
20444         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
20445         accessors and constructors.  Return NULL_TREE instead of 0.
20446         (fold_builtin_memory_chk): Likewise.
20447         (fold_builtin_stxcpy_chk): Likewise.
20448         (fold_builtin_strncpy_chk): Likewise.
20449         (fold_builtin_strcat_chk): Likewise.
20450         (fold_builtin_strcat_chk): Likewise.
20451         (fold_builtin_strncat_chk): Likewise.
20452         (fold_builtin_sprintf_chk): Likewise.
20453         (fold_builtin_snprintf_chk): Likewise.
20454         (fold_builtin_printf): Likewise.
20455         (fold_builtin_vprintf): Likewise.
20456
20457         * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
20458         constructors.
20459         (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
20460         (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
20461         (extract_muldiv_1): Add VL_EXP_CLASS_P case.
20462         (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
20463         (fold_unary): Likewise.
20464         (fold_binary): Likewise.
20465         (fold_ternary): Remove CALL_EXPR case, since they are no longer
20466         ternary expressions.
20467         (fold): Add logic for tcc_vl_exp.
20468         (fold_checksum_tree): Make it know about tcc_vl_exp.  Use
20469         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
20470         (fold_build3_stat): Add assertion to flag broken interface for
20471         constructing CALL_EXPRs.
20472         (fold_build_call_list): New.
20473         (fold_build_call_list_initializer): New.
20474         (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
20475         constructors.
20476         (fold_strip_sign_ops): Likewise.
20477
20478 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
20479             Brooks Moses  <brooks.moses@codesourcery.com>
20480             Lee Millward  <lee.millward@codesourcery.com>
20481
20482         * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
20483         accessors and dump arguments explicitly.
20484
20485         * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
20486         TREE_CODE_LENGTH.
20487         (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
20488         explicitly.
20489         (print_call_name): Use new CALL_EXPR accessors.
20490
20491         * print-tree.c (print_node): Add case tcc_vl_exp.  Print
20492         CALL_EXPR arguments explicitly instead of as a list.  Use
20493         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
20494
20495         * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
20496         (vrp_visit_stmt): Likewise.
20497
20498         * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Make it
20499         know about tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of
20500         TREE_CODE_LENGTH.
20501         (force_move_till_expr): Likewise.
20502
20503         * targhooks.c (default_external_stack_protect_fail): Use
20504         build_call_expr instead of build_function_call_expr.
20505         (default_hidden_stack_protect_fail): Likewise.
20506
20507         * tree-complex.c (expand_complex_libcall): Use build_call_expr to
20508         build the call.
20509
20510         * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
20511         and walk arguments explicitly.
20512
20513         * tree-ssa-loop-niter.c (simplify_replace_tree): Use
20514         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
20515         (expand_simple_operations): Likewise.
20516         (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
20517
20518         * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
20519         of TREE_CODE_LENGTH.
20520         (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
20521
20522         * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
20523         instead of TREE_CODE_LENGTH.
20524
20525         * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
20526         (tree_ic_transform): Likewise.
20527         (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
20528         parameter instead of arglist.  Fix callers.
20529         (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
20530         (tree_stringops_transform): Likewise.
20531         (tree_indirect_call_to_profile): Likewise.
20532         (tree_stringops_values_to_profile): Likewise.
20533
20534         * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
20535         (eliminate_tail_call): Likewise.
20536
20537         * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
20538
20539         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
20540         Use TREE_OPERAND_LENGTH and generalize to handle any number of
20541         operands.
20542         (instantiate_parameters_1): Can't handle tcc_vl_exp here.
20543
20544         * omp-low.c (build_omp_barrier): Use build_call_expr.
20545         (lower_rec_input_clauses): Likewise.
20546         (lower_reduction_clauses): Likewise.
20547         (expand_parallel_call): Likewise.
20548         (maybe_catch_exception): Likewise.
20549         (expand_omp_for_generic): Likewise.
20550         (expand_omp_for_static_nochunk): Likewise.
20551         (expand_omp_sections): Likewise.
20552         (lower_omp_single_simple): Likewise.
20553         (lower_omp_single_copy): Likewise.
20554         (lower_omp_master): Likewise.
20555         (lower_omp_ordered): Likewise.
20556         (lower_omp_critical): Likewise.
20557
20558         * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
20559         (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
20560
20561         * tree-gimple.c (is_gimple_call_addr): Fix doc.
20562         (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
20563         TREE_CODE_LENGTH.  Add tcc_vl_exp case.
20564
20565         * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
20566         and generalize to handle any number of operands.
20567         (chrec_contains_undetermined): Likewise.
20568         (tree_contains_chrecs): Likewise.
20569         (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
20570
20571         * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
20572
20573         * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors.  Use
20574         fold_call_expr instead of fold_builtin.
20575         (ccp_fold_builtin): Likewise.  Update calls into builtins.c to
20576         match declarations there.
20577         (fold_stmt): Use new CALL_EXPR constructor and accessors.  Doc
20578         updates.
20579
20580         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
20581         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
20582
20583         * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
20584         (scan_function): Add case tcc_vl_exp for CALL_EXPR.
20585
20586         * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
20587         accessors.
20588
20589         * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
20590         (execute_cse_sincos): Use new CALL_EXPR accessors.
20591
20592         * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
20593
20594         * gimple-low.c (lower_function_body): Use build_call_expr.
20595         (lower_builtin_setjmp): Likewise.
20596
20597         * expr.c (emit_block_move_via_libcall): Use build_call_expr.
20598         (set_storage_via_libcall): Likewise.
20599         (safe_from_p): Add tcc_vl_exp case.  Use TREE_OPERAND_LENGTH
20600         instead of TREE_CODE_LENGTH.
20601         (expand_expr_real_1): Use new CALL_EXPR accessors.
20602
20603         * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
20604         generalize to handle any number of operands.
20605         (TB_parent_eq): Likewise.
20606
20607         * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
20608         (strip_builtin_expect): Likewise.
20609
20610         * function.c (gimplify_parameters): Use build_call_expr.
20611
20612         * tree-vectorizer.c (vect_is_simple_reduction): Use
20613         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
20614
20615         * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
20616         (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
20617
20618         * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
20619         iterators.
20620
20621         * gimplify.c (build_stack_save_restore): Use build_call_expr.
20622         (gimplify_decl_expr): Likewise.
20623         (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
20624         Use new CALL_EXPR iterators.
20625         (gimplify_modify_expr_to_memcpy): Use build_call_expr.
20626         (gimplify_modify_expr_to_memset): Likewise.
20627         (gimplify_variable_sized_compare): Likewise.
20628         (gimplify_omp_atomic_fetch_op): Likewise.
20629         (gimplify_omp_atomic_pipeline): Likewise.
20630         (gimplify_omp_atomic_mutex): Likewise.
20631         (gimplify_function_tree): Likewise.
20632
20633         * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
20634         (call_expr_flags): Likewise.
20635         (expand_call): Likewise.
20636
20637         * except.c (expand_builtin_eh_return_data_regno): Pass entire
20638         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
20639         accessors.
20640
20641         * coverage.c (create_coverage): Use build_call_expr.
20642
20643         * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
20644         (temp_call_expr_obstack): New.
20645         (pool_copy_list): Delete.
20646         (temp_copy_call_expr): New.
20647         (phi_translate): Add case tcc_vl_exp for CALL_EXPR.  Use new
20648         CALL_EXPR accessors.  Get rid of special goo for copying argument
20649         lists and use temp_copy_call_expr instead.
20650         (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR.  Use new
20651         CALL_EXPR accessors.
20652         (create_expression_by_pieces): Likewise.  Use build_call_array
20653         to construct the result instead of fold_build3.
20654         (create_value_expr_from): Add tcc_vl_exp.  Delete special goo for
20655         dealing with argument lists.
20656         (init_pre): Remove references to expression_node_pool and
20657         list_node_pool.  Init temp_call_expr_obstack instead.
20658         (fini_pre): Remove references to expression_node_pool and
20659         list_node_pool.
20660
20661         * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
20662         and walk arguments explicitly instead of as a list.
20663
20664         * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
20665         (mx_register_decls): Likewise.
20666         (mudflap_register_call): Likewise.
20667         (mudflap_finish_file): Likewise.
20668
20669         * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
20670         (ipa_callsite_compute_param): Likewise.
20671
20672         * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
20673         accessors and constructor.
20674
20675         * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
20676         accessors and constructor.
20677         (convert_tramp_reference): Likewise.
20678         (convert_call_expr): Likewise.
20679         (finalize_nesting_tree_1): Likewise.
20680
20681         * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
20682         accessors.
20683
20684         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
20685
20686         * tree-inline.c (initialize_inlined_parameters): Pass entire
20687         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
20688         accessors.
20689         (estimate_num_insns_1): Use new CALL_EXPR accessors.
20690         (expand_call_inline): Tidy up call to initialize_inlined_parameters.
20691
20692         * tree-vect-transform.c (vect_create_epilog_for_reduction): Use
20693         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
20694         (vectorizable_reduction): Likewise.
20695         (vectorizable_call): Use new CALL_EXPR iterators.
20696         (vectorizable_conversion): Use build_call_expr.
20697         (vectorizable_operation): Use TREE_OPERAND_LENGTH.
20698         (vect_gen_widened_results_half): Use build_call_expr.
20699         (vect_setup_realignment): Likewise.
20700         (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
20701
20702         * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
20703         (pass_through_call): Likewise.
20704         (compute_object_sizes): Likewise.  Use fold_call_expr instead of
20705         fold_builtin.
20706
20707         * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
20708         (tree_gen_pow2_profiler): Likewise.
20709         (tree_gen_one_value_profiler): Likewise.
20710         (tree_gen_ic_func_profiler): Likewise.
20711         (tree_gen_average_profiler): Likewise.
20712         (tree_gen_ior_profiler): Likewise.
20713
20714         * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
20715         (find_func_aliases): Use new CALL_EXPR accessors.  Add case
20716         tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
20717
20718         * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
20719         of TREE_CODE_LENGTH.
20720
20721         * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
20722         of TREE_CODE_LENGTH.
20723
20724         * convert.c (convert_to_real): Use new CALL_EXPR accessors and
20725         constructor.
20726         (convert_to_integer): Likewise.
20727
20728         * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
20729         accessors.
20730
20731 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
20732             Brooks Moses  <brooks.moses@codesourcery.com>
20733             Lee Millward  <lee.millward@codesourcery.com>
20734
20735         * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
20736         accessors.
20737         * config/frv/frv.c (frv_expand_builtin): Likewise.
20738         * config/s390/s390.c (s390_expand_builtin): Likewise.
20739
20740         * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
20741         (sparc_expand_builtin): Use new CALL_EXPR accessors.
20742
20743         * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
20744         (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
20745         instead of arglist.  Use new CALL_EXPR accessors on it.  Fix callers.
20746         (ix86_expand_store_builtin): Likewise.
20747         (ix86_expand_unop_builtin): Likewise.
20748         (ix86_expand_unop1_builtin): Likewise.
20749         (ix86_expand_sse_compare): Likewise.
20750         (ix86_expand_sse_comi): Likewise.
20751         (ix86_expand_vec_init_builtin): Likewise.
20752         (ix86_expand_vec_ext_builtin): Likewise.
20753         (ix86_expand_vec_set_builtin): Likewise.
20754         (ix86_expand_builtin): Use new CALL_EXPR accessors.
20755
20756         * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
20757         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
20758
20759         * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
20760         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
20761         (iq2000_expand_builtin): Use new CALL_EXPR accessors.
20762
20763         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
20764         build_call_expr.
20765         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
20766         (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
20767         arglist.  Use new CALL_EXPR accessors.  Fix callers.
20768         (altivec_expand_abs_builtin): Likewise.
20769         (rs6000_expand_binop_builtin): Likewise.
20770         (altivec_expand_predicate_builtin): Likewise.
20771         (altivec_expand_lv_builtin): Likewise.
20772         (spe_expand_stv_builtin): Likewise.
20773         (altivec_expand_stv_builtin): Likewise.
20774         (rs6000_expand_ternop_builtin): Likewise.
20775         (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
20776         (altivec_expand_st_builtin): Likewise.
20777         (altivec_expand_dst_builtin): Likewise.
20778         (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
20779         arglist.  Use new CALL_EXPR accessors.  Fix callers.
20780         (altivec_expand_vec_set_builtin): Likewise.
20781         (altivec_expand_vec_ext_builtin): Likewise.
20782         (altivec_expand_builtin): Use new CALL_EXPR accessors.
20783         (spe_expand_builtin): Likewise.
20784         (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
20785         arglist.  Use new CALL_EXPR accessors.  Fix callers.
20786         (spe_expand_evsel_builtin): Likewise.
20787         (rs6000_expand_builtin): Use new CALL_EXPR accessors.  VCFUX and
20788         FCFSX cases must construct whole new CALL_EXPR, not just arglist.
20789
20790         * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
20791         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
20792         (arm_expand_unop_builtin): Likewise.
20793         (arm_expand_builtin): Use new CALL_EXPR accessors.
20794
20795         * config/mips/mips.c (mips_expand_builtin): Use new CALL_EXPR
20796         accessors.
20797
20798         * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire
20799         CALL_EXPR instead of arglist.  Use new CALL_EXPR accessors.
20800         Fix callers.
20801         (bfin_expand_unop_builtin): Likewise.
20802         (bfin_expand_builtin): Use new CALL_EXPR accessors.
20803
20804 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
20805             Brooks Moses  <brooks.moses@codesourcery.com>
20806             Lee Millward  <lee.millward@codesourcery.com>
20807
20808         * c-semantics.c (build_stmt): Add internal diagnostic check.
20809
20810         * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
20811         accessors.  Print arguments explicitly instead of as a list.
20812
20813         * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
20814
20815         * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
20816         (c_finish_omp_flish): Likewise.
20817
20818         * c-common.c (verify_tree): Use new CALL_EXPR accessors.  Traverse
20819         arguments explicitly instead of as a list.  Use TREE_OPERAND_LENGTH
20820         instead of TREE_CODE_LENGTH.
20821         (check_function_arguments_recurse): Use new CALL_EXPR accessors.
20822         (c_warn_unused_result): Likewise.
20823
20824 2007-02-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20825
20826         PR c/26494
20827         * doc/invoke.texi (Warning Options): Remove
20828         -Werror-implicit-function-declaration.
20829         (Wimplicit-function-declaration): Update description.
20830         * opts.c (common_handle_option): Move handling of -Werror=* to...
20831         (enable_warning_as_error): ...here.
20832         * opts.h (enable_warning_as_error): Declare.
20833         * c-decl.c (implicit_decl_warning): Unless
20834         -Wno-implicit-function-declaration is given, emit a pedwarn if
20835         -std=c99 or emit a warning if -Wimplicit-function-declaration.
20836         * c.opt (Wimplicit-function-declaration): Replace
20837         mesg_implicit_function_declaration with
20838         warn_implicit_function_declaration.
20839         * c-opts.c (c_common_handle_option):
20840         -Werror-implicit-function-declaration is exactly equal as
20841         -Werror=implicit-function-declaration.
20842         (set_Wimplicit): Replace mesg_implicit_function_declaration with
20843         warn_implicit_function_declaration.
20844         (c_common_post_options): -Wimplict-function-declaration is enabled
20845         by default by -std=c99, otherwise is disabled by default.
20846         * c-objc-common.c (c_objc_common_init): Remove flawed logic.
20847
20848 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
20849
20850         * gimplify.c (gimplify_modify_expr): During gimplification, attach a
20851         DECL on the rhs to a DECL on the lhs for debug info purposes if the
20852         former is ignored but not the latter.
20853
20854 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
20855
20856         * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
20857         is made and the reference doesn't use the alias set of its type,
20858         do not create the temporary using that type.
20859
20860 2007-02-15  Aldy Hernandez  <aldyh@redhat.com>
20861
20862         * jump.c: Remove prototypes for delete_computation and
20863         delete_prior_computation.
20864
20865 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
20866
20867         * jump.c (get_label_after): Delete.
20868         (get_label_before, delete_computation, delete_jump,
20869         delete_prior_computation, follow_jumps): Move...
20870         * reorg.c (delete_computation, delete_prior_computation): ... here...
20871         (get_label_before, delete_jump): ... making these static ...
20872         (follow_jumps): ... and simplifying this since it only runs after
20873         reload.
20874         * rtl.h (get_label_after, get_label_before, delete_jump,
20875         follow_jumps): Delete prototypes.
20876
20877 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
20878
20879         * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
20880
20881 2007-02-15  Nick Clifton  <nickc@redhat.com>
20882
20883         * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
20884         order to prevent it from being munged by the target.
20885
20886 2007-02-15  Uros Bizjak  <ubizjak@gmail.com>
20887
20888         * config/i386/i386.md: Remove misleading comment.
20889
20890 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
20891
20892         * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
20893         reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
20894         invalid patterns.
20895
20896 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
20897
20898         * tree-sra.c (instantiate_missing_elements): Canonicalize
20899         bit-field types.
20900         (sra_build_assignment): New.
20901         (generate_copy_inout, generate_element_copy,
20902         generate_element_zero, generate_one_element_init): Use it.
20903
20904 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
20905
20906         * tree-sra.c (instantiate_missing_elements): Canonicalize
20907         bit-field types.
20908         (sra_build_assignment): New.
20909         (generate_copy_inout, generate_element_copy,
20910         generate_element_zero, generate_one_element_init): Use it.
20911
20912 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
20913
20914         * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
20915         limbo die nodes.
20916
20917 2007-02-14  Joseph Myers  <joseph@codesourcery.com>
20918
20919         * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
20920         types as aggregates not scalars.
20921         * function.c (assign_stack_temp_for_type): Likewise.
20922
20923 2007-02-14  Roger Sayle  <roger@eyesopen.com>
20924             Zdenek Dvorak  <dvorakz@suse.cz>
20925
20926         * tree-dump.c (dump_switch_p_1): Require exact match of the option
20927         name.
20928
20929 2007-02-14  Zdenek Dvorak  <dvorakz@suse.cz>
20930
20931         * passes.c (next_pass_1): Clear the next field of the copied
20932         pass structure.
20933
20934 2007-02-14  Richard Henderson  <rth@redhat.com>
20935
20936         * tree-sra.c (early_sra): New.
20937         (decl_can_be_decomposed_p): Deny va_list if early_sra.
20938         (tree_sra_early, pass_sra_early): New.
20939         * tree-pass.h (pass_sra_early): Declare.
20940         * passes.c (init_optimization_passes): Use it.
20941
20942 2007-02-14  Richard Guenther  <rguenther@suse.de>
20943
20944         * flags.h (issue_strict_overflow_warning): Convert to a macro.
20945
20946 2007-02-14  Dorit Nuzman  <dorit@il.ibm.com>
20947
20948          PR tree-optimization/30771
20949         * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
20950         also phi nodes.
20951         (vect_analyze_operations): Induction phis can now be marked as
20952         used_in_loop.
20953         (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
20954         Update documentation accordingly.
20955
20956 2007-02-14  Nick Clifton  <nickc@redhat.com>
20957
20958         * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
20959         most 3 arguments are supported.
20960         (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
20961
20962 2007-02-13  Seongbae Park <seongbae.park@gmail.com>
20963
20964         * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
20965         Ensure dst->current is valid.
20966
20967 2007-02-13  Paul Brook  <paul@codesourcery.com>
20968
20969         * config.gcc: Add arm*-*-uclinux-*eabi.
20970         * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
20971         (SUBTARGET_EXTRA_LINK_SPEC): Define.
20972         (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
20973         (LINK_GCC_C_SEQUENCE_SPEC): Undef.
20974         (LINK_SPEC): Define.
20975         (LIB_SPEC): Define.
20976         * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
20977         register.
20978         * config/arm/uclinux-eabi.h: New file.
20979         * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
20980         * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
20981         based targets.
20982
20983 2007-02-13  Ian Lance Taylor  <iant@google.com>
20984
20985         * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
20986         * flags.h (warn_strict_overflow): Declare.
20987         (enum warn_strict_overflow_code): Define.
20988         (issue_strict_overflow_warning): New static inline function.
20989         * opts.c (warn_strict_overflow): New variable.
20990         (common_handle_option): Handle OPT_Wstrict_overflow and
20991         OPT_Wstrict_overflow_.
20992         * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
20993         OPT_Wall.
20994         * fold-const.c: Include intl.h.
20995         (fold_deferring_overflow_warnings): New static variable.
20996         (fold_deferred_overflow_warning): New static variable.
20997         (fold_deferred_overflow_code): New static variable.
20998         (fold_defer_overflow_warnings): New function.
20999         (fold_undefer_overflow_warnings): New function.
21000         (fold_undefer_and_ignore_overflow_warnings): New function.
21001         (fold_deferring_overflow_warnings_p): New function.
21002         (fold_overflow_warning): New static function.
21003         (make_range): Add strict_overflow_p parameter.  Change all
21004         callers.
21005         (extract_muldiv, extract_muldiv_1): Likewise.
21006         (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
21007         tree_expr_nonnegative_p.
21008         (fold_negate_expr): Call fold_overflow_warning.
21009         (fold_range_test): Likewise.
21010         (fold_comparison): Likewise.
21011         (fold_binary): Likewise.  Call tree_expr_nonnegative_warnv_p
21012         instead of tree_expr_nonnegative_p.
21013         (tree_expr_nonnegative_warnv_p): Rename from
21014         tree_expr_nonnegative_p, add strict_overflow_p parameter.
21015         (tree_expr_nonnegative_p): New function.
21016         (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
21017         strict_overflow_p parameter.
21018         (tree_expr_nonzero_p): New function.
21019         * passes.c (verify_interpass_invariants): New static function.
21020         (execute_one_pass): Call it.
21021         * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
21022         warnings.
21023         (number_of_iterations_exit, loop_niter_by_eval): Likewise.
21024         (estimate_numbers_of_iterations): Likewise.
21025         (scev_probably_wraps_p): Likewise.
21026         * tree-ssa-ccp.c: Include "toplev.h".
21027         (evaluate_stmt): Defer fold overflow warnings until we know we are
21028         going to optimize.
21029         (struct fold_stmt_r_data): Add stmt field.
21030         (fold_stmt_r): Defer fold overflow warnings until we know we
21031         optimized.
21032         (fold_stmt): Initialize stmt field of fold_stmt_r_data.
21033         (fold_stmt_inplace): Likewise.
21034         * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
21035         (cleanup_control_expr_graph): Defer fold overflow warnings until
21036         we know we are going to optimize.
21037         * tree-cfg.c (fold_cond_expr_cond): Likewise.
21038         * tree-ssa-threadedge.c (simplify_control_stmt_condition):
21039         Likewise.
21040         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
21041         tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
21042         * tree-ssa-loop-manip.c (create_iv): Likewise.
21043         * c-typeck.c (build_conditional_expr): Likewise.
21044         (build_binary_op): Likewise.
21045         * tree-vrp.c (vrp_expr_computes_nonzero): Call
21046         tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
21047         (extract_range_from_unary_expr): Likewise.
21048         * simplify-rtx.c (simplify_const_relational_operation): Warn when
21049         assuming that signed overflow does not occur.
21050         * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
21051         * tree.h (tree_expr_nonnegative_warnv_p): Declare.
21052         (fold_defer_overflow_warnings): Declare.
21053         (fold_undefer_overflow_warnings): Declare.
21054         (fold_undefer_and_ignore_overflow_warnings): Declare.
21055         (fold_deferring_overflow_warnings_p): Declare.
21056         (tree_expr_nonzero_warnv_p): Declare.
21057         * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
21058         of warning options.
21059         (Warning Options): Document -Wstrict-overflow.
21060         * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
21061         (tree-ssa-ccp.o): Likewise.
21062         (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
21063         (fold-const.o): Depend on intl.h.
21064
21065 2007-02-13  Ian Lance Taylor  <iant@google.com>
21066
21067         PR middle-end/30751
21068         * lower-subreg.c (resolve_simple_move): Decompose subregs in
21069         addresses.
21070
21071 2007-02-13  Stuart Hastings  <stuart@apple.com>
21072
21073         * config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
21074
21075 2007-02-13  Richard Henderson  <rth@redhat.com>
21076
21077         * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
21078         handled_component_p before looking for the indirect_ref.
21079
21080 2007-02-13  Richard Henderson  <rth@redhat.com>
21081
21082         * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
21083         remove flags clobber.
21084         (bswapsi2): New expander, emit code for !TARGET_BSWAP.
21085         (bswaphi_lowpart): New.
21086         (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
21087         remove TARGET_BSWAP test.  Delete expander of the same name.
21088
21089         * optabs.c (widen_bswap, expand_doubleword_bswap): New.
21090         (expand_unop): Use them.
21091
21092 2007-02-13  Uros Bizjak  <ubizjak@gmail.com>
21093
21094         * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
21095         *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
21096         *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
21097         *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
21098         *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
21099         *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
21100         *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
21101         assembler dialect choice from asm templates.
21102
21103 2007-02-12  Richard Henderson  <rth@redhat.com>
21104
21105         * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
21106         (fixuns_trunc<SSEMODEF>si2): Use it.
21107         * config/i386/sse.md (vec_setv4sf_0): Export.
21108         * config/i386/i386.c (ix86_build_const_vector): Export.
21109         (ix86_split_convert_uns_si_sse): Rename from
21110         ix86_expand_convert_uns_si_sse and rewrite as a splitter.
21111         * config/i386/i386-protos.h: Update.
21112
21113 2007-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21114
21115         PR c/29521
21116         * c-typeck.c (c_finish_return): Improve warning message.
21117
21118 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21119
21120         * alias.c (find_symbolic_term): Delete unused function.
21121
21122 2007-02-12  Uros Bizjak  <ubizjak@gmail.com>
21123
21124         * config/i386/i386.md (paritydi2, paritysi2): New expanders.
21125         (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
21126         (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
21127
21128 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
21129
21130         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
21131         * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
21132         the function, temporarily point the debug interface to the null one.
21133
21134 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
21135
21136         * dwarf2out.c (round_up_to_align): New static function.
21137         (field_byte_offset): Use it to round the offset.
21138
21139 2007-02-12  Richard Henderson  <rth@redhat.com>
21140
21141         * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
21142         (inswl_const): Export.
21143
21144 2007-02-12  Richard Henderson  <rth@redhat.com>
21145
21146         * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
21147         result mode of the libcall, convert back to outmode.
21148
21149 2007-02-12  Roger Sayle  <roger@eyesopen.com>
21150
21151         * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
21152         (bswapdi2): New define_expand to implement 32-bit implementation.
21153
21154 2007-02-12  Nick Clifton  <nickc@redhat.com>
21155
21156         * doc/invoke.texi (Overall Options): Document --help=.
21157         * gcc.c (target_help_flag): Rename to print_subprocess_flag.
21158         (cc1_options): Pass --help= on to cc1.
21159         (display_help): Add description of --help=.
21160         (process_command): Add code to handle --help=.  Allow translated
21161         --help and --target-help switches to be passed on to compiler
21162         sub-process.
21163         (main): Remove unused if statement.
21164         * opts.c (columns): Remove.
21165         (LEFT_COLUMN): Define.
21166         (wrap_help): Add columns argument.
21167         (print_filtered_help): Change parameters to be an include bitmask,
21168         an exclude bitmask, an any bitmask and the column width.  Move the
21169         code to display the params list here.  Add code to display the
21170         status of options rather than their descriptions if the quiet flag
21171         is not active.
21172         (print_specific_help): Change parameters to be an include bitmask,
21173         an exclude bitmask and an any bitmask.  Move code to look up the
21174         column width here.  Decide upon the title for an options listing.
21175         (common_handle_options): Add code to handle --help=.  Adapt code
21176         for --help and --target-help to use the revised form of the
21177         print_specific_help function.
21178         (print_help): Delete.
21179         (print_param_help): Delete.
21180         (print_switch): Delete.
21181         * opts.h (cl_lang_count): Add prototype.
21182         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
21183         CL_MAX_OPTION_CLASS): New defines.
21184         * optc-gen.awk: Add construction of cl_lang_count.
21185         * c.opt: Add Warning attribute to warning options and Optimization
21186         attribute to optimization options.
21187         * common.opt: Likewise.
21188         Add --help=.
21189         Add -fhelp and -ftarget-help as aliases for the transformed --help
21190         and --target-help options.
21191         * opt-functions.awk: Add code to handle Warning and Optimization
21192         attributes.
21193
21194 2007-02-12  Richard Henderson  <rth@redhat.com>
21195
21196         * config/alpha/constraints.md: New file.
21197         * config/alpha/alpha.c: Include tm-constrs.h.
21198         (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
21199         alpha_extra_constraint): Remove.
21200         (alpha_emit_conditional_branch): Use satisfies_constraint_*.
21201         * config/alpha/alpha-protos.h: Update.
21202         * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
21203         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
21204         (EXTRA_CONSTRAINT): Remove.
21205         * config/alpha/alpha.md: Include constraints.md.
21206         (adddi splitter): Use satisfies_constraint_*.
21207         * config/alpha/predicates.md (add_operand): Likewise.
21208         (sext_add_operand, addition_operation): Likewise.
21209
21210 2007-02-12  Dorit Nuzman  <dorit@il.ibm.com>
21211
21212         PR tree-optimization/29145
21213         * tree-data-ref.c (base_addr_differ_p): Make us more conservative
21214         in our handling of restrict qualified pointers.
21215
21216 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21217
21218         PR middle-end/7651
21219         * doc/invoke.texi (Wunused-value): Update description.
21220         (Wextra): Delete item.
21221         * opts.c (set_Wextra): Don't use the value of Wextra to set the
21222         value of Wunused-value.
21223         * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
21224         (c_finish_stmt_expr): Don't check extra_warnings.
21225         (emit_side_effect_warnings): The caller is responsible to check
21226         warn_unused_value.
21227
21228 2007-02-11  Roger Sayle  <roger@eyesopen.com>
21229             Matt Thomas  <matt@3am-software.com>
21230
21231         * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
21232
21233 2007-02-11  Roger Sayle  <roger@eyesopen.com>
21234
21235         * simplify-rtx.c (simplify_relational_operation_1): Optimize
21236         comparisons of POPCOUNT against zero.
21237         (simplify_const_relational_operation): Likewise.
21238
21239 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21240
21241         * doc/invoke.texi (Wextra): Delete outdated paragraph.
21242
21243 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21244
21245         * dwarf2out.c (root_type): Delete unused function.
21246
21247 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21248
21249         * genattrtab.c (contained_in_p): Delete unused function.
21250         (write_expr_attr_cache): Likewise.
21251
21252 2007-02-11  Jan Hubicka  <jh@suse.cz>
21253
21254         * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
21255         previous patch.
21256
21257 2007-02-11  Steven Bosscher  <steven@gcc.gnu.org>
21258
21259         * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
21260         to add the REG_EQ* note.
21261         * see.c (see_merge_one_use_extension): Likewise.
21262         * local-alloc.c (update_equiv_regs): Likewise.  Also don't
21263         turn REG_EQUAL notes into REG_EQUIV notes if the target
21264         register may have more than one set.
21265         * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
21266         * gcse.c (try_replace_reg): Likewise.
21267         * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
21268         * calls.c (fixup_tail_calls): Likewise.  Abort if there is
21269         more than one REG_EQUIV note.
21270         * reload1.c (gen_reload): Use set_unique_reg_note.
21271
21272 2007-02-11  Uros Bizjak  <ubizjak@gmail.com>
21273
21274         * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
21275         (ix86_builtin_conversion): New function.
21276
21277 2007-02-06  Mark Mitchell  <mark@codesourcery.com>
21278
21279         PR target/29487
21280         * tree.h (DECL_REPLACEABLE_P): New macro.
21281         * except.c (set_nothrow_function_flags): Likewise.
21282
21283 2007-02-11  Tehila Meyzels  <tehila@il.ibm.com>
21284             Ira Rosen  <irar@il.ibm.com>
21285             Dorit Nuzman  <dorit@il.ibm.com>
21286
21287         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
21288         * targhooks.c (default_builtin_vectorized_conversion): New.
21289         * targhooks.h (default_builtin_vectorized_function): New declaration.
21290         * target.h (struct vectorize): Add builtin_conversion field.
21291         * tree-vectorizer.h (type_conversion_vec_info_type): New enum
21292         stmt_vec_info_type value.
21293         (vectorizable_conversion): New declaration.
21294         * tree-vect-analyze.c (vect_analyze_operations): Add
21295         vectorizable_conversion call.
21296         * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
21297         * tree-vect-transform.c (vectorizable_conversion): New function.
21298         (vect_transform_stmt): Add case for type_conversion_vec_info_type.
21299         * tree-vect-generic.c (expand_vector_operations_1): Consider correct
21300         mode.
21301         * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
21302         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
21303         (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
21304         or ALTIVEC_BUILTIN_VCFSX.
21305
21306 2007-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21307
21308         PR target/30634
21309         * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
21310         CONST_DOUBLE and operand 0 is a hard register.
21311         (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
21312         memory.  Fail if operand 1 is a non-zero CONST_INT and operand 0
21313         is a hard floating-point register.
21314
21315 2007-02-10  Richard Henderson  <rth@redhat.com>
21316             Jakub Jelinek  <jakub@redhat.com>
21317             Alexandre Oliva  <aoliva@redhat.com>
21318
21319         * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
21320         * builtin-types.def (BT_WORD): Make unsigned.
21321         (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
21322         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
21323         (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
21324         * c-decl.c (grokdeclarator): Don't error if !have_tls.
21325         * c-parser.c (c_parser_omp_threadprivate): Likewise.
21326         * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
21327         emulated tls.
21328         * expr.c (emutls_var_address): New.
21329         (expand_expr_real_1): Expand emulated tls.
21330         (expand_expr_addr_expr_1): Likewise.
21331         * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
21332         * output.h (emutls_finish): Declare.
21333         * toplev.c (compile_file): Call it.
21334         * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
21335         address before wrapping in CONST.
21336         * varasm.c (emutls_htab, emutls_object_type): New.
21337         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
21338         (get_emutls_object_name, get_emutls_object_type): New.
21339         (get_emutls_init_templ_addr, emutls_decl): New.
21340         (emutls_common_1, emutls_finish): New.
21341         (assemble_variable): When emulating tls, swap decls; generate
21342         constructor for the emutls objects.
21343         (do_assemble_alias): When emulating tls, swap decl and target name.
21344         (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
21345         for emulated tls.
21346         * varpool.c (decide_is_variable_needed): Look at force_output.
21347         Recurse for emulated tls.
21348         (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
21349         with decide_is_variable_needed.
21350         * emutls.c: New file.
21351         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
21352         tls_object for real tls.
21353
21354 2007-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
21355
21356         PR rtl-optimization/29599
21357         * reload1.c (eliminate_regs_in_insn): Take the destination
21358         mode into account when computing the offset.
21359
21360 2007-02-09  Stuart Hastings  <stuart@apple.com>
21361             Richard Henderson  <rth@redhat.com>
21362
21363         * config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
21364         * config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
21365         * config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
21366         fixuns_truncdfhi2): New.
21367         (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
21368         (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
21369         (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
21370         (floatunssidf2): Allow nonimmediate source.
21371         * config/i386/sse.md (movdi_to_sse): New.
21372         (vec_concatv2di): Drop '*'.
21373         * config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
21374         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
21375         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
21376         New.
21377         * config/i386/i386.c (ix86_expand_convert_uns_si_sse,
21378         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
21379         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
21380         ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
21381         (ix86_build_signbit_mask): Fix decl of v, refactor to call
21382         ix86_build_const_vector.
21383         (x86_emit_floatuns): Rewrite.
21384
21385 2007-02-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21386
21387         * genautomata.c (longest_path_length): Delete unused function.
21388         (struct state): Delete unused longest_path_length.
21389         (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
21390         (get_free_state): Delete unused.
21391
21392 2007-02-09  Jan Hubicka  <jh@suse.cz>
21393
21394         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
21395         * doc/invoke.texi (inline-unit-growth): Update default value.
21396
21397         * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
21398         * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
21399         (rebuild_cgraph_edges): Likewise.
21400         * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
21401         (dump_cgraph_node): Dump frequencies.
21402         (cgraph_clone_edge): Add frequency scales.
21403         (cgraph_clone_node): Add freuqnecy.
21404         * cgraph.h (cgraph_edge): Add freuqnecy argument.
21405         (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
21406         (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
21407         * tree-pass.h (TODO_rebuild_frequencies): New constant.
21408         * cgraphunit.c (verify_cgraph_node): Verify frequencies.
21409         (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
21410         (save_inline_function_body): Likewise.
21411         * ipa-inline.c: inluce rtl.h
21412         (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
21413         (cgraph_edge_badness): Use frequencies.
21414         (cgraph_decide_recursive_inlining): Update clonning.
21415         (cgraph_decide_inlining_of_small_function): Dump frequency.
21416         * predict.c (estimate_bb_frequencies): Export.
21417         * predict.h (estimate_bb_frequencies): Declare.
21418         * tree-inline.c (copy_bb): Watch overflows.
21419         (expand_call_inline): Update call of cgraph_create_edge.
21420         (optimize_inline_calls): Use TODO flags to update frequnecies.
21421         * passes.h: Include predict.h
21422         (init_optimization_passes): Move profile ahead.
21423         (execute_function_todo): Handle TODO_rebuild_frequencies.
21424
21425 2007-02-09  Roger Sayle  <roger@eyesopen.com>
21426
21427         * config/alpha/alpha.c (emit_insxl): Force the first operand of
21428         the insbl or inswl pattern into a register.
21429
21430 2007-02-09  Roger Sayle  <roger@eyesopen.com>
21431
21432         * config/ia64/ia64.md (bswapdi2): New define_insn.
21433
21434 2007-02-09  Richard Henderson  <rth@redhat.com>
21435
21436         * config/i386/constraints.md (Ym): New constraint.
21437         * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
21438         (movdi_1_rex64): Split sse and xmm general register moves from
21439         memory move alternatives.  Use conditional register constraints.
21440         (movsf_1, movdf_integer): Likewise.
21441         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
21442         (movdf_integer_rex64): New.
21443         (pushsf_rex64): Fix output constraints.
21444         * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
21445         (sse2_stored): Likewise.
21446         (sse2_storeq_rex64): New.
21447         * config/i386/i386.c (x86_inter_unit_moves): Enable for not
21448         amd and not generic.
21449         (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
21450         for optimize_size.  Remove SF/DFmode hack.
21451
21452 2007-02-09  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
21453
21454         * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
21455         (bit_SSE4a): New.
21456
21457 2007-02-09  Nathan Sidwell  <nathan@codesourcery.com>
21458             Richard Sandiford  <richard@codesourcery.com>
21459
21460         * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
21461         (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
21462         (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
21463         m68k/t-mlib to tmake_file.
21464         (m68020-*-elf*, m68k-*-elf*): Likewise.  Add t-m68kbare as well.
21465         (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
21466         (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
21467         Allow it to be cf or m68k.  Set m68k_arch_family.  If that
21468         variable is not empty, add t-$m68k_arch_family to tmake_file.
21469         Add t-mlibs to tmake_file.
21470         * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
21471         * config/m68k/t-cf: New file.
21472         * config/m68k/t-m68k: Likewise.
21473         * config/m68k/t-mlibs: Likewise.
21474         * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
21475         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
21476         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
21477         * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
21478         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
21479         Delete.
21480         * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
21481         (INSTALL_LIBGCC): Delete.
21482         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
21483         * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
21484         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
21485         (M68K_MLIB_CPU): Define.
21486         * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
21487         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
21488         (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
21489
21490 2007-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
21491             Richard Guenther  <rguenther@suse.de>
21492
21493         PR middle-end/23361
21494         * fold-const.c (fold_comparison): Handle obfuscated comparisons
21495         against INT_MIN/INT_MAX.
21496         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
21497         file if a loop is removed.
21498
21499 2007-02-09  Joseph Myers  <joseph@codesourcery.com>
21500
21501         * calls.c (store_one_arg): Pass correct alignment to
21502         emit_push_insn for non-BLKmode values.
21503         * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
21504         unaligned stack slot via a suitably aligned slot.
21505
21506 2007-02-08  DJ Delorie  <dj@redhat.com>
21507
21508         * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
21509         warnings.
21510         (legal_subregs): Use unsigned char, make const.
21511         (m32c_illegal_subreg_p): Use ARRAY_SIZE.  Delete unused variables.
21512
21513 2007-02-08  Paul Brook  <paul@codesourcery.com>
21514
21515         * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
21516         special interworking needed.
21517
21518 2007-02-08  Harsha Jagasia  <harsha.jagasia@amd.com>
21519
21520         * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
21521         conditional to __SSE2__.
21522         (Entries below should have been added to first ChangeLog
21523         entry for amdfam10 dated 2007-02-05)
21524         * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
21525         defined.
21526         * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
21527         defined.
21528         * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
21529         defined.
21530
21531 2007-02-08  DJ Delorie  <dj@redhat.com>
21532
21533         * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
21534         * config/m32c/m32c.c (legal_subregs): New.
21535         (m32c_illegal_subreg_p): New.
21536         * config/m32c/predicates.md (m32c_any_operand): Use it to reject
21537         unsupported subregs of hard regs.
21538
21539 2007-02-08  Jan Hubicka  <jh@suse.cz>
21540
21541         * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
21542         the same one; always update histograms.
21543
21544 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
21545
21546         * passes.c (init_optimization_passes): Tidy comment.
21547
21548 2007-02-08  Roger Sayle  <roger@eyesopen.com>
21549
21550         * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
21551         strip zero_extend, bswap and rotates from POCOUNT's argument.
21552         <PARITY>: Likewise, we can strip not, bswap, sign_extend,
21553         zero_extend and rotates from PARITY's argument.
21554         <BSWAP>: A byte-swap followed by a byte-swap is an identity.
21555         (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
21556         of an integer constant at compile-time.
21557
21558 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
21559
21560         PR 30562
21561         * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
21562         Update all users.
21563         * tree-ssa-alias.c (compute_is_aliased): Remove.  Update all
21564         users.
21565         (init_alias_info):
21566         * tree-ssa-live.c (remove_unused_locals): Do not remove
21567         TREE_ADDRESSABLE variables.
21568         * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
21569         * tree-ssa-operands.c (add_virtual_operand): Remove argument
21570         FOR_CLOBBER.  Update all users.
21571         If VAR has an associated alias set, add a virtual operand for
21572         it if no alias is found to conflict with the memory reference.
21573
21574 2007-02-07  Jan Hubicka  <jh@suse.cz>
21575             Robert Kidd <rkidd@crhc.uiuc.edu>
21576
21577         * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
21578
21579 2007-02-07  Ian Lance Taylor  <iant@google.com>
21580
21581         * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
21582
21583 2007-02-07  Roger Sayle  <roger@eyesopen.com>
21584
21585         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
21586         parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
21587         tablejumpdi, movsi_to_cr_one): Remove constraints from
21588         define_expand's match_operands.
21589
21590 2007-02-07  Roger Sayle  <roger@eyesopen.com>
21591
21592         * global.c (compute_regsets): Move declatation of "i" inside of
21593         #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
21594
21595 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
21596
21597         PR c++/30703
21598         * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
21599         of INDIRECT_REF <RESULT_DECL>.
21600
21601         * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
21602
21603 2007-02-06  J"orn Rennecke  <joern.rennecke@arc.com>
21604             Kaz Kojima  <kkojima@gcc.gnu.org>
21605
21606         PR target/29746
21607         * config/sh/sh.c (expand_cbranchdi4): Use scratch register
21608         properly.
21609         (sh_initialize_trampoline): Add parentheses to avoid a warning.
21610
21611 2007-02-06  Zdenek Dvorak <dvorakz@suse.cz>
21612
21613         * doc/loop.texi: Document possibility not to perform disambiguation
21614         of loops with multiple latches.
21615         * cfgloopmanip.c (alp_enum_p): Removed.
21616         (add_loop): Handle subloops.  Use get_loop_body_with_size.
21617         (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
21618         * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
21619         the new forwarder block.
21620         (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
21621         Handle the case latch is NULL.
21622         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg
21623         modifications when marking loop exits.
21624         * ifcvt.c (if_convert): Ditto.  Mark loop exits even if cfg cannot
21625         be modified.
21626         * loop-init.c (loop_optimizer_init): Do not modify cfg.  Call
21627         disambiguate_loops_with_multiple_latches.
21628         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
21629         before fix_loop_structure.
21630         * cfgloop.c: Include pointer-set.h and output.h.
21631         (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
21632         update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
21633         (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
21634         find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
21635         mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
21636         disambiguate_multiple_latches, get_loop_body_with_size,
21637         disambiguate_loops_with_multiple_latches): New functions.
21638         (flow_loop_dump): Dump multiple latch edges.
21639         (flow_loop_nodes_find): Handle loops with multiple latches.
21640         (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
21641         (glb_enum_p): Modified.
21642         (get_loop_body): Use get_loop_body_with_size.
21643         * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
21644         (AVOID_CFG_MODIFICATIONS): New constant.
21645         (disambiguate_loops_with_multiple_latches, add_loop,
21646         get_loop_body_with_size): Declare.
21647         * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
21648
21649 2007-02-06  Seongbae Park <seongbae.park@gmail.com>
21650
21651         PR inline-asm/28686
21652         * global.c (compute_regsets): New function.
21653         (global_alloc): Refactored ELIMINABLE_REGSET
21654         and NO_GLOBAL_ALLOC_REGS computation out.
21655         (rest_of_handle_global_alloc): Call compute_regsets()
21656         for non-optimizing case.
21657
21658 2007-02-06  Richard Henderson  <rth@redhat.com>
21659
21660         * config/i386/constraints.md (Y2): Rename from Y.
21661         (Yi): New constraint.
21662         * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
21663         pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
21664         zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
21665         (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
21666         truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
21667         fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
21668         floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
21669         absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
21670         fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
21671         * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
21672         mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
21673         vec_extractv2si_1): Change Y constraints to Y2.
21674         * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
21675         vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
21676         Change Y constraints to Y2.
21677         (sse2_loadld): Change Y constraints to x.
21678
21679 2007-02-06  Roger Sayle  <roger@eyesopen.com>
21680
21681         * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
21682         (parity<mode>2): New define_expand using rs6000_emit_parity.
21683         * config/rs6000/rs6000.c (rs6000_emit_popcount,
21684         rs6000_emit_parity): New functions.
21685         * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
21686         rs6000_emit_parity): Prototype here.
21687
21688 2007-02-06  Ian Lance Taylor  <iant@google.com>
21689
21690         * lower-subreg.c (simple_move_operand): Reject CONST.
21691         (resolve_clobber): Call validate_change rather than directly
21692         assigning to XEXP (pat, 0).
21693
21694 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
21695
21696         * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
21697         (tree-ssa-reassoc.o): Add pointer-set.h dependency.
21698         (tree-cfg.o): Remove hashtab.h dependency.
21699
21700         * tree-ssa-loop-ivopts.c: Include pointer-set.h.
21701         (struct ivopts_data): Change niters to pointer_map_t.
21702         (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
21703         (niter_for_exit): Create pointer_map on demand.  Change for
21704         pointer_map API.
21705         (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
21706         (free_loop_data): Destroy data->niters if created and reset field.
21707         (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
21708         (tree_ssa_iv_optimize_loop): Check for presence of stale data.
21709
21710         * tree-ssa-reassoc.c: Include pointer-set.h.
21711         (bb_rank): Change to long *.
21712         (operand_rank): Change to pointer_map_t.
21713         (find_operand_rank): Return long, -1 if not found.  Declare as inline.
21714         (insert_operand_rank): Accept long.
21715         (operand_entry_hash, operand_entry_eq): Remove.
21716         (get_rank): Return long.  Adjust for changes above.
21717         (init_reassoc): Change rank type to long.  Adjust creation of bb_rank
21718         and operand_rank.
21719         (fini_reassoc): Delete operand_rank with pointer_map_destroy.
21720
21721         * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
21722         (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
21723         (insert_vi_for_tree): Rewrite for pointer_map API.  Assert argument
21724         is not NULL.
21725         (lookup_vi_for_tree): Rewrite for pointer_map API.  Return varinfo_t
21726         directly since it cannot be NULL.
21727         (get_vi_for_tree): Rewrite for pointer_map API.
21728         (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
21729         (init_alias_vars): Create vi_for_tree as pointer_map.
21730         (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
21731
21732         * tree-cfg.c: Don't include hashtab.h.
21733         (edge_to_cases): Declare as pointer_map.
21734         (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
21735         Delete.
21736         (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
21737         (start_recording_case_labels): Create edge_to_cases as pointer_map.
21738         (end_recoding_case_labels): Cleanup edge_to_cases manually before
21739         destroying it.
21740         (record_switch_edge): Delete.
21741         (get_cases_for_edge): Adjust for pointer_map API, inline
21742         record_switch_edge (rewritten for new API), remove goto.
21743
21744 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
21745
21746         * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
21747         * tree-nested.c: Include pointer-set.h.
21748         (var_map_elt, var_map_eq, var_map_hash): Delete.
21749         (struct nesting_info): Remove GTY marker.  Change the two htab_t's
21750         to pointer_map_t's.
21751         (nesting_info_bitmap_obstack): New.
21752         (lookup_field_for_decl): Adjust for pointer_map API.
21753         (lookup_tramp_for_decl): Adjust for pointer_map API.
21754         (get_nonlocal_debug_decl): Adjust for pointer_map API.
21755         (get_local_debug_decl): Adjust for pointer_map API.
21756         (convert_nl_goto_reference): Adjust for pointer_map API.
21757         (convert_nl_goto_receiver): Adjust for pointer_map API.
21758         (create_nesting_tree): Create outside GGC space.  Create bitmap on
21759         the new obstack.  Create field_map and var_map as pointer_maps.
21760         (free_nesting_tree): Adjust for changes to create_nesting_tree.
21761         (root): Delete.
21762         (lower_nested_functions): Move root here, no need to NULL it.
21763         Initialize and release the obstack.
21764
21765 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
21766
21767         * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
21768         Remove prototypes and make them non-static.
21769         (struct tree_int_map): Remove.
21770         * tree.h (struct tree_int_map): Move here, turning TO into an
21771         unsigned int.
21772         (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
21773
21774         * tree.h (TREE_COMPLEXITY): Remove.
21775         (struct tree_exp): Remove complexity field.
21776         * tree.c (build1_stat): Don't set it.
21777
21778 2007-02-06  Dorit Nuzman  <dorit@il.ibm.com>
21779             Victor Kaplansky  <victork@il.ibm.com>
21780
21781         * tree-vectorizer.c (vect_is_simple_use): Support induction.
21782         (vect_is_simple_reduction): Support reduction with induction as
21783         one of the operands.
21784         (vect_is_simple_iv_evolution): Fix formatting.
21785         * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
21786         formatting.  Don't mark induction phis for vectorization.
21787         (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
21788         * tree-vect-transform.c (get_initial_def_for_induction): New function.
21789         (vect_get_vec_def_for_operand): Support induction.
21790         (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
21791         induction case.
21792         (vectorizable_reduction): Support reduction with induction as one of
21793         the operands.
21794         (vectorizable_type_demotion): Use def-type of stmt argument rather
21795         than dummy def-type.
21796
21797         * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
21798         flag_tree_scev_cprop.
21799         * common.opt (tree-scev-cprop): New flag.
21800
21801         * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
21802         call to vect_get_new_vect_var.
21803
21804 2007-02-06  Ira Rosen  <irar@il.ibm.com>
21805
21806         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
21807         vectype is not NULL.
21808         (vect_pattern_recog_1): Likewise.
21809
21810 2007-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21811
21812         * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
21813         (fold_negate_expr): Likewise.
21814
21815 2007-02-05  Alexandre Oliva  <aoliva@redhat.com>
21816
21817         PR debug/30189
21818         * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
21819         even if cv-qualification is the same.
21820
21821 2007-02-05  Geoffrey Keating  <geoffk@apple.com>
21822
21823         * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
21824         __enable_execute_stack on completion.
21825
21826 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
21827
21828         * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
21829         athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
21830         athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
21831         athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
21832         athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
21833         athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
21834         athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
21835         athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
21836
21837 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
21838
21839         * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
21840         cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
21841         swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
21842         fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
21843         x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
21844         floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
21845         floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
21846         mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
21847         umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
21848         umuldi3_highpart_rex64, umulsi3_highpart_insn,
21849         umulsi3_highpart_zext, smuldi3_highpart_rex64,
21850         smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
21851         x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
21852         sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
21853         sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
21854         sqrtextenddfxf2_i387): Added amdfam10_decode.
21855
21856         * config/i386/athlon.md (athlon_idirect_amdfam10,
21857         athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
21858         athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
21859         athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
21860         athlon_ivector_store_amdfam10): New define_insn_reservation.
21861         (athlon_idirect_loadmov, athlon_idirect_movstore): Added
21862         amdfam10.
21863
21864 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
21865
21866         * config/i386/athlon.md (athlon_call_amdfam10,
21867         athlon_pop_amdfam10, athlon_lea_amdfam10): New
21868         define_insn_reservation.
21869         (athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
21870         athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
21871         athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
21872
21873 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
21874
21875         * config/i386/athlon.md (athlon_sseld_amdfam10,
21876         athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
21877         athlon_mmxssest_short_amdfam10): New define_insn_reservation.
21878
21879 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
21880
21881         * config/i386/athlon.md (athlon_sseins_amdfam10): New
21882         define_insn_reservation.
21883         * config/i386/i386.md (sseins): Added sseins to define_attr type
21884         and define_attr unit.
21885         * config/i386/sse.md: Set type attribute to sseins for insertq
21886         and insertqi.
21887
21888 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
21889
21890         * config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
21891         ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
21892         ssecomi_load_amdfam10, ssecomi_amdfam10,
21893         sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
21894         define_insn_reservation.
21895         (ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
21896
21897 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
21898
21899         * config/i386/athlon.md (cvtss2sd_load_amdfam10,
21900         cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
21901         cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
21902         cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
21903         cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
21904         cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New
21905         define_insn_reservation.
21906
21907         * config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
21908         cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
21909         cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
21910         cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
21911         cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
21912
21913 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
21914
21915         * config/i386/athlon.md (athlon_ssedivvector_amdfam10,
21916         athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
21917         athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
21918         (athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
21919         athlon_ssemul_load_k8): Added amdfam10.
21920
21921 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
21922
21923         * config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
21924         (x86_sse_unaligned_move_optimal): New variable.
21925
21926         * config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for
21927         m_AMDFAM10.
21928         (ix86_expand_vector_move_misalign): Add code to generate movupd/movups
21929         for unaligned vector SSE double/single precision loads for AMDFAM10.
21930
21931 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
21932
21933         * config/i386/i386.h (TARGET_AMDFAM10): New macro.
21934         (TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
21935         Define TARGET_CPU_DEFAULT_amdfam10.
21936         (TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
21937         (processor_type): Add PROCESSOR_AMDFAM10.
21938
21939         * config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
21940         processor_type in config/i386/i386.h.
21941         Enable imul peepholes for TARGET_AMDFAM10.
21942
21943         * config.gcc: Add support for --with-cpu option for amdfam10.
21944
21945         * config/i386/i386.c (amdfam10_cost): New variable.
21946         (m_AMDFAM10): New macro.
21947         (m_ATHLON_K8_AMDFAM10): New macro.
21948         (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
21949         x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
21950         x86_promote_QImode, x86_integer_DFmode_moves,
21951         x86_partial_reg_dependency, x86_memory_mismatch_stall,
21952         x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
21953         x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
21954         x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
21955         x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
21956         Enable/disable for amdfam10.
21957         (override_options): Add amdfam10_cost to processor_target_table.
21958         Set up PROCESSOR_AMDFAM10 for amdfam10 entry in
21959         processor_alias_table.
21960         (ix86_issue_rate): Add PROCESSOR_AMDFAM10.
21961         (ix86_adjust_cost): Add code for amdfam10.
21962
21963 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
21964
21965         * config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
21966         instruction set feature flag. Add new (-mpopcnt) flag for popcnt
21967         instruction. Add new SSE4A (-msse4a) instruction set feature flag.
21968         * config/i386/i386.h: Add builtin definition for SSE4A.
21969         * config/i386/i386.md: Add support for ABM instructions
21970         (popcnt and lzcnt).
21971         * config/i386/sse.md: Add support for SSE4A instructions
21972         (movntss, movntsd, extrq, insertq).
21973         * config/i386/i386.c: Add support for ABM and SSE4A builtins.
21974         Add -march=amdfam10 flag.
21975         * config/i386/ammintrin.h: Add support for SSE4A intrinsics.
21976         * doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
21977         and amdfam10.
21978         * doc/extend.texi: Add documentation for SSE4A builtins.
21979
21980 2007-02-05  Bob Wilson  <bob.wilson@acm.org>
21981
21982         * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
21983
21984 2007-02-05  Richard Guenther  <rguenther@suse.de>
21985
21986         * tree-vectorizer.h (vectorizable_function): Add argument type
21987         argument, change return type.
21988         * tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
21989         * tree-vect-transform.c (vectorizable_function): Handle extra
21990         argument, return vectorized function decl.
21991         (build_vectorized_function_call): Remove.
21992         (vectorizable_call): Handle calls with result and argument types
21993         differing.  Handle loop vectorization factor correctly.
21994         * targhooks.c (default_builtin_vectorized_function): Adjust for
21995         extra argument.
21996         * targhooks.h (default_builtin_vectorized_function): Likewise.
21997         * target.h (builtin_vectorized_function): Add argument type
21998         argument.
21999         * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
22000         extra argument, allow vectorizing of lrintf.
22001         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
22002         documentation of target hook.
22003
22004 2007-02-05  Hans-Peter Nilsson  <hp@axis.com>
22005
22006         PR target/30665
22007         * config/cris/cris.md ("*andsi_movu", "*andsi_clear", "*andhi_movu")
22008         ("*andhi_clear", andu (casesi+45)): For size-changed operand where
22009         memory is allowed, require !side_effects_p, not just !MEM_VOLATILE_P.
22010
22011 2007-02-05  Roger Sayle  <roger@eyesopen.com>
22012
22013         * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
22014         BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
22015         <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
22016         * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
22017         before canonicalizing sincos to cexpi.
22018         (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.
22019
22020 2007-02-05  Roger Sayle  <roger@eyesopen.com>
22021
22022         * config/alpha/alpha.c (alpha_add_builtins): New Helper function.
22023         Set TREE_READONLY and TREE_NOTHROW directly, not via attributes.
22024         (alpha_init_builtins): Use alpha_add_builtins to process tables.
22025
22026 2007-02-05  Roger Sayle  <roger@eyesopen.com>
22027
22028         * mips-tfile.c (initialize_init_file): Correct endianness test.
22029
22030 2007-02-05  Kazu Hirata  <kazu@codesourcery.com>
22031
22032         * config/m68k/m68k.md (pushdi-1, pushdi, movsi+1): Don't use
22033         the 'y' constraint.
22034
22035 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
22036
22037         * dwarf2out.c (dwarf2out_frame_debug_expr): Record the register
22038         saves in a PARALLEL before the register assignments.
22039
22040 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
22041
22042         * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Do not require
22043         DWARF_FRAME_RETURN_COLUMN to be a general register.
22044         * dwarf2out.c (init_return_column_size): New function, split from...
22045         (expand_builtin_init_dwarf_reg_sizes): ...here.  Allow both
22046         DWARF_FRAME_RETURN_COLUMN and DWARF_ALT_FRAME_RETURN_COLUMN
22047         to be nongeneral registers.
22048         * config/m68k/m68k.h (DWARF_FRAME_REGNUM): Only map FP and
22049         integer registers.
22050         (DWARF_FRAME_REGISTERS, DWARF_FRAME_RETURN_COLUMN): Define.
22051         (DWARF_ALT_FRAME_RETURN_COLUMN): Define.
22052
22053 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
22054
22055         * cfgcleanup.c (try_optimize_cfg): Avoid removing ENTRY_BLOCK_PTR.
22056
22057 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
22058
22059         * cfgloopmanip.c (loop_delete_branch_edge): Removed.
22060         (remove_path): Use can_remove_branch_p and remove_branch instead
22061         of loop_delete_branch_edge.
22062         * tree-ssa-loop-manip.c (scale_dominated_blocks_in_loop): New function.
22063         (tree_transform_and_unroll_loop): Remove dead branches immediately.
22064         Update profile using scale_dominated_blocks_in_loop.
22065         * cfghooks.c (can_remove_branch_p, remove_branch): New functions.
22066         * cfghooks.h (struct cfg_hooks): Add can_remove_branch_p.
22067         (can_remove_branch_p, remove_branch): Declare.
22068         * tree-cfg.c (tree_can_remove_branch_p): New function.
22069         (tree_cfg_hooks): Add tree_can_remove_branch_p.
22070         * cfgrtl.c (rtl_can_remove_branch_p): New function.
22071         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add rtl_can_remove_branch_p.
22072
22073 2007-02-05  Jan Hubicka  <jh@suse.cz>
22074
22075         PR middle-end/30696
22076         * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
22077         nodes in cgraph, don't remove offline copy of the function.
22078
22079 2007-02-04  Jan Hubicka  <jh@suse.cz>
22080
22081         * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
22082         vectors might cause maybe_lookup_element_for_expr to be called
22083         on non-sra-candidate.
22084
22085 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
22086
22087         * config/bfin/bfin-modes.def, config/bfin/bfin.c,
22088         config/bfin/bfin.md, config/bfin/predicates.md: Follow
22089         spelling conventions.
22090
22091 2007-02-04  Richard Guenther  <rguenther@suse.de>
22092
22093         PR middle-end/30636
22094         * fold-const.c (try_move_mult_to_index): Make sure to not
22095         overflow one dimension of a multi-dimensional array access.
22096
22097 2007-02-04  Jan Hubicka  <jh@suse.cz>
22098
22099         * passes.c (init_optimization_passes): Reindent.
22100
22101 2007-02-04  Jan Hubicka  <jh@suse.cz>
22102             Eric Botcazou  <ebotcazou@adacore.com>
22103
22104         * tree-optimize.c (has_abnormal_outgoing_edge_p): Move to...
22105         (execute_fixup_cfg): Break out the abnormal goto code.
22106         * tree-inline.c (has_abnormal_outgoing_edge_p): ...here.
22107         (make_nonlocal_label_edges): Move here from execute_fixup_cfg.
22108         (optimize_inline_calls): Call make_nonlocal_label_edges.
22109
22110 2007-02-04  Jan Hubicka  <jh@suse.cz>
22111
22112         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Return
22113         true when something was changed.
22114         (rename_ssa_copies): When something was changed, do
22115         TODO_remove_unused_locals.
22116         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
22117         add TODO_remove_unused_locals when instruction was removed.
22118
22119 2007-02-04  Jan Hubicka  <jh@suse.cz>
22120
22121         * ipa-inline.c (try_inline): Improve debug output; work on already
22122         inline edges too.
22123         (cgraph_decide_inlining_incrementally): Indent; improve debug output;
22124         call try_inline for already inlined edges too when flattening;
22125         inline also functions that make callee growth but overall unit size
22126         reduce.
22127
22128 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
22129
22130         * config/m32c/bitops.md, config/m32c/jump.md,
22131         config/m32c/m32c.c, config/m32c/m32c.h, config/m32r/m32r.c,
22132         config/m32r/m32r.h, config/m32r/m32r.md,
22133         config/m32r/predicates.md, config/m68hc11/larith.asm,
22134         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
22135         config/m68k/m68k.h, config/mcore/mcore.md, config/mips/4k.md,
22136         config/mips/mips-protos.h, config/mips/mips.c,
22137         config/mips/mips.h, config/mips/mips.md, config/mips/mips16.S,
22138         config/mn10300/mn10300.h, config/mn10300/predicates.md,
22139         config/mt/mt.c, config/mt/mt.h, config/mt/mt.md: Follow
22140         spelling conventions.
22141
22142         * config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
22143         Follow spelling conventions.
22144
22145 2007-02-03  Douglas Gregor  <doug.gregor@gmail.com>
22146
22147         * c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
22148         warn about C++0x compatibility.
22149
22150 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
22151
22152         * config/h8300/h8300.c, config/h8300/h8300.h,
22153         config/h8300/h8300.md: Follow spelling conventions.
22154
22155 2007-02-03  Uros Bizjak  <ubizjak@gmail.com>
22156
22157         PR middle-end/30667
22158         * combine.c (try_combine): Do not substitute source operand
22159         with constants wider than 2 * HOST_BITS_PER_WIDE_INT.
22160
22161 2007-02-03  Jan Hubicka  <jh@suse.cz>
22162
22163         PR gcov-profile/30650
22164         * value-prof.c (stringop_block_profile): Fix handling of size counter;
22165         do not divide by zero for never executed counters.
22166         (tree_find_values_to_profile): Fix counters.
22167         * gcov-ui.h (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): Fix comments.
22168
22169 2007-02-03  Ian Lance Taylor  <iant@google.com>
22170
22171         * lower-subreg.c (simple_move_operand): New static function,
22172         broken out of simple_move.  Reject LABEL_REF, SYMBOL_REF, and HIGH
22173         operands.
22174         (simple_move): Call simple_move_operand.
22175         (find_decomposable_subregs): Add special handling of MEMs.
22176         (can_decompose_p): Rename from cannot_decompose_p.  Reverse
22177         meaning of return value.  If we see a hard register, test whether
22178         it can store a word_mode value.  Change all callers.
22179
22180 2007-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22181
22182         * pa.md (addvdi3, addvsi3, subvdi3, subvsi3, negvdi2, negvsi2): New
22183         ftrapv insns and expanders.
22184         (subdi3): Change define_expand operand 1 to arith11_operand, and
22185         operand 2 to reg_or_0_operand.  Change constraints of 64-bit insn
22186         pattern to handle reg_or_0 operands.  Revise 32-bit insn pattern to
22187         handle 11-bit constants and reg_or_0 operands in operands 1 and 2,
22188         respectively.
22189
22190         PR middle-end/30174
22191         * varasm.c (notice_global_symbol): Treat global objects as weak when
22192         flag_shlib is true.
22193
22194 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22195
22196         * emit-rtl.c (dconstpi): Delete.
22197         (dconstsqrt2): New.
22198         (init_emit_once): Delete dconstpi and init dconstsqrt2.
22199         * real.h (dconstpi): Delete.
22200         (dconstsqrt2): New.
22201         * builtins.c (fold_builtin_cabs): Use dconstsqrt2.
22202         (fold_builtin_hypot): Likewise.
22203
22204 2007-02-03  Tom Tromey  <tromey@redhat.com>
22205
22206         PR driver/30246
22207         * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
22208         -gcoff3, -gxcoff3, -gvms3 implies -dD.
22209
22210 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
22211
22212         * c-decl.c, config/avr/avr.c, config/avr/avr.h,
22213         config/m68k/m68k.c, config/m68k/netbsd-elf.h,
22214         config/mn10300/mn10300.c, config/pdp11/pdp11.h,
22215         config/rs6000/cell.md, config/rs6000/darwin.h,
22216         config/sh/sh.md, config/sh/sh4-300.md, config/spu/spu.c,
22217         config/spu/spu.md, cselib.c, expr.c, haifa-sched.c, hwint.h,
22218         jump.c, reload.c, sched-deps.c, sched-int.h, tree-inline.c,
22219         tree-profile.c, tree-ssa-live.h, tree-vrp.c: Fix comment
22220         typos.  Follow spelling conventions.
22221         * doc/invoke.texi: Follow spelling conventions.
22222
22223 2007-02-03  Roger Sayle  <roger@eyesopen.com>
22224
22225         * simplify-rtx.c (simplify_relational_operation_1): Implement some
22226         canonicalization transformations that attempt to simplify integer
22227         constant comparisons to become comparisons against zero.
22228
22229 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22230
22231         * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
22232         fabs(x)*sqrt(2).
22233         * fold-const.c (fold_binary): Fix comment typos.  Fold complex
22234         (x,0)-(0,y) into (x,-y).  Likewise (0,y)-(x,0) into (-x,y).
22235
22236 2007-02-02  Mike Stump  <mrs@apple.com>
22237
22238         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Add.
22239         * config/rs6000/rs6000.c (DARWIN_GENERATE_ISLANDS): Add.
22240         (output_call): Use DARWIN_GENERATE_ISLANDS to decide when to
22241         generate a branch island.
22242
22243 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
22244
22245         * config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
22246         (xtensa_legitimate_address_p): New.
22247         (xtensa_legitimize_address): New.
22248         (xtensa_output_addr_const_extra): New.
22249         * config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
22250         (BASE_REG_P): New.
22251         (REG_OK_FOR_BASE_P): Use BASE_REG_P.
22252         (GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
22253         (LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
22254         (OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
22255         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
22256         (xtensa_legitimize_address): New.
22257         (xtensa_output_addr_const_extra): New.
22258
22259 2007-02-02  Steve Ellcey  <sje@cup.hp.com>
22260
22261         * config/ia64/ia64.c (ia64_print_operand): Fix compare strings.
22262
22263 2007-02-02  Ian Lance Taylor  <iant@google.com>
22264
22265         * expmed.c (expand_divmod): Add comment.
22266
22267 2007-02-02  Kazu Hirata  <kazu@codesourcery.com>
22268
22269         * emit-rtl.c (renumber_insns): Remove.
22270         * flags.h: Remove the extern for flag_renumber_insns.
22271         * rtl.h: Remove the prototype for renumber_insns.
22272         * toplev.c (flag_renumber_insns): Remove.
22273
22274 2007-02-02  Hui-May Chang  <hm.chang@apple.com>
22275
22276         Revert for x86 darwin:
22277         2005-06-19  Uros Bizjak  <uros@kss-loka.si>
22278
22279         * config/i386/i386.c (ix86_function_arg_regno_p): Put back the
22280         code before the following patch under TARGET_MACHO.
22281         (ix86_function_value_regno_p): Likewise.
22282
22283 2007-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22284
22285         * fold-const.c (negate_expr_p, fold_negate_expr): Handle
22286         COMPLEX_EXPR.
22287
22288 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
22289
22290         PR target/29682
22291         * config/ia64/ia64.c (ia64_speculate_insn): Restrict to memory
22292         loads to general or fp registers.  Add comments.
22293         * config/ia64/ia64.md (reg_pred_prefix): Add comment.
22294
22295 2007-02-02  Paolo Bonzini  <bonzini@gnu.org>
22296
22297         * pointer-set.c (insert_aux): Only return insertion slot.
22298         (pointer_set_insert): Adjust.
22299         (pointer_set_traverse, struct pointer_map_t, pointer_map_create,
22300         pointer_map_destroy, pointer_map_insert, pointer_map_contains,
22301         pointer_map_traverse): New.
22302         * pointer-set.h (pointer_set_traverse, struct pointer_map_t,
22303         pointer_map_create,  pointer_map_destroy, pointer_map_insert,
22304         pointer_map_contains, pointer_map_traverse): Declare.
22305
22306 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
22307
22308         PR middle-end/30473
22309         * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
22310         sprintf (str, "%s").  Do not optimize sprintf (str, "nopercent", p++).
22311
22312 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
22313
22314         * sched-int.h (ds_to_dk, dk_to_ds): Declare functions.
22315
22316         (struct _dep): New type.
22317         (dep_t): New typedef.
22318         (DEP_PRO, DEP_CON, DEP_KIND): New access macros.
22319         (DEP_STATUS): New access macro.  The macro with the same name was
22320         renamed to DEP_LINK_STATUS.
22321         (dep_init): Declare function
22322
22323         (struct _dep_link): New type.
22324         (dep_link_t): New typedef.
22325         (DEP_LINK_NODE, DEP_LINK_NEXT, DEP_LINK_PREV_NEXTP): New access macros.
22326         (DEP_LINK_DEP, DEP_LINK_PRO, DEP_LINK_CON, DEP_LINK_KIND): New macros.
22327         (DEP_LINK_STATUS): New macro.
22328         (debug_dep_links): New debug function.
22329
22330         (struct _deps_list): New type.
22331         (deps_list_t): New typedef.
22332         (DEPS_LIST_FIRST): New access macro.
22333         (FOR_EACH_DEP_LINK): New cycle macro.
22334         (create_deps_list, free_deps_list, delete_deps_list): Declare
22335         functions.
22336         (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
22337         (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
22338         (copy_deps_list_change_con): Ditto.
22339
22340         (move_dep_link): Declare function.
22341
22342         (struct _dep_node): New type.
22343         (dep_node_t): New typedef.
22344         (DEP_NODE_BACK, DEP_NODE_DEP, DEP_NODE_FORW): New access macros.
22345
22346         (struct haifa_insn_data.back_deps): New field to hold backward
22347         dependencies of the insn.
22348         (struct haifa_insn_data.depend): Rename to forw_deps.  Change its type
22349         to deps_list_t.
22350         (struct haifa_insn_data.resolved_deps): Rename to resolved_back_deps.
22351         Change its type to deps_list_t.
22352         (INSN_BACK_DEPS): New access macro to use instead of LOG_LINKS.
22353         (INSN_DEPEND): Rename to INSN_FORW_DEPS.
22354         (RESOLVED_DEPS): Rename to INSN_RESOLVED_BACK_DEPS.
22355
22356         (INSN_COST): Move to haifa-sched.c.  Use insn_cost () instead.
22357
22358         (DEP_STATUS): Rename to DEP_LINK_STATUS.  Fix typo in the comment.
22359
22360         (add_forw_dep, delete_back_forw_dep, insn_cost): Update declaration
22361         and all callers.
22362         (dep_cost): Declare.
22363
22364         * sched-deps.c (CHECK): New macro to (en/dis)able sanity checks.
22365         (ds_to_dk, dk_to_ds): New functions.
22366
22367         (init_dep_1): New static function.
22368         (init_dep): New function.
22369         (copy_dep): New static function.
22370
22371         (dep_link_consistent_p, attach_dep_link, add_to_deps_list): New static
22372         functions.
22373         (detach_dep_link): New static function.
22374         (move_dep_link): New function.
22375
22376         (dep_links_consistent_p, dump_dep_links): New static functions.
22377         (debug_dep_links): New debugging function.
22378
22379         (deps_obstack, dl_obstack, dn_obstack): New static variables.
22380
22381         (alloc_deps_list, init_deps_list): New static functions.
22382         (create_deps_list): New function.
22383         (clear_deps_list): New static function.
22384         (free_deps_list, delete_deps_list, deps_list_empty_p): New functions.
22385         (deps_list_consistent_p, dump_deps_list): New static functions.
22386         (debug_deps_list): New function.
22387         (add_back_dep_to_deps_list, find_link_by_pro_in_deps_list): New
22388         functions.
22389         (find_link_by_con_in_deps_list, copy_deps_list_change_con): Ditto.
22390
22391         (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Update to
22392         use new scheduler dependencies lists.
22393         (add_back_dep, delete_all_dependences, fixup_sched_groups): Ditto.
22394         (sched_analyze): Ditto.  Initialize dependencies lists.
22395         (add_forw_dep, compute_forward_dependences): Update to use new
22396         scheduler dependencies lists.
22397
22398         (init_dependency_caches): Init deps_obstack.
22399         (free_dependency_caches): Free deps_obstack.
22400
22401         (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Update to use
22402         new scheduler dependencies lists.
22403         (delete_forw_dep, add_or_update_back_forw_dep): Ditto.
22404         (add_back_forw_dep, delete_back_forw_dep): Ditto.
22405
22406         * sched-rgn.c (set_spec_fed, find_conditional_protection, is_pfree):
22407         Update to use new scheduler dependencies lists.
22408         (is_conditionally_protected, is_prisky, add_branch_dependences): Ditto.
22409         (debug_dependencies): Ditto.
22410         (schedule_region): Update comments.
22411
22412         * sched-ebb.c (earliest_block_with_similiar_load): Update to use new
22413         scheduler dependencies lists.
22414         (schedule_ebb): Update comments.
22415
22416         * rtl.def (DEPS_LIST): Remove.
22417
22418         * lists.c (unused_deps_list): Remove.
22419         (free_list): Update assertions.
22420
22421         (alloc_DEPS_LIST, free_DEPS_LIST_list, free_DEPS_LIST_node): Remove.
22422         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
22423
22424         * rtl.h (free_DEPS_LIST_list, alloc_DEPS_LIST): Remove declarations.
22425         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
22426
22427         * haifa-sched.c (comments): Update.
22428         (insn_cost1): Remove.  Inline the code into insn_cost ().
22429         (insn_cost): Update to use new scheduler dependencies lists.  Move
22430         processing of the dependency cost to dep_cost ().
22431         (dep_cost): New function.  Use it instead of insn_cost () when
22432         evaluating cost of the dependency.  Use compatible interface to
22433         interact with the target.
22434         (priority): Update to use new scheduler dependencies lists.
22435         (rank_for_schedule): Ditto.  Optimize heuristic that prefers the insn
22436         with greater number of insns that depend on the insn.
22437         (schedule_insn): Update to use new scheduler dependencies lists.  Add
22438         code to free backward dependencies lists.  Inline and optimize code
22439         from resolve_dep () - see PR28071.
22440         (ok_for_early_queue_removal): Update to use new scheduler dependencies
22441         lists.  Update call to targetm.sched.is_costly_dependence hook.
22442
22443         (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
22444         scheduler dependencies lists.
22445
22446         (resolve_dep): Remove.  Move the logic to schedule_insn ().
22447         (init_h_i_d): Initialize dependencies lists.
22448
22449         (process_insn_depend_be_in_spec): Rename to
22450         process_insn_forw_deps_be_in_spec.  Update to use new scheduler
22451         dependencies lists.
22452         (add_to_speculative_block, create_check_block_twin, fix_recovery_deps):
22453         Update to use new scheduler dependencies lists.
22454         (clear_priorities, calc_priorities, add_jump_dependencies): Ditto.
22455
22456         * ddg.c (create_ddg_dependence, create_ddg_dep_no_link): Update to use
22457         new scheduler dependencies lists.
22458         (build_intra_loop_deps): Ditto.
22459
22460         * target.h (struct _dep): Declare to use in
22461         gcc_target.sched.is_costly_dependence.
22462         (struct gcc_target.sched.adjust_cost): Fix typo.
22463         (struct gcc_target.sched.is_costly_dependence): Change signature to
22464         use single dep_t parameter instead of an equivalent triad.
22465         (struct gcc_target.sched.adjust_cost_2): Remove.
22466
22467         * target-def.h (TARGET_SCHED_ADJUST_COST_2): Remove.
22468
22469         * reg-notes.def (DEP_TRUE, DEP_OUTPUT, DEP_ANTI): Update comments.
22470
22471         * doc/tm.texi (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Update
22472         documentation.
22473         (TARGET_SCHED_ADJUST_COST_2): Remove documentation.
22474
22475         * doc/rtl.texi (LOG_LINKS): Remove part about instruction scheduler.
22476         (REG_DEP_TRUE): Document.
22477
22478         * config/ia64/ia64.c (ia64_adjust_cost_2): Rename to ia64_adjust_cost.
22479         Change signature to correspond to the targetm.sched.adjust_cost hook.
22480         Update use in TARGET_SCHED_ADJUST_COST_2.
22481         (TARGET_SCHED_ADJUST_COST_2): Rename to TARGET_SCHED_ADJUST_COST.
22482         (ia64_dependencies_evaluation_hook, ia64_dfa_new_cycle): Update to use
22483         new scheduler dependencies lists.
22484         (ia64_gen_check): Ditto.
22485
22486         * config/mips/mips.c (vr4130_swap_insns_p): Update to use new
22487         scheduler dependencies lists.
22488
22489         * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Change
22490         signature to correspond to the targetm.sched.is_costly_dependence hook.
22491         (is_costly_group): Update to use new scheduler dependencies lists.
22492
22493         * config/spu/spu.c (spu_sched_adjust_cost): Use insn_cost () function
22494         instead of INSN_COST () macro.
22495
22496 2007-02-01  Ian Lance Taylor  <iant@google.com>
22497
22498         * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn.
22499
22500 2007-02-01  Guy Martin  <gmsoft@gentoo.org>
22501
22502         * pa.md (tp_load): Correct mfctl instruction syntax.
22503
22504 2007-02-01  Geoffrey Keating  <geoffk@apple.com>
22505
22506         * config/rs6000/rs6000.c (rs6000_stack_info): Correct
22507         altivec_padding_size calculation on AIX.  Improve comment, add
22508         assert to verify that it's right.
22509
22510         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Don't define for
22511         64-bit.
22512
22513 2007-2-01  Seongbae Park  <seongbae.park@gmail.com>
22514
22515         PR inline-asm/28686
22516         * global.c (global_alloc): Add mising initialization of
22517         ELIMINABLE_REGSET.
22518
22519 2007-02-01  Roger Sayle  <roger@eyesopen.com>
22520
22521         * alias.c (init_alias_analysis): Correct whitespace.
22522         * bb-reorder.c (fix_edges_for_rarely_executed_code,
22523         partition_hot_cold_basic_blocks): Likewise.
22524         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
22525         expand_builtin_sprintf, fold_builtin_carg, fold_builtin_sprintf,
22526         maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
22527         fold_builtin_snprintf_chk, fold_builtin_printf,
22528         fold_builtin_fprintf, do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_arg2,
22529         do_mpfr_arg3, do_mpfr_sincos): Likewise.
22530         * cfgcleanup.c (cleanup_cfg): Likewise.
22531         * cfgexpand.c (tree_expand_cfg): Likewise.
22532         * fold-const.c (fold_binary) <RDIV_EXPR>: Likewise.
22533         * function.c (get_next_funcdef_no): Likewise.
22534         * gengtype.c (main): Likewise.
22535         * genmodes.c (main): Likewise.
22536         * gcse.c (bypass_conditional_jumps, print_ldst_list): Likewise.
22537         * haifa-sched.c (schedule_block, extend_h_i_d): Likewise.
22538         * ifcvt.c (noce_emit_move_insn): Likewise.
22539         * modulo-sched.c (generate_prolog_epilog, sms_schedule_by_order):
22540         Likewise.
22541         * stor-layout.c (get_best_mode): Likewise.
22542         * tree-ssa-loop-niter.c (get_val_for): Likewise.
22543         * tree-ssa-structalias.c (get_varinfo, get_varinfo_fc,
22544         scc_visit, do_ds_constraint, do_complex_constraint, label_visit,
22545         perform_var_substitution, solve_graph): Likewise.
22546         * tree-vrp.c (vrp_finalize): Likewise.
22547
22548 2007-02-01  Ian Lance Taylor  <iant@google.com>
22549
22550         * lower-subreg.c (simplify_gen_subreg_concatn): If we ask for the
22551         high part of a paradoxical subreg, return a constant zero.
22552
22553 2007-02-01  Zdenek Dvorak <dvorakz@suse.cz>
22554
22555         * toplev.c (lang_dependent_init): Call init_set_costs.
22556         * loop-init.c (loop_optimizer_init): Do not call init_set_costs.
22557
22558 2007-02-01  Richard Guenther  <rguenther@suse.de>
22559
22560         PR middle-end/30656
22561         * fold-const.c (fold_negate_expr): Allow negating a
22562         constant if overflow does not change.
22563
22564 2007-02-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22565
22566         * doc/c-tree.texi (Expression trees): Improve markup.
22567         * doc/tm.texi (Register Classes, Addressing Modes)
22568         (Floating Point): Fix spacing after abbreviations.  Fix some
22569         typos.
22570
22571 2007-02-01  Ben Elliston  <bje@au.ibm.com>
22572
22573         * doc/invoke.texi: Replace "bugfix" with "bug fix" throughout.
22574         * doc/contrib.texi: Likewise.
22575         * doc/install.texi: Likewise.
22576
22577 2007-01-31  Richard Henderson  <rth@redhat.com>
22578             Ian Lance Taylor  <iant@google.com>
22579
22580         * lower-subreg.c: New file.
22581         * rtl.def (CONCATN): Define.
22582         * passes.c (init_optimization_passes): Add pass_lower_subreg and
22583         pass_lower_subreg2.
22584         * emit-rtl.c (update_reg_offset): New static function, broken out
22585         of gen_rtx_REG_offset.
22586         (gen_rtx_REG_offset): Call update_reg_offset.
22587         (gen_reg_rtx_offset): New function.
22588         * regclass.c: Revert patch of 2006-03-05, restoring
22589         reg_scan_update.
22590         (clear_reg_info_regno): New function.
22591         * dwarf2out.c (concatn_loc_descriptor): New static function.
22592         (loc_descriptor): Handle CONCATN.
22593         * common.opt (fsplit_wide_types): New option.
22594         * opts.c (decode_options): Set flag_split_wide_types when
22595         optimizing.
22596         * timevar.def (TV_LOWER_SUBREG): Define.
22597         * rtl.h (gen_reg_rtx_offset): Declare.
22598         (reg_scan_update): Declare.
22599         * regs.h (clear_reg_info_regno): Declare.
22600         * tree-pass.h (pass_lower_subreg): Declare.
22601         (pass_lower_subreg2): Declare.
22602         * doc/invoke.texi (Option Summary): List -fno-split-wide-types.
22603         (Optimize Options): Add -fsplit-wide-types to -O1 list.  Document
22604         -fsplit-wide-types.
22605         * doc/rtl.texi (Regs and Memory): Document concat and concatn.
22606         * Makefile.in (OBJS-common): Add lower-subreg.o.
22607         (lower-subreg.o): New target.
22608
22609 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
22610
22611         * config/sh/sh.h (HAVE_SECONDARY_RELOADS): Remove.
22612
22613 2007-01-31  Anatoly Sokolov <aesok@post.ru>
22614
22615         PR target/19087
22616         * config/avr/avr.c (DWARF2_ADDR_SIZE): Define.
22617
22618 2007-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22619
22620         PR middle-end/29335
22621         * builtins.c (fold_builtin_sqrt): Use MPFR for constant args.
22622
22623 2007-01-31  Zdenek Dvorak <dvorakz@suse.cz>
22624
22625         * cfgloop.h: Include vec-prim.h.
22626         (enum li_flags): Remove LI_ONLY_OLD.
22627         (loop_iterator): Changed.
22628         (fel_next, fel_init): Iterate over loop tree.
22629         (FOR_EACH_LOOP_BREAK): New macro.
22630         * loop-unswitch.c (unswitch_loops): Do not pass LI_ONLY_OLD to
22631         FOR_EACH_LOOP.
22632         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Ditto.
22633         * modulo-sched.c (sms_schedule): Ditto.
22634         * tree-vectorizer.c (vectorize_loops): Ditto.
22635         * doc/loop.texi: Update information on loop numbering and behavior of
22636         FOR_EACH_LOOP wrto new loops.
22637         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
22638         add_to_evolution_1): Test nestedness of loops instead of comparing
22639         their numbers.
22640         * tree-chrec.c (chrec_fold_plus_poly_poly,
22641         chrec_fold_multiply_poly_poly, chrec_evaluate,
22642         hide_evolution_in_other_loops_than_loop, chrec_component_in_loop_num,
22643         reset_evolution_in_loop): Ditto.
22644         * Makefile.in (CFGLOOP_H): Add vecprim.h dependency.
22645
22646 2007-01-31  Dirk Mueller  <dmueller@suse.de>
22647
22648         * c-common.c (warn_about_parentheses): Separate warning about
22649         un-parenthized sequence of comparison operators from the one
22650         which is supposed to warn about x <= y <= z.
22651
22652 2007-01-31  Uros Bizjak  <ubizjak@gmail.com>
22653
22654         * optabs.h (enum optab_index): Add new OTI_isinf.
22655         (isinf_optab): Define corresponding macro.
22656         * optabs.c (init_optabs): Initialize isinf_optab.
22657         * genopinit.c (optabs): Implement isinf_optab using isinf?f2
22658         patterns.
22659         * builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
22660         (expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
22661         using isinf_optab.
22662         (expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
22663         expand_builtin_interclass_mathfn.
22664         * reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
22665         * config/i386/i386.md (UNSPEC_FXAM): New constant.
22666         (fxam<mode>2_i387): New insn pattern.
22667         (isinf<mode>2) New expander to implement isinf, isinff and isinfl
22668         built-in functions as x87 inline asm.
22669
22670 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
22671
22672         * config/arm/unwind-arm.h (_sleb128_t, _uleb128_t): New.
22673
22674 2007-01-30  Eric Christopher  <echristo@apple.com>
22675
22676         * config.gcc: Add geode.
22677
22678 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
22679
22680         * cgraphunit.c, config/arm/arm.c, config/m68k/m68k.c,
22681         ipa-inline.c, tree-profile.c, tree-ssa-live.c,
22682         tree-ssa-math-opts.c, tree-ssanames.c, tree-vect-analyze.c,
22683         value-prof.c: Fix comment typos.
22684
22685 2007-01-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22686
22687         PR c++/24745
22688         * doc/invoke.texi (Wpointer-arith): Document warning.
22689
22690 2007-01-30  Janis Johnson  <janis187@us.ibm.com>
22691
22692         * doc/extend.texi (Decimal Floating Types): Remove decfloat.h from
22693         the list of discrepancies from the draft TR.
22694
22695 2007-01-30  Dirk Mueller  <dmueller@suse.de>
22696
22697         PR c++/30601
22698         * doc/invoke.texi (-Wreturn-type): Update description to
22699         match new behavior.
22700
22701 2007-01-30  Richard Sandiford  <richard@codesourcery.com>
22702
22703         * cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
22704
22705 2007-01-30  Uros Bizjak  <ubizjak@gmail.com>
22706
22707         * builtins.c (expand_builtin_int_interclass_roundingfn): New function
22708         to handle optabs that operate on floating point input argument and
22709         output to integer output.
22710         (expand_builtin_mathfn) [BUILT_IN_ILOGB]: Move from here ...
22711         (expand_builtin_interclass_mathfn) [BUILT_IN_ILOGB]: ... to here.
22712         (expand_builtin): Expand BUILT_IN_ILOGB{,F,L} using
22713         expand_builtin_interclass_mathfn ().
22714         * config/i386/i386.md (fxtractxf3_i387): Rename from *fxtractxf3_i387.
22715         (ilogbsi2): Remove.
22716         (ilogbxf2, ilogb<mode>2): New expanders to implement ilogb, ilogbf and
22717         ilogbl built-in functions as x87 intrinsics.
22718
22719 2007-01-30  Richard Guenther  <rguenther@suse.de>
22720
22721         PR middle-end/27657
22722         * dwarf2out.c (reference_to_unused): Query varpool if the
22723         variable was output.
22724
22725 2007-01-30  Richard Guenther  <rguenther@suse.de>
22726
22727         PR middle-end/30313
22728         * passes.c (execute_one_pass): Reset in_gimple_form to not
22729         confuse non-unit-at-a-time mode.
22730
22731 2007-01-29  Roger Sayle  <roger@eyesopen.com>
22732             Richard Guenther  <rguenther@suse.de>
22733
22734         * fold-const.c (round_up): Make HIGH an unsigned HOST_WIDE_INT to
22735         avoid undefined behaviour on overflow.  Use force_fit_type_double
22736         to construct the constant with the specified TREE_OVERFLOW.
22737
22738 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
22739
22740         * config/dfp-bit.c: Add parameterized support for fp exceptions.
22741         * config/dfp-bit.h: Ditto.
22742
22743 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22744
22745         * c-decl.c (pop_scope): Replace warnings with call to
22746         warn_for_unused_label.
22747         * c-common.h (warn_for_unused_label): Declare.
22748         * c-common.c (warn_for_unused_label): Define.
22749
22750 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22751
22752         * tree-optimize.c (update_inlined_to_pointers): Delete unused
22753         function.
22754
22755 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
22756
22757         * Makefile.in (USER_H): Remove decfloat.h.
22758         * ginclude/decfloat.h: Delete, moving contents to ...
22759         * ginclude/float.h: Add support for decimal floating point,
22760         guarded by __STDC_WANT_DEC_FP__.
22761
22762 2007-01-29  Mike Stump  <mrs@apple.com>
22763
22764         * doc/gccint.texi (Top): Rename Loop Representation to Loop
22765         Analysis and Representation to resolve case insensitive conflict.
22766         * doc/loop.texi (Loop Analysis and Representation): Likewise.
22767
22768 2007-01-28  Daniel Berlin  <dberlin@dberlin.org>
22769
22770         * tree.h (struct tree_memory_tag): Add aliases member.
22771         (MTAG_ALIASES): New macro.
22772         * tree-ssa-alias.c (alias_bitmap_obstack): New variable.
22773         (add_may_alias): Remove pointer-set. Update for may_aliases being
22774         a bitmap.
22775         (mark_aliases_call_clobbered): Update for may_aliases being a
22776         bitmap.
22777         (compute_tag_properties): Ditto.
22778         (create_partition_for): Ditto.
22779         (compute_memory_partitions): Ditto.
22780         (dump_may_aliases_for): Ditto.
22781         (is_aliased_with): Ditto.
22782         (add_may_alias_for_new_tag): Ditto.
22783         (rewrite_alias_set_for): Rewrite for may_aliases being a bitmap.
22784         (compute_is_aliased): New function.
22785         (compute_may_aliases): Call compute_is_aliased).
22786         (init_alias_info): Initialize alias_bitmap_obstack.
22787         (union_alias_set_into): New function.
22788         (compute_flow_sensitive_aliasing): Use union_aliases_into.
22789         (have_common_aliases_p): Rewrite to take two bitmaps and use
22790         intersection.
22791         (compute_flow_insensitive_aliasing): Stop using pointer-sets.
22792         Update for bitmaps.
22793         (finalize_ref_all_pointers): Update for add_may_alias changes.
22794         (new_type_alias): Ditto.
22795         * tree-flow-inline.h (may_aliases): Return a bitmap.
22796         * tree-dfa.c (dump_variable): Check for MTAG_P'ness.
22797         * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
22798         may_aliases being a bitmap.
22799         * tree-flow.h (struct var_ann_d): Remove may_aliases member.
22800         may_aliases now returns a bitmap.
22801         * tree-ssa-structalias.c (merge_smts_into): Update for may_aliases
22802         being a bitmap.
22803         * tree-ssa-operands.c (add_virtual_operand): Update for
22804         may_aliases being a bitmap.
22805
22806 2007-01-29  Daniel Berlin  <dberlin@dberlin.org>
22807
22808         PR tree-optimization/30630
22809         * tree-ssa-structalias.c (do_complex_constraint): Mark correct
22810         variable as changed.
22811
22812 2007-01-29  Simon Martin  <simartin@users.sourceforge.net>
22813
22814         PR c++/28266
22815         * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
22816         expanded only once even if an error occurs.
22817
22818 2007-01-29  Ben Elliston  <bje@au.ibm.com>
22819
22820         * gcov-io.h (__gcov_indirect_call_profiler): Declare.
22821         (__gcov_average_profiler): Likewise.
22822         (__gcov_ior_profiler): Likewise.
22823         (__gcov_merge_ior): Likewise.
22824
22825 2007-01-28  Jan Hubicka  <jh@suse.cz>
22826
22827         * builtins.c (expand_builtin_memset): Fix typo in my last patch.
22828         * value-prof.c (stringop_block_profile): Likewise.
22829
22830 2007-01-28  Jan Hubicka  <jh@suse.cz>
22831
22832         * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall):
22833         Add variant handling histograms; add wrapper.
22834         (clear_storage_via_libcall): Export.
22835         (emit_block_move_hints): Break out from ...; add histograms.
22836         (emit_block_move): ... this one.
22837         (clear_storage_hints): Break out from ...; add histograms.
22838         (clear_storage): ... this one.
22839         (set_storage_via_memset): Handle histogram.
22840         * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
22841         (clear_storage_hints, clear_storage_via_libcall): Declare.
22842         (set_storage_via_setmem): Update prototype.
22843         * doc/md.texi (movmem, setmem): Document new arguments.
22844
22845         * value-prof.c (dump_histogram_value, tree_find_values_to_profile):
22846         Add new histograms.
22847         (stringop_block_profile): New global function.
22848         (tree_stringops_values_to_profile): Profile block size and alignment.
22849         * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
22850         HIST_TYPE_IOR.
22851         (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
22852         (stringop_block_profile): Declare.
22853         * builtins.c: Include value-prof.h.
22854         (expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
22855         * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
22856         (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
22857         (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
22858         * profile.c (instrument_values): Add new counters.
22859         * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
22860         calls.
22861         * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
22862         (tree_init_edge_profiler): Build new profilers.
22863         (tree_gen_average_profiler, tree_gen_ior_profiler): New.
22864         (pass_tree_profile): Add dump.
22865         (tree_profile_hooks): Update.
22866         * Makefile.in (LIBGCOV): Add new constants.
22867         * libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
22868         __gcov_ior_profiler): New.
22869         * i386.md (movmem/setmem expanders): Add new optional arguments.
22870
22871 2007-01-28  David Edelsohn  <edelsohn@gnu.org>
22872
22873         * doc/md.texi (Standard Pattern Names): Document blockage pattern.
22874
22875 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
22876
22877         * tree-ssa-loop-unswitch.c: Include tree-inline.h.
22878         (tree_unswitch_single_loop): Pass eni_size_weights to
22879         tree_num_loop_insns.
22880         * tree-ssa-loop-manip.c: Include tree-inline.h.
22881         (can_unroll_loop_p): Pass eni_size_weights to
22882         tree_num_loop_insns.
22883         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
22884         Pass eni_size_weights to estimate_num_insns.
22885         * tree.h (init_inline_once): Export.
22886         * toplev.c (backend_init): Call init_inline_once.
22887         * cgraphunit.c (cgraph_process_new_functions,
22888         cgraph_analyze_function): Pass eni_inlining_weights to
22889         estimate_num_insns.
22890         * ipa-inline.c (compute_inline_parameters): Ditto.
22891         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
22892         to estimate_num_insns.
22893         (try_unroll_loop_completely): Pass eni_size_weights to
22894         tree_num_loop_insns.
22895         * tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
22896         ot estimate_num_insns.
22897         * tree-ssa-loop-prefetch.c: Include tree-inline.h.
22898         (loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
22899         * tree-inline.c (eni_inlining_weights, eni_size_weights,
22900         eni_time_weights): New variables.
22901         (init_inline_once): Initialize them.
22902         (struct eni_data): Mew.
22903         (estimate_num_insns_1, estimate_num_insns): Use weights.
22904         * tree-inline.h (struct eni_weights_d): New.
22905         (eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
22906         (estimate_num_insns): Declaration changed.
22907         * cfgloop.h (tree_num_loop_insns): Declaration changed.
22908         * Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
22909         tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
22910
22911 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
22912
22913         * tree-data-ref.c (conflict_fn): Assert that the number of affine
22914         relations in the conflict function is valid.
22915
22916 2007-01-27  Ian Lance Taylor  <iant@google.com>
22917
22918         * common.opt: Add fstrict-overflow.
22919         * opts.c (decode_options): Set flag_strict_overflow if -O2.
22920         * flags.h (TYPE_OVERFLOW_WRAPS): Define.
22921         (TYPE_OVERFLOW_UNDEFINED): Define.
22922         (TYPE_OVERFLOW_TRAPS): Define.  This replaces TYPE_TRAP_SIGNED.
22923         Replace all uses.
22924         * tree.h (TYPE_TRAP_SIGNED): Don't define.
22925         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
22926         (fold_negate_expr): Likewise.
22927         (make_range): Likewise.
22928         (extract_muldiv_1): Likewise.
22929         (maybe_canonicalize_comparison): Likewise.
22930         (fold_comparison): Likewise.
22931         (fold_binary): Likewise.
22932         (tree_expr_nonnegative_p): Likewise.
22933         (tree_expr_nonzero_p): Likewise.
22934         * tree-vrp.c (compare_values): Likewise.
22935         (extract_range_from_binary_expr): Likewise.
22936         (extract_range_from_unary_expr): Likewise.
22937         * tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
22938         Likewise.
22939         (nowrap_type_p): Likewise.
22940         * tree-scalar-evolution.c (simple_iv): Likewise.
22941         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
22942         (build_range_check): Likewise.
22943         (extract_muldiv_1): Likewise.
22944         (fold_comparison): Likewise.
22945         * tree-vrp.c (vrp_int_const_binop): Likewise.
22946         (extract_range_from_unary_expr): Likewise.
22947         * convert.c (convert_to_integer): Likewise.
22948         * fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
22949         (fold_comparison): Likewise.
22950         (fold_binary): Likewise.
22951         * optabs.c (optab_for_tree_code): Likewise.
22952         * tree-vectorizer.c (vect_is_simple_reduction): Likewise.
22953         * simplify-rtx.c (simplify_const_relational_operation): Check
22954         flag_strict_overflow and flag_trapv.
22955         (simplify_const_relational_operation): Likewise.
22956         * doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
22957         (Optimize Options): Add -fstrict-overflow to -O2 list.  Document
22958         -fstrict-overflow.
22959
22960 2007-01-27  Roger Sayle  <roger@eyesopen.com>
22961
22962         * tree.c (tree_fold_gcd): Delete.
22963         * tree.h (tree_fold_gcd): Remove prototype.
22964         * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
22965         test whether one constant integer is a multiple of another.  Instead
22966         call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
22967         * fold-const.c (multiple_of_p): We've determined both TOP and
22968         BOTTOM are integer constants so we can call int_const_binop directly
22969         instead of the more generic const_binop.
22970
22971 2007-01-27  Roger Sayle  <roger@eyesopen.com>
22972
22973         * fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
22974         1*X check that the constant hasn't overflowed, to preserve the
22975         TREE_OVERFLOW bit.
22976         (round_up): Provide an efficient implementation when rouding-up an
22977         INTEGER_CST to a power-of-two.
22978
22979 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22980
22981         * doc/sourcebuild.texi: Add comma for clarity.
22982         * doc/extend.texi: Fix some typos.
22983         * doc/passes.texi: Likewise.
22984         * doc/cppinternals.texi: Likewise.
22985         * doc/c-tree.texi: Likewise.
22986         * doc/tree-ssa.texi: Likewise.
22987         * doc/install.texi: Likewise.
22988
22989 2007-01-27  Jan Hubicka  <jh@suse.cz>
22990
22991         * tree-sra.c (sra_walk_function): Don't rely on aliases being build.
22992         (pass_sra): Do not require alias information.
22993         * passes.c (init_optimization_passes): Add SRA
22994
22995 2007-01-27  Steven Bosscher  <steven@gcc.gnu.org>
22996
22997         * tracer.c (rest_of_handle_tracer): We already cleaned
22998         up the CFG in tracer() so don't do it here again.
22999         * cfgcleanup.c (rest_of_handle_jump2): Don't repeat
23000         cleanup_cfg here, either.  And don't call renumber_insns.
23001
23002         * cfgrtl.c (rtl_verify_flow_info_1): Don't verify that BB_END
23003         and BB_HEAD are in the insn stream here.  Instead make sure
23004         that BB_INSN is valid on all insns.  Also, do check here that
23005         there are no pending branch predictions...
23006         (rtl_verify_flow_info): ...instead of doing it here.  Checks
23007         for BB_END and BB_HEAD moved from rtl_verify_flow_info_1 to
23008         here.
23009
23010 2007-01-26  Roger Sayle  <roger@eyesopen.com>
23011
23012         * config/i386/i386.c (ix86_swap_binary_operands_p): New helper
23013         function to simplify/factorize operand order canonicalization.
23014         (ix86_fixup_binary_operands): Reorganize using the above function.
23015         (ix86_binary_operator_ok): Likewise.
23016
23017 2007-01-27  Jakub Jelinek  <jakub@redhat.com>
23018
23019         * genattrtab.c (struct attr_value_list, insn_code_values): Move to
23020         file scope from optimize_attrs.
23021         (simplify_test_exp): If insn_code_values is not NULL, use it to speed
23022         up search.
23023         (optimize_attrs): Clear insn_code_values after freeing it.
23024
23025 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
23026
23027         * tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
23028         a parts.base assignment.
23029
23030 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
23031
23032         * tree-data-ref.c (dump_subscript): Use dump_conflict_function.
23033         (compute_subscript_distance, initialize_data_dependence_relation,
23034         finalize_ddr_dependent, analyze_ziv_subscript,
23035         analyze_siv_subscript_cst_affine,
23036         compute_overlap_steps_for_affine_univar,
23037         compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
23038         analyze_siv_subscript, analyze_miv_subscript,
23039         analyze_overlapping_iterations, subscript_dependence_tester_1,
23040         compute_self_dependence, free_dependence_relation): Work
23041         with affine_fn instead of chrecs.
23042         (dump_affine_function, dump_conflict_function, affine_function_equal_p,
23043         common_affine_function, affine_function_base,
23044         affine_function_constant_p, affine_fn_op, affine_fn_plus,
23045         affine_fn_minus, affine_fn_free, conflict_fn_not_known,
23046         conflict_fn_no_dependence, free_conflict_function, free_subscripts,
23047         conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
23048         (all_chrecs_equal_p): Removed.
23049         * tree-data-ref.h (affine_fn, conflict_function): New types.
23050         (struct subscript): Change type of conflicting_iterations_in_a
23051         and conflicting_iterations_in_b.
23052
23053 2007-01-26  Steve Ellcey  <sje@cup.hp.com>
23054
23055         PR other/30182
23056         * config/pa/pa.h (TARGET_HPUX_11): New.
23057         * config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
23058         * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
23059
23060 2007-01-26  Daniel Berlin  <dberlin@dberlin.org>
23061         Richard Guenther  <rguenther@suse.de>
23062
23063         * tree-ssa-structalias.c (solve_graph): Handle case
23064         we merged the variable to another.
23065
23066 2007-01-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23067
23068         * builtins.c (fold_builtin_1): Treat ccos and ccosh as 'even'
23069         functions.
23070
23071         * fold-const.c (negate_mathfn_p): Treat casin, casinh, catan,
23072         catanh, cproj, csin, csinh, ctan and ctanh as 'odd' functions.
23073
23074 2007-01-25  DJ Delorie  <dj@redhat.com>
23075
23076         * config/m32c/m32c.c (m32c_cannot_change_mode_class): We don't
23077         allow changes to modes which don't fit in those registers.
23078
23079         * reload1.c (choose_reload_regs): Check for invalid subregs before
23080         computing their locations, not after.
23081
23082 2007-01-25  Geoffrey Keating  <geoffk@apple.com>
23083
23084         PR 25127
23085         * config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
23086         save Altivec registers in an eh_return function.
23087         (compute_vrsave_mask): Likewise.
23088         (rs6000_stack_info): Correct AIX/Darwin stack alignment computation
23089         for saving Altivec registers.
23090         (rs6000_emit_prologue): Don't allocate stack twice in
23091         eh_return function.  Correct expected value of altivec_save_offset
23092         when using save_world.  Describe save of R0 to stack when using
23093         save_world.  Describe stack pointer adjustment when using
23094         save_world.  Remove duplicated eh_return parameter register saving.
23095         Update sp_offset variable after save_world.
23096         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
23097         darwin-world.asm.
23098         (LIB2FUNCS_EXTRA): Add darwin-world.asm.
23099         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
23100         implies Altivec.
23101
23102 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
23103
23104         * config.gcc (ia64*-*-hpux*): Make posix threads the default.
23105
23106 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
23107
23108         PR other/30182
23109         * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines.
23110         * config/ia64/ia64.c (ia64_init_builtins): Ditto.
23111
23112 2007-01-25  Richard Guenther  <rguenther@suse.de>
23113
23114         * doc/invoke.texi (-Wcoverage-mismatch): Document.
23115         * common.opt (-Wcoverage-mismatch): New warning option.
23116         * coverage.c (get_coverage_counts): Ignore coverage mismatch
23117         if -Wcoverage-mismatch is given.
23118
23119 2007-01-25  Razya Ladelsky  <razya@il.ibm.com>
23120
23121         * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
23122         (ipcp_driver): Change to static definition.
23123         Add dumping of the ifunctions.
23124         (constant_val_insert): Remove unused parameter. Support for SSA.
23125         (ipcp_propagate_const): Support for SSA.
23126         (ipcp_profile_bb_print): Print only analyzed nodes.
23127         (ipcp_replace_map_create): Remove support for Fortran constant
23128         for now.
23129         * ipa-prop.c (ipa_method_modify_stmt,
23130         ipa_callsite_compute_param): Support for SSA.
23131         * ipa-prop.h (ipcp_driver): Remove declaration.
23132         (IS_VALID_TREE_MAP_INDEX): Add define.
23133
23134 2007-01-24  Geoffrey Keating  <geoffk@apple.com>
23135
23136         * unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
23137
23138 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23139
23140         PR middle-end/30447
23141         * builtins.c (fold_builtin_cabs): Use MPFR to evaluate a
23142         constant argument to cabs and do it without checking for
23143         -funsafe-math-optimizations.
23144
23145 2007-01-24  Douglas Gregor  <dgregor@osl.iu.edu>
23146
23147         * c-common.h (RID_FIRST_CXX0X): New.
23148         (RID_LAST_CXX0X): New.
23149         * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
23150         by -Wall.
23151         * c.opt (Wc++0x-compat): New.
23152         * doc/invoke.texi (-Wc++0x-compat): Document.
23153
23154 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23155
23156         * builtins.c (fold_builtin_carg): New.
23157         (fold_builtin_1): Use it.
23158
23159 2007-01-24  Jan Hubicka  <jh@suse.cz>
23160
23161         * ipa-inline.c (cgraph_decide_inlining): Initialize initial_insns.
23162
23163         * ipa-inline.c (initial_insns, max_insns): Delete.
23164         (compute_max_insns): New function.
23165         (cgraph_decide_inlining_of_small_function): Use it; take minimal
23166         amount of insns as base for code growth.
23167         (cgraph_decide_inlining): Make initial_insns local; do not compute
23168         max_insns.
23169         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 60.
23170         * doc/invoke.texi (inline-unit-growth): Update docs.
23171
23172 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
23173
23174         * config/i386/i386.h (x86_cmpxchg16b): Remove const.
23175         (TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
23176         * config/i386/i386.c (x86_cmpxchg16b): Remove const.
23177         (override_options): Add PTA_CX16 flag.  Set x86_cmpxchg16b
23178         for CPUs that have PTA_CX16 set.
23179
23180         PR middle-end/27416
23181         * gimplify.c (omp_check_private): New function.
23182         (gimplify_scan_omp_clauses): Use it for
23183         firstprivate/lastprivate/reduction.
23184
23185         PR middle-end/30494
23186         * gimplify.c (omp_add_variable): Don't call omp_notice_variable
23187         on TYPE_SIZE_UNIT for GOVD_LOCAL VLAs.
23188
23189         PR middle-end/30421
23190         * omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
23191         If lower_lastprivate_clauses emits some statements, append them
23192         to dlist rather than body_p and to body_p append an initializer.
23193         (lower_omp_for): Adjust caller.
23194
23195 2007-01-24  Steve Ellcey  <sje@cup.hp.com>
23196
23197         * target.h (globalize_decl_name): New.
23198         * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
23199         * output.h (default_globalize_decl_name): New.
23200         * varasm.c (asm_output_bss): Use globalize_decl_name instead of
23201         globalize_label.
23202         (globalize_decl): Ditto.
23203         (default_globalize_decl_name): New.
23204         * config/ia64/ia64.c (ia64_globalize_decl_name): New.
23205         (ia64_handle_version_id_attribute): New.
23206         (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
23207         (ia64_asm_output_external): Use globalize_decl_name instead
23208         of globalize_label.
23209         * doc/extend.texi (version_id): New pragma.
23210         * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook.
23211
23212 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
23213
23214         * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with
23215         _uleb128_t and _Unwind_SWord with _sleb128_t.
23216         * unwind-dw2.c (extract_cie_info, execute_stack_op,
23217         execute_cfa_program, uw_frame_state_for, uw_update_context_1):
23218         Likewise.
23219         * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise.
23220         * unwind-pe.h (read_uleb128, read_sleb128,
23221         read_encoded_value_with_base): Likewise.
23222         * unwind-generic.h: Define _sleb128_t and _uleb128_t types.
23223
23224 2007-01-24  Richard Guenther  <rguenther@suse.de>
23225
23226         * builtins.c (expand_builtin_cexpi): Get the fndecl
23227         for cexp in the correct way.
23228
23229 2007-01-24  Jan Hubicka  <jh@suse.cz>
23230
23231         * tree-ssa-dce.c (eliminate_unnecesary_stmts): Remove dead LHS
23232         of calls.
23233
23234 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
23235
23236         * c-cppbuiltin.c (builtin_define_type_sizeof): New function.
23237         (c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
23238         __SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
23239         __SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
23240         __SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
23241         __SIZEOF_PTRDIFF_T__.
23242         * doc/cpp.texi: Documentation for the new builtin macros added.
23243
23244 2007-01-24  Uros Bizjak  <ubizjak@gmail.com>
23245
23246         * config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
23247         log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
23248         instead of operands[2] to avoid access past the end of array.
23249
23250 2007-01-24  Richard Sandiford  <richard@codesourcery.com>
23251
23252         * reload1.c (emit_reload_insns): Pass the reload register
23253         for a non-spill output reload through forget_old_reloads_1.
23254
23255 2007-01-23  Joseph Myers  <joseph@codesourcery.com>
23256
23257         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
23258         _SOFT_DOUBLE if doubles use software floating-point.
23259         * config/rs6000/libgcc-ppc-glibc.ver: Export additional long
23260         double functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
23261         * config/rs6000/darwin-ldouble.c: Also compile functions for
23262         hard-float without FPRs.  Use fmsub function for all __NO_FPRS__
23263         cases.  Compile extra functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
23264         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove
23265         commented-out long double override.
23266         (CPP_LONGDOUBLE_DEFAULT_SPEC): Likewise.
23267         * config/rs6000/eabispe.h: Likewise.
23268         * config/rs6000/rs6000.c (rs6000_override_options): Don't override
23269         long double for non-SPE.
23270         (rs6000_handle_option): Likewise.
23271         (invalid_e500_subreg): Disallow more subregs involding DImode,
23272         DFmode, TImode or TFmode.
23273         (rs6000_legitimate_offset_address_p): Check TFmode offsets for
23274         E500 double.
23275         (legitimate_lo_sum_address_p): Also check for TFmode for E500
23276         double.
23277         (rs6000_legitimize_address): Also handle TFmode for E500 double.
23278         (rs6000_legitimize_reload_address): Also handle TFmode for E500
23279         double.
23280         (rs6000_legitimate_address): Also check for TFmode for E500
23281         double.
23282         (rs6000_emit_move): Use DFmode subregs of TFmode for E500 double.
23283         (spe_build_register_parallel): Handle TFmode and TCmode.
23284         (rs6000_spe_function_arg): Handle TFmode and TCmode for E500
23285         double.
23286         (function_arg): Handle TFmode and TCmode for E500 double.
23287         (rs6000_init_libfuncs): Initialize extra libfuncs for soft double
23288         in general.
23289         (print_operand): Handle TFmode and TImode for %y.
23290         (rs6000_generate_compare): Handle TFmode comparisons for E500
23291         double.
23292         (spe_func_has_64bit_regs_p): Check for TFmode for E500 double.
23293         (rs6000_function_value): Handle TFmode and TCmode for E500 double.
23294         (rs6000_libcall_value): Handle TFmode and TCmode for E500 double.
23295         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Check for
23296         TFmode for E500 double.
23297         * config/rs6000/rs6000.md (FP): Allow TF for E500 double.
23298         (floatsidf2): Enable for E500 double.
23299         (movtf_softfloat): Use rs6000_nonimmediate_operand.
23300         (extenddftf2): Change to extenddftf2_fprs.
23301         (extenddftf2): Call gen_spe_extenddftf2 or gen_extenddftf2_fprs
23302         depending on TARGET_E500_DOUBLE.
23303         (extendsftf2): Enable for E500 double.
23304         (trunctfdf2): Enable for E500 double.
23305         (trunctfsf2): Change to trunctfsf2_fprs.
23306         (trunctfsf2): Call gen_spe_trunctfsf2 or gen_trunctfsf2_fprs
23307         depending on TARGET_E500_DOUBLE.
23308         (floatsitf2): Enable for E500 double.
23309         (fix_trunctfsi2): Change to fix_trunctfsi2_fprs.
23310         (fix_trunctfsi2): Call gen_spe_fix_trunctfsi2 or
23311         gen_fix_trunctfsi2_fprs depending on TARGET_E500_DOUBLE.
23312         (negtf2): Change to negtf2_internal.
23313         (negtf2): New expander.
23314         (abstf2): Enable for E500 double.  Call gen_spe_abstf2_tst,
23315         gen_spe_abstf2_cmp or gen_abstf2_internal depending on
23316         TARGET_E500_DOUBLE and flag_unsafe_math_optimizations.
23317         (movdi_internal32): Use rs6000_nonimmediate_operand.
23318         (unnamed splitter): Likewise.
23319         * config/rs6000/spe.md (CMPTFEQ_GPR, TSTTFEQ_GPR, CMPTFGT_GPR,
23320         TSTTFGT_GPR, CMPTFLT_GPR, TSTTFLT_GPR): New unspecs.
23321         (SPE64TF, DITI): New mode macros.
23322         (frob_df_di): Change to frob_<SPE64:mode>_<DITI:mode>; allow more
23323         modes.
23324         (frob_tf_ti): New.
23325         (frob_<mode>_di_2): New.
23326         (frob_tf_di_8_2): New.
23327         (frob_di_df): Change to frob_di_<mode>; allow more modes.
23328         (frob_ti_tf): New.
23329         (frob_di_df_2): Change to frob_<DITI:mode>_<SPE64:mode>_2; allow
23330         more modes.
23331         (frob_ti_<mode>_8_2): New.
23332         (frob_ti_tf_2): New.
23333         (mov_si<mode>_e500_subreg0, mov_si<mode>_e500_subreg0_2,
23334         mov_si<mode>_e500_subreg4, mov_si<mode>_e500_subreg4_2): Allow
23335         TFmode.
23336         (mov_sitf_e500_subreg8, mov_sitf_e500_subreg8_2,
23337         mov_sitf_e500_subreg12, mov_sitf_e500_subreg12_2): New.
23338         (spe_trunctfdf2_internal1, spe_trunctfsf2, spe_extenddftf2,
23339         spe_fix_trunctfsi2, spe_fix_trunctfsi2_internal,
23340         spe_negtf2_internal, spe_abstf2_cmp, spe_abstf2_tst): New.
23341         (cmptfeq_gpr, tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr,
23342         tsttflt_gp): New.
23343
23344 2007-01-23  Ian Lance Taylor  <iant@google.com>
23345
23346         * Makefile.in (OBJS-common): Reformat, alphabetize, but put
23347         insn-*.o first.
23348         (OBJS-archive): Reformat, alphabetize.
23349         (OBJS): Change out_object_file to OBJS-md.
23350
23351 2007-01-23  Uros Bizjak  <ubizjak@gmail.com>
23352
23353         * config/i386/i386.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
23354         JUMP_P and CALL_P predicates where applicable.
23355         * config/i386/i386.c: Ditto.
23356         * config/i386/i386.md: Ditto.
23357         * config/i386/mmx.md: Ditto.
23358         * config/i386/predicates.md: Ditto.
23359
23360 2007-01-22  Andreas Schwab  <schwab@suse.de>
23361
23362         * config/m68k/m68k.h: Fix comment.
23363
23364 2007-01-22  Jan Hubicka  <jh@suse.cz>
23365
23366         * passes.c (init_optimization_passes): Do not rerun
23367         pass_early_warn_uninitialized.
23368
23369 2007-01-22  Richard Guenther  <rguenther@suse.de>
23370
23371         PR tree-optimization/30038
23372         * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
23373         function.
23374         (execute_cse_sincos_1): Likewise.
23375         (execute_cse_sincos): Likewise.
23376         (gate_cse_sincos): Likewise.
23377         (pass_cse_sincos): New pass CSEing sin() and cos() calls using
23378         the cexpi() canonicalization of sincos().
23379         * tree-pass.h (pass_cse_sincos): Declare.
23380         * passes.c (init_optimization_passes): New pass pas_cse_sincos.
23381
23382 2007-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
23383
23384         PR rtl-optimization/29329
23385         * combine.c (replaced_rhs_insn): Rename to i2mod.
23386         (replaced_rhs_value): Rename to i2mod_new_rhs.
23387         (i2mod_old_rhs): New global variable.
23388         (combine_instructions): Adjust for above change.  Save a copy of
23389         the old RHS into i2mod_old_rhs when the contents of a REG_EQUAL
23390         note are substituted in the second instruction.
23391         (distribute_notes) <REG_DEAD>: Adjust for above change.  Do not
23392         ditch the note if it pertains to the second eliminated register
23393         and this register is mentioned in i2mod_old_rhs.
23394
23395         Revert:
23396         2006-09-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
23397
23398         * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
23399         the insn to which the note was originally attached.
23400
23401 2007-01-21  Jan Hubicka  <jh@suse.cz>
23402
23403         * ipa-inline.c (inlining_mode): Comment, move up.
23404         (cgraph_decide_inlining_incrementally): Do not perform inlining
23405         itself; fix handling of flattening of self recursive functions.
23406         (cgraph_find_cycles): Remove.
23407         (cgraph_flatten_node): Remove.
23408         (cgraph_decide_inlining): Use incremental inliner to handle flattening.
23409         (try_inline): New function.
23410         (cgraph_early_inlining): Update call of
23411         cgraph_decide_inlining_incrementally.  Apply inlining here.
23412         (apply_inline): Update call of cgraph_decide_inlining_incrementally.
23413
23414 2007-01-21  Dirk Mueller  <dmueller@suse.de>
23415
23416         PR bootstrap/30511
23417         * tree-vrp.c (check_array_bounds): do not warn
23418         about ADDR_EXPR's of ARRAY_REF's which are immediately
23419         used in binary expressions.
23420
23421 2007-01-21  Ira Rosen  <irar@il.ibm.com>
23422
23423         * tree-vectorizer.h (struct _stmt_vec_info): Add new field
23424         read_write_dep and macros for its access.
23425         * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
23426         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Remove
23427         argument, call vect_check_interleaving for every independent pair of
23428         data-refs. Mark loads that access the same memory location as a store
23429         in the loop.
23430         (vect_check_dependences): Remove.
23431         (vect_analyze_data_ref_dependences): Remove  vect_check_dependences
23432         call, fix the call to vect_analyze_data_ref_dependence.
23433         (vect_analyze_data_ref_access): For statements that access the same
23434         data-ref, check that they are not stores; for loads, check that there
23435         is no store that access the same location.
23436
23437 2007-01-20  Roger Sayle  <roger@eyesopen.com>
23438             Joseph Myers  <joseph@codesourcery.com>
23439
23440         * doc/invoke.texi (-fdump-rtl-combine): Fix under/overfull hbox.
23441         (-fdump-rtl-stack): Likewise.
23442         (-fno-signed-zeros): Use @minus{} for a minus sign.  Correct typo.
23443         (-mcheck-zero-division, -mcpu): Fix under/overfull hbox.
23444         (-mpt-fixed): Use @minus{} for minus sign.
23445         (Using Precompiled Headers): Fix under/overfull hbox.
23446
23447 2007-01-20  Jan Hubicka  <jh@suse.cz>
23448
23449         * tree-flow.h (struct stmt_ann_d): Move references_memory to proper
23450         place within annotation.
23451
23452 2007-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23453
23454         * pa.c (output_move_double): Change array size of xoperands to 4.
23455
23456 2007-01-20  Jan Hubicka  <jh@suse.cz>
23457
23458         * tree-tailcall.c (adjust_return_value): Do not use RESULT_DECL
23459         as temporary.
23460
23461 2007-01-19  Ian Lance Taylor  <iant@google.com>
23462
23463         * expmed.c (expand_divmod) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]: Cast
23464         constant to unsigned HOST_WIDE_INT before negating.
23465
23466 2007-01-19  Ian Lance Taylor  <iant@google.com>
23467
23468         * tree-ssa-operands.h (struct vuse_vec_d): Change num_vuse field
23469         to unsigned.
23470         (VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Use unsigned comparison.
23471         (VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
23472         (SET_VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Likewise.
23473         (SET_VUSE_ELEMENT_VAR) [ENABLE_CHECKING]: Likewise.
23474         (SET_VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
23475         (realloc_vdef, realloc_vuse): Change second parameter to
23476         unsigned.
23477         (ssa_operand_iterator_d): Change vuse_index and mayuse_index
23478         fields to unsigned.
23479         * tree-ssa-operands.c (realloc_vop): Change num_elem parameter to
23480         unsigned. Change x and lim locals to unsigned.
23481         (realloc_vdef, realloc_vuse): Change num_elem parameter to
23482         unsigned.
23483         (finalize_ssa_vuse_ops): Change old_i local to unsigned.
23484         (copy_virtual_operands): Change i and n locals to unsigned.
23485
23486 2007-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23487
23488         PR middle-end/29335
23489         * builtins.c (fold_builtin_1): Handle builtin fdim.
23490
23491 2007-01-20  Jan Hubicka  <jh@suse.cz>
23492
23493         * tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
23494         * tree-ssa-structalias.c (compute_points_to_sets): Do call
23495         init_alias_heapvars.
23496         (init_alias_heapvars): Initialize only when not already initialized.
23497         (delete_alias_heapvars): Set heapvar_for_stmt to NULL.
23498
23499 2007-01-19  Roger Sayle  <roger@eyesopen.com>
23500
23501         * common.opt (fsigned-zeros): New command line option.
23502         * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead
23503         of flag_unsafe_math_optimizations.
23504         * opts.c (set_fast_math_flags): The -ffast-math command line option
23505         implies -fno-signed-zeros.
23506         (fast_math_flags_set_p): Likewise.
23507
23508         * doc/invoke.texi: Document new -fno-signed-zeros option, and update
23509         the documentation of -ffast-math appropriately.  Wrap long lines.
23510
23511 2007-01-19  Steve Ellcey  <sje@cup.hp.com>
23512
23513         * system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
23514         * varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.
23515
23516 2007-01-19  Tomas Bily  <tbily@suse.cz>
23517
23518         * cgraphunit.c (cgraph_finalize_function): Updating of pid
23519         * tree-profile.c:
23520         (tree_init_ic_make_global_vars): New function
23521         (tree_init_edge_profiler): call of tree_init_ic_make_global_vars
23522         (tree_gen_ic_profiler): New function
23523         (tree_gen_ic_func_profiler): New function
23524         (tree_profiling): Added calling of tree_gen_ic_func_profiler
23525         (tree_profile_hooks): Added hook for indirec/virtual calls
23526         * value-prof.c (tree_find_values_to_profile): New case for
23527         indirect calls
23528         (tree_values_to_profile): Call for determining indirect/virtual
23529         counters
23530         (tree_indirect_call_to_profile): New function
23531         (tree_ic_transform): New function
23532         (tree_ic): New function
23533         (find_func_by_pid): New function
23534         (init_pid_map): New function
23535         (tree_value_profile_transformations): Added check for
23536         indirect/virtual call transformation
23537         * value-prof.h (enum hist_type): New counter type for
23538         indirect/virtual calls
23539         (profile_hooks): Added new hook for profiling indirect/virtual
23540         calls
23541         * profile.c (instrument_values): New case for indirect/virtual
23542         call added
23543         * gcov-io.h (GCOV_LAST_VALUE_COUNTER): Changed to 6
23544         (GCOV_COUNTER_V_INDIR): New counter type
23545         (GCOV_COUNTER_NAMES): New name of counter "indirect" added
23546         (GCOV_MERGE_FUNCTIONS): New merge function for indirect/virtual
23547         call added
23548         * cgraph.c: Definition of cgraph_max_pid
23549         (cgraph_create_node): Default init of pid attribute
23550         * cgraph.h: Declaration of cgraph_max_pid
23551         (struct cgraph_node): Added pid attribute
23552         * libgcov.c (__gcov_indirect_call_profiler): New function
23553         (__gcov_one_value_profiler_body): New function
23554         (__gcov_one_value_profiler): Body was moved to
23555         __gcov_one_value_profiler_body and calls it
23556
23557 2007-01-19  Basile Starynkevitch  <basile@starynkevitch.net>
23558
23559         * doc/gty.texi (Options): Document the mark_hook option to GTY.
23560         * gengtype.c (write_types_data, write_func_for_structure,
23561         write_types, ggc_wtd, pch_wtd): Add skip_hooks to
23562         write_types_data, ggc_wtd, pch_wtd for processing mark_hook.
23563         (walk_type, write_func_for_structure): Generate the mark_hook if
23564         needed.
23565
23566 2007-01-19  Jan Hubicka  <jh@suse.cz>
23567
23568         * ipa-inline.c (cgraph_decide_inlining_incrementally): Instead of
23569         'early' argument take inlining mode argument specifying whether to
23570         inline for size/speeed or all functions; add support for flattening;
23571         improve dumpting.
23572         (cgraph_early_inlining): Update call of decide_inlining_incrementally.
23573
23574 2007-01-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23575
23576         PR c++/17947
23577         * toplev.c (warn_deprecated_use): Use %qD instead of %qs to print
23578         the name of the declared identifier.
23579
23580 2007-01-19  Dirk Mueller  <dmueller@suse.de>
23581
23582         * config/i386.h (CONDITIONAL_REGISTER_USAGE): Store
23583         result of PIC_OFFSET_TABLE_REGNUM in temporary variable to avoid
23584         duplicate evaluation.
23585
23586 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
23587
23588         * config/i386/i386.md (acos<mode>2): Rename from acossf2 and acosdf2.
23589         Macroize expander using X87MODEF12 mode macro.  Extend operand 1
23590         to XFMode, use acosxf2 and truncate result to requested mode.
23591         Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
23592         (asin<mode>2): Similarly, with asin expanders.
23593         (*fscalexf4_i387): Rename from *fscalexf4.
23594         (expNcorexf3): New expander.
23595         (expxf2, exp10xf2, exp2xf2): Use expNcorexf3 expander.
23596         (exp<mode>2): Rename from expsf2 and expdf2. Macroize expander using
23597         X87MODEF12 mode macro.  Extend operand 1 to XFMode, use expxf2 and
23598         truncate result to requested mode. Use SSE_FLOAT_MODE_P to disable
23599         patterns for SSE math.
23600         (exp10<mode>2): Similarly, with exp10 expanders.
23601         (exp2<mode>2): Similarly, with exp2 expanders.
23602         (expm1<mode>2): Similarly, with expm1 expanders.
23603         (ldexp<mode>3): Similarly, with ldexp expanders.
23604         (log<mode>2, log10<mode>2, log2<mode>2, log1p<mode>2, logb<mode>2):
23605         Use gen_truncxf<mode>2_i387_noop to truncate result.
23606
23607 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
23608
23609         * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
23610         for ColdFire targets.
23611
23612 2007-01-19  Nathan Sidwell  <nathan@codesourcery.com>
23613             Richard Sandiford  <richard@codesourcery.com>
23614
23615         * config/m68k/m68k.h (M68K_STATIC_CHAIN_REG_NAME): New macro.
23616         (INITIALIZE_TRAMPOLINE): Use STATIC_CHAIN_REGNUM.
23617         (__transfer_from_trampoline): Use M68K_STATIC_CHAIN_REG_NAME.
23618         * config/m68k/m68kelf.h (STATIC_CHAIN_REGNUM): Override.
23619         (M68K_STATIC_CHAIN_REG_NAME): Likewise.
23620         * config/m68k/netbsd-elf.h (M68K_STATIC_CHAIN_REG_NAME): Likewise.
23621
23622 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
23623
23624         * config/m68k/m68k.md (adddi_dilshr32): Rename to...
23625         (*adddi_dilshr32): ...this.  Fix formatting.  Remove commented-out
23626         non-canonical pattern.  Restrict to !TARGET_COLDFIRE.
23627         (*adddi_dilshr32_cf): New pattern.
23628         (adddi3, subdi3): Remove first alternatives.
23629
23630 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
23631
23632         * config/m68k/m68k.c (notice_update_cc): If an SFmode move is
23633         implemented using move.l, do not use its cc result for floating-point
23634         comparisons.
23635
23636 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
23637
23638         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Stop the 'T' constraint
23639         from accepting 's' constraints if flag_pic.
23640
23641 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
23642
23643         * config/m68k/m68k.md (bordered, bunordered, buneq, bunge, bungt)
23644         (bunle, bunlt, bltgt, bordered_rev, bunordered_rev, buneq_rev)
23645         (bunge_rev, bungt_rev, bunle_rev, bunlt_rev, bltgt_rev): Change
23646         condition from TARGET_68881 to TARGET_HARD_FLOAT.
23647
23648 2007-01-19  Sandra Loosemore  <sandra@codesourcery.com>
23649
23650         * longlong.h (count_leading_zeros, COUNT_LEADING_ZEROS_0): Add
23651         ColdFire alternatives.
23652         * config/m68k/m68k.h (CLZ_DEFINED_VALUE_AT_ZERO): New macro.
23653         * config/m68k/m68k.md (clzsi2): Define for ColdFire
23654         architectures that support ff1 instruction.
23655
23656 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
23657             Julian Brown  <julian@codesourcery.com>
23658
23659         * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Add an 'R' case.
23660         * config/m68k/m68k.md (*movsi_cfv4): Fold into...
23661         (*movsi_cf): ...here.  Remove unnecessary 'R' from 'Rg'.
23662         Add commentary.
23663
23664 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
23665
23666         * config/m68k/m68k-protos.h (valid_mov3q_const): Take a HOST_WIDE_INT
23667         and return a bool.
23668         (output_move_const_into_data_reg, output_move_simode_const): Delete.
23669         * config/m68k/m68k.c (const_method, const_int_cost): Take a
23670         HOST_WIDE_INT instead of an rtx.
23671         (m68k_rtx_costs): Update call accordingly.
23672         (output_move_const_into_data_reg): Likewise.  Fix formatting.
23673         (valid_mov3q_const): Take a HOST_WIDE_INT instead of an rtx.
23674         Return a bool.
23675         (output_move_simode_const): Update calls after above changes.
23676         Rework to use automatic variables and predicates like MEM_P.
23677         * config/m68k/m68k.md (pushexthisi_const): Update call to
23678         valid_mov3q_const.
23679
23680 2007-01-19  Dirk Mueller  <dmueller@suse.de>
23681
23682         * tree-ssa-alias.c (perform_var_substitution): Fix typo
23683         in dump_flags test.
23684
23685 2007-01-19  Richard Guenther  <rguenther@suse.de>
23686
23687         * builtins.c (expand_builtin_cexpi): Fall back to expanding
23688         via cexp in case sincos is not available.
23689
23690 2007-01-19  Richard Guenther  <rguenther@suse.de>
23691
23692         * doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
23693         * defaults.h (TARGET_HAS_SINCOS): Default to off.
23694         * config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
23695         * config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
23696         * config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
23697         * config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
23698         * config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
23699         * config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
23700
23701 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
23702
23703         * config/i386/i386.md (*fpatanxf3_i387, fpatan_extend<mode>xf3_i387):
23704         New insn patterns.
23705         (atan2sf3_1, atan2df3_1, atan2xf3_1): Remove insn patterns.
23706         (atan2xf3): Directly generate RTL pattern.
23707         (atan2<mode>3): Rename from atan2sf3 and atan2df3 and macroize insn
23708         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
23709         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
23710         disable patterns for SSE math.
23711         (atan<mode>2): Rename from atansf2 and atandf2 and macroize insn
23712         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
23713         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
23714         disable patterns for SSE math.
23715
23716 2007-01-19  Alexandre Oliva  <aoliva@redhat.com>
23717
23718         * libgcc-std.ver: Fix typo in %inherit for GCC_4.3.0.
23719
23720 2007-01-18  Roger Sayle  <roger@eyesopen.com>
23721
23722         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a
23723         VIEW_CONVERT_EXPR to the same type as it's operand.
23724
23725 2007-01-18  David Edelsohn  <edelsohn@gnu.org>
23726
23727         * config/rs6000/darwin-ldouble.c: Only build _SOFT_FLOAT if
23728         configured for long double 128.
23729
23730 2007-01-18  Mike Stump  <mrs@apple.com>
23731
23732         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Fix build
23733         error.
23734
23735 2007-01-18  Michael Meissner  <michael.meissner@amd.com>
23736
23737         * i386.c (ix86_compute_frame_layout): Make fprintf's in #if 0 code
23738         type correct.
23739
23740 2007-01-18  Jan Hubicka  <jh@suse.cz>
23741
23742         * tree-ssa-operands.c (vop_free_bucket_size): Never return value
23743         greater than NUM_VOP_FREE_BUCKETS.
23744
23745 2007-01-18  Daniel Berlin  <dberlin@dberlin.org>
23746
23747         * tree-ssa-structalias.c: Update comments.
23748         (ptabitmap_obstack): Removed.
23749         (pta_obstack): New.
23750         (oldpta_obstack): Ditto.
23751         (stats): Add a few members.
23752         (struct variable_info): Remove node, complex, address_taken, and
23753         indirect_target members. Add oldsolution member.
23754         (new_var_info): Do not initialize removed members.
23755         (constraint_expr_type): Remove INCLUDES.
23756         (constraint_graph): Add size, implicit_preds, rep,
23757         indirect_cycles, eq_rep, label, direct_nodes, and complex members.
23758         (FIRST_REF_NODE): New macro.
23759         (LAST_REF_NODE): Ditto.
23760         (FIRST_ADDR_NODE): Ditto.
23761         (find): New function.
23762         (unite): Ditto.
23763         (dump_constraint): Do not handle INCLUDES.
23764         (insert_into_complex): Do not insert duplicate constraints.
23765         (condense_varmap_nodes): Renamed and rewritten into ...
23766         (merge_node_constraints): This. Also fix bug in handling of
23767         offseted copy constraints.
23768         (clear_edges_for_node): No longer need to deal with preds at all,
23769         or removing associated preds/succs.
23770         (merge_graph_nodes): Deal with indirect_cycles.
23771         Don't deal with predecessors.
23772         (add_implicit_graph_edge): New function.
23773         (add_pred_graph_edge): Ditto.
23774         (add_graph_edge): Don't deal with predecessors.
23775         (build_constraint_graph): Removed.
23776         (build_pred_graph): New function.
23777         (build_succ_graph): Ditto.
23778         (struct scc_info): Removed in_component. Added roots, dfs, and
23779         node_mapping. Remove visited_index, unification_queue.
23780         (scc_visit): Deal with union-find we do now.
23781         Deal with cycles with REF nodes.
23782         (collapse_nodes): Renamed and rewritten to ...
23783         (unify_nodes): This.
23784         (process_unification_queue): Removed.
23785         (topo_visit): Cleanup
23786         (do_da_constraint): Use find.
23787         (do_sd_constraint): Ditto.
23788         (do_ds_constraint): Ditto.
23789         (do_complex_constraint): Ditto.
23790         (init_scc_info): Update for removed and added members.
23791         (find_and_collapse_graph_cycles): Renamed and rewritten into ...
23792         (find_indirect_cycles): This.
23793         (equivalence_class): New variable.
23794         (label_visit): New function.
23795         (perform_variable_substitution): Rewritten.
23796         (free_var_substitution_info): New function.
23797         (find_equivalent_node): Ditto.
23798         (move_complex_constraints): Ditto.
23799         (eliminate_indirect_cycles): Ditto.
23800         (solve_graph): Only propagate changed bits.
23801         Use indirect cycle elimination.
23802         Use find.
23803         (tree_id_t): Rename to tree_vi_t, delete id member, add vi member.
23804         (tree_id_eq): Renamed to ...
23805         (tree_vi_eq): This. Update for member change
23806         (insert_id_for_tree): Renamed and rewritten to ...
23807         (insert_vi_for_tree): This.
23808         (lookup_id_for_tree): Renamed and rewritten to ...
23809         (lookup_vi_for_tree): This.
23810         (get_id_for_tree): Renamed and rewritten to ...
23811         (get_vi_for_tree): Ditto.
23812         (get_constraint_exp_from_ssa_var): Update to use get_vi_for_tree.
23813         (process_constraint): Don't handle INCLUDES.
23814         Remove special ADDRESSOF case.
23815         (find_func_aliases): Rewrite to use vi functions instead of id
23816         ones.
23817         (create_function_info_for): Ditto.
23818         (create_variable_info_for): Ditto.
23819         (intra_create_variable_infos): Ditto.
23820         (merge_smts_into): Ditto.
23821         (find_what_p_points_to): Ditto.
23822         (init_base_vars): Ditto.
23823         (init_alias_vars): Ditto.
23824         (remove_preds_and_fake_succs): New function.
23825         (dump_sa_points_to_info): Dump new stats.
23826         (dump_solution_for_var): Use find.
23827         (set_used_smts): Fix formatting.
23828         (compute_points_to_sets): Updated for new functions.
23829         (ipa_pta_execute): Ditto.
23830
23831 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
23832             Richard Sandiford  <richard@codesourcery.com>
23833
23834         * doc/tm.texi (TARGET_FUNCTION_VALUE): Expand documentation of
23835         parallels.
23836         * calls.c (expand_call): If the return value is a PARALLEL,
23837         extract its first member.
23838         * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Remove.
23839         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
23840         use FUNCTION_EXTRA_EPILOGUE.
23841         (m68k_function_value): Return a PARALLEL if the return value
23842         is of a pointer type.
23843         * config/m68k/netbsd-elf.h (current_function_returns_pointer)
23844         (FUNCTION_EXTRA_EPILOGUE): Remove.
23845         * config/m68k/m68k.md (D0_REG): New constant.
23846
23847 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
23848
23849         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
23850         output a NOP for empty epilogues.
23851
23852 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
23853
23854         * config/m68k/m68k.c (m68k_use_return_insn): Update comments
23855         before function.  Extend register save check to include all
23856         registers, not just integer ones.
23857
23858 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
23859
23860         * config/m68k/m68k-protos.h (use_return_insn): Rename to...
23861         (m68k_use_return_insn): ...this.
23862         * config/m68k/m68k.h (USE_RETURN_INSN): Delete.
23863         * config/m68k/m68k.c (use_return_insn): Rename to...
23864         (m68k_use_return_insn): ...this.
23865         * config/m68k/m68k.md (return): Use m68k_use_return_insn instead
23866         of USE_RETURN_INSN.
23867
23868 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
23869
23870         * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
23871         nearest even, fix denormal rounding overflow.
23872
23873 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
23874
23875         * config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
23876         f%$smove and f%$move.
23877         (movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
23878         (extendsfdf2_cf): Use fdmove instead of f%&move.
23879         (truncdfsf2_cf): Use fsmove instead of f%$smove.
23880         (add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.
23881
23882 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
23883
23884         * config/m68k/m68k.md (movdf_cf_hard): Use output_move_double for
23885         GPR<-GPR moves.
23886
23887 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
23888
23889         * real.h (real_format): Add a canonical_nan_lsbs_set field.
23890         (coldfire_single_format): Declare.
23891         (coldfire_double_format): Likewise.
23892         * real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
23893         of qnan_msb_set to determine the lower bits of a canonical
23894         NaN significand.
23895         (encode_ieee_double): Likewise.
23896         (encode_ieee_quad): Likewise.
23897         (ieee_single_format): Initialize canonical_nan_lsbs_set.
23898         (mips_single_format): Likewise.
23899         (ieee_double_format): Likewise.
23900         (mips_double_format): Likewise.
23901         (ieee_extended_motorola_format): Likewise.
23902         (ieee_extended_intel_96_format): Likewise.
23903         (ieee_extended_intel_128_format): Likewise.
23904         (ieee_extended_intel_96_round_53_format): Likewise.
23905         (ibm_extended_format): Likewise.
23906         (mips_extended_format): Likewise.
23907         (ieee_quad_format): Likewise.
23908         (mips_quad_format): Likewise.
23909         (vax_f_format): Likewise.
23910         (vax_d_format): Likewise.
23911         (vax_g_format): Likewise.
23912         (i370_single_format): Likewise.
23913         (i370_double_format): Likewise.
23914         (decimal_single_format): Likewise.
23915         (decimal_double_format): Likewise.
23916         (decimal_quad_format): Likewise.
23917         (c4x_single_format): Likewise.
23918         (c4x_extended_format): Likewise.
23919         (real_internal_format): Likewise.
23920         (coldfire_single_format): New real_format.
23921         (coldfire_double_format): Likewise.
23922         * config/pdp11/pdp11.c (pdp11_f_format): Initialize
23923         canonical_nan_lsbs_set.
23924         (pdp11_d_format): Likewise.
23925         * config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
23926         if TARGET_COLDFIRE_CPU.
23927
23928 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
23929
23930         * config/m68k/m68k-protos.h (m68k_output_pic_call): Delete.
23931         (output_call, m68k_legitimize_call_address): Declare.
23932         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Remove unnecessary
23933         parenthesees.  Add support for a 'W' constraint.
23934         (LEGITIMATE_PIC_OPERAND_P): Remove SYMBOL_REF_FLAG handling.
23935         (PRINT_OPERAND_PUNCT_VALID_P): Remove comment about 'o'.
23936         (m68k_symbolic_call, m68k_symbolic_jump): Declare.
23937         * config/m68k/m68k.c (m68k_symbolic_call, m68k_symbolic_jump): New
23938         variables.
23939         (override_options): Initialize them.  Do not set flag_no_function_cse
23940         for TARGET_ID_SHARED_LIBRARY.
23941         (m68k_output_pic_call): Delete.
23942         (m68k_legitimize_call_address): New function.
23943         (print_operand): Remove the %o prefix.  Handle the %p prefix.
23944         (output_call): New function.
23945         (m68k_output_mi_thunk): Use m68k_symbolic_jump.  Always load the
23946         target address from the GOT if symbolic jumps are not allowed.
23947         * config/m68k/m68k.md (call, general_operand): Do not set
23948         SYMBOL_REF_FLAG.  Use m68k_legitimize_call_address instead.
23949         Merge separate flag_pic and !flag_pic define_insns into...
23950         (*call, *call_value): ...these new patterns.  Match the address
23951         rather than the containing MEM and require it to be a call_operand.
23952         Use output_call to generate the asm template.
23953         * config/m68k/predicates.md (const_call_operand): New predicate.
23954         (call_operand): Likewise.
23955
23956 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
23957
23958         * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
23959         (STACK_GROWS_DOWNWARD): Define to 1.
23960         (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
23961         comments, emphasizing that these values are only defaults.
23962         * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
23963         * config/m68k/m68k.c (const_method): Remove trailing whitespace.
23964
23965 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
23966
23967         * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
23968
23969 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
23970             Richard Sandiford  <richard@codesourcery.com>
23971
23972         * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
23973         (FP_REGNO_P): New macros.
23974         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
23975         (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
23976         (EH_RETURN_STACKADJ_RTX): Use A0_REG.
23977         * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
23978
23979 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
23980
23981         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
23982         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-rtems*): Add t-floatlib
23983         to $tmake_file.
23984         * config/m68k/t-floatlib: New file, extracting common code from...
23985         * config/m68k/t-m68kbare, config/m68k/t-m68kelf,
23986         * config/m68k/t-uclinux: Here.
23987         * config/m68k/fpgnulib.c: Do not compile extendeed precision
23988         routines on ColdFire targets.
23989
23990 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
23991
23992         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
23993         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*)
23994         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-linux*)
23995         (m68k-*-rtems*): Use tm_file rather than m68k/m68k.h and
23996         explicitly set MOTOROLA to 1.
23997         * config/m68k/m68k.h (MOTOROLA): Simplify definition accordingly.
23998
23999 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
24000             Nathan Sidwell  <nathan@codesourcery.com>
24001
24002         * config/m68k/m68k.h (PCC_STATIC_STRUCT_RETURN): Delete.
24003         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add MOTOROLA cases.
24004         * config/m68k/coff.h (REGISTER_PREFIX_MD): Delete.
24005         * config/m68k/m68020-elf.h (LIB_SPEC): Delete.
24006         * config/m68k/m68k-none.h (CC1_SPEC, CPP_SUBTARGET_SPEC): Delete.
24007         * config/m68k/m68kelf.h (IMMEDIATE_PREFIX, REGISTER_PREFIX_MD)
24008         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
24009         (NO_DOLLAR_IN_LABEL, PCC_STATIC_STRUCT_RETURN): Don't undefine.
24010         (BSS_ASM_OP, ASM_OUTPUT_SKIP, ASM_OUTPUT_ASCII): Delete.
24011         * config/m68k/m68kemb.h (PCC_STATIC_STRUCT_RETURN): Don't undefine.
24012         * config/m68k/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE)
24013         (WCHAR_TYPE_SIZE, TARGET_OBJFMT_CPP_BUILTINS): Delete.
24014         (TARGET_OS_CPP_BUILTINS): Don't define mc68000 and mc68020 here.
24015         (DBX_REGISTER_NUMBER): Delete.
24016         * config/m68k/netbsd-elf.h (IMMEDIATE_PREFIX): Delete.
24017         (PCC_STATIC_STRUCT_RETURN): Don't undefine.
24018         * config/m68k/openbsd.h (PCC_STATIC_STRUCT_RETURN): Define.
24019
24020 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
24021
24022         * config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
24023         * config/flat.h: New file.
24024         * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
24025         OBJECT_FORMAT_FLAT.
24026         * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
24027         indirect references for -msep-data or -mid-shared-library.
24028         Do not use PC-relative code addresses either.
24029         * config/m68k/m68k.c (override_options): Restrict -fPIC error
24030         to -mpcrel.
24031         * config/m68k/uclinux.h (STARTFILE_SPEC): Define.  Use Scrt1.o
24032         for shared libraries and crt1.o for executables.  Use crti.o and
24033         crtbegin.o.
24034         (ENDFILE_SPEC): Use crtend.o and crtn.o.
24035         (LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
24036         Do not add -elf2flt or -shared-lib-id options here.
24037         (LINK_SPEC): Define.  Pass -elf2flt if no -elf2flt option is given.
24038         Pass -shared-lib-id if -mid-shared-library, taking the library
24039         identifier from -mshared-library-id if given, otherwise
24040         defaulting to 0.
24041         (EH_FRAME_IN_DATA_SECTION): Do not undefine.
24042         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
24043         (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
24044         and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
24045         (DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
24046         * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
24047         and crtend.o.
24048         * config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
24049         jump sequence for ISA A and ISA A+.
24050         (PICJUMP): Likewise.
24051
24052 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
24053
24054         * config.gcc (m68k-*-uclinux*): Base the port on the common
24055         and m68k GNU/Linux files rather than on the generic ELF ones.
24056         * config/m68k/uclinux.h (TARGET_VERSION): Override.
24057         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
24058
24059 2007-01-18  Julian Brown  <julian@codesourcery.com>
24060             Richard Sandiford  <richard@codesourcery.com>
24061
24062         * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Make 64-bit on ColdFire.
24063         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24064         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Undefine
24065         before redefining.
24066         * config/m68k/uclinux-oldabi.h (LONG_DOUBLE_TYPE_SIZE): Redefine to
24067         80 unconditionally.
24068         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24069
24070 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
24071
24072         * doc/install.texi: Document m68k-uclinuxoldabi.
24073         * config.gcc (m68k-*-uclinuxoldabi): New configuration.
24074         * config/m68k/uclinux-oldabi.h: New file, copied from
24075         config/m68k/uclinux.h.
24076
24077 2007-01-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
24078
24079         * config/m32r/m32r-protos.h (m32r_expand_epilogue): Declare it.
24080         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Use gen_frame_mem.
24081         (m32r_compute_frame_size): Use unsigned for regno.
24082         (m32r_reload_lr): Use gen_frame_mem.
24083         (pop): New.
24084         (m32r_output_function_epilogue): Don't output the function epilogue
24085         textually here.
24086         (m32r_expand_epilogue): New.
24087         (direct_return): Return false if the function has the interrupt
24088         attribute.
24089         (m32r_hard_regno_rename_ok): Remove code for the textual epilogue.
24090         * config/m32r/m32r.md (epilogue): New expander.
24091         (return_lr, return_rte): New insns.
24092         (return): Make it expander.
24093         (return_normal): New expander.
24094
24095 2007-01-18  Josh Conner  <jconner@apple.com>
24096
24097         PR target/30485
24098         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
24099         support for UNLE, UNLT, UNGE, and UNGT.
24100
24101 2007-01-18  Jan Hubicka  <jh@suse.cz>
24102
24103         * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand.
24104         * tree-tailcall (add_virtual_phis): Likewise.
24105         (optimize_tail_call): Return TODOs.
24106         (execute_tail_calls): Return TODOs.
24107         * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO.
24108         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something
24109         changed.
24110         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
24111         Cleanup cfg using TODO.
24112         * tree-flow.h (cleanup_tree_cfg_loop): Update prototype.
24113         * passes.c (execute_function_todo): When cleanup did something, remove
24114         unused locals.
24115         * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO.
24116         (make_edges): Don't cleanup_cfg.
24117
24118 2007-01-18  Uros Bizjak  <ubizjak@gmail.com>
24119
24120         * reg-stack.c (subst_stack_regs_pat) [UNSPEC_SINCOS_COS,
24121         UNSPEC_XTRACT_FRACT]: Use generic code for instructions that
24122         operate on the top of stack.
24123         [UNSPEC_SINCOS_SIN, UNSPEC_XTRACT_EXP, UNSPEC_TAN]: Rewrite
24124         register handling of instructions that output to the second
24125         stack slot.
24126         [UNSPEC_TAN_ONE, UNSPEC_TAN_TAN]: Remove.
24127         (move_for_stack_reg): Special-case check for dead destination
24128         stack slot for constant load of 1.0 inside UNSPEC_TAN.
24129
24130         * config/i386/i386.md (UNSPEC_TAN): New constant.
24131         (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): Remove.
24132         (fptanxf4_i387, fptan_extend<mode>xf4_i387): New patterns
24133         to correctly model move of constant 1.0 to top stack slot.
24134         (*tandf3_1, *tansf3_1, *tanxf3_1): Remove insn patterns.
24135         (unnamed peephole2 pattern): Remove corresponding peephole2
24136         pattern that optimizes tan insn and loading of constant 1.0.
24137         (tanxf2): Use fptanxf4_i387.
24138         (tan<mode>2): Rename from tansf2 and tandf2 and macroize insn
24139         patterns using X87MODEF12 mode macro.  Use fptan_extend<mode>xf4_i387
24140         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
24141         disable patterns for SSE math.
24142         (sincos<mode>3): Use truncxf<mode>2_i387_noop for truncation.
24143         (fyl2x_extend<mode>xf3_i387): Use X87MODEF12 for operand 1.
24144
24145 2007-01-18  Dirk Mueller  <dmueller@suse.de>
24146             Richard Guenther <rguenther@suse.de>
24147
24148         PR diagnostic/8268
24149         * doc/invoke.texi (Warray-bounds): Document -Warray-bounds.
24150         * common.opt (Warray-bounds): Add new warning option.
24151         * c-opts.c (c_common_handle_option): Define -Warray-bounds
24152         if -Wall is given.
24153         * Makefile.in: make tree-vrp.o depend on toplev.h
24154         * tree-vrp.c (vrp_finalize): Call check_array_refs if -Warray-bounds
24155         is enabled.
24156         (check_array_refs, check_array_bounds, check_array_ref): New.
24157
24158 2007-01-18  Jan Hubicka  <jh@suse.cz>
24159
24160         * tree-ssa-ccp.c (ccp_finalize): Return if something changed.
24161         (execute_ssa_ccp): Return flags conditionally.
24162         * tree-ssa-propagate.c (substitue_and_fold): Return if something was
24163         changed.
24164         * tree-ssa-propagate.h (substitute_and_fold): Update prototype.
24165
24166 2007-01-18  Steven Bosscher  <steven@gcc.gnu.org>
24167
24168         * cfgcleanup.c (cleanup_cfg): Detect cfglayout mode and set
24169         the CLEANUP_CFGLAYOUT flag when in cfglayout mode.
24170
24171         * Makefile.c (GTFILES): Add cfglayout.h.
24172         * gengtype.c (open_base_files): Likewise.
24173         * cfglayout.c (cfg_layout_function_footer,
24174         cfg_layout_function_header) Reindent to make gengtype happy.
24175         * cfglayout.h (cfg_layout_function_footer,
24176         cfg_layout_function_header): Add GTY(()) marker.
24177
24178         * ifcvt.c (noce_try_sign_mask): Make sure INSN_B is non-null.
24179
24180 2007-01-18  Ben Elliston  <bje@au.ibm.com>
24181
24182         * genautomata.c (write_automata): Include xstrerror output in the
24183         error message if writing the DFA description file fails.
24184
24185 2007-01-17  H.J. Lu  <hongjiu.lu@intel.com>
24186
24187         * config/mips/mips-protos.h (mips_output_external): Make it
24188         return void.
24189         * config/mips/iris.h (TARGET_ASM_EXTERNAL_LIBCALL): Removed.
24190         * config/mips/mips.c (irix_output_external_libcall): Likewise.
24191         (extern_list): Likewise.
24192         (extern_head): Likewise.
24193         (TARGET_ASM_FILE_END): Likewise.
24194         (mips_file_end): Likewise.
24195         (mips_output_external): Rewritten.
24196
24197 2007-01-18  Ben Elliston  <bje@au.ibm.com>
24198
24199         * genpreds.c (write_insn_preds_c): Only write out the function
24200         body for regclass_for_constraint if we have register constraints.
24201
24202 2007-01-17  Tom Tromey  <tromey@redhat.com>
24203
24204         * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org.
24205         * doc/install.texi (Testing): Use sourceware.org.
24206         (Binaries): Likewise.
24207         (Specific): Likewise.
24208         * doc/contrib.texi (Contributors): Use sourceware.org.
24209
24210 2007-01-17  Anatoly Sokolov <aesok@post.ru>
24211
24212         * config/avr/avr.h (AVR_HAVE_LPMX): New macro.
24213         (AVR_ENHANCED): Rename to ...
24214         (AVR_HAVE_MUL): ... new.
24215         (avr_enhanced_p): Rename to ...
24216         (avr_have_mul_p): ... new.
24217         (TARGET_CPU_CPP_BUILTINS): Use 'avr_have_mul_p' instead of
24218         'avr_enhanced_p' for "__AVR_ENHANCED__". Define "__AVR_HAVE_MUL__".
24219         * config/avr/avr.c (avr_enhanced_p): Rename to ...
24220         (avr_have_mul_p): ... new.
24221         (base_arch_s): Rename 'enhanced' to 'have_mul'.
24222         (avr_override_options): Use 'avr_have_mul_p' and 'have_mul' instead of
24223         'avr_enhanced_p' and 'enhanced'.
24224         (ashlhi3_out, ashrhi3_out, lshrhi3_out, avr_rtx_costs): Use
24225         AVR_HAVE_MUL instead of AVR_ENHANCED.
24226         * avr.md (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
24227         (mulqi3, *mulqi3_enh, *mulqi3_call, mulqihi3, umulqihi3, mulhi3,
24228         *mulhi3_enh, *mulhi3_call, mulsi3, *mulsi3_call): Use AVR_HAVE_MUL
24229         instead of AVR_ENHANCED.
24230         (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
24231         * libgcc.S: Use __AVR_HAVE_MUL__ instead of __AVR_ENHANCED__.
24232         (__tablejump__): Use __AVR_HAVE_LPMX__ instead of __AVR_ENHANCED__.
24233
24234 2007-01-17  Ian Lance Taylor  <iant@google.com>
24235
24236         * vec.h (VEC_reserve_exact): Define.
24237         (vec_gc_p_reserve_exact): Declare.
24238         (vec_gc_o_reserve_exact): Declare.
24239         (vec_heap_p_reserve_exact): Declare.
24240         (vec_heap_o_reserve_exact): Declare.
24241         (VEC_OP (T,A,reserve_exact)): New static inline function, three
24242         versions.
24243         (VEC_OP (T,A,reserve)) [all versions]: Remove handling of
24244         negative parameter.
24245         (VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
24246         (VEC_OP (T,A,copy)) [all versions]: Likewise.
24247         (VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
24248         * vec.c (calculate_allocation): Add exact parameter.  Change all
24249         callers.
24250         (vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
24251         (vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
24252         (vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
24253         (vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
24254         (vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
24255         (vec_heap_p_reserve_exact): New function.
24256         (vec_heap_o_reserve_exact): New function.
24257
24258 2007-01-17  Jan Hubicka  <jh@suse.cz>
24259
24260         * ipa-type-escape.c (look_for_casts): Revamp using handled_component_p.
24261
24262 2007-01-17  Eric Christopher  <echristo@apple.com>
24263
24264         * config.gcc: Support core2 processor.
24265
24266 2007-01-16  Jan Hubicka  <jh@suse.cz>
24267
24268         * tree-ssanames.c (release_dead_ssa_names): Instead of ggc_freeing
24269         the names, just unlink the chain so we don't crash on dangling
24270         pointers
24271         to dead SSA names.
24272
24273 2007-01-16  Jan Hubicka  <jh@suse.cz>
24274
24275         * cgraph.h (cgraph_decide_inlining_incrementally): Kill.
24276         * tree-pass.h: Reorder to make IPA passes appear toegher.
24277         (pass_early_inline, pass_inline_parameters, pass_apply_inline):
24278         Declare.
24279         * cgraphunit.c (cgraph_finalize_function): Do not compute inling
24280         parameters, do not call early inliner.
24281         * ipa-inline.c: Update comments.  Include tree-flow.h
24282         (cgraph_decide_inlining): Do not compute inlining parameters.
24283         (cgraph_decide_inlining_incrementally): Return TODOs; assume to
24284         be called with function context set up.
24285         (pass_ipa_inline): Remove unreachable functions before pass.
24286         (cgraph_early_inlining): Simplify assuming to be called from the
24287         PM as local pass.
24288         (pass_early_inline): New pass.
24289         (cgraph_gate_ipa_early_inlining): New gate.
24290         (pass_ipa_early_inline): Turn into simple wrapper.
24291         (compute_inline_parameters): New function.
24292         (gate_inline_passes): New gate.
24293         (pass_inline_parameters): New pass.
24294         (apply_inline): Move here from tree-optimize.c
24295         (pass_apply_inline): New pass.
24296         * ipa.c (cgraph_remove_unreachable_nodes): Verify cgraph after
24297         transforming.
24298         * tree-inline.c (optimize_inline_calls): Return TODOs rather than
24299         doing them by hand.
24300         (tree_function_versioning): Do not allocate dummy struct function.
24301         * tree-inline.h (optimize_inline_calls): Update prototype.
24302         * tree-optimize.c (execute_fixup_cfg): Export.
24303         (pass_fixup_cfg): Remove
24304         (tree_rest_of_compilation): Do not apply inlines.
24305         * tree-flow.h (execute_fixup_cfg): Declare.
24306         * Makefile.in (gt-passes.c): New.
24307         * passes.c: Include gt-passes.h
24308         (init_optimization_passes): New passes.
24309         (nnodes, order): New static vars.
24310         (do_per_function_toporder): New function.
24311         (execute_one_pass): Dump current pass here.
24312         (execute_ipa_pass_list): Don't dump current pass here.
24313
24314 2007-01-16  Janis Johnson  <janis187@us.ibm.com>
24315
24316         * config/dfp-bit.c (dfp_compare_op): Return separate value for NaN.
24317         (DFP_NE, DFP_LE, DFP_GE): Return false for NaN.
24318
24319 2007-01-16  David Edelsohn  <edelsohn@gnu.org>
24320
24321         * config/rs6000/darwin-ldouble.c: Build file for SOFT_FLOAT.
24322         (strong_alias): Define.
24323         (__gcc_qmul): Provide non-FMA for soft-float.
24324         (__gcc_qdiv): Same.
24325         (__gcc_qneg): New.
24326         (__gcc_qeq): New.
24327         (__gcc_qle): New.
24328         (__gcc_qge): New.
24329         (__gcc_qunord): New.
24330         (__gcc_stoq): New.
24331         (__gcc_dtoq): New.
24332         (__gcc_qtos): New.
24333         (__gcc_qtod): New.
24334         (__gcc_qtoi): New.
24335         (__gcc_qtou): New.
24336         (__gcc_itoq): New.
24337         (__gcc_utoq): New.
24338         (fmsub): New.
24339         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Initialize
24340         soft-float functions.
24341         * config/rs6000/libgcc-ppc-glibc.ver: Version soft-float symbols.
24342         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn
24343         about long double soft float.
24344
24345 2007-01-16  Dorit Nuzman  <dorit@il.ibm.com>
24346             Tehila Meyzels  <tehila@il.ibm.com>
24347
24348         * tree-vectorizer.h (is_pattern_stmt_p): New.
24349         * tree-vect-analyze.c (vect_determine_vectorization_factor): Fix
24350         formatting (tabs instead of spaces). Cleanup and clarify setting
24351         of STMT_VINFO_VECTYPE. Call is_pattern_stmt_p.
24352         * tree-vect-transform.c (vect_get_vec_def_for_operand): Fix typo.
24353         (vectorizable_type_demotion): Check that types are integral.
24354         (vectorizable_type_promotion): Likewise.
24355         (vectorizable_store): Fix typo.  Eliminate new-line at end of
24356         comments.
24357
24358 2007-01-16  Jan Hubicka  <jh@suse.cz>
24359
24360         * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
24361         cgraph edges too.
24362
24363 2007-01-15  Eric Christopher  <echristo@apple.com>
24364
24365         * ifcvt.c: Include vec.h, vecprim.h.
24366         (check_cond_move_block): New argument regs.
24367         Reorganize. Add registers used to regs.
24368         (cond_move_process_if_block): Use regs set above as
24369         loop bounds.
24370
24371 2007-01-15  Eric Christopher  <echristo@apple.com>
24372
24373         * config/darwin.h: Update copyright.
24374         (TARGET_OPTION_TRANSLATE_TABLE): Add umbrella.
24375         (LINK_COMMAND_SPEC): Add -u.
24376         (LINK_SPEC): Fix umbrella for above.
24377
24378 2007-01-15  Joseph S. Myers  <joseph@codesourcery.com>
24379
24380         * config/soft-fp/op-common.h, config/soft-fp/op-4.h: Update from
24381         glibc CVS.
24382
24383 2007-01-15  Tom Tromey  <tromey@redhat.com>
24384
24385         * doc/sourcebuild.texi (libgcj Tests): Don't mention jacks.
24386         * doc/install.texi (Testing): Don't mention jacks.
24387         (Configuration): Document --enable-java-maintainer-mode.  Move
24388         --with-java-home to libgcj-specific section.  Document
24389         --with-ecj-jar.
24390         (Prerequisites): Mention --enable-java-maintainer-mode, ecj1.
24391
24392 2007-01-15  Jan Hubicka  <jh@suse.cz>
24393
24394         * tree-ssa-dce.c (DCE_TODOs): New.
24395         (propagate_necessity): Return if something changed.
24396         (eliminate_unnecessary_stmts): Likewise.
24397         (perform_tree_ssa_dce): Return TODO flags when needed.
24398         (pass_dce, pass_dce_loop, pass_cd_dce): Remove TODO flags.
24399
24400 2007-01-15  Uros Bizjak  <ubizjak@gmail.com>
24401
24402         * config/i386/i386.md (fyl2xxf3_i387): Rename from fyl2x_xf3.
24403         (fyl2x_extend<mode>xf3_i387): New insn pattern.
24404         (log<mode>2): Rename from logsf2 and logdf2 and macroize insn
24405         patterns using X87MODEF12 mode macro.  Extend operand 1
24406         to XFmode. Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
24407         (log10<mode>2): Ditto.
24408         (log2<mode>2): Ditto.
24409         (log1p<mode>2): Ditto.
24410         (logb<mode>2): Ditto.
24411         (fyl2xp1xf3_i387): Rename from fyl2xp1_xf3.
24412         (fyl2xp1_extend<mode>xf3_i387): New insn pattern.
24413         (*fxtractxf3_i387): Rename from *fxtractxf3.
24414         (fxtract_extend<mode>xf3_i387): New insn pattern.
24415         (ilogbsi2): Use match_dup 3, not match_operand:XF 3.
24416         * config/i386/i386.c (ix86_emit_i387_log1p): Use gen_fyl2xp1xf3_i387()
24417         and gen_fyl2xxf3_i387().
24418
24419 2007-01-14  Zdenek Dvorak <dvorakz@suse.cz>
24420
24421         * loop-unswitch.c (unswitch_loop): Do not call fix_loop_placement.
24422         * cfgloopmanip.c (fix_loop_placement): Made static.  Use
24423         get_loop_exit_edges.  Changed return type to bool.
24424         * cfgloop.h (fix_loop_placement): Declaration removed.
24425
24426 2007-01-14  Dorit Nuzman  <dorit@il.ibm.com>
24427
24428         * param.h (MIN_VECT_LOOP_BOUND): New.
24429         * params.def (MIN_VECT_LOOP_BOUND): New.
24430         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Takes another
24431         argument - minimum threshold for number of iterations.
24432         * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge): Add another
24433         argument to declaration.
24434         * tree-vect-analyze.c (vect_analyze_operations): Check value of
24435         MIN_VECT_LOOP_BOUND.
24436         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Call
24437         slpeel_tree_peel_loop_to_edge with additional argument.
24438         (vect_do_peeling_for_alignment): Likewise.
24439         * doc/invoke.texi (min-vect-loop-bound): Document new param option.
24440
24441 2007-01-14  Uros Bizjak  <ubizjak@gmail.com>
24442
24443         PR target/30413
24444         * config/i386/i386.c (print_operand) ['z']: Output 'b' for
24445         operands of size 1.
24446
24447 2007-01-14  Jan Hubicka  <jh@suse.cz>
24448
24449         * tree-dfa.c (remove_referenced_var): New function.
24450         * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
24451         prune referenced vars list too.
24452         * tree-flow.h (remove_referenced_var): Declare.
24453
24454 2007-01-14  Jan Hubicka  <jh@suse.cz>
24455
24456         * tree-eh.c (add_stmt_to_eh_region_fn): Do not add call_exprs
24457         separately.
24458         (remove_stmt_from_eh_region_fn): Do not remove call_exprs.
24459         (verify_eh_throw_stmt_node, verify_eh_throw_table_statements): Kill.
24460         * except.h (verify_eh_throw_table_statements): Kill prototype.
24461         * cfgexpand.c (expand_gimple_basic_block): Propagate Eh regions
24462         into call exrepssions.
24463         * tree-optimize.c (execute_free_cfg_annotatiosn): Do not call
24464         eh trhow verifier.
24465         * tree-cfg.c: Include pointer-set.h.
24466         (verify_node_sharing): Work on pointer set.
24467         (verify_eh_throw_stmt_node): New.
24468         (verify_stmts): Use pointers sets, verify throw_stmt.
24469
24470 2007-01-13  Zdenek Dvorak <dvorakz@suse.cz>
24471
24472         * ipa-reference.c (analyze_function): Consider also addresses taken
24473         in phi nodes.
24474
24475 2007-01-12  Roger Sayle  <roger@eyesopen.com>
24476
24477         * c-typeck.c (null_pointer_constant_p): Replace use of
24478         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
24479         (build_c_cast): Likewise.
24480
24481 2007-01-12  Roger Sayle  <roger@eyesopen.com>
24482
24483         * tree.h (force_fit_type_double): Remove unused final argument.
24484         * c-common.c (constant_expression_warning): Replace use of
24485         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
24486         (convert_and_check): Likewise.
24487         (shorten_compare): Update call to force_fit_type_double.
24488         (c_common_truthvalue_conversion) <INTEGER_CST>: Use integer_zerop.
24489         * convert.c (convert_to_pointer): Update call to
24490         force_fit_type_double.
24491         * fold-const.c (force_fit_type_double): Remove overflowed_const
24492         argument.
24493         (int_const_binop, fold_convert_const_int_from_int,
24494         fold_convert_const_int_from_real, fold_div_compare,
24495         fold_sign_changed_comparison, fold_unary, fold_negate_const,
24496         fold_abs_const, fold_not_const): Remove the final argument from
24497         calls to force_fit_type_double.
24498
24499 2007-01-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
24500
24501         * configure.ac: Set insn to "nop" for spu-*-* also.
24502         * configure: Regenerate.
24503
24504 2007-01-12  Olga Golovanevsky  <olga@il.ibm.com>
24505
24506         * builtins.def : Add BUILT_IN_FREE.
24507
24508 2007-01-12  Jan Hubicka  <jh@suse.cz>
24509
24510         PR tree-optimization/30443
24511         * tree-inline.c (tree_function_versioning): Do not optimize when
24512         cloning for inlining.
24513
24514 2007-01-12  Zdenek Dvorak <dvorakz@suse.cz>
24515
24516         * doc/loop.texi: Document recording of loop exits.
24517         * cfgloopmanip.c (loopify, duplicate_loop): Use alloc_loop.
24518         (update_single_exits_after_duplication,
24519         update_single_exit_for_duplicated_loop,
24520         update_single_exit_for_duplicated_loops): Removed.
24521         (duplicate_loop_to_header_edge): Do not call
24522         update_single_exits_after_duplication and
24523         update_single_exit_for_duplicated_loops.
24524         (loop_version): Do not update single_exit information.
24525         (fix_loop_structure): Use record_loop_exits instead of
24526         mark_single_exit_loops.
24527         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update
24528         the lists of loop exits.
24529         * cfghooks.c (redirect_edge_and_branch, redirect_edge_and_branch_force,
24530         split_edge, merge_blocks): Update the lists of loop exits.
24531         * modulo-sched.c (sms_schedule): Pass LOOPS_HAVE_RECORDED_EXITS to
24532         loop_optimizer_init.
24533         * loop-init.c (loop_optimizer_init): Call record_loop_exits instead
24534         of mark_single_exit_loops.
24535         (loop_optimizer_finalize): Call release_recorded_exits.
24536         * tree-ssa-loop.c (tree_loop_optimizer_init): Pass
24537         LOOPS_HAVE_RECORDED_EXITS to loop_optimizer_init.
24538         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Do not
24539         update single exit information.
24540         * lambda-code.c (perfect_nestify): Ditto.
24541         * cfgloop.c (flow_loop_free): Destroy the list of exits of the loop.
24542         (mark_single_exit_loops): Removed.
24543         (alloc_loop, loop_exit_hash, loop_exit_eq, loop_exit_free,
24544         get_exit_descriptions, rescan_loop_exit, record_loop_exits,
24545         dump_recorded_exit, dump_recorded_exits, release_recorded_exits): New
24546         functions.
24547         (get_loop_exit_edges, single_exit): Use recorded exit lists.
24548         (add_bb_to_loop, remove_bb_from_loops): Update the lists of loop exits.
24549         (verify_loop_structure): Verify consistency of the exit lists.
24550         (flow_loops_find): Use alloc_loop.  Initialize exits hash.
24551         (set_single_exit): Removed.
24552         * cfgloop.h (struct loop_exit): New function.
24553         (struct loop): single_exit_ field replaced by exits field.
24554         (LOOPS_HAVE_MARKED_SINGLE_EXITS): Replaced by
24555         LOOPS_HAVE_RECORDED_EXITS.
24556         (struct loops): Added exits hash.
24557         (mark_single_exit_loops, set_single_exit): Declaration removed.
24558         (release_recorded_exits, record_loop_exits, rescan_loop_exit): Declare.
24559
24560 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
24561
24562         * doc/invoke.texi: Avoid use of @headitem.
24563
24564 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
24565
24566         * cse.c (cse_insn): Move HAVE_CC0 code after declarations.
24567
24568 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
24569
24570         * doc/install.texi: Fix m68k-*-* anchor and add m68k-*-* to the
24571         list of targets.
24572
24573 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
24574             Richard Sandiford  <richard@codesourcery.com>
24575
24576         * doc/invoke.texi: Document -mno-bitfield, -mno-rtd and -mno-short.
24577         * config/m68k/m68k.opt: Resort options.
24578         (mbitfield, mrtd, mshort): Remove RejectNegative properties.
24579
24580 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
24581             Richard Sandiford  <richard@codesourcery.com>
24582
24583         * doc/invoke.texi: Document the macros that are defined by
24584         m68k's -mtune and -mhard-float options.
24585         * config/m68k/m68k-protos.h (m68k_cpp_cpu_ident) Declare.
24586         (m68k_cpp_cpu_family): Likewise.
24587         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add a full set
24588         of __ucfv*__ macros.  Define __mcffpu__ if generating code for
24589         ColdFire FPUs.  Define __mcf_cpu_* and __mcf_family_* macros.
24590         * config/m68k/m68k.c (m68k_cpp_cpu_ident): New function.
24591         (m68k_cpp_cpu_family): Likewise.
24592
24593 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
24594
24595         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Treat all mc68*
24596         macros besides mc68000 as tuning macros.  Use a switch statement
24597         to set them and mcpu32.
24598
24599 2007-01-12  Julian Brown  <julian@codesourcery.com>
24600
24601         * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
24602         (TARGET_68040_ONLY): Rename to...
24603         (TARGET_68040): ...this.
24604         * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
24605         * config/m68k/m68k.md: Likewise.
24606
24607 2007-01-12  Julian Brown  <julian@codesourcery.com>
24608             Nathan Sidwell  <nathan@codesourcery.com>
24609             Richard Sandiford  <richard@codesourcery.com>
24610
24611         * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
24612         the -mcpu= argument associated with the --with-cpu setting.
24613         Define M68K_DEFAULT_TUNE to the default -mtune= option,
24614         if different from the one implied by the -mcpu setting.
24615         Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
24616         using mcpu=FOO as the default CPU option.  Set target_cpu_default2.
24617         * doc/invoke.texi: Mention ColdFire in the introduction to the
24618         m68k options.  Document the new -march, -mcpu, -mtune, -mdiv,
24619         -mno-div and -mhard-float options.  Make -m68881 a synonym for
24620         -mhard-float.  Document the previously-undocumented -m5206e,
24621         -m528x, -m5307 and -m5407 options.  Tweak the existing option
24622         documentation for consistency.
24623         * doc/install.texi: Mention new --with-cpu arguments.
24624         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
24625         default CPU if neither -mcpu nor -march are specified.
24626         (ASM_CPU_SPEC): Pass down -mcpu and -march options.
24627         (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
24628         TARGET_ISA*.  Set the legacy __mcf*__ cpu macros in the same way,
24629         using m68k_tune to decide between families that implement the
24630         same ISA.  Use m68k_tune to set __mcfv4e__.
24631         (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
24632         (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
24633         (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
24634         (FL_ISA_C, FL_ISA_MMU): New macros.
24635         (MASK_COLDFIRE): Delete.
24636         (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
24637         (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
24638         (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
24639         (TARGET_HARD_FLOAT): Do not define here.
24640         (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
24641         (TUNE_68000): New macro.
24642         (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
24643         (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
24644         (TUNE_CFV2): Redefine in terms of m68k_tune.
24645         (uarch_type, target_device, fpu_type): New enums.
24646         (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
24647         * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
24648         (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
24649         (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
24650         (FL_FOR_isa_c): New macros.
24651         (m68k_isa): New enum.
24652         (m68k_target_selection): New structure.
24653         (all_devices, all_isas, all_microarchs): New tables.
24654         (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
24655         (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
24656         (MASK_ALL_CPU_BITS): Delete.
24657         (m68k_find_selection): New function.
24658         (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
24659         Map the legacy target options to a combination of the new ones.
24660         (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
24661         m68k_cpu_flags.  Handle M68K_DEFAULT_TUNE.  Use m68k_cpu_flags
24662         to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
24663         settings.
24664         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
24665         (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
24666         properties.
24667         (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
24668         (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
24669         * config/m68k/m68k-devices.def: New file.
24670
24671 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
24672             Nathan Sidwell  <nathan@codesourcery.com>
24673
24674         * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
24675         (SUBTARGET_EXTRA_SPECS): New macros.
24676         * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
24677         use %(asm_cpu_spec) instead.
24678         * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
24679         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
24680         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
24681         (EXTRA_SPECS): Rename to...
24682         (SUBTARGET_EXTRA_SPECS): ...this.
24683
24684 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
24685             Richard Sandiford  <richard@codesourcery.com>
24686             Julian Brown  <julian@codesourcery.com>
24687
24688         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
24689         (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
24690         to the configuration's default CPU.
24691         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
24692         Remove default masks.
24693         (m680[012]0-*-*): Set the default with_cpu to the first part of
24694         the target name.
24695         (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
24696         (m68k*-*-linux): Extend the --with-cpu handling to...
24697         (m680[012]0-*-*, m68k*-*-*): ...these configurations.  Allow m68000
24698         and m68010.  Don't set target_cpu_default2.
24699         * doc/install.texi: Document --with-cpu for m68k.
24700         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
24701         * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
24702         (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
24703         (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
24704         (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
24705         (ASM_SPEC): Remove use of %(asm_cpu_default).
24706         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
24707         * config/m68k/linux.h (TARGET_DEFAULT): Delete.
24708         (CPP_SPEC): Merge definitions.  Do not handle __HAVE_68881__ here.
24709         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
24710         __HAVE_FPU__ if TARGET_HARD_FLOAT.
24711         (TARGET_DEFAULT): Delete.
24712         (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
24713         cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
24714         (CPP_CPU_SPEC): Delete.
24715         (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
24716         the appropriate string.
24717         (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
24718         (CPP_SPEC): Define to NETBSD_CPP_SPEC.
24719         (ASM_SPEC): Don't use %(asm_default_spec).
24720         * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
24721         TARGET_DEFAULT and add MASK_68881.
24722         * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
24723
24724 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
24725
24726         * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
24727         (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
24728         MASK_68010 alongside MASK_68020.
24729         * doc/invoke.texi: Document -m68010.
24730         * config/m68k/m68k.opt (m68010): New.
24731         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
24732         if TUNE_68010.
24733         (TUNE_68010): New macro.
24734         * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
24735         (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
24736         (M68K_CPU_m68332): Add MASK_68010.
24737         * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
24738         fallback definition.
24739         * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
24740         defines.
24741         * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
24742         (m68k_handle_option): Handle OPT_m68010.  Add MASK_68010
24743         to all entries that use MASK_68020.
24744         (output_move_simode_const, output_move_himode, output_move_qimode)
24745         (output_move_stricthi, output_move_strictqi): Use TARGET_68010
24746         instead of TARGET_68020 to select clr behavior.  Remove comment
24747         about there being no TARGET_68010.
24748         * config/m68k/m68k.md: Likewise throughout.
24749
24750 2007-01-12  Julian Brown  <julian@codesourcery.com>
24751
24752         * config/m68k/m68k.h (TARGET_ISAB): New macro.
24753         * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
24754         * config/m68k/m68k.md: Likewise.
24755
24756 2007-01-12  Julian Brown  <julian@codesourcery.com>
24757
24758         * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
24759         TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
24760
24761 2007-01-12  Julian Brown  <julian@codesourcery.com>
24762
24763         * config/m68k/m68k.h (TUNE_68040_60): New macro.
24764         * config/m68k/m68k.c (standard_68881_constant_p): Use it.
24765         * config/m68k/m68k.md: Likewise.
24766
24767 2007-01-12  Julian Brown  <julian@codesourcery.com>
24768             Richard Sandiford  <richard@codesourcery.com>
24769
24770         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
24771         instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
24772         TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
24773         TARGET_CPU32.
24774         (TARGET_CPU32): Rename to...
24775         (TUNE_CPU32): ...this.
24776         (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
24777         (TUNE_CFV2): New macros.
24778         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
24779         remove conditions that are implied by TARGET_68020.
24780         * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
24781         instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
24782         (m68k_output_function_epilogue): Likewise.
24783         (m68k_rtx_costs): Likewise.  Use TUNE_68060 instead of TARGET_68060
24784         and TUNE_CFV2 instead of TARGET_5200.  Use TUNE_68000_10 instead of
24785         "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
24786         non-68000 timings.  Refactor multiplication and division costs.
24787         (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
24788         TUNE_CPU32 instead of TARGET_CPU32.
24789         (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
24790         and TUNE_68060 instead of TARGET_68060.
24791         * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
24792         TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
24793         TARGET_CPU32.
24794         (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
24795         && !TARGET_COLDFIRE" to choose between moveq and clr.
24796         Likewise in the unnamed movsf pattern.
24797         (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
24798         "!TARGET_68020 && !TARGET_COLDFIRE".  Likewise the unnamed
24799         ashiftrt pattern.
24800
24801 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
24802
24803         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
24804         of tabbing before backslashes.
24805
24806 2007-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24807
24808         * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
24809         * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
24810         (ASM_OUTPUT_INTERNAL_LABEL): Define.
24811
24812 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
24813
24814         * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
24815         find_interesting_uses_cond.
24816         (find_interesting_uses_cond): Use extract_cond_operands.
24817         (rewrite_use_compare): Use extract_cond_operands and
24818         force_gimple_operand_bsi.  Do not call update_stmt.
24819         (determine_use_iv_cost_condition): Use extract_cond_operands.
24820         Return cheaper of using original bound and changing the exit bound.
24821
24822 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
24823
24824         PR tree-optimization/29516
24825         * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
24826         most_expensive_mult_to_index, addr_to_parts,
24827         create_mem_ref, maybe_fold_tmr): Make the type of
24828         fields of TARGET_MEM_REF sizetype.
24829         (move_fixed_address_to_symbol, move_pointer_to_base):
24830         New functions.
24831         * tree.def (TARGET_MEM_REF): Add comment on types of
24832         the operands.
24833
24834 2007-01-11  Joseph Myers  <joseph@codesourcery.com>
24835
24836         * c-common.c (vector_types_convertible_p): Treat opaque types as
24837         always convertible if they have the same size, but not otherwise.
24838
24839 2007-01-11  Steven Bosscher  <steven@gcc.gnu.org>
24840
24841         * ifcvt.c (struct noce_if_info): Add comments to the fields.
24842         Remove the b_unconditional field.
24843         (noce_try_sign_mask): Do not look at b_unconditional.
24844         (noce_process_if_block): Do not use merge_if_blocks.  Update
24845         the CFG here.  Do not set b_unconditional.
24846         (cond_move_process_if_block): Likewise.
24847         (find_cond_trap): Likewise.
24848         (check_cond_move_block): Require simple jump insns at the end
24849         of the basic block.
24850
24851 2007-01-11  Jan Hubicka  <jh@suse.cz>
24852
24853         PR tree-optimization/1046
24854         * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
24855         when alias info is not ready.
24856         (pass_tail_recursion): Do not require aliasing.
24857         * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
24858         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
24859         * tree-ssa-copy.c (pass_copy_prop): Likewise.
24860         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
24861         * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
24862         * passes.c (init_optimization_passes): Execute rename_ssa_copies,
24863         ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
24864         before inlining.
24865         * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
24866         When aliasing is not build, mark statement as volatile.
24867
24868 2007-01-11  Tom Tromey  <tromey@redhat.com>
24869
24870         PR preprocessor/15185, PR preprocessor/20989:
24871         * doc/cppopts.texi <-MT>: Update description of algorithm for
24872         computing default target.
24873         <-M, -MD>: Reword "basename" text.
24874
24875 2007-01-11  Roger Sayle  <roger@eyesopen.com>
24876
24877         * builtins.c (expand_builtin_pow, expand_builtin_powi,
24878         fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
24879         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
24880         fold_builtin_int_int_roundingfn, fold_builtin_bitop,
24881         fold_builtin_bswap, real_constp, fold_builtin_pow,
24882         fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
24883         do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
24884         uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
24885         * convert.c (convert_to_pointer): Likewise.
24886         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
24887         * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
24888         const_binop, fold_convert_const_int_from_int,
24889         fold_convert_const_int_from_real,
24890         fold_convert_const_real_from_real, sign_bit_p,
24891         optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
24892         fold_sign_changed_comparison, fold_unary, fold_comparison,
24893         fold_binary, multiple_of_p, tree_Expr_non_zero_p,
24894         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
24895         * print-tree.c (print_node_brief, print_node): Likewise.
24896         * stor-layout.c (place_field, layout_type): Likewise.
24897         * tree-chrec.c (keep_cast): Likewise.
24898         * tree.c (build_vector, build_real, build_real_from_int_cst,
24899         build_complex): Likewise.
24900
24901 2007-01-11  Roger Sayle  <roger@eyesopen.com>
24902
24903         * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete.  For the time being,
24904         treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
24905
24906 2007-01-11  Paolo Bonzini  <bonzini@gnu.org>
24907
24908         * configure.ac (strict1_warn): Rename to strict_warn.
24909         (WERROR, --enable-werror, symlink hacks, stage1_cflags,
24910         cc_set_by_configure, quoted_cc_set_by_configure,
24911         stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
24912         all_boot_languages, all_stagestuff): Remove.
24913         (target_list): Remove bootstrap targets.
24914         * Makefile.in (quickstrap): Unconditionally make a synonym of all.
24915         (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
24916         REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
24917         SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
24918         VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
24919         STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
24920         stage1_copy, stage2_build, stage2_copy, stageprofile_build,
24921         stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
24922         stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
24923         bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
24924         bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
24925         unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
24926         restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
24927         cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
24928         *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
24929         stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
24930         stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
24931         risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
24932         (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
24933         (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
24934         (mostlyclean): Adjust.
24935         (clean, distclean): Don't mention bootstrap stuff.
24936         * configure: Regenerate.
24937         * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
24938         java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
24939         treelang/config-lang.in (stagestuff): Remove.
24940         * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
24941         stageprofile, stagefeedback, stagestuff): Remove mention.
24942
24943 2007-01-11  Nick Clifton  <nickc@redhat.com>
24944
24945         * config/mcore/predicates.md (mcore_general_movesrc_operand):
24946         Accept CONSTs.
24947         (mcore_general_movdst_operand): Do not accept CONST_INTs.
24948         (mcore_arith_K_S_operand): Run the test for the S constraint not
24949         the test for the M constraint.
24950         (mcore_addsub_operand): Do not accept integer values that are
24951         larger than 32 bits.
24952         * config/mcore/mcore.md: Remove unused constraints from split.
24953         (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
24954         (addsi3): Likewise.
24955         (allocate_stack): Likewise.
24956         * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
24957         operands to 32 bits.
24958         (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
24959         INTVAL.
24960         (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
24961         mcore_const_ok_for_inline, mcore_const_trick_uses_not,
24962         try_constant_tricks, mcore_num_ones, mcore_num_zeros,
24963         mcore_output_bclri, mcore_output_andn, output_inline_const,
24964         mcore_output_move, mcore_output_movedouble): Likewise.
24965         (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
24966         (output_inline_const): Likewise.
24967         (output_inline_const): Fix format strings used in sprintf
24968         statements.
24969         * config/mcore/mcore-protos.h: Update prototypes for changed
24970         functions in mcore.c.
24971         * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
24972         HOST_WIDE_INT and not int.
24973         (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
24974         CONST_OK_FOR_N): Likewise.
24975         (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
24976         (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
24977         an INTVAL.
24978
24979 2007-01-10  Jan Hubicka  <jh@suse.cz>
24980
24981         * tree-vrp.c (remove_range_assertions): Release defs.
24982         * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
24983         * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
24984
24985 2007-01-10  Paul Brook  <paul@codesourcery.com>
24986
24987         * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
24988         * config/arm/arm.md (mulsi3subsi): New insn.
24989
24990 2007-01-10  Zdenek Dvorak <dvorakz@suse.cz>
24991
24992         * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
24993         (tree_transform_and_unroll_loop): New.
24994         * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
24995         Declare.
24996
24997 2007-01-10  Robert Kennedy <jimbob@google.com>
24998
24999         * fold-const.c (fold_comparison): Fold comparisons like (x *
25000         1000 < 0) to (x < 0).
25001
25002 2007-01-10  Ian Lance Taylor  <iant@google.com>
25003
25004         * tree-pretty-print.c (dump_generic_node): Print parentheses when
25005         operands have the same priority.
25006
25007 2007-01-10  Tom Tromey  <tromey@redhat.com>
25008
25009         * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
25010         (fold_binary): Likewise.
25011         * langhooks.c (lhd_can_use_bit_fields_p): Removed.
25012         * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
25013         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
25014         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
25015         * langhooks.h (struct lang_hooks): Removed field
25016         'can_use_bit_fields_p'.
25017
25018 2007-01-10  Ralf Corsépius <ralf.corsepius@rtems.org>
25019
25020         * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
25021
25022 2007-01-10  Razya Ladelsky  <razya@il.ibm.com>
25023
25024         * function.c (get_last_funcdef_no): New function.
25025         * function.h (get_last_funcdef_no): Declare.
25026         * tree-inline.c (initialize_cfun): Add initialization.
25027         (tree_function_versioning): Cleanup.
25028
25029 2007-01-10  Jan Hubicka  <jh@suse.cz>
25030
25031         * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
25032         PHIs.
25033
25034 2007-01-10  Sa Liu  <saliu@de.ibm.com>
25035             Ben Elliston  <bje@au.ibm.com>
25036
25037         * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
25038         for SAVE_NONLOCAL and Pmode for any other save level.
25039         * spu-protos.h (spu_restore_stack_block): Declare.
25040         * spu.md (save_stack_block): Remove.
25041         (restore_stack_block): Call spu_restore_stack_block.
25042         * spu.c (spu_restore_stack_block): New function.
25043         (spu_expand_epilogue): Remove old comment.
25044
25045 2007-01-09  Zdenek Dvorak <dvorakz@suse.cz>
25046
25047         PR tree-optimization/30322
25048         * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
25049         (cand_value_at): Return the value as aff_tree.
25050         (may_eliminate_iv): Convert the bound from aff_tree to tree.
25051         * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
25052         aff_combination_mult): New functions.
25053         (aff_combination_add): Use aff_combination_add_cst.
25054         (aff_combination_convert): Allow conversions to a wider type.
25055         (tree_to_aff_combination): Handle BIT_NOT_EXPR.
25056         * tree-affine.h (aff_combination_mult): Declare.
25057
25058 2007-01-09  Carlos O'Donell  <carlos@codesourcery.com>
25059
25060         * doc/tm.texi: Update documentation to reflect reality of exec
25061         and start file search behaviours. Update copyright year.
25062         * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
25063         header file directories.
25064
25065 2007-01-09  Uros Bizjak  <ubizjak@gmail.com>
25066
25067         * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
25068         (*cosxf2): Rename to cosxf2_i387.
25069         (*sindf2, *sinsf2): Extend operand 1 to XFmode.  Macroize patterns
25070         using X87MODEF12 mode macro. Rename patterns to
25071         *sin_extend<mode>xf2_i387.  Use SSE_FLOAT_MODE_P to disable patterns
25072         for SSE math.
25073         (*cosdf2, *cossf2): Ditto.
25074         (sincosdf3, sincossf3): Ditto.  Rewrite corresponding splitters
25075         to match extended input operands.
25076         (sincos<mode>3): New expander.
25077         (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
25078         insn patterns and corresponding splitters.
25079
25080 2007-01-09  Kaz Kojima  <kkojima@gcc.gnu.org>
25081
25082         * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
25083         (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
25084
25085 2007-01-09  Nicolas Pitre  <nico@cam.org>
25086
25087         PR target/30173
25088         * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
25089
25090 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
25091
25092         * target.h (struct gcc_target): New field library_rtti_comdat.
25093         * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
25094         (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
25095         * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
25096         * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
25097
25098 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
25099
25100         * doc/invoke.texi (Optimize Options): Correct description of -O0.
25101
25102 2007-01-08  Richard Guenther  <rguenther@suse.de>
25103
25104         * tree.h (force_fit_type_double): Export.
25105         (force_fit_type): Remove.
25106         * fold-const.c (force_fit_type_double): New function.
25107         (force_fit_type): Remove.
25108         (int_const_binop): Use it.
25109         (fold_convert_const_int_from_int): Likewise.
25110         (fold_convert_const_int_from_real): Likewise.
25111         (fold_div_compare): Likewise.
25112         (fold_sign_changed_comparison): Likewise.
25113         (fold_unary): Likewise.
25114         (fold_negate_const): Likewise.
25115         (fold_abs_const): Likewise.
25116         (fold_not_const): Likewise.
25117         * c-common.c (shorten_compare): Use force_fit_type_double.
25118         * convert.c (convert_to_pointer): Likewise.
25119
25120 2007-01-08  Richard Guenther  <rguenther@suse.de>
25121
25122         * tree.h (build_int_cst_wide_type): Export.
25123         * tree.c (build_int_cst_wide_type): New function.
25124         (build_int_cst_wide): Fix comment.
25125         * builtins.c (fold_builtin_object_size): Use build_int_cst
25126         to build -1 or 0 of the correct type.  Use fit_double_type
25127         to check for overflow.
25128         * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
25129         to build the mask.
25130         (decode_field_reference): Likewise.
25131         (all_ones_mask_p): Likewise.
25132         (native_interpret_int): Use build_int_cst_wide_type.
25133         (fold_binary): Use build_int_cst_type to build an all-ones
25134         value.
25135         * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
25136
25137 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
25138
25139         * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
25140
25141 2007-01-09  Ben Elliston  <bje@au.ibm.com>
25142
25143         * genautomata.c (STATS_OPTION): New option.
25144         (stats_flag): New flag.
25145         (gen_automata_option): Handle it.
25146         (initiate_automaton_gen): Ditto.
25147         (write_automata): Output statistics only if stats_flag is
25148         set. Likewise, output time statistics only if time_flag is set.
25149         * doc/md.texi (Processor pipeline description): Document new flag.
25150
25151 2007-01-08  Richard Guenther  <rguenther@suse.de>
25152
25153         * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
25154         * tree.c (build_int_cst_type): Likewise.
25155         (size_in_bytes): Don't call force_fit_type on the result.
25156         (int_fits_type_p): Use fit_double_type.
25157         * fold-const.c (fit_double_type): New function.
25158         (force_fit_type): Use it.
25159         * tree.h (fit_double_type): Export.
25160
25161 2007-01-08  Jan Hubicka  <jh@suse.cz>
25162
25163         * tree-vectorizer.c (gate_increase_alignment): Fix return type.
25164         * ipa.c (function_and_variable_visibility): Fix return type.
25165
25166 2007-01-08  Richard Guenther  <rguenther@suse.de>
25167
25168         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
25169         of offset to build the index.
25170         * tree-pretty-print.c (dump_generic_node): Don't build negated
25171         const just for printing.
25172         * c-pretty-print.c (pp_c_integer_constant): Likewise.
25173         * builtins.c (fold_builtin_int_roundingfn): Check if result
25174         fits the type by using force_fit_type and comparing the result.
25175         * predict.c (predict_loops): Use compare_tree_int for comparison.
25176         * tree.c (build_int_cst): Fall back to integer_type_node for
25177         NULL_TREE type.
25178         (build_int_cst_wide): Assert type is non-null.
25179
25180 2007-01-08  Roberto Costa  <roberto.costa@st.com>
25181
25182         * tree-vrp.c (extract_range_from_cond_expr): New.
25183         (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
25184         * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
25185         as expressions.
25186         (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
25187         * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
25188         tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
25189         used as expressions.
25190         * tree-object-size.c (cond_expr_object_size): New.
25191         (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
25192
25193 2007-01-08  Jan Hubicka  <jh@suse.cz>
25194
25195         * tree-ssa-forwprop.c (forward_propagate_into_cond,
25196         tree_ssa_forward_propagate_single_use_va): Release defs of propagated
25197         statement.
25198
25199 2007-01-08  Richard Guenther  <rguenther@suse.de>
25200
25201         PR tree-optimization/23603
25202         * tree-vrp.c (set_value_range_to_truthvalue): New function.
25203         (extract_range_from_binary): Fall back to truthvalue instead of
25204         varying for TRUTH_*_EXPR.
25205         (extract_range_from_comparison): Fall back to truthvalue instead of
25206         varying.
25207         (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
25208         if all visited PHI values were constant.
25209
25210 2007-01-08  Jan Hubicka  <jh@suse.cz>
25211
25212         * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
25213         (cgraph_analyze_function): break out from ...
25214         (cgraph_finalize_compilation_unit): ... here.
25215         (cgraph_expand_function): Remove forgoten commented out line.
25216         (cgraph_optimize): Analyze functions.
25217
25218 2007-01-08  Jan Hubicka  <jh@suse.cz>
25219
25220         * tree-pas.h (TODO_remove_function): New flag.
25221         (TODO_update*): Renumber.
25222         (pass_ipa_increase_alignment,
25223         pass_ipa_function_and_variable_visibility): New passes.
25224         * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
25225         (cgraph_function_and_variable_visibility): Move to ipa.c
25226         (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
25227         cgraph_increase_alignment.
25228         * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
25229         (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
25230         calling tree-inline.
25231         (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
25232         (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
25233         * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
25234         (gate_increase_alignment): New function.
25235         (pass_ipa_increase_alignment): New pass.
25236         * ipa.c: Inline tree-pass.h and timevar.h
25237         (function_and_variable_visibility): Move here from cgraphunit.c
25238         * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
25239         * passes.c (init_optimization_passes): Add the two new passes.
25240         (execute_todo): Handle cgraph_remove_functions.
25241
25242 2007-01-08  Nick Clifton  <nickc@redhat.com>
25243
25244         * config/frv/predicates.md (reg_or_0_operand): Accept
25245         CONST_DOUBLEs.
25246
25247 2007-01-08  Ralf Corsépius <ralf.corsepius@rtems.org>
25248
25249         * config/bfin/rtems.h, config/bfin/t-rtems: New.
25250         * config.gcc: Add bfin*-rtems*.
25251
25252 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
25253
25254         * c.opt: Add -flax-vector-conversions.
25255         * c-typeck.c (convert_for_assignment): Pass flag to
25256         vector_types_convertible_p to allow emission of note.
25257         (digest_init): Likewise.
25258         * c-opts.c: Handle -flax-vector-conversions.
25259         * c-common.c (flag_lax_vector_conversions): New.
25260         (vector_types_convertible_p): Unless -flax-vector conversions
25261         has been passed, disallow conversions between vectors with
25262         differing numbers of subparts and/or element types.  If such
25263         a conversion is disallowed, possibly emit a note on the first
25264         occasion only to inform the user of -flax-vector-conversions.
25265         The new last argument specifies this.
25266         * c-common.h (flag_lax_vector_conversions): New.
25267         (vector_types_convertible_p): Add extra argument.
25268         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
25269         char_type_node for V*QI type vectors.
25270         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
25271         Update to satisfy new typechecking rules.
25272         * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
25273         C and C++ variants.
25274         * doc/invoke.texi (C Dialect Options): Document
25275         -flax-vector-conversions.
25276
25277 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
25278
25279         PR tree-optimization/29877
25280         * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
25281         a register variable on the RHS to not be replaceable.
25282
25283 2007-01-08  Chen Liqin  <liqin@sunnorth.com.cn>
25284         * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
25285         * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
25286         const_simm15, const_pow2, const_npow2): Added.
25287         * config/score/misc.md (insv, extv, extzv, movmemsi,
25288         move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
25289         * config/score/score.c (score_address_cost, score_select_cc_mode):
25290         Added.
25291         Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
25292         Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
25293         Update score_print_operand.
25294         * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
25295         Adjust register allocate order and update some macro define.
25296         * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
25297         mdx_block_move_straight, mdx_block_move_loop_head,
25298         mdx_block_move_loop_body, mdx_block_move_loop_foot,
25299         mdx_block_move_loop, mdx_block_move): Added.
25300         (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
25301         mdp_limm): Updated and fix some bug and typo.
25302         * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
25303         (movsf, movdf, doloop_end): Added.
25304
25305 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
25306
25307         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
25308         config/arm/thumb2.md: Fix comment typos.
25309         * doc/extend.texi: Fix a typo.
25310
25311 2007-01-07  Eric Christopher  <echristo@apple.com>
25312
25313         * configure.ac: Check for __stack_chk_fail for darwin.
25314         * configure: Regenerate.
25315
25316 2007-01-07  Richard Guenther  <rguenther@suse.de>
25317
25318         * tree-vrp.c (extract_range_from_assert): CSE calls to
25319         compare_values where possible.
25320         (extract_range_from_unary_expr): Likewise.
25321
25322 2007-01-07  Anatoly Sokolov <aesok@post.ru>
25323
25324         * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
25325         * config/avr/avr.c (call_insn_operand): Delete function.
25326         * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
25327         instead of register number. Use predicates.
25328         * config/avr/predicates.md (const0_operand, reg_or_0_operand,
25329         call_insn_operand): Add.
25330
25331 2007-01-06  Jan Hubicka  <jh@suse.cz>
25332
25333         * tree-pass.h (pass_build_cgraph_edges): Declare.
25334         * cgraphunit.c (record_refernece): Move to cgraphbuild.c
25335         (visited_nodes): Remove.
25336         (cgraph_create_edges): Move to cgraphbuild.c; rename to
25337         build_cgrpah_edges; make visited_nodes local.
25338         (cgraph_process_new_functions): DO not call initialize_inline_failed.
25339         (record_references_in_initializer): Move to cgraphbuild.c
25340         (initialize_inline_failed, rebuild_cgraph_edges,
25341         pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
25342         (verify_cgraph_node): Make visited_nodes local.
25343         (cgraph_analyze_function): Do not call cgraph_create_edges and
25344         initialize_inline_failed.
25345         (cgraph_expand_function): Do not call cgraph_lower_function;
25346         assert that function is already lowered.
25347         * Makefile.in (cgraphbuild.o): New.
25348         * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
25349         at the end of lowering passes.
25350
25351 2007-01-06  Steven Bosscher  <steven@gcc.gnu.org>
25352
25353         * ifcvt.c (cond_move_convert_if_block): New function, code
25354         factored out from...
25355         (cond_move_process_if_block): ...here.  Call the new function
25356         on the THEN and ELSE blocks.
25357         (merge_if_block): Do not copy global_live_at_end, merge_blocks
25358         already takes care of this.
25359
25360 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25361
25362         PR c/19978
25363         * tree.h (TREE_OVERFLOW_P): New.
25364         * c-typeck.c (parser_build_unary_op): Warn only if result
25365         overflowed and operands did not.
25366         (parser_build_binary_op): Likewise.
25367         (convert_for_assignment): Remove redundant overflow_warning.
25368         * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
25369
25370 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25371
25372         * c-typeck.c (store_init_value): Split over two lines to follow
25373         the GNU coding style.
25374
25375 2007-01-05  Benjamin Kosnik  <bkoz@redhat.com>
25376
25377         * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
25378         __GXX_EXPERIMENTAL_CXX0X__.
25379         * doc/cpp.texi: Same.
25380
25381 2007-01-05  Richard Guenther  <rguenther@suse.de>
25382
25383         PR middle-end/27826
25384         * tree.c (get_narrower): Do not construct COMPONENT_REFs
25385         with mismatched types.  Instead explicitly build a
25386         conversion NOP_EXPR.
25387
25388 2007-01-05  Ian Lance Taylor  <iant@google.com>
25389
25390         * c-common.c (decl_with_nonnull_addr_p): New function.
25391         (c_common_truthvalue_conversion): Call it.
25392         * c-typeck.c (build_binary_op): Likewise.
25393         * c-common.h (decl_with_nonnull_addr_p): Declare.
25394
25395 2007-01-05  Jakub Jelinek  <jakub@redhat.com>
25396
25397         PR c/30360
25398         * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
25399         denom against 0.0.
25400
25401 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
25402
25403         * doc/install.texi (Final install): Document the fact that
25404         the GNAT runtime should not be stripped.
25405
25406 2007-01-04  Jan Hubicka  <jh@suse.cz>
25407
25408         * tree-inline.c (fold_marked_statements): Update operand caches
25409         and EH after folding
25410
25411 2007-01-04  Ian Lance Taylor  <iant@google.com>
25412
25413         * c-common.c (check_function_nonnull): Whitespace fix.
25414
25415 2007-01-04  Jan Hubicka  <jh@suse.cz>
25416
25417         * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
25418         comitted older version of patch.
25419         (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
25420         function, celanup cfg and collect garbage.
25421
25422 2007-01-04  Mike Stump  <mrs@apple.com>
25423
25424         * Makefile.in (mostlyclean): Don't remove libgcc anymore.
25425         (clean): Likewise.
25426
25427 2007-01-04  Eric Christopher  <echristo@apple.com>
25428
25429         * libgcc2.c (__bswapsi2): Use SItype.
25430         (__bswapdi2): Use DItype.
25431         * libgcc2.h: Update for above.
25432
25433 2007-01-04  Paul Brook  <paul@codesourcery.com>
25434
25435         * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
25436         mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
25437         mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
25438         umulsidi3, umulsidi3adddi, smulsi3_highpart,
25439         umulsi3_highpart): Make conditional on !arm_arch6.
25440         (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
25441         mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
25442         mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
25443         umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
25444         umulsi3_highpart_v6): New insns.
25445
25446 2007-01-04  Roger Sayle  <roger@eyesopen.com>
25447
25448         * fold-const.c (fold_convert): When casting an expression to void,
25449         fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
25450         have a type.  Instead of attempting to build a NOP_EXPR, return
25451         these "special" trees directly.
25452
25453 2007-01-04  Joseph Myers  <joseph@codesourcery.com>
25454
25455         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
25456         MULT inside MINUS as either argument.  Use rs6000_cost->dmul -
25457         rs6000_cost->fp not 0 as adjustment for outer NEG.
25458
25459 2007-01-04  Jan Hubicka  <jh@suse.cz>
25460
25461         * cgraph.c (cgraph_release_function_body): New function.
25462         (cgraph_remove_node): Use it.
25463         * cgraph.h (cgraph_release_function_body): Declare.
25464         * cgraphunit.c (cgraph_expand_function): Use it.
25465         * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
25466         * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
25467         is initialized and while compilation of other function is running.
25468         * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
25469         statement CFG annotations from here to ...
25470         * tree-cfg.c (delete_tree_cfg_annotations): ... here.
25471
25472 2007-01-04  Zdenek Dvorak <dvorakz@suse.cz>
25473
25474         * cfgloop.h (enum li_flags): Make the constants powers of two.
25475
25476 2007-01-04  Jan Hubicka  <jh@suse.cz>
25477
25478         * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
25479         set.
25480         (fold_marked_statements): New function.
25481         (optimize_inline_calls, tree_function_versioning): Fold new statements.
25482         * tree-inline.h (copy_body_data): Add statements_to_fold.
25483
25484 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
25485
25486         * config.gcc: Mention libgcc/config.host.
25487         * Makefile.in: Update comments mentioning libgcc.
25488         (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
25489         (all.cross, start.encap, rest.encap, rest.cross): Update
25490         dependencies for libgcc move.
25491         (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
25492         (clean-target, clean-target-libgcc): Delete.
25493         (srcdirify, GCC_EXTRA_PARTS): New macros.
25494         (libgcc-support, libgcc.mvars): New rules.
25495         (distclean): Remove mention of mklibgcc.
25496         (install): Don't reference INSTALL_LIBGCC.
25497         (install-common): Don't reference EXTRA_PARTS.
25498         (install-libgcc, install-multilib): Delete rules.
25499         * mklibgcc.in: Delete file.
25500         * doc/configfiles.texi: Don't mention mklibgcc.
25501
25502         * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
25503         * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
25504         * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
25505         * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
25506         (mklibgcc, ldblspecs): Likewise.
25507
25508         * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
25509         (posixpre.def): Use $(T).
25510         (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
25511         (SHLIB_SRC, SHLIB_INSTALL): Delete.
25512         (SHLIB_LINK): Make dummy.
25513         * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
25514
25515         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
25516
25517         * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
25518         * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
25519         config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
25520         config/rs6000/t-newas, config/sparc/t-elf: Likewise.
25521
25522         * configure.ac (all_outputs): Remove mklibgcc.
25523         * configure: Regenerated.
25524
25525 2007-01-03  Josh Conner  <jconner@apple.com>
25526
25527         PR middle-end/29683
25528         * calls.c (compute_argument_addresses): Set stack and stack_slot
25529         for partial args, too.
25530         (store_one_arg): Use locate.size.constant for the size when
25531         generating a save_area.
25532
25533 2007-01-03  Robert Kennedy <jimbob@google.com>
25534
25535         * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
25536         whose definitions are deleted due to basic block merging.
25537
25538 2007-01-03  Paul Brook  <paul@codesourcery.com>
25539
25540         PR target/16634
25541         * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
25542         functions.
25543         (use_return_insn): Return 0 for Thumb interrupt functions.
25544         (print_multi_reg): Add rfe argument for IRQ returns.
25545         (arm_output_epilogue): Pop interrupt return address directly into PC.
25546         (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
25547
25548 2007-01-03  Paul Brook  <paul@codesourcery.com>
25549
25550         Merge from sourcerygxx-4_1.
25551         * config/arm/thumb2.md: New file.
25552         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
25553         Thumb-2.
25554         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
25555         * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
25556         (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
25557         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
25558         tables.
25559         (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
25560         * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
25561         comptibility.
25562         * config/arm/ieee754-sf.S: Ditto.
25563         * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
25564         (thumb1_base_register_rtx_p): ... to this.
25565         (thumb_index_register_rtx_p): Rename...
25566         (thumb1_index_register_rtx_p): ... to this.
25567         (thumb_output_function_prologue): Rename...
25568         (thumb1_output_function_prologue): ... to this.
25569         (thumb_legitimate_address_p): Rename...
25570         (thumb1_legitimate_address_p): ... to this.
25571         (thumb_rtx_costs): Rename...
25572         (thumb1_rtx_costs): ... to this.
25573         (thumb_compute_save_reg_mask): Rename...
25574         (thumb1_compute_save_reg_mask): ... to this.
25575         (thumb_final_prescan_insn): Rename...
25576         (thumb1_final_prescan_insn): ... to this.
25577         (thumb_expand_epilogue): Rename...
25578         (thumb1_expand_epilogue): ... to this.
25579         (arm_unwind_emit_stm): Rename...
25580         (arm_unwind_emit_sequence): ... to this.
25581         (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
25582         thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
25583         thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
25584         arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
25585         thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
25586         thumb2_output_casesi): New functions.
25587         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
25588         (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
25589         FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
25590         THUMB2_WORK_REGS): Define.
25591         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
25592         arm_condexec_mask, arm_condexec_masklen)): New variables.
25593         (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
25594         (arm_override_options): Check new CPU capabilities.
25595         Set new architecture flag variables.
25596         (arm_isr_value): Handle v7m interrupt functions.
25597         (user_return_insn): Return 0 for v7m interrupt functions.  Handle
25598         Thumb-2.
25599         (const_ok_for_arm): Handle Thumb-2 constants.
25600         (arm_gen_constant): Ditto.  Use movw when available.
25601         (arm_function_ok_for_sibcall): Return false for v7m interrupt
25602         functions.
25603         (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
25604         (thumb_find_work_register, arm_load_pic_register,
25605         legitimize_tls_address, arm_address_cost, load_multiple_sequence,
25606         emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
25607         print_multi_reg, output_mov_long_double_fpa_from_arm,
25608         output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
25609         output_mov_double_fpa_from_arm, output_move_double,
25610         arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
25611         output_return_instruction, arm_output_function_prologue,
25612         arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
25613         arm_output_mi_thunk, thumb_set_return_address): Ditto.
25614         (arm_expand_prologue): Handle Thumb-2.  Use arm_save_coproc_regs.
25615         (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
25616         (arithmetic_instr, shift_op): Use arm_shift_nmem.
25617         (arm_print_operand): Use arm_print_condition.  Handle '(', ')', '.',
25618         '!' and 'L'.
25619         (arm_final_prescan_insn): Use extract_constrain_insn_cached.
25620         (thumb_expand_prologue): Use thumb_set_frame_pointer.
25621         (arm_file_start): Output directive for unified syntax.
25622         (arm_unwind_emit_set): Handle stack alignment instruction.
25623         * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
25624         Add v6t2, v7, v7a, v7r and v7m.
25625         (RETLDM): Add Thumb-2 code.
25626         (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
25627         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
25628         (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
25629         TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
25630         THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
25631         ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
25632         THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
25633         CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
25634         ADJUST_INSN_LENGTH): Define.
25635         (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
25636         STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
25637         BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
25638         PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
25639         SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
25640         TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
25641         HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
25642         HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
25643         REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
25644         REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
25645         LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
25646         GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
25647         ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
25648         FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
25649         PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
25650         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
25651         * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
25652         cortex-m3.
25653         * config/arm/arm-tune.md: Regenerate.
25654         * config/arm/arm-protos.h: Update prototypes.
25655         * config/arm/vfp.md: Enable patterns for Thumb-2.
25656         (arm_movsi_vfp): Add movw alternative.  Use output_move_vfp.
25657         (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
25658         (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
25659         thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
25660         * config/arm/libunwind.S: Add Thumb-2 code.
25661         * config/arm/constraints.md: Update include Thumb-2.
25662         * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
25663         * config/arm/ieee754-df.S: Ditto.
25664         * config/arm/bpabi.S: Ditto.
25665         * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
25666         * config/arm/predicates.md (low_register_operand,
25667         low_reg_or_int_operand, thumb_16bit_operator): New.
25668         (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
25669         (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
25670         * config/arm/t-arm-elf: Add armv7 multilib.
25671         * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
25672         Include thumb2.md.
25673         (UNSPEC_STACK_ALIGN, ce_count): New.
25674         (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
25675         arm_zero_extendsidi2, arm_zero_extendqidi2): New
25676         insns/expanders.
25677         * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
25678         (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
25679         thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
25680         * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
25681         (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
25682         thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
25683         insns.
25684         * doc/extend.texi: Document ARMv7-M interrupt functions.
25685         * doc/invoke.texi: Document Thumb-2 new cores+architectures.
25686
25687 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
25688
25689         * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
25690         (struct _Unwind_Context): Rename args_size to flags, remove
25691         signal_frame field, add a new args_size field and version field.
25692         (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
25693         _Unwind_IsExtendedContext): New inline functions.
25694         (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
25695         Assume by_value array is only present if _Unwind_IsExtendedContext.
25696         (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
25697         _Unwind_IsSignalFrame.
25698         (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
25699         (uw_update_context_1): Use _Unwind_SetSignalFrame.
25700         (uw_init_context_1): Initialize context->flags to
25701         EXTENDED_CONTEXT_BIT.
25702         * config/rs6000/linux-unwind.h (frob_update_context): Use
25703         _Unwind_SetSignalFrame.
25704
25705 2007-01-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
25706
25707         PR middle-end/30353
25708         * gimplify.c (gimplify_modify_expr_complex_part): Move below
25709         tree_to_gimple_tuple.  Call tree_to_gimple_tuple when we need
25710         the value.
25711
25712 2007-01-03  Kazu Hirata  <kazu@codesourcery.com>
25713
25714         * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
25715         REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
25716         RET, AT_SP): Remove.
25717         * config/i386/i386.md (*sse_prologue_save_insn): Use return
25718         instead of RET.
25719
25720         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
25721         * cfgbuild.c (find_basic_blocks): Likewise.
25722         * cfgrtl.c (rtl_create_basic_block): Likewise.
25723         * function.c (temp_slots_at_level): Likewise.
25724         * reg-stack.c (stack_regs_mentioned): Likewise.
25725         * regclass.c (allocate_reg_info): Likewise.
25726         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
25727         set_bb_for_stmt, move_block_to_fn): Likewise.
25728         * tree-complex.c (tree_lower_complex): Likewise.
25729         * vec.h (VEC_safe_grow_cleared): New.
25730
25731         * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
25732
25733 2007-01-03  Zdenek Dvorak <dvorakz@suse.cz>
25734
25735         * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
25736         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
25737         to loop_version.
25738         * cfgloopmanip.c (scale_loop_frequencies): Export.
25739         (loopify): Scale the frequencies by prescribed coefficients.
25740         (set_zero_probability): New function.
25741         (duplicate_loop_to_header_edge): Improve updating of frequencies.
25742         (lv_adjust_loop_entry_edge, loop_version): Set probabilities
25743         and frequencies according to arguments.
25744         * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
25745         correctly.
25746         * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
25747         * modulo-sched.c (sms_schedule): Set probabilities for entering
25748         versioned loop correctly.
25749         * tree-vect-transform.c (vect_transform_loop): Ditto.
25750         * cfgloop.h (loopify, loop_version): Declaration changed.
25751         (scale_loop_frequencies): Declared.
25752
25753 2007-01-02  Jan Hubicka  <jh@suse.cz>
25754
25755         * cgraph.c: Include tree-flow.h
25756         (cgraph_add_new-function): Handle IPA_SSA mode; execute
25757         early_local_passes.
25758         * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
25759         * tree-pass.h (pass_all_early_optimizations): Declare.
25760         * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
25761         early_local_passes.
25762         (cgraph_analyze_function): Do early_local_passes.
25763         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
25764         Do not add referenced vars.
25765         * tree-optimize.c (gate_all_optimizations): Do not execute when not in
25766         SSA form.
25767         (gate_all_early_local_passes): New gate.
25768         (pass_early_local_passes): Use new gate.
25769         (execute_early_local_optimizations): New functions.
25770         (gate_all_early_optimizations): New gate.
25771         (pass_all_early_optimizations): New pass.
25772         (execute_free_datastructures): Free SSA only when initialized.
25773         (gate_init_datastructures): Init only when optimizing.
25774         (tree_lowering_passes): Do early local passes when called late.
25775         * tree-profile.c (do_tree_profiling): Don't profile functions added
25776         late.
25777         (do_early_tree_profiling, pass_early_tree_profile): Kill.
25778         * tree-cfg.c (update_modified_stmts): Do not update when operands are
25779         not active.
25780         * passes.c (init_optimizations_passes): Reorder so we go into SSA
25781         during early_local_passes.
25782         * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
25783
25784
25785 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
25786
25787         * Makefile.in: Update copyright year.
25788
25789 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
25790
25791         * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
25792         in $(lang_checks) and check-consistency targets.
25793
25794 2007-01-02  Jan Hubicka  <jh@suse.cz>
25795
25796         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
25797         Do not add referenced vars.
25798         * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
25799         are not active.
25800         * passes.c (init_optimization_passes): Put mudflap_2 after
25801         free_datastructures.
25802
25803 2007-01-02  Jan Hubicka  <jh@suse.cz>
25804
25805         * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
25806         Set NOTHROW flag on call statements proved to be nothrow.
25807         Update statement of local calls so new pure/const functions are
25808         updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
25809         goto receivers.
25810         (tree_rest_of_compilation): Register hooks and initialize bitmap
25811         early. Do not set after_inlining flag.
25812
25813 2007-01-02  Steve Ellcey  <sje@cup.hp.com>
25814
25815         * sbitmap.c (HOST_BITS_PER_LONG_LONG): Change to
25816         HOST_BITS_PER_LONGLONG
25817
25818 2007-01-02  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25819
25820         PR c/19977
25821         * c-typeck.c (store_init_value): Don't emit pedantic overflow
25822         warning for non-static initializers.
25823
25824 2007-01-02  Steven Bosscher  <steven@gcc.gnu.org>
25825
25826         * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
25827         m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
25828         rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
25829         Always use set_unique_reg_note to add REG_EQUAL notes.
25830
25831 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
25832
25833         Revert:
25834         2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
25835
25836         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
25837         * cfgbuild.c (find_basic_blocks): Likewise.
25838         * cfgrtl.c (rtl_create_basic_block): Likewise.
25839         * function.c (temp_slots_at_level): Likewise.
25840         * reg-stack.c (stack_regs_mentioned): Likewise.
25841         * regclass.c (allocate_reg_info): Likewise.
25842         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
25843         set_bb_for_stmt, move_block_to_fn): Likewise.
25844         * tree-complex.c (tree_lower_complex): Likewise.
25845         * vec.h (VEC_safe_grow_cleared): New.
25846
25847 2007-01-02  Ian Lance Taylor  <iant@google.com>
25848
25849         * c-common.c (c_common_truthvalue_conversion): When warning about
25850         using an assignment as a truth value, set TREE_NO_WARNING.
25851
25852 2007-01-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25853
25854         PR middle-end/7651
25855         * c.opt (Wold-style-declaration): New.
25856         * doc/invoke.texi (C-only Warning Options): New.
25857         (Wold-style-declaration): Document it.
25858         (Wextra): Enabled by -Wextra.
25859         * c-opts.c (c_common_post_options): Enabled by -Wextra.
25860         * c-decl.c (declspecs_add_scspec): Replace -Wextra with
25861         -Wold-style-declaration.
25862
25863 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
25864
25865         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
25866         * cfgbuild.c (find_basic_blocks): Likewise.
25867         * cfgrtl.c (rtl_create_basic_block): Likewise.
25868         * function.c (temp_slots_at_level): Likewise.
25869         * reg-stack.c (stack_regs_mentioned): Likewise.
25870         * regclass.c (allocate_reg_info): Likewise.
25871         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
25872         set_bb_for_stmt, move_block_to_fn): Likewise.
25873         * tree-complex.c (tree_lower_complex): Likewise.
25874         * vec.h (VEC_safe_grow_cleared): New.
25875
25876 2007-01-02  Douglas Gregor  <doug.gregor@gmail.com>
25877
25878         * c-common.c (c_common_nodes_and_builtins): Since variants of
25879         void_type_node get built before it is given a name, we need to
25880         give those variants the name, too.
25881         (complete_array_type): We need to work with the canonical main
25882         type of the array, from which we will build the qualified version.
25883         * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
25884         * print-tree.c (print_node): Display canonical type information
25885         for each type.
25886         * stor-layout.c (layout_type): When we don't know the
25887         alignment of a type for which we're building an array, we end up
25888         guessing wrong, so make the type require structural equality.
25889         * tree.c (make_node_stat): When we build a new type, it is its
25890         own canonical type.
25891         (build_type_attribute_qual_variant): When building an attribute
25892         variant, its canonical type is the non-attribute variant. However,
25893         if the attributes are target-dependent and they differ, we need to
25894         use structural equality checks for this type.
25895         (build_qualified_type): A qualified type is not equivalent to its
25896         unqualified variant; set the canonical type appropriately.
25897         (build_distinct_type_copy): When building a distinct type from
25898         another type, the new type is its own canonical type.
25899         (build_variant_type_copy): When building a new type variant, we
25900         assume that it is equivalent to the original type.
25901         (build_pointer_type_for_mode): When building a pointer type, also
25902         build a canonical type pointer.
25903         (build_reference_type_for_mode): When building a reference type,
25904         also build a canonical type reference.
25905         (build_index_type): When we can't hash an index type (e.g.,
25906         because its maximum value is negative), the index type requires
25907         structural equality tests.
25908         (build_array_type): Build the canonical form of an array type.
25909         (build_function_type): Function types require structural equality,
25910         because they contain default arguments, attributes, etc.
25911         (build_method_type_directly): Ditto for method types.
25912         (build_offset_type): Build the canonical offset type.
25913         (build_complex_type): Build the canonical vector type.
25914         (make_vector_type): Build the canonical vector type.
25915         * tree.h (TYPE_CANONICAL): New.
25916         (TYPE_STRUCTURAL_EQUALITY_P): New.
25917         (SET_TYPE_STRUCTURAL_EQUALITY): New.
25918         (struct tree_type): Added "canonical" field.
25919         * params.h (VERIFY_CANONICAL_TYPES): New.
25920         * doc/c-tree.texi (TYPE_CANONICAL): Document.
25921         (TYPE_STRUCTURAL_EQUALITY_P): Document.
25922         (SET_TYPE_STRUCTURAL_EQUALITY): Document.
25923         * doc/invoke.texi (verify-canonical-types): Document --param
25924         parameter for verifying canonical types.
25925
25926 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
25927
25928         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
25929         powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
25930         powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
25931         powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
25932         tm_file.
25933         * config/rs6000/e500.h: New.
25934         * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
25935         TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
25936         Remove.
25937         * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
25938         TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
25939         TARGET_E500_DOUBLE): Remove.
25940         * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
25941         TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
25942         * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
25943         * config/rs6000/rs6000.c (rs6000_override_options): Use
25944         CHECK_E500_OPTIONS.
25945
25946 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
25947
25948         * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
25949         TARGET_E500_DOUBLE), not TARGET_E500, for %y.
25950         (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
25951         rs6000_emit_cmove): Don't check TARGET_E500.
25952         * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
25953         sordered): Don't check TARGET_E500.
25954
25955 2007-01-01  Eric Christopher  <echristo@apple.com>
25956
25957         * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
25958         HARD_REGISTER_NUM_P.
25959
25960 2007-01-01  Roger Sayle  <roger@eyesopen.com>
25961
25962         * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
25963         "X eq/ne (C1^C2)".  Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
25964         has no side-effects.  Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
25965         eq/ne Y".
25966
25967 2007-01-01  Mike Stump  <mrs@apple.com>
25968
25969         * configure.ac: Remove support for building with Apple's gcc-3.1.
25970
25971 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
25972
25973         PR middle-end/30311
25974         * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
25975         REG is a hard register.  Do not modify REG before calling
25976         subreg_nregs.
25977         * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
25978         multiple of the size of YMODE for certain lowpart cases.
25979
25980 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
25981
25982         PR middle-end/30253
25983         * gimplify (voidify_wrapper_expr): Update for
25984         GIMPLE_MODIFY_STMT.
25985
25986 2007-01-01  Andreas Schwab  <schwab@suse.de>
25987
25988         PR target/29166
25989         * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
25990         save of BR0 in extra_spill_size instead of spill_size.
25991         (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
25992         area.
25993         (ia64_expand_epilogue): Restore BR0 from its new location.
25994
25995 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
25996
25997         * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
25998         Use a temporary variable if the left hand side is not a gimple
25999         register.
26000
26001 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
26002
26003         * gimplify.c (gimplify_return_expr): Make the temporary variable
26004         for the return expression, a gimple register variable.
26005
26006 2007-01-01  Jan Hubicka  <jh@suse.cz>
26007
26008         * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
26009         INSN_LIST.
26010
26011 2007-01-01  Mike Stump  <mrs@apple.com>
26012
26013         * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
26014         .literal16.
26015         * config/darwin.c (machopic_select_rtx_section): Use
26016         HAVE_GAS_LITERAL16.
26017         (darwin_mergeable_constant_section): Likewise.
26018         * configure: Regenerate.
26019         * config.in: Regenerate.
26020
26021 2007-01-01  Jan Hubicka  <jh@suse.cz>
26022             Andrew Pinski  <pinskia@gmail.com>
26023
26024         * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
26025         before starting IPA passes.