1 2008-04-08 Richard Guenther <rguenther@suse.de>
4 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
5 for adding index to base.
7 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
9 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
10 (MINGW_ENABLE_EXECUTE_STACK): New.
11 (IN_LIBGCC2): For libgcc include windows.h file for
12 function declarations.
14 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
16 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
17 and tem2 if tem1 is not a REG or MULT.
19 2008-04-08 Jan Hubicka <jh@suse.cz>
21 * function.h (incomming_args): Break out of struct function.
22 (function_subsections): Break out of struct function.
23 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
24 return_rtx and hard_reg_initial_vals from struct function.
25 Kill inl_max_label_num.
26 (current_function_pops_args, current_function_args_info,
27 current_function_args_size, current_function_args_size,
28 current_function_pretend_args_size,
29 current_function_outgoing_args_size,
30 current_function_internal_arg_pointer, current_function_return_rtx):
31 Kill compatibility accestor macros.
32 * builtins.c (expand_builtin_apply_args_1): Update.
33 (expand_builtin_next_arg): Update.
34 * df-scan.c (df_get_call_refs): Update.
35 * dbxout.c (dbxout_function_end): Update.
36 * dwarf2out.c (dwarf2out_switch_text_section): Update.
37 (output_line_info): Update.
38 (secname_for_decl): Update.
39 (dwarf2out_var_location): Update.
40 * function.c (free_after_compilation): Update.
41 (assign_parm_find_stack_rtl): Update.
42 (assign_parms): Update.
43 (expand_dummy_function_end): Update.
44 (expand_function_end): Update.
45 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
46 (expand_call): Update.
47 (emit_library_call_value_1): Update.
48 (store_one_arg): Update.
49 * varasm.c (initialize_cold_section_name): Update.
50 (unlikely_text_section): Update.
51 (unlikely_text_section_p): Update.
52 (assemble_start_function): Update.
53 (assemble_end_function): Update.
54 (default_section_type_flags): Update.
55 (switch_to_section): Update.
56 * integrate.c (set_decl_abstract_flags): Update.
57 (get_hard_reg_initial_val): Update.
58 (has_hard_reg_initial_val): Update.
59 (allocate_initial_values): Update.
60 * resource.c (init_resource_info): Update.
61 * config/alpha/alpha.c (NUM_ARGS): Update.
62 (direct_return): Update.
63 (alpha_va_start): Update.
64 (alpha_sa_size): Update.
65 (alpha_initial_elimination_offset): Update.
66 (alpha_expand_prologue): Update.
67 (alpha_start_function): Update.
68 (alpha_expand_epilogue): Update.
69 (unicosmk_initial_elimination_offset):
70 * config/alpha/alpha.md (call expander): Update.
71 * config/s390/s390.c (s390_register_info): Update.
72 (s390_register_info): Update.
73 (s390_frame_info): Update.
74 (s390_initial_elimination_offset): Update.
75 (s390_build_builtin_va_list): Update.
76 (s390_va_start): Update.
77 * config/spu/spu.c (direct_return): Update.
78 (spu_expand_prologue): Update.
79 (spu_initial_elimination_offset): Update.
80 (spu_build_builtin_va_list): Update.
81 (spu_va_start): Update.
82 * config/sparc/sparc.c (sparc_init_modes): Update.
83 (sparc_compute_frame_size): Update.
84 (function_value): Update.
85 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
86 * config/i386/i386.md (return expander): Update.
87 * config/i386/i386.c (ix86_va_start): Update.
88 (ix86_can_use_return_insn_p): Update.
89 (ix86_compute_frame_layout): Update.
90 (ix86_expand_epilogue): Update.
91 * config/sh/sh.c (output_stack_adjust): Update.
92 (calc_live_regs): Update.
93 (sh_expand_prologue): Update.
94 (sh_builtin_saveregs): Update.
95 (sh_va_start): Update.
96 (initial_elimination_offset): Update.
97 (sh_allocate_initial_value): Update.
98 (sh_function_ok_for_sibcall): Update.
99 (sh_get_pr_initial_val): Update.
100 * config/sh/sh.md (return expander): Update.
101 * config/avr/avr.c (frame_pointer_required_p): UPdate.
102 * config/crx/crx.c (crx_compute_frame): UPdate.
103 (crx_initial_elimination_offset): UPdate.
104 * config/xtensa/xtensa.c (compute_frame_size): Update
105 (xtensa_builtin_saveregs): Update.
106 (xtensa_va_start): Update.
107 (order_regs_for_local_alloc): Update.
108 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
109 (xstormy16_expand_builtin_va_start): Update.
110 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
111 * config/m68hc11/m68hc11.md (return expanders): Update.
112 * config/m68hc11/m68hc11.c (expand_prologue): Update.
113 (expand_epilogue): Update.
114 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
115 (cris_simple_epilogue): Update.
116 (cris_expand_prologue): Update.
117 (cris_expand_epilogue): Update.
118 * config/iq2000/iq2000.c (iq2000_va_start): Update.
119 (compute_frame_size): Update.
120 * config/mt/mt.c (mt_compute_frame_size): Update.
121 * config/mn10300/mn10300.c (expand_prologue): Update.
122 (expand_epilogue): Update.
123 (initial_offset): Update.
124 (mn10300_builtin_saveregs):
125 * config/mn10300/mn10300.md (return expander): Update.
126 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
127 (ia64_initial_elimination_offset): Update.
128 (ia64_initial_elimination_offset): Update.
129 (ia64_expand_prologue): Update.
130 * config/m68k/m68k.md (return expander): Update.
131 * config/rs6000/rs6000.c (rs6000_va_start): Update.
132 (rs6000_stack_info): Update.
133 * config/mcore/mcore.c (layout_mcore_frame): Update.
134 (mcore_expand_prolog): Update.
135 * config/arc/arc.c (arc_compute_frame_size): Update.
136 * config/score/score3.c (score3_compute_frame_size): Update.
137 * config/score/score7.c (score7_compute_frame_size): Update.
138 * config/arm/arm.c (use_return_insn): Update.
139 (thumb_find_work_register): Update.
140 (arm_compute_save_reg_mask): Update.
141 (arm_output_function_prologue): Update.
142 (arm_output_epilogue): Update.
143 (arm_size_return_regs): Update.
144 (arm_get_frame_offsets): Update.
145 (arm_expand_prologue): Update.
146 (thumb_exit): Update.
147 (thumb_unexpanded_epilogue): Update.
148 (thumb1_output_function_prologue): Update.
149 * config/pa/pa.md (return expander): Update.
150 * config/pa/pa.c (compute_frame_size): Update.
151 (hppa_builtin_saveregs): Update.
152 * config/mips/mips.c (mips_va_start): Update.
153 (mips16_build_function_stub): Update.
154 (mips_compute_frame_info): Update.
155 (mips_restore_gp): Update.
156 (mips_output_function_prologue): Update.
157 (mips_expand_prologue): Update.
158 * config/v850/v850.c (compute_frame_size): Update.
159 (expand_prologue): * config/mmix/mmix.c (along): update.
160 (mmix_initial_elimination_offset): update.
161 (mmix_reorg): update.
162 (mmix_use_simple_return): update.
163 (mmix_expand_prologue): update.
164 (mmix_expand_epilogue): Update.
165 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
166 (emit_link_insn): Update.
168 2008-04-08 Anatoly Sokolov <aesok@post.ru>
170 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
171 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
173 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
176 2008-04-07 Jan Hubicka <jh@suse.cz>
178 * function.h (rtl): Rename to x_rtl.
180 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
181 frame_offset, stack_check_probe_note, arg_pointer_save_area,
182 used_temp_slots avail_temp_slots, temp_slot_level,
183 nonlocal_goto_handler_labels): Update accesstors.
184 (rtl): New global variable.
185 (struct function): Move some fileds to rtl_data.
186 (get_arg_pointer_save_area): Update prototype.
187 * builtins.c (expand_builtin_setjmp_receiver): Update call of
188 get_arg_pointer_save_area.
189 * expr.c (init_expr): Update
190 * function.c (get_frame_size): Update
191 (assign_stack_local): Update
192 (expand_function_end): Update.
193 (get_art_pointer_save_area): Update
195 * emit-rtl.c (rtl): Declare.
196 (regno_reg_rtx): Declare.
197 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
199 (gen_reg_rtx): Update.
200 * varasm.c (n_deferred_constatns): Update accestor.
201 (init_varasm_status): Do not allocate varasm_status.
202 (force_const_mem, get_pool_size, output_constant_pool): Update.
203 * stmt.c (force_label_rtx): Do not use x_ prefixes.
204 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
205 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
206 * sparc/sparc.h (INIT_EXPANDERS): Update.
207 * ia64/ia64.h (INIT_EXPANDERS): Update.
209 2008-04-07 James E. Wilson <wilson@tuliptree.org>
211 * reload.c (push_secondary_reload): Add missing break to for loop.
213 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
215 PR middle-end/PR28690
216 * rtlanal.c: Update copyright years.
217 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
218 as REG_POINTER and MEM_POINTER operands.
219 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
220 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
221 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
222 * gcse.c: Update copyright years.
223 (pre_delete): Call gen_reg_rtx_and_attrs.
224 (hoist_code): Likewise.
225 (build_store_vectors): Likewise.
226 (delete_store): Likewise.
227 * loop-invariant.c (move_invariant_reg): Likewise.
228 Update copyright years.
230 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
232 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
233 control string instead of quoted.
235 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
237 * doc/rtl.texi: Rewrite of subreg section.
239 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
242 * config/i386/i386.c (legitimize_pic_address): Add treating
243 of dllimport SYM_REF's.
244 (legitimize_dllimport_symbol): Add prototype.
246 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
248 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
249 reference in constructor with non self-referential type.
251 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
253 Removal of Return with Depressed Stack Pointer support
254 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
255 (ECF_SP_DEPRESSED): Likewise.
256 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
257 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
258 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
259 (expand_call): Do not test ECF_SP_DEPRESSED.
260 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
261 * function.c (keep_stack_depressed): Delete.
262 (handle_epilogue_set): Likewise.
263 (update_epilogue_consts): Likewise.
264 (emit_equiv_load): Likewise.
265 (thread_prologue_and_epilogue_insns): Remove support for Return with
266 Depressed Stack Pointer.
267 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
269 2008-04-06 Richard Guenther <rguenther@suse.de>
271 PR tree-optimization/35400
272 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
273 information from SSA_NAMEs.
275 2008-04-06 Anatoly Sokolov <aesok@post.ru>
277 * config/avr/avr.h (avr_mega_p): Remove declaration.
278 (AVR_MEGA): Remove macro.
279 * config/avr/avr.c (avr_mega_p): Remove variable.
280 (avr_override_options): Remove inicializion of avr_mega_p.
281 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
282 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
283 (avr_jump_mode): (Ditto.).
284 (avr_output_progmem_section_asm_op): (Ditto.).
285 (avr_asm_init_sections): (Ditto.).
286 (avr_asm_init_sections): (Ditto.).
287 (avr_rtx_costs): (Ditto.).
288 * config/avr/avr.md: (Ditto.).
289 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
292 2008-04-06 Richard Guenther <rguenther@suse.de>
294 PR tree-optimization/35842
295 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
296 is_gimple_invariant_address.
298 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
300 * gcc.c (default_compilers): Sync Fortran extensions list with
301 that in fortran/lang-specs.h.
302 * doc/invoke.texi: Likewise.
303 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
304 * dwarf2out.c (gen_compile_unit_die): Likewise.
306 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
308 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
310 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
313 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
314 attribute is used for nested functions.
316 2008-04-05 Jan Hubicka <jh@suse.cz>
318 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
320 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
322 (dump_files): Update.
323 (enable_rtl_dump_file): Do not accept letter argument.
324 * tree-pass.h (dump_file_info): Remove letter argument.
325 * toplev.c (decode_d_option): Update -da handling.
326 * toplev.h (enable_rtl_dump_file): Update prototype.
327 * passes.c (register_one_dump_file): Do not accept IPA argument; work
328 it out based on pass type.
329 (register_dump_files_1): Likewise.
330 (init_optimization_passes): Update register_one_dump_file calls.
331 (execute_one_pass): Sanity check that IPA passes are called at IPA
332 level and RTL passes at RTL level.
333 (execute_pass_list): IPA pass can not be after or subpass of
335 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
336 disallov RTL subpasses of IPA subpasses.
338 2008-04-05 Ben Elliston <bje@au.ibm.com>
340 * tree-cfg.c (need_fake_edge_p): Return false for calls to
341 builtins that return exactly once and do not throw. Cache call to
344 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
346 PR rtl-optimization/34916
348 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
349 between instruction pairs.
351 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
353 * doc/invoke.texi: Document -mbitops for SH.
354 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
355 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
356 * config/sh/sh.c (print_operand): Add %t operand code.
357 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
358 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
359 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
360 (extendqihi2): Likewise.
362 (insv): Use bset, bclr and bst instructions for SH2A if possible.
363 (extv): Use bld instruction for SH2A if possible.
365 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
366 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
367 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
368 (bset.b, bclr.b): Define peepholes.
369 * config/sh/sh.opt (mbitops): New option.
371 2008-04-04 Janis Johnson <janis187@us.ibm.com>
374 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
375 and view convert expression.
377 2008-04-04 Jakub Jelinek <jakub@redhat.com>
380 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
382 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
384 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
386 * config/i386/cpuid.h (bit_AES): New.
387 (bit_PCLMUL): Likewise.
389 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
390 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
391 SSE2 if AES or PCLMUL is enabled.
392 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
393 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
394 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
395 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
396 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
397 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
398 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
399 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
400 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
401 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
402 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
403 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
404 __builtin_ia32_aeskeygenassist128 and
405 __builtin_ia32_pclmulqdq128.
406 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
407 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
408 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
410 * config/i386/i386.h (TARGET_AES): New.
411 (TARGET_PCLMUL): Likewise.
412 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
414 * config/i386/i386.md (UNSPEC_AESENC): New.
415 (UNSPEC_AESENCLAST): Likewise.
416 (UNSPEC_AESDEC): Likewise.
417 (UNSPEC_AESDECLAST): Likewise.
418 (UNSPEC_AESIMC): Likewise.
419 (UNSPEC_AESKEYGENASSIST): Likewise.
420 (UNSPEC_PCLMUL): Likewise.
422 * config/i386/i386.opt (maes): New.
425 * config/i386/sse.md (aesenc): New pattern.
426 (aesenclast): Likewise.
428 (aesdeclast): Likewise.
430 (aeskeygenassist): Likewise.
431 (pclmulqdq): Likewise.
433 * config/i386/wmmintrin.h: New.
435 * doc/extend.texi: Document AES and PCLMUL built-in function.
437 * doc/invoke.texi: Document -maes and -mpclmul.
439 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
441 * function.c (free_after_parsing): Replace with
442 cxx_push_function_context from C++ front-end.
443 (allocate_struct_function): Don't call langhook.
444 * langhooks.h (struct lang_hooks_for_functions): Delete.
445 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
447 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
448 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
449 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
450 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
451 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
452 remove LANG_HOOKS_FUNCTION_INITIALIZER.
453 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
455 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
456 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
458 2008-04-04 Jakub Jelinek <jakub@redhat.com>
461 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
464 2008-04-04 Richard Guenther <rguenther@suse.de>
467 * fold-const.c (optimize_minmax_comparison): Use the correct
468 type for the constant in the simplified comparison.
470 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
472 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
473 Pass L2 size as "--param l2-cache-size" to the compiler.
474 (decode_l2_cache): New function to decode L2 cache parameters using
475 0x8000006 extended cpuid function.
476 (detect_caches_amd): Determine parameters of L2 cache using
477 decode_l2_caches function.
478 (decode_caches_intel): Decode L2 cache parameters.
479 (detect_caches_intel): Determine L2 cache parameters using
480 decode_caches_intel and decode_l2_caches functions.
482 2008-04-03 Bob Wilson <bob.wilson@acm.org>
484 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
485 secondary input reload for subword loads from the constant pool.
487 2008-04-03 Janis Johnson <janis187@us.ibm.com>
490 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
491 constants of the appropriate size for runtime calculations.
494 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
495 decimal-float literal constant zero.
497 2008-04-03 Jakub Jelinek <jakub@redhat.com>
500 * c-parser.c (c_parser_omp_atomic): Call
501 default_function_array_conversion on the RHS.
504 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
505 call is_variable_sized if decl has incomplete type.
507 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
509 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
511 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
513 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
515 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
516 (sgt<u>): Merge sgt and sgtu into new expander.
517 (sgt, sgtu): Remove expanders.
518 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
519 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
520 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
521 *sgtu_<mode>_mips16 into new pattern.
522 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
523 (sge<u>): Merge sge and sgeu into new expander.
524 (sge, sgeu): Remove expanders.
525 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
527 (*sge_<mode>, second *sge_<mode>): Remove patterns.
528 (slt<u>): Merge slt and sltu into new expander.
529 (slt, sltu): Remove expanders.
530 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
531 (*slt_<mode>, *sltu_<mode>): Remove patterns.
532 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
533 *sltu_<mode>_mips16 into new pattern.
534 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
535 (sle<u>): Merge sle and sleu into new expander.
536 (sle, sleu): Remove expanders.
537 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
538 (*sle_<mode>, *sleu_<mode>): Remove patterns.
539 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
540 *sleu_<mode>_mips16 into new pattern.
541 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
543 2008-04-03 Jan Hubicka <jh@suse.cz>
545 PR tree-optimization/35795
546 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
547 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
548 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
549 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
550 * score/score3.c (score3_output_mi_thunk): Likewise.
551 * score/score7.c (score7_output_mi_thunk): Likewise.
552 * mips/mips.c (mips_output_mi_thunk): Likewise.
554 2008-04-03 Richard Guenther <rguenther@suse.de>
556 * tree-vrp.c (extract_range_from_unary_expr): Handle all
557 conversions. Simplify code.
559 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
561 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
563 2008-04-03 Tom Tromey <tromey@redhat.com>
564 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
566 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
567 * config/bfin/t-bfin-linux (generated_files): Add
568 linux-sysroot-suffix.h.
569 * doc/install.texi (Prerequisites): Require make 3.80.
570 * doc/sourcebuild.texi (Front End Directory): Document new
572 * Makefile.in (generated_files): New variable.
573 (ALL_HOST_OBJS): New variable.
574 ($(ALL_HOST_OBJS)): New target.
576 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
578 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
579 (remap_block): Call id->transform_lang_insert_block instead
581 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
582 Set id.transform_lang_insert_block to NULL.
583 (clone_body): Move to cp/optimize.c
584 * tree-inline.h (struct copy_body_data): Change
585 transform_lang_insert_block to function pointer.
586 (copy_generic_body, copy_decl_no_change): Export.
587 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
588 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
589 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
591 * c-tree.h (insert_block): Kill.
592 * c-decl.c (insert_block): Kill.
594 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
596 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
597 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
598 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
600 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
601 argument, call {push,pop}_function_context from here.
602 * c-parser.c: Use c_{push,pop}_function_context.
604 * function.c (push_function_context_to): Move meat ...
605 (push_function_context): ... here. Simplify.
606 * function.c (pop_function_context_from): Move meat ...
607 (pop_function_context): ... here. Simplify.
608 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
610 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
611 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
612 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
613 * tree.h (push_function_context_to, pop_function_context_from): Remove.
615 2008-04-03 Ben Elliston <bje@au.ibm.com>
617 * expmed.c (extract_force_align_mem_bit_field): Remove.
619 2008-04-03 Richard Guenther <rguenther@suse.de>
622 * expr.h (try_casesi): Adjust prototype.
623 * expr.c (try_casesi): Take fallback label as extra parameter.
624 Use that for gen_casesi if default_label is NULL.
625 * stmt.c (expand_case): Pass fallback label to try_casesi,
626 make sure to fill gaps with a fallback label if default_label
629 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
632 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
634 2008-04-03 Ben Elliston <bje@au.ibm.com>
636 * expmed.c (extract_split_bit_field): Remove if (0) code.
637 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
638 (do_ds_constraint): Likewise.
640 2008-04-02 Joseph Myers <joseph@codesourcery.com>
642 * doc/cppopts.texi (-dU): Document.
643 * c-common.h (flag_dump_macros): Update comment.
644 * c-opts.c (handle_OPT_d): Handle -dU.
645 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
646 dump_queued_macros, cb_used_define, cb_used_undef): New.
647 (init_pp_output): Handle -dU.
648 (cb_line_change): Call dump_queued_macros.
649 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
651 2008-04-02 Anatoly Sokolov <aesok@post.ru>
653 * config/avr/predicates.md (io_address_operand): New predicate.
654 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
655 * config/avr/avr.c (avr_io_address_p): Remove function.
656 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
657 'avr_io_address_p' function.
658 (out_movhi_r_mr): (Ditto.).
659 (out_movqi_mr_r): (Ditto.).
660 (out_movhi_mr_r): (Ditto.).
661 (avr_address_cost): (Ditto.).
663 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
665 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
666 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
667 in 32bit mode when XMM registers are available to avoid store
669 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
670 corresponding post-reload splitters.
672 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
674 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
675 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
676 __builtin_ia32_roundss.
677 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
678 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
679 __builtin_ia32_roundss.
680 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
681 IX86_BUILTIN_SHUFPD here.
683 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
685 * config/i386/i386.md (plogic): New.
686 (plogicprefix): Likewise.
688 * config/i386/mmx.md (mmx_<code><mode>3): New.
689 (mmx_and<mode>3): Removed.
690 (mmx_ior<mode>3): Likewise.
691 (mmx_xor<mode>3): Likewise.
693 * config/i386/sse.md (<code><mode>3): New.
694 (*<code><mode>3): Likewise.
695 (*<code><mode>3): Likewise.
696 (<code><mode>3): Likewise.
697 (*sse_<code><mode>3): Likewise.
698 (*sse2_<code><mode>3): Likewise.
699 (<code>tf3): Likewise.
700 (*<code>tf3): Likewise.
701 (and<mode>3): Likewise.
702 (*and<mode>3): Likewise.
703 (ior<mode>3): Removed.
704 (*ior<mode>3): Likewise.
705 (xor<mode>3): Likewise.
706 (*xor<mode>3): Likewise.
707 (*and<mode>3): Likewise.
708 (*ior<mode>3): Likewise.
709 (*xor<mode>3): Likewise.
710 (and<mode>3): Likewise.
711 (*sse_and<mode>3): Likewise.
712 (*sse2_and<mode>3): Likewise.
715 (ior<mode>3): Likewise.
716 (*sse_ior<mode>3): Likewise.
717 (*sse2_ior<mode>3): Likewise.
720 (xor<mode>3): Likewise.
721 (*sse_xor<mode>3): Likewise.
722 (*sse2_xor<mode>3): Likewise.
726 2008-04-02 Richard Guenther <rguenther@suse.de>
728 PR tree-optimization/14495
729 PR tree-optimization/34793
730 * tree-vrp.c (struct switch_update): New structure.
731 (to_remove_edges, to_update_switch_stmts): New VECs.
732 (simplify_switch_using_ranges): New function. Remove not taken
733 case labels and edges.
734 (simplify_stmt_using_ranges): Call it.
735 (identify_jump_threads): Mark edges we have queued for removal
736 so we don't thread them.
737 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
739 * tree-cfg.c (group_case_labels): Deal with missing default label.
740 (tree_verify_flow_info): Allow missing default label.
741 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
742 (emit_case_nodes): Likewise.
743 (expand_case): Do not rely on the default label to be present.
744 * expr.c (try_casesi): Deal with NULL default_label.
745 (do_tablejump): Likewise.
747 2008-04-02 Richard Guenther <rguenther@suse.de>
749 PR tree-optimization/14495
750 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
752 (vrp_visit_switch_stmt): ... but here (new function).
753 (find_case_label_index): New helper function.
754 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
756 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
758 * fwprop.c: Fix ISO-C99ism.
760 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
763 * Makefile.in (objdir): Set it here.
764 * configure.ac: Not here. Find dynamic linker characteristics.
765 * exec-tool.in: Use them.
766 * aclocal.m4: Regenerate.
767 * configure: Regenerate.
769 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
771 * expr.c (expand_var): Delete it.
772 * expr.h (expand_var): Delete prototype.
773 * function.c (expand_function_start): Use expand_decl instead.
774 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
777 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
779 PR rtl-optimization/35542
780 * fwprop.c (forward_propagate_and_simplify): Replace
781 loc_reg_mentioned_in_p with reg_mentioned_p.
783 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
785 PR rtl-optimization/35281
786 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
787 (propagate_rtx_1): Handle PR_HANDLE_MEM.
788 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
789 (varying_mem_p): Move above propagate_rtx.
790 (all_uses_available_at): Do not check MEMs.
792 2008-04-02 Rafael Espindola <espindola@google.com>
794 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
795 (register_edge_assert_for_2): Split the cond argument.
796 (register_edge_assert_for_1): Adjust for the change in
797 register_edge_assert_for_2.
798 (register_edge_assert_for): Split the cond argument.
799 (find_switch_asserts): Adjust for the change in
800 register_edge_assert_for.
802 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
804 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
805 * gcc/config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
806 offsets for 64-bit mingw.
807 * gcc/config/i386/i386.c (ix86_pass_by_reference): Correct calling
808 abi for x86_64-pc-mingw.
810 2008-04-02 Richard Guenther <rguenther@suse.de>
812 * tree-vrp.c (extract_range_from_assert): Make sure to not
813 produce range min/max with TREE_OVERFOW set.
814 If merging a anti-range and a range keep the anti-range if
815 the range covers all values of the type.
816 (register_edge_assert_for_2): Only allow sign-changing
817 conversions in detecting canonical range checks. Also
818 register an assert for the unsigned name if useful.
820 PR tree-optimization/35787
821 * tree-vrp.c (vrp_val_max): New function.
822 (vrp_val_min): Likewise.
823 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
824 (vrp_val_is_min): Likewise.
825 (supports_overflow_infinity): Use vrp_val_{min,max}.
826 (negative_overflow_infinity): Likewise.
827 (positive_overflow_infinity): Likewise.
828 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
829 (is_positive_overflow_infinity): Likewise.
830 (is_overflow_infinity): Likewise.
831 (avoid_overflow_infinity): Use vrp_val_{min,max} and
832 vrp_val_is_{min,max}.
833 (set_and_canonicalize_value_range): Canonicalize anti-ranges
834 to ranges if possible. Avoid empty ranges.
836 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
839 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
840 the expression is a function address.
842 2008-04-01 George Helffrich <george@gcc.gnu.org>
844 PR fortran/PR35154, fortran/PR23057
845 * fortran/trans-common.c (create_common): Add decl to function
846 chain to preserve identifier scope in debug output.
848 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
849 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
850 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
851 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
853 (dbxout_syms): Check for COMMON-based symbol and wrap in
854 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
855 in bracket for efficiency.
857 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
858 using DW_TAG_common_block + member offset.
859 (add_pubname_string): New function.
860 (dw_expand_expr): New function to find block name and offset for
862 (common_check): New function to check whether symbol in Fortran COMMON.
863 (gen_variable_die): If COMMON, use DW_TAG_common_block.
865 * testsuite/gcc.dg/debug/pr35154.c: New test to check that non-Fortran
866 use of common is unchanged.
868 * testsuite/lib/gfortran-dg.exp: New harness to compile Fortran progs
869 with all combinations of debug options available on target.
870 * testsuite/gfortran.dg/debug/debug.exp: Ditto.
871 * testsuite/gfortran.dg/debug/trivial.f: Ditto.
872 * testsuite/gfortran.dg/debug/pr35154-stabs.f: New test case for
873 .stabs functionality.
874 * testsuite/gfortran.dg/debug/pr35154-dwarf2.f: New test case for
877 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
880 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
882 2008-04-02 Ben Elliston <bje@au.ibm.com>
884 * config/v850/v850.md (casesi): Remove if (0) code.
885 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
886 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
888 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
890 * config/i386/i386.md (rex64suffix): New mode attribute.
891 (floathi<mode>2): Disable expander for SSE math.
892 (*floathi<mode>2_1): New insn insn_and_split pattern.
893 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
894 corresponding post-reload splitters.
895 (*floathi<mode>2_i387): New macroized insn pattern.
896 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
897 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
898 insn_and_split pattern.
899 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
900 New macroized instruction patterns and corresponding post-reload
902 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
903 and corresponding post-reload splitters.
904 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
905 New macroized instruction patterns.
906 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
907 macroized instruction patterns and corresponding post-reload splitters.
908 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
909 corresponding post-reload splitters.
910 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
911 New macroized instruction patterns.
912 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
913 corresponding post-reload splitters.
914 (*floatsi<mode>2_i387): New macroized instruction patterns.
916 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
918 * config/i386/i386.md (smaxmin): New.
920 (maxminiprefix): Likewise.
921 (maxminfprefix): Likewise.
922 (<code><mode>3): Likewise.
923 (smin<mode>3): Removed.
924 (smax<mode>3): Likewise.
926 * config/i386/mmx.md (mmx_<code>v2sf3): New.
927 (mmx_<code>v4hi3): Likewise.
928 (mmx_<code>v8qi3): Likewise.
929 (mmx_smaxv2sf3): Removed.
930 (mmx_sminv2sf3): Likewise.
931 (mmx_umaxv8qi3): Likewise.
932 (mmx_smaxv4hi3): Likewise.
933 (mmx_uminv8qi3): Likewise.
934 (mmx_sminv4hi3): Likewise.
936 * config/i386/sse.md (<addsub><mode>3): New.
937 (*<addsub><mode>3): Likewise.
938 (<sse>_vm<addsub><mode>3): Likewise.
939 (<maxmin><mode>3): Likewise.
940 (*<maxmin><mode>3_finite): Likewise.
941 (*<maxmin><mode>3): Likewise.
942 (<sse>_vm<maxmin><mode>3): Likewise.
943 (sse3_h<addsub>v4sf3): Likewise.
944 (sse3_h<addsub>v2df3): Likewise.
945 (<maxmin>v16qi3): Likewise.
946 (*<maxmin>v16qi3): Likewise.
947 (<maxmin>v8hi3): Likewise.
948 (*<maxmin>v8hi3): Likewise.
949 (*sse4_1_<maxmin><mode>3): Likewise.
950 (*sse4_1_<maxmin><mode>3): Likewise.
951 (add<mode>3): Removed.
952 (*add<mode>3): Likewise.
953 (<sse>_vmadd<mode>3): Likewise.
954 (sub<mode>3): Likewise.
955 (*sub<mode>3): Likewise.
956 (<sse>_vmsub<mode>3): Likewise.
957 (smin<mode>3): Likewise.
958 (*smin<mode>3_finite): Likewise.
959 (*smin<mode>3): Likewise.
960 (<sse>_vmsmin<mode>3): Likewise.
961 (smax<mode>3): Likewise.
962 (*smax<mode>3_finite): Likewise.
963 (*smax<mode>3): Likewise.
964 (<sse>_vmsmax<mode>3): Likewise.
965 (sse3_haddv4sf3): Likewise.
966 (sse3_haddv2df3): Likewise.
967 (sse3_hsubv4sf3): Likewise.
968 (sse3_hsubv2df3): Likewise.
969 (umaxv16qi3): Likewise.
970 (*umaxv16qi3): Likewise.
971 (smaxv8hi3): Likewise.
972 (*smaxv8hi3): Likewise.
973 (*sse4_1_smax<mode>3): Likewise.
974 (*sse4_1_umax<mode>3): Likewise.
975 (uminv16qi3): Likewise.
976 (*uminv16qi3): Likewise.
977 (sminv8hi3): Likewise.
978 (*sminv8hi3): Likewise.
979 (*sse4_1_smin<mode>3): Likewise.
980 (*sse4_1_umin<mode>3): Likewise.
982 2008-04-01 Rafael Espindola <espindola@google.com>
984 * tree-cfg.c (verify_expr): remove in_phi.
985 (verify_stmt): Don't call walk_tree with verify_expr. Use
986 is_gimple_min_invariant instead of is_gimple_val.
988 2008-04-01 Joseph Myers <joseph@codesourcery.com>
990 * doc/include/gpl_v3.texi: Update for manpage generation.
991 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
993 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
994 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
995 gpl_v3.texi instead of gpl.texi.
998 2008-04-01 Jakub Jelinek <jakub@redhat.com>
1001 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
1003 2008-04-01 Rafael Espindola <espindola@google.com>
1005 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
1006 (extract_code_and_val_from_cond): Use
1007 extract_code_and_val_from_cond_with_ops.
1009 2008-04-01 Jan Hubicka <jh@suse.cz>
1011 * function.c (free_after_compilation): Free epilogue_delay_list.
1012 (prepare_function_start): Assert that previous compilation was freed.
1014 2008-04-01 Jan Hubicka <jh@suse.cz>
1015 Jim Wilson <wilson@tuliptree.org>
1016 Andreas Tobler <andreast@gcc.gnu.org>
1019 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
1020 rtl.emit instead cfun->emit.
1021 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
1022 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
1024 2008-04-01 Ben Elliston <bje@au.ibm.com>
1026 * doc/c-tree.texi (Function Basics): Fix grammatical error.
1028 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
1030 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
1032 (fprofile-use): Add var flag_profile_use
1033 * coverage.c (coverage_begin_output): Do not open a gcno file for
1034 output only if -ftest-coverage is set.
1035 Do not add getpwd() to gcda file path.
1036 (build_gcov_info): Check the new flag
1037 flag_profile_datafile_relative_path.
1038 (coverage_init): Use profile_data_prefix.
1039 Read profile counter only if flag_profile_use is set.
1040 * opts.c (common_handle_option): New option fprofile-use=,
1041 fprofile-dir=, fprofile-generate=.
1042 * toplev.c (profile_data_prefix): New variable definition.
1043 * toplev.h (profile_data_prefix): New declaration.
1044 * doc/invoke.tex (Option Summary, Optimization Options):
1047 2008-03-31 James E. Wilson <wilson@tuliptree.org>
1049 * varasm.c (output_constant_pool_1): In LABEL_REF check,
1050 use tmp consistently.
1053 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
1054 * config/ia64/ia64.c (rtx_needs_barrier): Handle
1055 UNSPEC_FR_RECIP_APPROX_RES.
1056 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
1058 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
1061 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
1063 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
1066 * fold-const.c (fold_indirect_ref_1): Support accessing non first
1067 element of the vector via a pointer.
1069 2008-03-31 Ian Lance Taylor <iant@google.com>
1071 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
1073 2008-03-31 Jan Hubicka <jh@suse.cz>
1075 * builtins.c (expand_builtin_setjmp_receiver): Update call of
1076 get_arg_pointer_save_area.
1077 * expr.c (init_expr): Just clear out rtl.expr.
1078 * function.c (free_after_compilation): Clear out whole RTL structure.
1079 (get_func_frame_size): Merge into ...
1080 (get_frame_size): ... this one.
1081 (assign_stack_local_1): Merge into ...
1082 (assign_stack_local): ... this one.
1083 (expand_function_end): Update call of get_arg_pointer_save_area.
1084 (get_art_pointer_save_area): Remove cfun argument.
1085 * function.h (emit_status): regno_pointer_align does not need length
1086 attribute. Move x_regno_reg_rtx to ...
1087 (regno_reg_rtx): ... new global array.
1088 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
1089 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
1090 apply_args_value, forced_labels, stack_pointer_delta):
1092 (struct varasm_status): Move here from varasm.c
1093 (struct rtl_data): New. Move here some fields from struct function.
1094 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
1095 frame_offset, stack_check_probe_note, arg_pointer_save_area,
1096 used_temp_slots avail_temp_slots, temp_slot_level,
1097 nonlocal_goto_handler_labels): Update accesstors.
1098 (rtl): New global variable.
1099 (struct function): Move some fileds to rtl_data.
1100 (get_arg_pointer_save_area): Update prototype.
1101 * emit-rtl.c (rtl): Declare.
1102 (regno_reg_rtx): Declare.
1103 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
1105 (gen_reg_rtx): Update.
1106 (init_virtual_regs): Do not tate emit_status argument.
1107 (init_emit): Do not allocate emit.
1108 * varasm.c (varasm_statuc): Move to function.h.
1109 (n_deferred_constatns): Update accestor.
1110 (init_varasm_status): Do not allocate varasm_status.
1111 (force_const_mem, get_pool_size, output_constant_pool): Update.
1112 * stmt.c (force_label_rtx): Do not use x_ prefixes.
1113 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
1115 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
1117 PR rtl-optimization/35729
1118 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
1121 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
1124 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
1125 load/store if memory is unaligned.
1126 (*movti_rex64): Likewise.
1128 * config/i386/predicates.md (misaligned_operand): New.
1130 2008-03-31 Andrew Pinski <pinskia@gmail.com>
1133 * tree-ssa-phiopt.c (conditional_replacement): Return early for
1136 2008-03-31 Jan Beulich <jbeulich@novell.com>
1138 * config/ia64/constraints.md: Add 'j' constraint.
1139 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
1140 (movdi_internal): Likewise.
1142 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
1145 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
1147 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
1150 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
1151 proper error message for the third argument on blendpd and
1154 * config/i386/sse.md (blendbits): New.
1155 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
1157 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
1159 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
1161 2008-03-30 Richard Guenther <rguenther@suse.de>
1164 * fold-const.c (fold_sign_changed_comparison): Do leave
1165 conversions to base-types alone.
1167 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
1169 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
1170 the link register if one altivec register is be saved.
1172 2008-03-30 Ben Elliston <bje@au.ibm.com>
1174 * final.c (final_scan_insn): Remove if (0) code.
1176 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
1178 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
1180 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
1182 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
1183 of V4SFmode to ix86_binary_operator_ok.
1185 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
1187 * config/i386/i386.c (override_options): Initialize
1188 ix86_veclib_handler to ix86_veclibabi_svml when
1189 -mveclibabi=svml is used.
1190 (ix86_veclibabi_svml): New function for SVML ABI style
1191 vectorization support.
1192 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
1194 2008-03-28 Rafael Espindola <espindola@google.com>
1196 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
1197 (tree_binary_nonnegative_warnv_p): Make it public.
1198 (tree_single_nonnegative_warnv_p): Make it public.
1199 (tree_invalid_nonnegative_warnv_p): Make it public.
1200 (tree_unary_nonzero_warnv_p): Make it public.
1201 (tree_binary_nonzero_warnv_p): Make it public
1202 (tree_single_nonzero_warnv_p): Make it public.
1203 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
1204 (extract_range_from_binary_expr): Split the expr argument.
1205 (extract_range_from_unary_expr): Split the expr argument.
1206 (extract_range_from_comparison): Split the expr argument.
1207 (extract_range_from_expr): Use the new aux functions.
1208 (vrp_evaluate_conditional_warnv): Use
1209 vrp_evaluate_conditional_warnv_with_ops.
1210 * tree.h (tree_unary_nonzero_warnv_p): Declare.
1211 (tree_binary_nonzero_warnv_p): Declare.
1212 (tree_single_nonzero_warnv_p): Declare.
1213 (tree_expr_nonzero_warnv_p): Declare.
1214 (tree_unary_nonnegative_warnv_p): Declare.
1215 (tree_binary_nonnegative_warnv_p): Declare.
1216 (tree_single_nonnegative_warnv_p): Declare.
1217 (tree_invalid_nonnegative_warnv_p): Declare.
1219 2008-03-28 Richard Guenther <rguenther@suse.de>
1221 PR tree-optimization/30317
1222 PR tree-optimization/30911
1223 PR tree-optimization/34793
1224 * tree-vrp.c (set_and_canonicalize_value_range): New function.
1225 (struct assert_locus_d): New member EXPR.
1226 (register_new_assert_for): Add EXPR parameter to support
1227 ASSERT_EXPR <name, expr OP limit>.
1228 (register_edge_assert_for_1): Adjust callers.
1229 (find_assert_locations): Likewise.
1230 (process_assert_insertions_for): Build condition from expression.
1231 (extract_range_from_assert): Handle ASSERT_EXPRs
1232 of the form ASSERT_EXPR <name, expr OP limit>.
1233 (register_edge_assert_for_2): New helper registering
1234 asserts for comparisons. Recognize range tests of the form
1235 (unsigned)i - CST1 OP CST2.
1236 (register_edge_assert_for_1): Use it.
1237 (register_edge_assert_for): Likewise.
1238 (needs_overflow_infinity): Integer sub-types
1239 do not need overflow infinities.
1240 (vrp_val_is_max): The extreme values of integer sub-types
1241 are those of the base type.
1242 (vrp_val_is_min): Likewise.
1243 * tree.def (ASSERT_EXPR): Document extra allowed conditional
1246 2008-03-28 Nick Clifton <nickc@redhat.com>
1248 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
1249 Return GENERAL_REGS for stack adjustment reloads.
1251 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
1254 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
1255 const_vector when all the vectors are constant.
1257 2008-03-27 Bob Wilson <bob.wilson@acm.org>
1259 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
1261 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
1262 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
1264 (s<code>_sf): Use new scc_sf attribute for opcode names.
1266 2008-03-27 Tom Tromey <tromey@redhat.com>
1268 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
1269 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
1270 config/spu/t-spu-elf, config/i386/t-interix,
1271 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
1272 config/i386/x-darwin, config/i386/x-mingw32,
1273 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
1274 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
1275 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
1276 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
1277 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
1278 config/rs6000/x-darwin, config/rs6000/t-rs6000,
1279 config/score/t-score-elf, config/arm/t-strongarm-pe,
1280 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
1281 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
1282 Revert automatic dependency patch.
1284 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
1287 * config/i386/i386.c (ix86_function_arg_boundary): Align
1288 decimal floating point to its natural boundary.
1290 2008-03-27 Richard Guenther <rguenther@suse.de>
1293 * fold-const.c (fold_comparison): Restrict distinct decl
1294 comparison folding to VAR_DECLs and PARM_DECLs. Do not
1295 solely rely on operand_equal_p.
1297 2008-03-27 Richard Guenther <rguenther@suse.de>
1300 * c-common.c (handle_weak_attribute): Reject combination of
1303 2008-03-27 Richard Guenther <rguenther@suse.de>
1305 PR tree-optimization/32810
1306 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
1307 conversions from DECL_INITIAL.
1308 (fold_const_aggregate_ref): Likewise from constructor elements.
1310 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
1312 * tree-affine.h (aff_combination_expand): Declare.
1313 (get_inner_reference_aff): Likewise.
1314 * tree-affine.c (aff_combination_expand): Split out from
1315 tree_to_aff_combination_expand.
1316 (get_inner_reference_aff): New function.
1317 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
1318 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
1319 (struct lim_aux_data): sm_done field removed.
1320 (mem_ref_loc_p, mem_ref_locs_p): New types.
1321 (struct mem_ref): Added id, stored, accesses_in_loop,
1322 indep_loop, dep_loop, indep_ref, dep_ref fields.
1323 Removed is_stored, locs and next fields.
1324 (memory_accesses): New variable.
1325 (movement_possibility): Do not allow moving statements
1326 that store to memory.
1327 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
1329 (determine_max_movement): For statements with memory references,
1330 find the outermost loop in that the reference is independent.
1331 (move_computations_stmt): Mark the virtual operands for renaming.
1332 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
1333 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
1334 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
1335 add_vop_ref_mapping, create_vop_ref_mapping_loop,
1336 create_vop_ref_mapping, analyze_memory_references,
1337 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
1338 get_all_locs_in_loop, ref_always_accessed_p,
1339 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
1340 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
1341 store_motion_loop, store_motion): New functions.
1342 (struct vop_to_refs_elt): New type.
1343 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
1344 memref_hash, memref_eq, hoist_memory_references): Rewritten.
1345 (schedule_sm): Replaced by...
1346 (execute_sm): ... this.
1347 (determine_lsm_ref, hoist_memory_references,
1348 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
1349 find_more_ref_vops, free_mem_ref, free_mem_refs,
1350 determine_lsm_loop, determine_lsm): Removed.
1351 (tree_ssa_lim_finalize): Free data structures used by store motion.
1352 (tree_ssa_lim): Call analyze_memory_references. Use
1353 store_motion instead of determine_lsm.
1355 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
1357 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
1358 rename tmake_file to m68hc11/t-m68hc11.
1359 (mcore): Set inhibit_libc to true.
1360 * config.host (alpha*-dec-*vms*): Set extra_programs.
1361 (interix3*): Don't use host_xmake_file.
1362 * configure.ac: Let config.gcc override inhibit_libc.
1363 * configure: Regenerate.
1365 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
1366 * config/t-openbsd-thread: Remove commented out lines.
1368 * config/x-interix: Remove.
1370 * config/m68hc11/t-m68hc11-gas: Rename to...
1371 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
1373 * config/mcore/t-mcore: Remove T_CFLAGS.
1374 * config/mcore/t-mcore-pe: Likewise.
1376 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
1378 * configure.ac: Replace custom __GNU_SOURCE test with
1379 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
1380 * aclocal.m4: Regenerate.
1381 * configure: Regenerate.
1382 * config.in: Regenerate.
1384 2008-03-27 Richard Guenther <rguenther@suse.de>
1386 * fold-const.c (target.h): Include.
1387 (fold_comparison): Fold comparison of addresses of decls
1388 that bind locally or of constants. Consolidate address folding code.
1389 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
1390 results from fold_binary_to_constant.
1391 (compare_values_warnv): Likewise.
1393 2008-03-27 Andrew Pinski <pinskia@gmail.com>
1396 * fold-const.c (fold_truthop): Check for integeral types when folding
1397 a == 0 && b == 0 and a != 0 || b != 0 .
1399 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
1401 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
1403 2008-03-26 Andreas Schwab <schwab@suse.de>
1405 * doc/invoke.texi: Fix use of @item vs. @itemx.
1407 2008-03-26 Tom Tromey <tromey@redhat.com>
1409 * Makefile.in (build/gensupport.o, build/print-rtl.o,
1410 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
1411 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
1412 build/gencodes.o, build/genconditions.o, build/genconfig.o,
1413 build/genconstants.o, build/genemit.o, build/genextract.o,
1414 build/genflags.o, build/genmddeps.o, build/genopinit.o,
1415 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
1418 2008-03-26 Richard Guenther <rguenther@suse.de>
1421 2008-03-26 Richard Guenther <rguenther@suse.de>
1423 * fold-const.c (target.h): Include.
1424 (fold_comparison): Fold comparison of addresses of two decls
1425 that bind locally. Consolidate address folding code.
1427 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1429 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
1430 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
1431 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
1432 dconstsqrt2, dconstthird, dconste and/or dconst10.
1433 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
1434 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
1435 dconstsqrt2, dconste): Delete.
1436 (init_emit_once): Likewise. Simplify initializing dconstm1.
1438 * real.c (get_real_const): New.
1439 * real.h (dconst3, dconst10, dconstm2, dconstthird,
1440 dconstsqrt2, dconste): Delete.
1441 (real_value_const, get_real_const): New.
1443 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
1445 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
1447 * config/i386/i386.c (ix86_function_arg_boundary): Check
1448 BIGGEST_ALIGNMENT instead of 128.
1449 (setup_incoming_varargs_64): Likewise.
1451 2008-03-26 Tom Tromey <tromey@redhat.com>
1453 * Makefile.in (DEPFILES): Add missing '/'.
1455 2008-03-26 Richard Guenther <rguenther@suse.de>
1457 * fold-const.c (target.h): Include.
1458 (fold_comparison): Fold comparison of addresses of two decls
1459 that bind locally. Consolidate address folding code.
1461 2008-03-26 Nick Clifton <nickc@redhat.com>
1464 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
1465 not allow INT+INT as a legitimate addressing mode.
1467 2008-03-26 Richard Guenther <rguenther@suse.de>
1469 * tree-flow.h (widen_bitfield): Remove declaration.
1470 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
1471 (widen_bitfield): Remove function.
1472 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
1475 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
1478 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
1481 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
1483 PR rtl-optimization/35232
1484 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
1485 (forget_old_reloads_1, forget_marked_reloads): Don't clear
1486 reg_reloaded_call_part_clobbered here.
1487 (reload_regs_reach_end_p): New function.
1488 (reload_reg_rtx_for_input): New variable.
1489 (reload_reg_rtx_for_output): Likewise.
1490 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
1491 when reassigning a pseudo register. Load reloadreg from
1492 reload_reg_rtx_for_input, moving the mode and register
1494 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
1495 instead of the original when deciding whether an input reload
1496 would be a no-op or whether an output reload can be deleted.
1497 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
1498 when setting up new_spill_reg_store. Load it from
1499 reload_reg_rtx_for_output, moving the mode and register
1501 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
1502 instead of the original when deciding whether an output reload
1503 would be a no-op. Do the same when modifying insn notes.
1504 Use rtx_equal_p instead of == to compare the registers.
1505 (inherit_piecemeal_p): Take a mode and two register numbers
1507 (emit_reload_insns): Clear new_spill_reg_store for every hard
1508 register in the reload register. Remove spill registers
1509 from reg_reloaded_valid before considering whether to record
1510 inheritance information for them. Use reload_reg_rtx_for_output
1511 instead of reg_rtx when recording output reloads. Use
1512 reload_reg_rtx_for_input instead of reg_rtx when recording
1513 input reloads. Set or clear reg_reloaded_call_part_clobbered
1514 at the same time as setting reg_reloaded_valid.
1515 (delete_output_reload): Add a new_reload_reg parameter and use it
1516 instead of rld[j].reg_rtx.
1517 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
1520 2008-03-25 Tom Tromey <tromey@redhat.com>
1522 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
1523 (build/genattr.o): Likewise.
1524 (build/genattrtab.o): Likewise.
1525 (build/gencodes.o): Likewise.
1526 (build/genconfig.o): Likewise.
1527 (build/genconstants.o): Likewise.
1528 (build/genemit.o): Likewise.
1529 (build/genextract.o): Likewise.
1530 (build/genflags.o): Likewise.
1532 2008-03-25 Bob Wilson <bob.wilson@acm.org>
1534 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
1535 instead of size_int for integer types.
1536 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
1537 to match type of MINUS_EXPR.
1539 2008-03-25 Tom Tromey <tromey@redhat.com>
1541 * configure: Rebuilt.
1542 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
1545 2008-03-25 Tom Tromey <tromey@redhat.com>
1547 * config/x-solaris (host-solaris.o): Update.
1548 * config/x-linux (host-linux.o): Update.
1549 * config/x-hpux (host-hpux.o): Update.
1550 * config/x-darwin (host-darwin.o): Update.
1551 * config/v850/t-v850e (v850-c.o): Update.
1552 * config/v850/t-v850 (v850-c.o): Update.
1553 * config/t-vxworks (vxworks.o): Update.
1554 * config/t-sol2 (sol2-c.o, sol2.o): Update.
1555 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
1556 * config/spu/t-spu-elf (spu-c.o): Update.
1558 * config/sh/t-symbian (sh-c.o): Update.
1559 (symbian.o): Update.
1560 * config/sh/t-sh (sh-c.o): Update.
1561 * config/score/t-score-elf (score7.o, score3.o): Update.
1562 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
1563 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
1564 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
1565 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
1567 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
1568 * config/m32c/t-m32c (m32c-pragma.o): Update.
1569 * config/ia64/t-ia64 (ia64-c.o): Update.
1570 * config/i386/x-mingw32 (host-mingw32.o): Update.
1571 * config/i386/x-i386 (driver-i386.o): Update.
1572 * config/i386/x-darwin (host-i386-darwin.o): Update.
1573 * config/i386/x-cygwin (host-cygwin.o): Update.
1574 * config/i386/t-nwld (nwld.o): Update.
1575 * config/i386/t-netware (netware.o): Update.
1576 * config/i386/t-interix (winnt.o): Update.
1577 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
1578 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
1579 msformat-c.o): Update.
1580 * config/bfin/t-bfin-linux (generated_files): Add
1581 linux-sysroot-suffix.h.
1582 * config/arm/t-wince-pe (pe.o): Update.
1583 * config/arm/t-strongarm-pe (pe.o): Update.
1584 * config/arm/t-pe (pe.o): Update.
1585 * config/arm/t-arm (arm-c.o): Update.
1586 * doc/install.texi (Prerequisites): Require make 3.80.
1587 * Makefile.in: Remove .o targets.
1588 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
1589 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
1590 (simple_generated_h, simple_generated_c): Move earlier.
1591 (generated_files): New variable.
1592 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
1593 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
1594 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
1595 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
1596 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
1597 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
1598 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
1599 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
1600 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
1601 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
1602 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
1603 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
1605 (COMPILE.base, COMPILE): New variables.
1606 (%.o): New pattern rule.
1607 (ALL_HOST_OBJS): New variable.
1608 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
1609 (dummy-checksum.o, cc1-checksum.o): Remove.
1610 (DRIVER_SHLIB): New variable.
1611 (DRIVER_DEFINES): Use it.
1612 (gencondmd.c): Move out of build/.
1613 (s-conditions): Update.
1614 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
1615 (ALL_BUILD_OBJS): Likewise.
1616 (build/%.o): Use BUILDCOMPILE.
1617 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
1618 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
1619 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
1620 build/gencheck.o, build/gencodes.o, build/genconditions.o,
1621 build/genconfig.o, build/genconstants.o, build/genemit.o,
1622 build/genextract.o, build/genflags.o, build/genmddeps.o,
1623 build/genopinit.o, build/genoutput.o, build/genpeep.o,
1624 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
1625 build/gen-protos.o, build/scan.o, build/fix-header.o,
1626 build/scan-decls.o): Simplify.
1627 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
1628 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
1629 prefix.o, toplev.o): Reduce to variable setting.
1630 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
1631 ($(out_object_file), gcc-options.o): New targets.
1632 ($(ALL_HOST_OBJS)): New target. Include dependency files.
1633 * configure: Rebuilt.
1634 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
1635 * doc/sourcebuild.texi (Front End Directory): Document new variable.
1637 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
1639 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
1640 complain when we hit an error, return ERROR_MARK_NODE.
1642 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
1644 * config/sh/constraints.md (Pso, Psz): New constraints.
1645 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
1646 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
1648 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
1650 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
1651 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
1653 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
1655 * config/sh/sh.md (prefetch): Add condition for SH2A target.
1656 (prefetch_sh2a): New.
1658 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
1659 Naveen.H.S <naveen.hs@kpitcummins.com>
1661 * config/sh/constraints.md (I28): New constraint.
1662 * config/sh/sh.c (broken_move): Add support for movi20s.
1663 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
1665 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
1666 Jayant Sonar <Jayant.sonar@kpitcummins.com>
1667 Naveen.H.S <naveen.hs@kpitcummins.com>
1669 * config/sh/sh.c (SH_ATTRIBUTES): Define.
1670 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
1671 (print_operand): Handle resbank in %@ operand code.
1672 (sh_encode_section_info): New.
1673 (push_regs): Add conditions for resbank.
1674 (sh_expand_epilogue): Likewise.
1675 (sh_insert_attributes): Likewise.
1676 (sh_attribute_table): Likewise.
1677 (sh_handle_resbank_handler_attribute): New.
1678 (sh2a_handle_function_vector_handler_attribute): New.
1679 (sh2a_is_function_vector_call): New.
1680 (sh2a_get_function_vector_number): New.
1681 (sh2a_function_vector_p): New.
1682 (sh_cfun_resbank_handler_p): New.
1683 * config/sh/sh.md (calli): Emit jsr/n if possible.
1684 (calli_tbr_rel): New.
1685 (calli_pcrel): Emit jsr/n if possible.
1686 (return_i): Emit rts/n if possible.
1687 (call_valuei_tbr_rel): New.
1688 (call_valuei_pcrel): Add condition for SH2A target.
1689 (call_value): Likewise.
1690 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
1691 (sh2a_get_function_vector_number): Likewise.
1692 (sh2a_is_function_vector_call): Likewise.
1693 * doc/extend.texi: Document TBR relative addressing of SH2A.
1694 (resbank): Add description for SH2A.
1696 2008-03-24 Richard Guenther <rguenther@suse.de>
1699 * gimplify.c (gimplify_modify_expr): For frontend type-correct
1700 pointer assignments change conversions according to middle-end rules.
1701 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
1702 * configure.ac: Include type checking in yes.
1703 * configure: Regenerate.
1705 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1707 * diagnostic.c (diagnostic_count_diagnostic): Delete.
1708 (diagnostic_report_diagnostic): Update. Handle ICEs here.
1710 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
1712 * gthr-vxworks.h (UNUSED): Define.
1714 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
1716 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
1718 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
1720 * doc/extend.texi (Function Attributes): Add missing comma in the
1721 example of the "alloc_size" attribute.
1723 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
1726 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
1728 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
1731 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
1734 * stor-layout.c (update_alignment_for_field): Set minimum alignment
1735 of the underlying type of a MS bitfield layout to the natural
1736 alignment of the type.
1738 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
1740 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
1741 to their natural alignment to avoid store forwarding stalls.
1743 2008-03-22 Richard Guenther <rguenther@suse.de>
1745 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
1746 For PHI nodes verify the address is invariant.
1747 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
1748 (get_symbol_constant_value): Use is_gimple_min_invariant.
1749 (maybe_fold_stmt_indirect): Likewise.
1751 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
1753 PR rtl-optimization/33927
1754 * Makefile.in (dse.o): Depend on $(TM_P_H).
1755 * expr.h (extract_low_bits): Declare.
1756 * expmed.c (extract_low_bits): New function.
1757 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
1758 * dse.c: Include tm_p.h.
1759 (find_shift_sequence): Remove the read_reg argument and return the
1760 read value. Emit the instructions instead of returning them.
1761 Iterate on new_mode rather than calculating it each time.
1762 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
1763 source to NEW_MODE and extract_low_bits to convert the shifted
1765 (replace_read): Allow the load and store to have different mode
1766 classes. Use extract_low_bits when SHIFT == 0. Create the shift
1767 or extraction instructions before trying the replacement. Update
1768 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
1770 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
1772 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
1773 to their natural alignment to avoid store forwarding stalls.
1775 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
1778 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
1779 encouraging but not allowing gprs for input;
1780 change the input constraint to !f#r.
1781 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
1783 change the output constraint to !f#r.
1785 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
1788 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
1789 corresponding post-reload splitters.
1790 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
1791 when x87 FP math is selected.
1792 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
1793 New function prototype.
1794 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
1795 unreachable function to ease macroization of insn patterns.
1797 2008-03-21 Martin Jambor <mjambor@suse.cz>
1799 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
1800 reference dumps if ddr is NULL or dependence is unknown.
1802 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
1804 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
1805 unsigned extension into account.
1806 (ATOMIC_COMPARE_AND_SWAP): Likewise.
1807 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
1808 Do computations on a scratch register.
1810 2008-03-21 Richard Guenther <rguenther@suse.de>
1812 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
1813 Use is_gimple_min_invariant instead of TREE_INVARIANT.
1814 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
1815 * tree-ssa-dom.c (record_equality): Likewise.
1816 * tree-inline.c (copy_body_r): Likewise.
1817 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
1820 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
1822 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
1823 as 'delete_unused' argument.
1825 2008-03-20 Richard Guenther <rguenther@suse.de>
1827 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
1828 special casing of constant qualifiers.
1829 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
1830 care about them in general.
1831 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
1832 regardless of their type.
1833 (fold_stmt_r): Forcefully fold *& if we end up with that.
1835 2008-03-20 Paul Brook <paul@codesourcery.com>
1837 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
1838 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
1840 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
1842 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
1843 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
1845 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
1847 * common.opt (Wmudflap): New option.
1848 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
1849 (mx_register_decls): Likewise.
1850 (mudflap_finish_file): Likewise.
1851 * doc/invoke.texi: Document -Wno-mudflap.
1853 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
1855 * c-format.c (replace_format_name_to_system_name): New.
1857 (convert_format_name_to_system_name): New.
1858 (decode_format_attr): Add use of convert_format_name_to_system_name.
1859 (format_types_orig): Add gnu_ prefix to names.
1860 (check_format_info_main): Special treating of \0 escaped names for
1861 supporting multi-character format specifiers as I32, I64.
1862 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
1863 (gnu_target_overrides_format_attributes): New.
1864 * c-format.h: Add structure target_ovr_attr to hold
1865 system specific formatter names.
1866 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
1867 msformat-c.o file to c_target_objs and cxx_target_objs.
1868 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
1869 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
1870 (TARGET_N_FORMAT_TYPES): New.
1871 * config/i386/msformat-c.c: New.
1872 * config/i386/t-cygming: Add build rule for msformat-c.o.
1873 * doc/extend.texi: Add new format names gnu_* and ms_* and
1875 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
1877 2008-03-20 Ira Rosen <irar@il.ibm.com>
1879 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
1880 optimizations turned on under -O3.
1881 (ftree-vectorize): Add that the flag is turned on with -O3.
1883 2008-03-20 Ben Elliston <bje@au.ibm.com>
1885 * regmove.c (try_auto_increment): Fix spelling error in comment.
1886 * final.c (final_scan_insn): Likewise.
1888 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
1891 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
1892 allocator preferences for "y" and "r" class registers.
1893 ("*mov<mode>_internal"): Ditto.
1894 ("*movv2sf_internal_rex64"): Ditto.
1895 ("*movv2sf_internal"): Ditto.
1897 2008-03-19 Michael Matz <matz@suse.de>
1900 * calls.c (expand_call): Check overlap of arguments with call
1901 address for sibcalls.
1903 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
1906 * stor-layout.c (update_alignment_for_field): Set minimum alignment
1907 of the underlying type of a MS bitfield layout to the natural
1908 alignment of the type.
1910 2008-03-19 Jan Hubicka <jh@suse.cz>
1913 * toplev.c (decode_d_option): Handle all CPP flags.
1914 * tree-vrp.c: Update tree_pass descriptors.
1915 * regrename.c: Update tree_pass descriptors.
1916 * fwprop.c: Update tree_pass descriptors.
1917 * doc/invoke.texi: Remove documentation of dropped -d? flags.
1918 * tree-into-ssa.c: Update tree_pass descriptors.
1919 * tree-dump.c: Update tree_pass descriptors.
1920 * tree-complex.c: Update tree_pass descriptors.
1921 * tree-dump.h: Update tree_pass descriptors.
1922 * see.c: Update tree_pass descriptors.
1923 * cgraphbuild.c: Update tree_pass descriptors.
1924 * tracer.c: Update tree_pass descriptors.
1925 * tree-loop-distribution.c: Update tree_pass descriptors.
1926 * cgraph.c: Update tree_pass descriptors.
1927 * postreload-gcse.c: Update tree_pass descriptors.
1928 * postreload.c: Update tree_pass descriptors.
1929 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
1930 * tree-tailcall.c: Update tree_pass descriptors.
1931 * tree-pass.h (tree_opt_pass): Rename to ...
1932 (opt_pass) ... this one; add "type" field and remove letter field.
1933 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
1934 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
1935 all_lowering_passes): Update declaration.
1936 * ipa-cp.c: Update tree_pass descriptors.
1937 * final.c: Update tree_pass descriptors.
1938 * omp-low.c: Update tree_pass descriptors.
1939 * tree-ssa-dse.c: Update tree_pass descriptors.
1940 * ipa-reference.c: Update tree_pass descriptors.
1941 * tree-ssa-uncprop.c: Update tree_pass descriptors.
1942 * auto-inc-dec.c: Update tree_pass descriptors.
1943 * reorg.c: Update tree_pass descriptors.
1944 * cgraphunit.c: Update tree_pass descriptors.
1945 * tree-ssa-copyrename.c: Update tree_pass descriptors.
1946 * tree-ssa-ccp.c: Update tree_pass descriptors.
1947 * df-core.c: Update tree_pass descriptors.
1948 * mode-switching.c: Update tree_pass descriptors.
1949 * tree-nomudflap.c: Update tree_pass descriptors.
1950 * modulo-sched.c: Update tree_pass descriptors.
1951 * ipa-pure-const.c: Update tree_pass descriptors.
1952 * cse.c: Update tree_pass descriptors.
1953 * web.c: Update tree_pass descriptors.
1954 * tree-stdarg.c: Update tree_pass descriptors.
1955 * tree-ssa-math-opts.c: Update tree_pass descriptors.
1956 * tree-ssa-dom.c: Update tree_pass descriptors.
1957 * tree-nrv.c: Update tree_pass descriptors.
1958 * tree-ssa-alias.c: Update tree_pass descriptors.
1959 * loop-init.c: Update tree_pass descriptors.
1960 * gimple-low.c: Update tree_pass descriptors.
1961 * ipa-inline.c: Update tree_pass descriptors.
1962 * tree-ssa-sink.c: Update tree_pass descriptors.
1963 * global.c: Update tree_pass descriptors.
1964 * ifcvt.c: Update tree_pass descriptors.
1965 * jump.c: Update tree_pass descriptors.
1966 * predict.c: Update tree_pass descriptors.
1967 * tree-ssa-loop.c: Update tree_pass descriptors.
1968 * recog.c: Update tree_pass descriptors.
1969 * dse.c: Update tree_pass descriptors.
1970 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
1971 * tree-eh.c: Update tree_pass descriptors.
1972 * regmove.c: Update tree_pass descriptors.
1974 * function.c: Update tree_pass descriptors.
1975 * tree-vectorizer.c: Update tree_pass descriptors.
1976 * gcse.c: Update tree_pass descriptors.
1977 * ipa-type-escape.c: Update tree_pass descriptors.
1978 * tree-if-conv.c: Update tree_pass descriptors.
1979 * init-regs.c: Update tree_pass descriptors.
1980 * ipa.c: Update tree_pass descriptors.
1981 * tree-ssa-phiopt.c: Update tree_pass descriptors.
1982 * rtl-factoring.c: Update tree_pass descriptors.
1983 * lower-subreg.c: Update tree_pass descriptors.
1984 * bt-load.c: Update tree_pass descriptors.
1985 * tree-dfa.c: Update tree_pass descriptors.
1986 * except.c: Update tree_pass descriptors.
1987 * emit-rtl.c: Update tree_pass descriptors.
1988 * cfgexpand.c: Update tree_pass descriptors.
1989 * tree-cfgcleanup.c: Update tree_pass descriptors.
1990 * cfgcleanup.c: Update tree_pass descriptors.
1991 * tree-ssa-pre.c: Update tree_pass descriptors.
1992 * tree-sra.c: Update tree_pass descriptors.
1993 * tree-mudflap.c: Update tree_pass descriptors.
1994 * tree-ssa-copy.c: Update tree_pass descriptors.
1995 * cfglayout.c: Update tree_pass descriptors.
1996 * tree-ssa-forwprop.c: Update tree_pass descriptors.
1997 * tree-ssa-dce.c: Update tree_pass descriptors.
1998 * tree-ssa.c: Update tree_pass descriptors.
1999 * regclass.c: Update tree_pass descriptors.
2000 * integrate.c: Update tree_pass descriptors.
2001 * tree-optimize.c: Update tree_pass descriptors.
2002 * tree-ssa-phiprop.c: Update tree_pass descriptors.
2003 * tree-object-size.c: Update tree_pass descriptors.
2004 * combine.c: Update tree_pass descriptors.
2005 * tree-outof-ssa.c: Update tree_pass descriptors.
2006 * bb-reorder.c: Update tree_pass descriptors.
2007 * stack-ptr-mod.c: Update tree_pass descriptors.
2008 * var-tracking.c: Update tree_pass descriptors.
2009 * tree-profile.c: Update tree_pass descriptors.
2010 * tree-vect-generic.c: Update tree_pass descriptors.
2011 * reg-stack.c: Update tree_pass descriptors.
2012 * sched-rgn.c: Update tree_pass descriptors.
2013 * tree-ssa-structalias.c: Update tree_pass descriptors.
2014 * tree-cfg.c: Update tree_pass descriptors.
2015 * passes.c (current_pass): Update declaration.
2016 (finish_optimization_passes): Update.
2017 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
2018 (register_one_dump_file, register_dump_files_1, next_pass_1):
2020 (init_optimization_passes): Update handling of new types.
2021 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
2022 * ipa-struct-reorg.c: Update tree_pass descriptors.
2023 * tree-ssa-reassoc.c: Update tree_pass descriptors.
2024 * combine-stack-adj.c: Update tree_pass descriptors.
2025 * cfgrtl.c: Update tree_pass descriptors.
2026 * dce.c: Update tree_pass descriptors.
2027 * tree-ssanames.c: Update tree_pass descriptors.
2029 2008-03-19 Richard Guenther <rguenther@suse.de>
2032 * tree-ssa.c (walk_data): New structure.
2033 (warn_uninitialized_var): If not always_executed warn with "maybe"
2035 (execute_early_warn_uninitialized): Compute post-dominators.
2036 Initialize always_executed before processing each basic block.
2038 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
2041 * config/i386/i386.c (x86_this_parameter): Calculate correct location
2042 of "this" pointer when "regparm = N" or "fastcall" is in effect.
2044 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2046 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
2048 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
2050 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
2052 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
2053 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
2054 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
2055 target after ignore has been set, and move there also the commputation
2056 of subtarget and original_target.
2057 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
2058 (LANG_HOOKS_INITIALIZER): Remove it.
2059 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
2061 2008-03-18 Richard Guenther <rguenther@suse.de>
2063 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
2064 found an expression with constants, note that in the VN for the lhs.
2065 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
2066 fold them to constants if possible. Run cleanup_cfg if done so.
2067 (execute_pre): Return todo.
2069 (execute_fre): Likewise.
2070 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
2072 (get_prop_source_stmt): Look through pointer conversions.
2074 2008-03-18 Jan Hubicka <jh@suse.cz>
2076 * tree-pretty-print.c: Include predict.h.
2077 (dump_generic_node): Dump predictor.
2078 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
2079 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
2080 * gimple-low.c (lower_stmt): Likewise.
2081 * expr.c (expand_expr_real): Likewise.
2082 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
2084 (build_predict_expr, build_predict_expr): New.
2085 * predict.h (predictor_name, build_predict_expr): Update.
2086 * c-typeck.c (c_finish_bc_stmt): Add prediction.
2087 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
2088 * predict.def (PRED_CONTINUE): Update hitrate.
2089 * tree.def (PREDICT_EXPR): Define.
2090 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
2091 do not handle BIND_EXPR.
2092 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
2093 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
2094 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
2097 2008-03-18 Michael Matz <matz@suse.de>
2099 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
2101 2008-03-18 Richard Guenther <rguenther@suse.de>
2103 * tree-gimple.h (is_gimple_invariant_address): Declare.
2104 (is_gimple_constant): Likewise.
2105 * tree-gimple.c (is_gimple_constant): New function.
2106 (is_gimple_invariant_address): Likewise.
2107 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
2108 and is_gimple_invariant_address.
2109 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
2111 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
2112 an addressable base.
2114 2008-03-18 Jakub Jelinek <jakub@redhat.com>
2117 * gimplify.c (gimplify_expr): Gimplify second operand of
2120 2008-03-17 Richard Guenther <rguenther@suse.de>
2122 PR tree-optimization/19637
2123 * fold-const.c (fold_unary): Remove restrictions of removing
2124 intermediate pointer-conversions (P2)(P1)P0.
2125 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
2126 conversion to void pointer.
2127 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
2129 2008-03-16 James E. Wilson <wilson@tuliptree.org>
2132 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
2133 emulated thread local variables.
2135 2008-03-16 Richard Guenther <rguenther@suse.de>
2138 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
2139 expand TREE_INVARIANT operations that are not gimple invariant.
2141 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
2143 * doc/extend.texi (Alignment): Say that the ABI controls
2144 the __alignof__ for non-strict-alignment targets rather
2145 than being a recommendation.
2147 2008-03-15 Paul Brook <paul@codesourcery.com>
2149 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
2151 (arm_output_fn_unwind): Mark functions that can not be unwound.
2153 2008-03-15 Paul Brook <paul@codesourcery.com>
2155 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
2156 extension instructions.
2158 2008-03-15 Richard Guenther <rguenther@suse.de>
2160 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
2161 and fold constant aggregate refs.
2162 (fold_const_aggregate_ref): Handle string constants
2163 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
2164 (evaluate_stmt): Simplify now that ccp_fold folds constant
2167 2008-03-15 Paul Brook <paul@codesourcery.com>
2169 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
2170 (extzv): Use gen_extzv_t2.
2171 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
2173 2008-03-15 Richard Guenther <rguenther@suse.de>
2175 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
2176 (fold_const_aggregate_ref): Likewise.
2177 (get_value): Return NULL if we don't have any values.
2178 (ccp_finalize): Set const_val to NULL after freeing it.
2179 * tree-flow.h (get_symbol_constant_value): Declare.
2180 (fold_const_aggregate_ref): Likewise.
2181 * tree-ssa-sccvn.c (try_to_simplify): Use them.
2183 2008-03-15 Richard Guenther <rguenther@suse.de>
2186 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
2187 to not produce negative array indices if not allowed. Add
2188 parameter to indicate that.
2189 (maybe_fold_offset_to_component_ref): Allow negative array
2190 indices only for the first member of a structure.
2191 (maybe_fold_offset_to_reference): Allow negative array indices.
2192 (maybe_fold_stmt_addition): Likewise.
2194 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
2195 Anatoly Sokolov <aesok@post.ru>
2197 * gcc/gcc/config/avr/avr.c (avr_arch_types): Add avr6 entry.
2198 (avr_arch): Add ARCH_AVR6.
2199 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
2200 (initial_elimination_offset): Initialize and use 'avr_pc_size'
2201 instead of fixed value 2.
2202 (print_operand_address): Use gs() asm specifier instead of pm().
2203 (avr_assemble_integer): (Ditto.).
2204 (avr_output_addr_vec_elt): (Ditto.).
2205 (print_operand): Handle "!" code.
2206 * gcc/gcc/config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
2207 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
2208 (AVR_HAVE_EIJMP_EICALL): Define.
2209 (AVR_3_BYTE_PC): Redefine.
2210 (AVR_2_BYTE_PC): (Ditto.).
2211 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
2212 (LINK_SPEC): Add atmega2560 and atmega2561.
2213 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
2215 * gcc/gcc/config/avr/avr.md (call_insn): Use eicall instead of icall
2216 for 3 byte PC devices.
2217 (call_value_insn): (Ditto.).
2218 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
2219 (indirect_jump): Use only for for 2 byte PC devices.
2220 (*tablejump): (Ditto.).
2221 (*indirect_jump_avr6): Add insn.
2222 (*tablejump_rjmp): Don't use for 3 byte PC devices.
2223 * gcc/gcc/config/avr/libgcc.S (__prologue_saves__): Use eijmp
2224 instead of ijmp for 3 byte PC devices.
2225 (__tablejump2__): (Ditto.).
2226 * gcc/gcc/config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
2227 (MULITLIB_DIRNAMES): (Ditto.).
2228 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
2230 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
2232 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
2233 "sse2_umulsidi3". Use V1DI mode for operand 0.
2234 ("mmx_psadbw"): Use V1DI mode for operand 0.
2235 * config/i386/i386-modes.def (V1SI): New vector mode.
2236 * config/i386/i386.c (struct builtin_description)
2237 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
2238 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
2239 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
2240 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
2241 v1di_ftype_v8qi_v8qi type.
2242 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
2244 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
2245 __builtin_ia32_pmuludq]: Fix the mode of return value.
2247 2008-03-15 Richard Guenther <rguenther@suse.de>
2250 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
2253 2008-03-14 Bob Wilson <bob.wilson@acm.org>
2255 * doc/invoke.texi (Option Summary, Xtensa Options): Document
2256 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
2257 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
2258 unless TARGET_SERIALIZE_VOLATILE is enabled.
2259 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
2260 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
2261 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
2263 2008-03-14 Richard Guenther <rguenther@suse.de>
2265 PR tree-optimization/34172
2266 * tree-flow.h (refs_may_alias_p): Declare.
2267 (get_single_def_stmt): Likewise.
2268 (get_single_def_stmt_from_phi): Likewise.
2269 (get_single_def_stmt_with_phi): Likewise.
2270 * tree-dfa.c (refs_may_alias_p): New function.
2271 (get_single_def_stmt): Likewise.
2272 (get_single_def_stmt_from_phi): Likewise.
2273 (get_single_def_stmt_with_phi): Likewise.
2274 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
2275 (vn_reference_lookup_1): New helper function.
2276 (vn_reference_lookup): Walk the virtual use-def chain to
2277 continue searching for a match if the def does not alias the
2278 reference we are looking for.
2280 2008-03-14 David Edelsohn <edelsohn@gnu.org>
2282 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
2283 archive and Perzl. Update The Written Word listing.
2285 2008-03-14 Richard Guenther <rguenther@suse.de>
2287 PR tree-optimization/34043
2288 PR tree-optimization/33989
2289 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
2291 (bitmap_find_leader): Use extra argument to verify dominance
2292 relationship inside a basic-block.
2293 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
2294 (find_leader_in_sets): Adjust.
2295 (create_component_ref_by_pieces): Take extra argument for
2296 dominance check, handle lookup failures.
2297 (find_or_generate_expression): Likewise.
2298 (create_expression_by_pieces): Likewise.
2299 (insert_into_preds_of_block): Adjust.
2300 (create_value_expr_from): If asked for, verify all operands
2301 are in the blocks AVAIL_OUT set.
2302 (make_values_for_stmt): Check for SSA_NAMEs that are life
2303 over an abnormal edge.
2304 (compute_avail): Remove such check.
2305 (do_SCCVN_insertion): New function.
2306 (eliminate): If we do not find a leader suitable for replacement
2307 insert a replacement expression from SCCVN if available.
2308 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
2309 (struct vn_ssa_aux): Add needs_insertion flag.
2310 * tree-ssa-sccvn.c (may_insert): New global flag.
2311 (copy_reference_ops_from_ref): Value-number union member access
2312 based on its size, not type and member if insertion is allowed.
2313 (visit_reference_op_load): For a weak match from union type
2314 punning lookup a view-converted value and insert a SSA_NAME
2315 for that value if that is not found.
2316 (visit_use): Make dumps shorter. Do not disallow value numbering
2317 SSA_NAMEs that are life over an abnormal edge to constants.
2318 (free_scc_vn): Release inserted SSA_NAMEs.
2319 (run_scc_vn): New flag to specify whether insertion is allowed.
2320 Process SSA_NAMEs in forward order.
2321 * tree-ssa-loop-im.c (for_each_index): Handle invariant
2322 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
2323 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
2324 pointer type to/from integral types that do not change the
2325 precision to regular conversions.
2327 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
2329 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
2330 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
2331 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
2332 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
2333 input arguments and the mode of return value. Built-in functions
2334 that operate on whole 64-bit MMX register now use V1DI mode.
2336 2008-03-13 Alon Dayan <alond@il.ibm.com>
2337 Olga Golovanevsky <olga@il.ibm.com>
2339 PR tree-optimization/35041
2340 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
2341 to locate the right position in a statement.
2343 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
2347 * config/i386/xmmintrin.h: Change all static inline functions to
2348 extern inline and add __gnu_inline__ attribute.
2349 * config/i386/bmintrin.h: Ditto.
2350 * config/i386/smmintrin.h: Ditto.
2351 * config/i386/tmmintrin.h: Ditto.
2352 * config/i386/mmintrin-common.h: Ditto.
2353 * config/i386/ammintrin.h: Ditto.
2354 * config/i386/emmintrin.h: Ditto.
2355 * config/i386/pmmintrin.h: Ditto.
2356 * config/i386/mmintrin.h: Ditto.
2357 * config/i386/mm3dnow.h: Ditto.
2359 2008-03-13 Jakub Jelinek <jakub@redhat.com>
2362 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
2363 (lower_omp_2): New function.
2364 (lower_omp_1, lower_omp): Rewritten.
2366 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
2369 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
2370 with the phrase "Microsoft Windows compilers".
2371 (Push/Pop Macro Pragmas): New subsection. Document
2372 #pragma push_macro and pragma pop_macro.
2374 2008-03-12 Paul Brook <paul@codesourcery.com>
2376 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
2378 2008-03-12 Paul Brook <paul@codesourcery.com>
2380 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
2381 (thumb2_alusi3_short): Exclude PLUS and MINUS.
2382 (thumb2_addsi_shortim): Rename ...
2383 (thumb2_addsi_short): ... to this. Allow register operands.
2384 (thumb2_subsi_short): New pattern.
2385 (thumb2_one_cmplsi2_short,
2386 thumb2_negsi2_short): New patterns and peepholes.
2388 2008-03-12 Paul Brook <paul@codesourcery.com>
2390 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
2392 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
2394 * config/i386/i386.md (int_cond): New code iterator.
2396 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
2397 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
2398 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
2399 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
2400 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
2401 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
2402 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
2403 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
2405 2008-03-12 Paul Brook <paul@codesourcery.com>
2407 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
2408 instead of {arm,thumb}_compute_save_reg_mask.
2409 (output_return_instruction): Ditto.
2410 (thumb_unexpanded_epilogue): Ditto.
2411 (thumb1_expand_prologue): Ditto.
2412 (thumb1_output_function_prologue): Ditto.
2413 (arm_set_return_address): Ditto.
2414 (thumb_set_return_address): Ditto.
2415 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
2416 regs to achieve stack alignment.
2417 (thumb1_compute_save_reg_mask): Fix compiler warning.
2418 (arm_output_epilogue): Use offsets->saved_regs_mask.
2419 Adjust stack pointer by poping call clobered registers.
2420 (arm_expand_prologue): Use offsets->saved_regs_mask.
2421 Adjust stack pointer by pushing extra registers.
2422 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
2424 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
2427 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
2428 conversion to the operands of a multiplication.
2430 2008-03-12 Richard Guenther <rguenther@suse.de>
2432 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
2433 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
2434 * timevar.def (TV_TREE_PHIPROP): Add.
2435 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
2436 pass description. Use TV_TREE_PHIPROP.
2437 * tree-ssa-forwprop.c: Remove phiprop code.
2439 2008-03-12 Jakub Jelinek <jakub@redhat.com>
2442 * omp-low.c (maybe_lookup_decl): Constify first argument.
2443 (use_pointer_for_field): Change last argument from bool to
2444 omp_context *. Disallow shared copy-in/out in nested
2445 parallel if decl is shared in outer parallel too.
2446 (build_outer_var_ref, scan_sharing_clauses,
2447 lower_rec_input_clauses, lower_copyprivate_clauses,
2448 lower_send_clauses, lower_send_shared_vars): Adjust callers.
2450 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
2451 Ira Rosen <irar@il.ibm.com>
2453 * tree-vectorizer.c (free_stmt_vec_info): New function.
2454 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
2455 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
2456 * tree-vectorizer.h (free_stmt_vec_info): Declare.
2457 * tree-vect-transform.c (vectorizable_conversion): Free
2458 vec_oprnds0 if it was allocated.
2459 (vect_permute_store_chain): Remove unused VECs.
2460 (vectorizable_store): Free VECs that are allocated in the..
2462 (vect_transform_strided_load, vectorizable_load): Likewise.
2463 (vect_remove_stores): Simplify the code.
2464 (vect_transform_loop): Move code to vect_remove_stores().
2465 Call vect_remove_stores() and free_stmt_vec_info().
2467 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2469 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
2470 TARGET_HPUX. Revise comment.
2471 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
2472 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
2473 Use sr4 variant of `be' instruction when not generating PIC code.
2474 (attr_length_call): Adjust for above change.
2476 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
2478 * ipa-reference.c (static_execute): Remove module_statics_const and
2479 associated setting code.
2481 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
2484 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
2485 predicate for operand 1.
2486 (paritysi2_cmp): Use register_operand predicate for operand 2.
2487 Use earlyclobber modifier for operand 1. Remove support for
2489 (paritydi2_cmp): Use register_operand predicate for operand 3.
2490 Use earlyclobber modifier for operand 1. Remove support for
2493 2008-03-11 Paul Brook <paul@codesourcery.com>
2494 Vladimir Prus <vladimir@codesourcery.com>
2496 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
2497 (arm_compute_save_reg0_reg12_mask): Always
2498 check if register 11 must be saved. Always safe hard frame pointer
2499 when frame_pointer_needeed.
2500 (arm_compute_save_reg_mask): Save IP and PC
2501 only with apcs frames.
2502 (arm_output_epilogue): Adjust Thumb2 codepath to
2503 be also invoked and work for ARM non-apcs frames.
2504 (arm_expand_prologue): Don't bother saving IP
2505 for non-apcs frame, since it's not clobbered by
2506 prologue code. Implement non-apcs frame
2509 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
2511 PR rtl-optimization/35281
2512 * expr.c (convert_move): Use a new pseudo for the intermediate
2513 from_mode->word_mode result.
2515 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
2517 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
2518 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
2519 * toplev.c (compile_file): Don't call it.
2521 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
2524 * expr.c (store_expr): Call emit_block_move if the mode
2525 of "temp" RTX is BLKmode.
2527 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
2528 Richard Guenther <rguenther@suse.de>
2530 PR tree-optimization/31358
2531 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
2532 the step with a NULL_TREE.
2533 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
2534 to sizetype if type is a pointer type.
2535 (add_candidate_1): Don't convert the base and step to
2536 the generic type if the orginal type is a pointer type.
2537 (add_iv_value_candidates): Use sizetype for the step
2538 if type is a pointer type.
2539 (cand_value_at): Likewise.
2540 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
2542 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
2543 Don't convert the tem affine to the type.
2544 (add_elt_to_tree): Use sizetype for the step if a pointer.
2545 Use POINTER_PLUS_EXPR for pointers.
2546 (aff_combination_to_tree): Use sizetype for the step if a
2549 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
2551 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
2552 Remove commutativity hint.
2554 2008-03-10 Jakub Jelinek <jakub@redhat.com>
2558 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
2559 errorneous type. Check that v is a VAR_DECL.
2562 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
2564 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
2566 PR tree-optimization/35494
2567 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
2568 may be overriden at link and run time.
2570 2008-03-10 Richard Guenther <rguenther@suse.de>
2572 PR tree-optimization/34677
2573 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
2574 (poolify_tree): Likewise.
2575 (modify_expr_template): Likewise.
2576 (poolify_modify_stmt): Likewise.
2577 (insert_fake_stores): Handle all component-ref style stores
2578 in addition to INDIRECT_REF. Also handle complex types.
2579 Do not poolify the inserted load.
2580 (realify_fake_stores): Do not rebuild the tree but only
2581 make it a SSA_NAME copy.
2582 (init_pre): Remove initialzation of modify_expr_template.
2583 Do not allocate modify_expr_node_pool.
2584 (fini_pre): Do not free modify_expr_node_pool.
2586 2008-03-10 Paul Brook <paul@codesourcery.com>
2588 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
2591 2008-03-10 Paul Brook <paul@codesourcery.com>
2592 Mark Shinwell <shinwell@codesourcery.com>
2594 * config/arm/cortex-r4.md: New.
2595 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
2597 * config/arm/arm.md: Include cortex-r4.md.
2598 (insn): Add smmls, sdiv and udiv values.
2599 (generic_sched): Don't use generic scheduling for Cortex-R4.
2600 (arm_issue_rate): New function.
2601 (TARGET_SCHED_ISSUE_RATE): Define.
2603 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
2605 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
2607 2008-03-10 Richard Guenther <rguenther@suse.de>
2609 * tree-ssa-pre.c (get_sccvn_value): Simplify.
2610 (compute_avail): Do not add stmt uses to AVAIL_OUT.
2612 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
2614 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
2615 Set default to true.
2617 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2619 * c.opt (Wsynth): Deprecate.
2620 * doc/invoke.texi (Option Summary, Warning Options): Document
2621 -Wno-format-contains-nul.
2623 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
2626 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
2627 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
2629 2008-03-09 Ira Rosen <irar@il.ibm.com>
2631 * config/rs6000/rs6000.c (builtin_description): Rename vector
2632 left shift operations.
2633 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
2634 (altivec_vsl<VI_char>): Rename to ...
2635 (ashl<mode>3): ... new name.
2636 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
2638 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
2640 2008-03-08 Richard Guenther <rguenther@suse.de>
2642 * coverage.h (tree_coverage_counter_addr): Declare.
2643 * coverage.c (tree_coverage_counter_addr): New function.
2644 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
2646 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
2647 (tree_gen_one_value_profiler): Likewise.
2648 (tree_gen_ic_profiler): Likewise.
2649 (tree_gen_average_profiler): Likewise.
2650 (tree_gen_ior_profiler): Likewise.
2652 2008-03-08 Richard Guenther <rguenther@suse.de>
2654 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
2655 (vn_binary_op_insert): Likewise.
2656 (vn_unary_op_lookup): Likewise.
2657 (vn_unary_op_insert): Likewise.
2658 (vn_nary_op_lookup): Declare.
2659 (vn_nary_op_insert): Likewise.
2660 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
2661 and binary hashes, use a single obstack for unary_op_pool
2663 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
2664 a single struct vn_nary_op_s. Store tree code length and
2665 a variable number of operands.
2666 (struct vn_reference_op_struct): Remove unused op2.
2667 (vn_reference_op_eq): Do not compare op2.
2668 (vn_reference_op_compute_hash): Do not compute hash of op2.
2669 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
2670 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
2671 with vn_nary_op_compute_hash.
2672 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
2673 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
2675 (vn_unary_op_insert, vn_binary_op_insert): Replace with
2677 (visit_unary_op): Call nary functions.
2678 (visit_binary_op): Likewise.
2679 (process_scc): Adjust for struct vn_tables_s changes.
2680 (allocate_vn_table): Likewise.
2681 (free_vn_table): Likewise.
2682 * tree-vn.c (vn_add): Call nary functions.
2683 (vn_lookup): Likewise.
2685 2008-03-08 Jakub Jelinek <jakub@redhat.com>
2688 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
2689 wdst back after sync_compare_and_swapqhi_internal.
2691 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
2694 * config/i386/i386-modes.def (V1DI): New vector mode.
2695 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
2696 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
2697 (MMXMODE248): Ditto.
2698 (MMXMODE): Add V1DI mode.
2699 (mmxvecsize): Change DI mode to V1DI mode.
2700 ("mov<mode>): Use MMXMODEI8 mode iterator.
2701 ("*mov<mode>_internal_rex64"): Ditto.
2702 ("*mov<mode>_internal"): Ditto.
2703 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
2704 ("mmx_sub<mode>3"): Ditto.
2705 ("mmx_adddi3"): Remove insn pattern.
2706 ("mmx_subdi3"): Ditto.
2707 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
2708 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
2709 ("mmx_ashl<mode>3"): Ditto.
2710 ("mmx_lshrdi3"): Remove insn pattern.
2711 ("mmx_ashldi3"): Ditto.
2712 * config/i386/i386.c (classify_argument): Handle V1DImode.
2713 (function_arg_advance_32): Ditto.
2714 (function_arg_32): Ditto.
2715 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
2716 mmx_addv1di3 insn pattern.
2717 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
2718 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
2719 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
2720 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
2721 Remove definitions of built-in functions.
2722 (V1DI_type_node): New node.
2723 (v1di_ftype_v1di_int): Ditto.
2724 (v1di_ftype_v1di_v1di): Ditto.
2725 (v2si_ftype_v2si_si): Ditto.
2726 (v4hi_ftype_v4hi_di): Remove node.
2727 (v2si_ftype_v2si_di): Ditto.
2728 (ix86_init_mmx_sse_builtins): Handle V1DImode.
2729 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
2730 Redefine builtins using def_builtin_const with *_ftype_*_int node.
2731 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
2732 Add new builtins using def_builtin_const.
2733 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
2734 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
2735 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
2736 * config/i386/mmintrin.h (__v1di): New typedef.
2737 (_mm_add_si64): Cast arguments to __v1di type.
2738 (_mm_sub_si64): Ditto.
2739 (_mm_sll_pi16): Cast __count to __v4hi type.
2740 (_mm_sll_pi32): Cast __count to __v2si type.
2741 (_mm_sll_si64): Cast arguments to __v1di type.
2742 (_mm_srl_pi16): Cast __count to __v4hi type.
2743 (_mm_srl_pi32): Cast __count to __v2si type.
2744 (_mm_srl_si64): Cast arguments to __v1di type.
2745 (_mm_sra_pi16): Cast __count to __v4hi type.
2746 (_mm_sra_pi32): Cast __count to __v2si type.
2747 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
2748 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
2749 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
2750 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
2751 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
2752 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
2753 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
2754 (_mm_srai_pi32): Use __builtin_ia32_psradi.
2755 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
2756 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
2757 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
2758 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
2760 2008-03-07 Joseph Myers <joseph@codesourcery.com>
2762 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
2764 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
2767 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
2768 reg+const addressing for Altivec modes. Don't generate reg+reg
2769 addressing for TFmode or TDmode quantities.
2771 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
2773 * c-common.c (vector_types_convertible_p): Call langhook
2774 instead of comptypes.
2776 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
2779 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
2780 integral and scalar float variables which have a
2783 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
2785 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
2786 dwarf_register_span hook when emitting unwind information for
2787 register-to-memory saves.
2788 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
2789 (rs6000_frame_related): Remove call to spe_synthesize_frame.
2791 2008-03-06 Jakub Jelinek <jakub@redhat.com>
2793 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
2794 for the same VAR_DECL.
2796 2008-03-06 Tom Tromey <tromey@redhat.com>
2799 * doc/standards.texi (Standards): Don't mention treelang.
2800 * doc/invoke.texi (Overall Options): Don't mention treelang.
2801 * doc/install.texi (Prerequisites): Don't mention bison or
2803 (Configuration): Don't mention treelang.
2804 (Building): Likewise.
2805 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
2807 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
2809 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
2810 word-extractions out of a multi-word object.
2812 2008-03-06 Richard Guenther <rguenther@suse.de>
2814 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
2815 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
2816 result type and precision.
2817 * expr.c (get_inner_reference): Set unsignedp based on the result
2818 type of BIT_FIELD_REF.
2819 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
2820 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
2821 (try_instantiate_multiple_fields): Likewise. Use the correct type
2823 (sra_build_assignment): Likewise.
2824 (sra_build_elt_assignment): Likewise.
2825 (sra_explode_bitfield_assignment): Likewise.
2826 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
2827 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
2828 set BIT_FIELD_REF_UNSIGNED.
2829 (vectorizable_load): Likewise.
2831 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
2833 * cse.c (cse_extended_basic_block): Invalidate artificial defs
2836 2008-03-06 Richard Guenther <rguenther@suse.de>
2838 * alias.c (struct alias_set_entry): Move has_zero_child field
2839 to pack with alias_set.
2841 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
2843 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
2846 2008-03-05 Ian Lance Taylor <iant@google.com>
2848 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
2850 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
2852 * fwprop.c (update_df): Support width and offset parameters of
2854 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
2855 global_conflicts): Change DF_REF_EXTRACT to either
2856 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
2857 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
2858 * df-scan.c (df_ref_record, df_defs_record,
2859 df_ref_create_structure, df_def_record_1, df_uses_record,
2860 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
2861 df_bb_refs_collect, df_entry_block_defs_collect,
2862 df_exit_block_uses_collect): Support new width and offset fields.
2863 (ref_extract_pool): New storage pool.
2864 (df_free_ref): New function.
2865 (df_reg_chain_unlink, df_free_collection_rec,
2866 df_sort_and_compress_refs): Call df_free_ref.
2867 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
2869 (df_ref_create_structure): Allocate df_ref_extract if offset and
2870 width fields are used.
2871 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
2872 (df_uses_record): Get offset and width from ZERO_EXTRACT
2874 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
2875 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
2876 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
2877 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
2878 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
2879 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
2880 (df_ref_extract): New structure.
2881 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
2882 (df_ref_create): Add width and offset parameters.
2884 2008-03-05 Richard Guenther <rguenther@suse.de>
2886 * tree-ssa-structalias.c (get_constraint_for_component_ref):
2887 Use ranges_overlap_p.
2888 (offset_overlaps_with_access): Rename
2889 to ranges_overlap_p and move ...
2890 * tree-flow-inline.h (ranges_overlap_p): ... here.
2892 * tree.h (get_inner_reference, handled_component_p): Update
2895 * tree.h (record_component_aliases, get_alias_set,
2896 alias_sets_conflict_p, alias_sets_must_conflict_p,
2897 objects_must_conflict_p): Move declarations ...
2898 * alias.h (record_component_aliases, get_alias_set,
2899 alias_sets_conflict_p, alias_sets_must_conflict_p,
2900 objects_must_conflict_p): ... here.
2901 Include coretypes.h.
2902 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
2904 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
2906 * cfg.c: Include tree-flow.h.
2907 (remove_edge_raw): Call redirect_edge_var_map_clear.
2908 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
2909 * tree-flow-inline.h (redirect_edge_var_map_def): New.
2910 (redirect_edge_var_map_result): New.
2911 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
2912 PENDING_STMT use with redirect_edge_var_map_*.
2913 * tree-ssa.c (edge_var_maps): New definition.
2914 (redirect_edge_var_map_add): New.
2915 (redirect_edge_var_map_clear): New.
2916 (redirect_edge_var_map_dup): New.
2917 (redirect_edge_var_map_vector): New.
2918 (redirect_edge_var_map_destroy): New.
2919 (ssa_redirect_edge): Replace PENDING_STMT use with
2920 redirect_edge_var_map_*.
2921 (flush_pending_stmts): Same.
2922 (delete_tree_ssa): Destroy edge var map.
2923 * tree-flow.h (struct _edge_var_map): New.
2924 Define edge_var_map vector type.
2925 Declare redirect_edge_var_map_* prototypes.
2926 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
2927 * tree-cfg.c (reinstall_phi_args): Replace
2928 PENDING_STMT use with redirect_edge_var_map_*.
2930 2008-03-05 Richard Guenther <rguenther@suse.de>
2932 PR tree-optimization/35472
2933 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
2934 whose single use_stmt has a overlapping set of loaded and
2935 stored symbols as that use_stmt might be a noop assignment then.
2937 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
2939 * gthr-rtems.h: Implement __gthread_mutex_destroy.
2941 2008-03-05 Richard Guenther <rguenther@suse.de>
2944 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
2945 should be constants.
2946 * tree-cfg.c (verify_expr): Verify it.
2947 * fold-const.c (fold_truthop): Remove code generating
2948 BIT_FIELD_REFs of structure bases.
2949 (fold_binary): Likewise.
2950 (fold_ternary): Position and size of BIT_FIELD_REFs are
2951 always host integers.
2952 (make_bit_field_ref): Remove.
2953 (optimize_bit_field_compare): Remove.
2954 (all_ones_mask_p): Remove.
2956 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
2959 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
2960 (split_block_and_df_analyze): New. Split basic block and rebuild
2962 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
2964 (split_pattern_seq): Likewise.
2965 (erase_matching_seqs): Likewise.
2966 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
2968 2008-03-04 Geoff Keating <geoffk@apple.com>
2970 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
2971 declaration and code.
2972 (tree_invalid_nonnegative_warnv_p): Likewise.
2974 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
2976 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
2977 examples. Truncate option-names then causing overfull hbox.
2979 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2982 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
2984 * configure: Rebuilt.
2986 2008-03-04 Rafael Espindola <espindola@google.com>
2988 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
2989 (tree_unary_nonnegative_warnv_p): New.
2990 (tree_binary_nonnegative_warnv_p): New.
2991 (tree_single_nonnegative_warnv_p): New.
2992 (tree_invalid_nonnegative_warnv_p): New.
2993 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
2995 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2998 * opts.c (handle_option): Postpone 'unknown option' errors only for
3001 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
3004 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
3007 2008-03-04 Rafael Espindola <espindola@google.com>
3009 * fold-const.c (tree_unary_nonzero_warnv_p): New.
3010 (tree_binary_nonzero_warnv_p): New.
3011 (tree_single_nonzero_warnv_p): New.
3012 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
3014 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
3017 * fold-const.c (fold_cond_expr_with_comparison): Prevent
3018 transformations for modes that have signed zeros.
3019 * ifcvt.c (noce_try_abs): Ditto.
3021 2008-03-04 Joseph Myers <joseph@codesourcery.com>
3023 * config/i386/i386.c (override_options): Force
3024 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
3026 2008-03-04 Jan Hubicka <jh@suse.cz>
3029 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
3032 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
3034 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
3035 label to probe the stack.
3037 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
3039 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
3040 (__gthr_win32_mutex_destroy): Declare.
3041 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
3042 __gthr_win32_mutex_destroy.
3043 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
3045 2008-03-03 Jan Hubicka <jh@suse.cz>
3048 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
3049 aggressive on inlining cold calls.
3051 2008-03-03 Richard Guenther <rguenther@suse.de>
3053 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
3054 struct copies into the expression table.
3055 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
3056 (try_to_simplify): Likewise.
3057 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
3058 integral and pointer arguments which do not change the
3059 precision to NOP_EXPRs.
3060 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
3061 VIEW_CONVERT_EXPR case.
3063 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
3065 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
3066 defined in a loop at depth 0 is invariant.
3067 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
3068 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
3069 be called at loop depth 0.
3071 2008-03-02 Jakub Jelinek <jakub@redhat.com>
3074 * gcc.c (process_command): Update copyright notice dates.
3075 * gcov.c (print_version): Likewise.
3076 * gcov-dump.c (print_version): Likewise.
3077 * mips-tfile.c (main): Likewise.
3078 * mips-tdump.c (main): Likewise.
3080 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3083 * c-common.c (flag_permissive): Delete.
3084 (constant_expression_warnings): Check flags first.
3085 (constant_expression_error): New.
3086 * c-common.h (flag_permissive): Delete.
3087 (constant_expression_error): Declare.
3088 * flags.h (flag_permissive): Declare. Update description.
3089 * diagnostic.c (pedwarn): Update.
3091 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
3092 (permissive_error_kind): New.
3093 * toplev.c (flag_permissive): Define. Update description.
3094 * toplev.h (permissive_error_kind): Declare.
3095 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
3096 (pedwarn_c90): Use pedantic_warning_kind.
3097 * c-opts.c (c_common_post_options): flag_permissive does not affect
3098 flag_pedantic_errors.
3100 2008-03-02 Joseph Myers <joseph@codesourcery.com>
3102 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
3103 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
3104 __absvsi2, __absvDI2): Use unsigned arithmetic.
3106 2008-03-02 Andi Kleen <ak@suse.de>
3107 Richard Guenther <rguenther@suse.de>
3109 * struct-equiv.c: Remove file.
3110 * cfg_cleanup.c (condjump_equiv_p): Remove.
3111 * Makefile.in (OBJS-common): Remove struct-equiv.o.
3112 (struct-equiv.o): Remove rule.
3113 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
3114 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
3115 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
3117 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
3119 * ifcvt.c (noce_process_if_block): Try to handle only the then
3120 block if the else block exists but isn't suitable.
3122 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
3125 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
3126 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
3127 regression from previous patch.
3129 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
3132 * gthr.h: Add __gthread_mutex_destroy as a function that must be
3134 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
3135 * gthr-single.h (__gthread_mutex_destroy): Likewise.
3136 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
3137 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
3138 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
3139 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
3140 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
3141 (__gthread_mutex_destroy_function): Rename to
3142 __gthread_mutex_destroy.
3143 * gthr-dce.h (__gthread_mutex_destroy): Call
3144 pthread_mutex_destroy.
3145 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
3146 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
3147 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
3149 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
3151 * df-scan.c (df_ref_chain_change_bb): Simplify.
3152 (df_insn_change_bb): Add new_bb argument. Simplify. Call
3153 set_block_for_insn if there's any change.
3154 * df.h ((df_insn_change_bb): Fix prototype.
3155 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
3156 df_insn_change_bb, don't call set_block_for_insn.
3157 * emit-rtl.c (reorder_insns): Likewise.
3158 * haifa-sched.c (move_insn): Likewise.
3160 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
3162 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
3164 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
3166 * tree-flow-inline.h (next_readonly_imm_use): Return
3167 NULL_USE_OPERAND_P after the end.
3169 2008-03-01 Richard Guenther <rguenther@suse.de>
3171 PR tree-optimization/35411
3172 * tree-sra.c (sra_build_assignment): Split conversion to
3173 final type to a separate statement if we are not assigning
3176 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3178 * fold-const.c (fold_convertible_p): Correct the logic to follow
3179 that in fold_convert().
3181 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
3184 * tree-inline.c (build_duplicate_type): When we make a
3185 duplicate type, make it unique in the canonical types system.
3187 2008-02-29 Tom Tromey <tromey@redhat.com>
3189 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
3190 input_file_stack_history, input_file_stack_restored): Remove.
3191 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
3192 * input.h (struct file_stack): Remove.
3193 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
3194 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
3196 * diagnostic.h (struct diagnostic_context) <last_module>: Change
3198 (diagnostic_last_module_changed): Add 'map' argument.
3199 (diagnostic_set_last_function): Likewise.
3200 * diagnostic.c (undiagnostic_report_current_module): Iterate using
3201 line map, not input_file_stack.
3202 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
3204 2008-02-29 Paul Brook <paul@codesourcery.com>
3206 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
3208 2008-02-29 Paul Brook <paul@codesourcery.com>
3210 * config/arm/ieee754-df.S (muldf3): Use RET macros.
3212 2008-02-29 Richard Guenther <rguenther@suse.de>
3214 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
3216 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
3217 value for comparing for a store match.
3218 (simplify_unary_expression): Do nothing for SSA_NAMEs.
3219 (try_to_simplify): Do not do a full-blown reference lookup.
3221 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
3223 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
3224 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
3226 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
3228 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
3230 * tree-loop-linear.c (try_interchange_loops): Compare memory access
3231 strides against cache sizes.
3233 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
3235 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
3238 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
3240 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
3241 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
3242 is smaller than the original promoted value.
3243 (simplify_subreg): If OP is a SUBREG, try to preserve its
3244 SUBREG_PROMOTED_VAR_P information.
3246 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
3248 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
3249 (VN_INFO_GET): Allocate new objects on the obstack.
3250 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
3251 for rpo_numbers_temp, for consistency.
3252 (free_scc_vn): Free the obstack.
3254 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
3256 * doc/invoke.texi: Document -ftree-loop-distribution.
3257 * tree-loop-distribution.c: New.
3258 * tree-pass.h (pass_loop_distribution): New.
3259 * graphds.h (struct graph): Add htab_t indices.
3260 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
3261 * tree-vectorizer.c (rename_variables_in_loop): Extern.
3262 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
3263 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
3264 * tree-data-ref.c (debug_data_dependence_relations): New.
3265 (dump_data_dependence_relation): Also print data references.
3266 (free_data_ref): Extern.
3267 (same_access_functions): Moved...
3268 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
3269 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
3270 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
3271 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
3272 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
3273 (stmts_from_loop): Skip LABEL_EXPR.
3274 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
3276 (build_rdg): Initialize rdg->indices htab.
3277 (free_rdg, stores_from_loop, ref_base_address,
3278 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
3279 have_similar_memory_accesses_1, ref_base_address_1,
3280 remove_similar_memory_refs): New.
3281 * tree-data-ref.h: Depend on tree-chrec.h.
3282 (debug_data_dependence_relations, free_data_ref): Declared.
3283 (same_access_functions): ... here.
3284 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
3286 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
3287 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
3288 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
3289 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
3290 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
3291 rdg_vertex_for_stmt): Declared.
3292 (struct rdg_edge): Add level.
3294 (free_rdg, stores_from_loop, remove_similar_memory_refs,
3295 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
3297 (rdg_has_similar_memory_accesses): New.
3298 * tree-vect-analyze.c: Remove unused static decls.
3299 * lambda.h (dependence_level): New.
3300 * common.opt (ftree-loop-distribution): New.
3301 * tree-flow.h (mark_virtual_ops_in_bb,
3302 slpeel_tree_duplicate_loop_to_edge_cfg,
3303 rename_variables_in_loop): Declared.
3304 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
3305 (OBJS-common): Add tree-loop-distribution.o.
3306 (tree-loop-distribution.o): New rule.
3307 * tree-cfg.c (mark_virtual_ops_in_bb): New.
3308 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
3309 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
3311 2008-02-28 Joseph Myers <joseph@codesourcery.com>
3314 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
3315 other than structures and unions.
3317 2008-02-28 Richard Guenther <rguenther@suse.de>
3320 2008-02-26 Richard Guenther <rguenther@suse.de>
3322 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
3323 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
3324 (lookup_decl_from_uid): Declare.
3325 (remove_decl_from_map): Likewise.
3326 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
3327 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
3328 (decl_for_uid_map): New global hashtable mapping DECL_UID
3330 (init_ttree): Allocate it.
3331 (insert_decl_to_uid_decl_map): New helper function.
3332 (make_node_stat): Insert new decls into the map.
3333 (copy_node_stat): Likewise.
3334 (lookup_decl_from_uid): New function.
3335 (remove_decl_from_map): Likewise.
3336 (print_decl_for_uid_map_statistics): New helper.
3337 (dump_tree_statistics): Call it.
3339 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
3340 (referenced_var_iterator): Adjust.
3341 (FOR_EACH_REFERENCED_VAR): Adjust.
3342 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
3343 (num_referenced_vars): Adjust.
3344 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
3345 (first_referenced_var): Remove.
3346 (end_referenced_vars_p): Likewise.
3347 (next_referenced_var): Likewise.
3348 (referenced_var_iterator_set): New helper function.
3349 * tree-dfa.c (referenced_var_lookup): Adjust.
3350 (referenced_var_check_and_insert): Likewise.
3351 (remove_referenced_var): Likewise.
3352 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
3353 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3354 (verify_call_clobbering): Likewise.
3355 (verify_memory_partitions): Likewise.
3356 (init_tree_ssa): Allocate bitmap instead of hashtable for
3358 (delete_tree_ssa): Adjust.
3359 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
3360 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3361 (compute_tag_properties): Likewise.
3362 (set_initial_properties): Likewise.
3363 (find_partition_for): Likewise.
3364 (update_reference_counts): Likewise.
3365 (dump_may_aliases_for): Likewise.
3366 * tree-ssa-operands.c (add_virtual_operand): Likewise.
3367 (add_call_clobber_ops): Likewise.
3368 (add_call_read_ops): Likewise.
3369 (get_asm_expr_operands): Likewise.
3370 * tree-into-ssa.c (dump_decl_set): Likewise.
3371 (update_ssa): Likewise.
3372 * tree-sra.c (scan_function): Likewise.
3373 (decide_instantiations): Likewise.
3374 (scalarize_parms): Likewise.
3375 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
3376 (dsa_named_for): Likewise.
3377 * tree-ssa-structalias.c (update_alias_info): Likewise.
3378 (merge_smts_into): Likewise.
3380 2008-02-27 David Daney <ddaney@avtrex.com>
3383 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
3384 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
3385 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
3386 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
3387 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
3389 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
3392 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
3393 (BUILT_IN_NEXTTOWARD): Remove.
3394 (BUILT_IN_NEXTTOWARDF): Ditto.
3395 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
3396 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
3398 2008-02-27 Tom Tromey <tromey@redhat.com>
3400 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
3401 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
3403 2008-02-27 Jan Beulich <jbeulich@novell.com>
3405 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
3406 update the respective field on newdecl.
3408 2008-02-27 Revital Eres <eres@il.ibm.com>
3410 PR rtl-optimization/34999
3411 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
3412 crossing edges that ends with a call insn.
3413 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
3414 call insn and clear the EDGE_CROSSING flag of the crossing edge
3415 when fixing fallthru edges.
3417 2008-02-27 Richard Guenther <rguenther@suse.de>
3420 * fold-const.c (fold_unary): Return the correct argument,
3421 converted to the result type.
3423 2008-02-27 Richard Guenther <rguenther@suse.de>
3426 * expr.c (expand_expr_real_1): Assert on rotates that operate
3428 * fold-const.c (fold_binary): Use the types precision, not the
3429 bitsize of the mode if folding rotate expressions. Build rotates
3430 only for full modes.
3432 2008-02-27 Jakub Jelinek <jakub@redhat.com>
3434 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
3436 * c-pragma.c (pragma_ns_name): New typedef.
3437 (registered_pp_pragmas): New variable.
3438 (c_pp_lookup_pragma): New function.
3439 (c_register_pragma_1): If flag_preprocess_only, do nothing
3440 for non-expanded pragmas, for expanded ones push pragma's
3441 namespace and name into registered_pp_pragmas vector.
3442 (c_invoke_pragma_handler): Register OpenMP pragmas even when
3443 flag_preprocess_only, don't register GCC pch_preprocess
3444 pragma if flag_preprocess_only.
3445 * c-opts.c (c_common_init): Call init_pragma even if
3446 flag_preprocess_only.
3447 * c-pragma.c (c_pp_lookup_pragma): New prototype.
3448 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
3449 cpp_register_pragma if flag_preprocess_only.
3451 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3454 * c-parser.c (c_parser_translation_unit): Warn for empty
3455 translation unit, not empty source file.
3457 2008-02-26 Paul Brook <paul@codesourcery.com>
3459 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
3460 operand for Thumb-2.
3461 * config/arm/arm.h (reg_class): Add CORE_REGS.
3462 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
3463 (BASE_REG_CLASS): Use CORE_REGS.
3464 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
3465 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
3466 (REGNO_OK_FOR_INDEX_P): Exclude SP.
3467 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
3468 ARM_REGNO_OK_FOR_INDEX_P.
3469 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
3470 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
3471 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
3472 (ldm/stm peepholes): Ditto.
3473 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
3474 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
3475 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
3476 * config/arm/constraints.md: Enable "k" constraint on ARM.
3478 2008-02-27 Ben Elliston <bje@au.ibm.com>
3480 * config/rs6000/rs6000.c: Annotate cache line size field in all
3481 instances of struct processor_costs.
3483 2008-02-26 David Edelsohn <edelsohn@gnu.org>
3485 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
3486 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
3487 jump_bypass): New counters.
3488 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
3489 * dce.c (gate_ud_dce): Same.
3490 (gate_fast_dce): Same.
3491 * dse.c (gate_dse1): New function.
3492 (gate_dse2): New function.
3493 (gate_dse): Merge results of new gate functions.
3494 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
3495 (gate_handle_jump_bypass): Add dbg_cnt.
3496 (gate_handle_gcse): Add dbg_cnt.
3497 * ifcvt.c (gate_handle_if_conversion): Same.
3498 (gate_handle_if_after_combine): Same.
3499 (gate_handle_if_after_reload): Same.
3500 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
3502 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
3504 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
3506 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
3508 2008-02-26 Jason Merrill <jason@redhat.com>
3511 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
3512 alone if it's the naming decl for the type's main variant.
3514 2008-02-26 Tom Tromey <tromey@redhat.com>
3516 * system.h (USE_MAPPED_LOCATION): Poison.
3517 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
3518 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
3519 (make_goto_expr_edges): Likewise.
3520 (remove_bb): Likewise.
3521 (execute_warn_function_return): Likewise.
3522 * basic-block.h (struct edge_def) <goto_locus>: Change type to
3524 * c-common.c (fname_decl): Remove old location code.
3525 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
3527 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
3529 (ASM_INPUT_SOURCE_LOCATION): Likewise.
3530 (gen_rtx_ASM_INPUT): Likewise.
3531 (gen_rtx_ASM_INPUT_loc): Likewise.
3532 (get_rtx_asm_OPERANDS): Remove.
3533 * cfglayout.c (insn_locators_alloc): Remove old location code.
3534 (set_curr_insn_source_location): Likewise.
3535 (curr_insn_locator): Likewise.
3536 * print-tree.c (print_node): Remove old location code.
3537 * tree-mudflap.c (mf_varname_tree): Remove old location code.
3538 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
3539 * cfgexpand.c (expand_gimple_cond_expr): Don't use
3540 location_from_locus.
3541 (construct_exit_block): Remove old location code.
3542 * emit-rtl.c (force_next_line_note): Remove old location code.
3543 * profile.c (branch_prob): Remove old location code.
3544 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
3545 LOC_LINE): Remove old-location variants.
3546 * langhooks.c (lhd_print_error_function): Remove old location
3548 * configure, config.in: Rebuilt.
3549 * configure.ac (--enable-mapped-location): Remove.
3550 * c-decl.c (c_init_decl_processing): Remove old location code.
3551 (finish_function): Likewise.
3552 * recog.c (decode_asm_operands): Remove old location code.
3553 * c-pch.c (c_common_read_pch): Remove old location code.
3554 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
3556 * gimple-low.c (lower_function_body): Remove old location code.
3557 * toplev.c (unknown_location): Remove.
3558 (push_srcloc): Remove old-location variant.
3559 (process_options): Remove old location code.
3560 (lang_dependent_init): Likewise.
3561 * input.h (UNKNOWN_LOCATION): Move definition.
3562 (location_t): Undeprecate.
3563 (source_locus): Remove.
3564 (location_from_locus): Remove.
3565 (struct location_s): Remove.
3566 Remove all old-location code.
3567 (input_line, input_filename): Remove.
3568 * final.c (final_scan_insn): Remove old location code.
3569 * diagnostic.c (diagnostic_build_prefix): Remove
3570 USE_MAPPED_LOCATION test.
3571 * tree.h (gimple_stmt) <locus>: Now a location_t.
3572 (tree_exp) <locus>: Likewise.
3573 (DECL_IS_BUILTIN): Remove old-location variant.
3574 (annotate_with_file_line, annotate_with_locus): Likewise.
3575 (expr_locus, set_expr_locus): Update.
3576 * tree.c (build1_stat): Remove old location code.
3577 (last_annotated_node): Remove.
3578 (annotate_with_file_line): Remove old-location variant.
3579 (annotate_with_locus): Likewise.
3580 (expr_location): Remove old location code.
3581 (set_expr_location): Likewise.
3582 (expr_has_location): Likewise.
3583 (expr_locus): Likewise.
3584 (set_expr_locus): Likewise.
3585 (expr_filename): Don't use location_from_locus.
3586 (expr_lineno): Likewise.
3587 * rtl-error.c (location_for_asm): Remove old location code.
3588 * c-lex.c (cb_line_change): Remove old location code.
3589 (fe_file_change): Likewise.
3590 (cb_def_pragma): Likewise.
3591 (c_lex_with_flags): Likewise.
3592 * gengtype.c (do_typedef): Don't special-case location types.
3593 (define_location_structures): Remove.
3594 (main): Don't call define_location_structures.
3595 * tree-pretty-print.c (dump_implicit_edges): Remove old location
3598 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3601 * builtins.def (BUILT_IN_STDARG_START): Remove.
3602 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
3603 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
3604 * tree-inline.c (inline_forbidden_p_1): Likewise.
3606 2008-02-26 Richard Guenther <rguenther@suse.de>
3608 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
3609 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
3610 (lookup_decl_from_uid): Declare.
3611 (remove_decl_from_map): Likewise.
3612 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
3613 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
3614 (decl_for_uid_map): New global hashtable mapping DECL_UID
3616 (init_ttree): Allocate it.
3617 (insert_decl_to_uid_decl_map): New helper function.
3618 (make_node_stat): Insert new decls into the map.
3619 (copy_node_stat): Likewise.
3620 (lookup_decl_from_uid): New function.
3621 (remove_decl_from_map): Likewise.
3622 (print_decl_for_uid_map_statistics): New helper.
3623 (dump_tree_statistics): Call it.
3625 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
3626 (referenced_var_iterator): Adjust.
3627 (FOR_EACH_REFERENCED_VAR): Adjust.
3628 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
3629 (num_referenced_vars): Adjust.
3630 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
3631 (first_referenced_var): Remove.
3632 (end_referenced_vars_p): Likewise.
3633 (next_referenced_var): Likewise.
3634 (referenced_var_iterator_set): New helper function.
3635 * tree-dfa.c (referenced_var_lookup): Adjust.
3636 (referenced_var_check_and_insert): Likewise.
3637 (remove_referenced_var): Likewise.
3638 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
3639 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3640 (verify_call_clobbering): Likewise.
3641 (verify_memory_partitions): Likewise.
3642 (init_tree_ssa): Allocate bitmap instead of hashtable for
3644 (delete_tree_ssa): Adjust.
3645 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
3646 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3647 (compute_tag_properties): Likewise.
3648 (set_initial_properties): Likewise.
3649 (find_partition_for): Likewise.
3650 (update_reference_counts): Likewise.
3651 (dump_may_aliases_for): Likewise.
3652 * tree-ssa-operands.c (add_virtual_operand): Likewise.
3653 (add_call_clobber_ops): Likewise.
3654 (add_call_read_ops): Likewise.
3655 (get_asm_expr_operands): Likewise.
3656 * tree-into-ssa.c (dump_decl_set): Likewise.
3657 (update_ssa): Likewise.
3658 * tree-sra.c (scan_function): Likewise.
3659 (decide_instantiations): Likewise.
3660 (scalarize_parms): Likewise.
3661 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
3662 (dsa_named_for): Likewise.
3663 * tree-ssa-structalias.c (update_alias_info): Likewise.
3664 (merge_smts_into): Likewise.
3666 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3669 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
3670 * c-opts.c (c_common_handle_option): Wall enables
3671 Wvolatile-register-var.
3672 * common.opt: Move Wvolatile-register-var to...
3675 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3677 * common.opt (Wlarger-than=): New.
3678 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
3680 * opts.c (common_handle_option): Handle -Wlarger-than=.
3681 * optc-gen.awk: Likewise.
3682 * opth-gen.awk: Likewise.
3683 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
3684 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3686 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3688 * c-common.c (match_case_to_enum_1): Add appropriate
3689 OPT_W* parameter to warning.
3690 (c_do_switch_warnings): Likewise.
3691 * c-typeck.c (warning_init): Add one more parameter following
3693 (push_init_level): Update call to warning_init.
3694 (pop_init_level): Likewise.
3695 (add_pending_init): Likewise.
3696 (output_init_element: Likewise.
3698 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3701 * toplev.c (toplev_main): If there are warnings or error, print
3702 errors for ignored options.
3703 * opts.c (ignored_options): New static variable.
3704 (postpone_unknown_option_error): New.
3705 (print_ignored_options): New.
3706 (handle_option): Postpone errors for unknown -Wno-* options.
3707 * opts.h (print_ignored_options): Declare.
3709 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
3711 * config/mips/mips.md (loadgp_blockage, blockage): Change type
3714 2008-02-25 Richard Guenther <rguenther@suse.de>
3717 2008-02-25 Richard Guenther <rguenther@suse.de>
3719 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
3720 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
3721 (lookup_decl_from_uid): Declare.
3722 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
3723 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
3724 (decl_for_uid_map): New global hashtable mapping DECL_UID
3726 (init_ttree): Allocate it.
3727 (insert_decl_to_uid_decl_map): New helper function.
3728 (make_node_stat): Insert new decls into the map.
3729 (copy_node_stat): Likewise.
3730 (lookup_decl_from_uid): New function.
3731 (print_decl_for_uid_map_statistics): New helper.
3732 (dump_tree_statistics): Call it.
3734 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
3735 (referenced_var_iterator): Adjust.
3736 (FOR_EACH_REFERENCED_VAR): Adjust.
3737 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
3738 (num_referenced_vars): Adjust.
3739 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
3740 (first_referenced_var): Remove.
3741 (end_referenced_vars_p): Likewise.
3742 (next_referenced_var): Likewise.
3743 (referenced_var_iterator_set): New helper function.
3744 * tree-dfa.c (referenced_var_lookup): Adjust.
3745 (referenced_var_check_and_insert): Likewise.
3746 (remove_referenced_var): Likewise.
3747 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
3748 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3749 (verify_call_clobbering): Likewise.
3750 (verify_memory_partitions): Likewise.
3751 (init_tree_ssa): Allocate bitmap instead of hashtable for
3753 (delete_tree_ssa): Adjust.
3754 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
3755 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3756 (compute_tag_properties): Likewise.
3757 (set_initial_properties): Likewise.
3758 (find_partition_for): Likewise.
3759 (update_reference_counts): Likewise.
3760 (dump_may_aliases_for): Likewise.
3761 * tree-ssa-operands.c (add_virtual_operand): Likewise.
3762 (add_call_clobber_ops): Likewise.
3763 (add_call_read_ops): Likewise.
3764 (get_asm_expr_operands): Likewise.
3765 * tree-into-ssa.c (dump_decl_set): Likewise.
3766 (update_ssa): Likewise.
3767 * tree-sra.c (scan_function): Likewise.
3768 (decide_instantiations): Likewise.
3769 (scalarize_parms): Likewise.
3770 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
3771 (dsa_named_for): Likewise.
3772 * tree-ssa-structalias.c (update_alias_info): Likewise.
3773 (merge_smts_into): Likewise.
3775 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
3778 * doc/invoke.texi (-fcx-limited-range): Document new option.
3779 * toplev.c (process_options): Handle -fcx-fortran-rules.
3780 * common.opt: Add documentation for -fcx-fortran-rules.
3782 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
3785 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
3786 actual behaviour and C99.
3788 2008-02-26 Ben Elliston <bje@au.ibm.com>
3790 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
3791 (ASM_CPU_POWER6_SPEC): Likewise.
3792 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
3793 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
3794 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
3796 2008-02-25 Richard Guenther <rguenther@suse.de>
3798 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
3799 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
3800 (lookup_decl_from_uid): Declare.
3801 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
3802 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
3803 (decl_for_uid_map): New global hashtable mapping DECL_UID
3805 (init_ttree): Allocate it.
3806 (insert_decl_to_uid_decl_map): New helper function.
3807 (make_node_stat): Insert new decls into the map.
3808 (copy_node_stat): Likewise.
3809 (lookup_decl_from_uid): New function.
3810 (print_decl_for_uid_map_statistics): New helper.
3811 (dump_tree_statistics): Call it.
3813 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
3814 (referenced_var_iterator): Adjust.
3815 (FOR_EACH_REFERENCED_VAR): Adjust.
3816 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
3817 (num_referenced_vars): Adjust.
3818 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
3819 (first_referenced_var): Remove.
3820 (end_referenced_vars_p): Likewise.
3821 (next_referenced_var): Likewise.
3822 (referenced_var_iterator_set): New helper function.
3823 * tree-dfa.c (referenced_var_lookup): Adjust.
3824 (referenced_var_check_and_insert): Likewise.
3825 (remove_referenced_var): Likewise.
3826 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
3827 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3828 (verify_call_clobbering): Likewise.
3829 (verify_memory_partitions): Likewise.
3830 (init_tree_ssa): Allocate bitmap instead of hashtable for
3832 (delete_tree_ssa): Adjust.
3833 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
3834 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3835 (compute_tag_properties): Likewise.
3836 (set_initial_properties): Likewise.
3837 (find_partition_for): Likewise.
3838 (update_reference_counts): Likewise.
3839 (dump_may_aliases_for): Likewise.
3840 * tree-ssa-operands.c (add_virtual_operand): Likewise.
3841 (add_call_clobber_ops): Likewise.
3842 (add_call_read_ops): Likewise.
3843 (get_asm_expr_operands): Likewise.
3844 * tree-into-ssa.c (dump_decl_set): Likewise.
3845 (update_ssa): Likewise.
3846 * tree-sra.c (scan_function): Likewise.
3847 (decide_instantiations): Likewise.
3848 (scalarize_parms): Likewise.
3849 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
3850 (dsa_named_for): Likewise.
3851 * tree-ssa-structalias.c (update_alias_info): Likewise.
3852 (merge_smts_into): Likewise.
3854 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
3857 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
3858 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
3859 * alias.h (nonoverlapping_memrefs_p): Likewise.
3861 2008-02-25 Jan Beulich <jbeulich@novell.com>
3863 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
3864 * config/i386/netware-libgcc.exp: Add __bswap?i2,
3865 __emultls_get_address, __emultls_register_common,
3866 __floatundi?f, and _Unwind_GetIPInfo.
3867 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
3868 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
3869 (gen_regparm_prefix): Likewise.
3870 (i386_nlm_encode_section_info): Sync with
3871 config/i386/winnt.c:i386_pe_encode_section_info().
3872 (i386_nlm_maybe_mangle_decl_assembler_name): New.
3873 i386_nlm_mangle_decl_assembler_name): New.
3874 (netware_override_options): New.
3875 * config/i386/netware.h (netware_override_options): Declare.
3876 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
3877 (i386_nlm_mangle_decl_assembler_name): Declare.
3878 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
3880 2008-02-25 Ben Elliston <bje@au.ibm.com>
3883 * c-decl.c (grokdeclarator): Remove unused local variables
3884 `typedef_type' and `type_as_written'.
3886 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
3887 unused local variable `has_hot_blocks'.
3888 (fix_crossing_conditional_branches): Remove unused local variable
3891 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
3894 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
3895 using DEF_C99_BUILTIN.
3896 (BUILT_IN_NANF): Ditto.
3897 (BUILT_IN_NANL): Ditto.
3899 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
3900 Revital Eres <eres@il.ibm.com>
3902 * modulo-sched.c (calculate_must_precede_follow): Address TODO
3903 regarding the order of two dependent insns in the same row.
3905 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
3907 * stor-layout.c (layout_decl): Do not bump the alignment of a
3908 bit-field to more than byte alignment if it is packed.
3910 2008-02-24 David Edelsohn <edelsohn@gnu.org>
3912 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
3915 2008-02-24 Diego Novillo <dnovillo@google.com>
3917 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
3920 * tree-vrp.c (vrp_evaluate_conditional): With
3921 -Wtype-limits, emit a warning when comparing against a
3922 constant outside the natural range of OP0's type.
3923 * c.opt (Wtype-limits): Move ...
3924 * common.opt (Wtype-limits): ... here.
3926 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
3928 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
3929 * config/rs6000/e300c2c3.md: New file.
3930 * config/rs6000/rs6000.c (processor_costs): Add new costs for
3932 (rs6000_override_options): Add e300c2 and e300c3 cases to
3933 processor_target_table. Do not allow usage of Altivec or Spe
3934 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
3935 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
3936 * config/rs6000/rs6000.h (processor_type): Add
3937 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
3938 (ASM_CPU_SPEC): Add e300c2 and e300c3.
3939 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
3940 and ppce300c3. Include e300c2c3.md.
3942 2008-02-23 David Edelsohn <edelsohn@gnu.org>
3944 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
3945 instead of TARGET_STRICT_ALIGN.
3947 2008-02-23 Joseph Myers <joseph@codesourcery.com>
3949 * explow.c (memory_address): Assert that the generated address is
3952 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3955 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
3956 * config/darwin-ppc-ldouble-patch.def: New file.
3957 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
3958 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
3959 SUBTARGET_INIT_BUILTINS if defined.
3960 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
3963 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
3966 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
3967 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
3969 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
3972 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
3973 file" warning condtional on -Winvalid-PCH.
3975 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
3977 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
3979 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
3983 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
3984 prevent reload from using MMX registers.
3985 (*mov<mode>_internal): Ditto.
3986 (*movv2sf_internal_rex64): Ditto.
3987 (*movv2sf_internal): Ditto.
3989 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3991 PR documentation/31569
3992 * doc/install.texi2html: Use makeinfo --no-number-sections.
3994 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
3996 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
3997 ensure that we can address an entire entity > 8 bytes. Don't
3998 generate reg+reg addressing for such data.
4000 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
4002 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
4003 strings when optimizing for size, unless the target cares about
4006 2008-02-22 Tom Tromey <tromey@redhat.com>
4008 * regclass.c (current_pass): Remove declaration.
4010 2008-02-22 Anatoly Sokolov <aesok@post.ru>
4012 * config/avr/libgcc.S (__RAMPZ__): Define.
4013 (__do_copy_data): Add for devices with 128KB code memory.
4015 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
4017 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
4019 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
4021 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
4023 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
4026 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4029 * c-typeck.c (build_binary_op): Warn about floating point
4030 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
4032 2008-02-21 Janis Johnson <janis187@us.ibm.com>
4035 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
4036 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
4038 (rs6000_override_options): Set altivec_abi as default, not override,
4039 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
4040 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
4041 is used; use new member spe_abi.
4042 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
4043 spe_abi and altivec_abi.
4045 2008-02-22 Tomas Bily <tbily@suse.cz>
4047 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
4049 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4052 * config.build (build_file_translate): Set to `CMD //c' only if
4054 * Makefile.in (build_file_translate): Improve comment.
4056 2008-02-21 Jan Hubicka <jh@suse.cz>
4058 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
4059 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
4060 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
4062 2008-02-21 Michael Matz <matz@suse.de>
4065 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
4067 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
4069 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
4070 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
4072 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
4073 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
4074 SSE_VEC_FLOAT_MODE_P as insn constraint.
4075 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
4076 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
4077 sse4a_movntdf using MODEF mode iterator.
4078 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
4079 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
4080 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
4081 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
4082 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
4083 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
4084 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
4086 2008-02-21 Richard Guenther <rguenther@suse.de>
4088 * tree.def (PAREN_EXPR): New tree code.
4089 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
4091 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
4092 * expr.c (expand_expr_real_1): Likewise.
4093 * tree-inline.c (estimate_num_insns_1): Likewise.
4094 * tree-complex.c (expand_complex_move): Likewise.
4095 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
4098 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
4101 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
4103 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
4106 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
4108 * config/sh/sh.c (find_barrier): Don't go past
4109 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
4111 2008-02-20 DJ Delorie <dj@redhat.com>
4113 * config/h8300/h8300.md (insv): Force source operand to be a register.
4115 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
4116 as a jump, not as a plain insn.
4118 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
4120 * doc/invoke.texi (Warning Options): Add new option
4121 -Wframe-larger-than=.
4122 (-Wframe-larger-than): Document.
4124 * flags.h (warn_frame_larger_than, frame_larger_than_size):
4125 Add declarations for new option variables.
4127 * final.c (final_start_function): Check the frame size
4128 before emission and issue a Wframe-larger-than warning.
4130 * opts.c (warn_frame_larger_than, frame_larger_than_size):
4131 Add definitions for new option variables.
4132 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
4134 * common.opt (Wframe-larger-than=): New option.
4136 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
4138 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
4139 (<sse>_div<mode>3): Ditto.
4140 (<sse>_vmdiv<mode>3): Ditto.
4141 (<sse>_vmsqrt<mode>2): Ditto.
4142 (*smax<mode>3): Ditto.
4143 (sse5_frcz<mode>2): Ditto.
4144 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
4147 2008-02-20 Richard Guenther <rguenther@suse.de>
4150 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
4151 be happy with INTEGRAL_TYPE_P.
4153 2008-02-20 Richard Guenther <rguenther@suse.de>
4155 * fold-const.c (split_tree): Associate floatig-point expressions
4156 if flag_associative_math is set.
4158 2008-02-20 Richard Guenther <rguenther@suse.de>
4160 * tree.h (fold_real_zero_addition_p): Declare.
4161 * fold-const.c (fold_real_zero_addition_p): Export.
4162 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
4163 floating-point operations with zero and one.
4165 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
4167 * doc/install.texi: Correct references to CFLAGS, replacing them
4168 with BOOT_CFLAGS. Document flags used during bootstrap for
4171 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
4173 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
4174 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
4175 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
4177 (smin<mode>3): Ditto from similar patterns.
4178 (smax<mode>3): Ditto.
4179 (*ieee_smin<mode>3): Ditto.
4180 (*ieee_smax<mode>3): Ditto.
4181 * config/i386/sse.md (sse): New mode attribute.
4182 (mov<mode>): Macroize expander from movv4sf and movv2df using
4183 SSEMODEF2P mode iterator.
4184 (<sse>_movnt<mode>): Ditto from similar patterns. Use
4185 SSE_VEC_FLOAT_MODE_P as insn constraint.
4186 (storent<mode>): Ditto.
4187 (storent<mode>): Macroize expander from storentsf and storentdf using
4188 MODEF mode iterator.
4189 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
4190 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
4191 (abs<mode>2): Ditto from similar patterns.
4192 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
4193 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
4194 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
4195 (<sse>_vmsqrt<mode>2): Ditto.
4196 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
4197 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
4198 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
4199 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
4200 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
4201 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
4202 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
4204 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
4205 iterator and SSE_FLOAT_MODE_P as insn constraint.
4206 (<sse>_ucomi): Ditto from similar patterns.
4207 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
4208 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
4209 SSE_VEC_FLOAT_MODE_P as insn constraint.
4210 (vcond<mode>): Ditto from similar patterns.
4211 (and<mode>3, *and<mode>3): Ditto.
4212 (<sse>_nand<mode>3): Ditto.
4213 (ior<mode>3, *ior<mode>3): Ditto.
4214 (xor<mode>3, *xor<mode>3): Ditto.
4215 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
4216 iterator and SSE_FLOAT_MODE_P as insn constraint.
4217 (*nand<mode>3): Ditto from similar patterns.
4218 (*ior<mode>3): Ditto.
4219 (*xor<mode>3): Ditto.
4221 2008-02-20 Ira Rosen <irar@il.ibm.com>
4223 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
4224 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
4225 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
4227 2008-02-19 Jan Hubicka <jh@suse.cz>
4229 * predict.c (tree_bb_level_predictions): Remove variable next
4230 mistakely introduced by previous commit.
4232 2008-02-19 Jan Hubicka <jh@suse.cz>
4234 * predict.c (predict_paths_leading_to): Rewrite.
4235 (predict_paths_for_bb): New.
4236 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
4238 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4241 * Makefile.in (build_file_translate): New.
4242 (gcc-vers.texi): Use it for translating $(abs_srcdir).
4243 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
4244 * configure.ac (build_file_translate): Substitute it.
4245 * configure: Regenerate.
4247 2008-02-19 Jan Hubicka <jh@suse.cz>
4249 PR rtl-optimization/34408
4250 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
4253 2008-02-19 Jan Hubicka <jh@suse.cz>
4256 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
4259 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
4262 * config/i386/i386-modes.def: Revert the last DI alignment
4263 change until Ada people can look into it.
4265 2008-02-19 Nick Clifton <nickc@redhat.com>
4267 * opts.c (print_specific_help): Fix typo in --help text.
4269 2008-02-19 Jakub Jelinek <jakub@redhat.com>
4272 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
4273 32-bit inline asm without asm alternatives for host GCC < 3.0.
4275 2008-02-19 Richard Guenther <rguenther@suse.de>
4277 PR tree-optimization/34989
4278 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
4279 Allow propagation to INDIRECT_REF if we can simplify only.
4281 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4283 * c-common.c (warn_for_collisions_1): Use appropriate option when
4286 2008-02-19 Nick Clifton <nickc@redhat.com>
4289 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
4290 (handle_options): Fix indentation.
4291 (print_filtered_help): If no language-specific options were
4292 displayed tell the user how to list all the options supported by
4293 the language's front-end.
4294 (print_specific_help): Fix indentation and remove duplicate line.
4295 (common_handle_option): Handle the -v option.
4296 For --help enable the display of undocumented options if the -v
4297 switch has been included on the command line.
4298 For --help= check for overlaps in the arguments between the option
4299 classes and the language names and issue a warning when they
4300 cannot be disambiguated.
4301 * c.opt (v): Pass on to the common option handler.
4303 2008-02-19 Revital Eres <eres@il.ibm.com>
4305 * modulo-sched.c (sms_schedule): Change dump message when
4306 create_ddg function fails.
4307 (try_scheduling_node_in_cycle): Rename row to cycle.
4308 (print_partial_schedule): Rename CYCLE to ROW.
4310 2008-02-19 Christian Bruel <christian.bruel@st.com>
4311 Zdenek Dvorak <ook@ucw.cz>
4313 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
4315 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
4318 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
4319 (*x86_movdicc_0_m1_se): Ditto.
4321 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
4323 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
4324 (CMPtype): Define as __gcc_CMPtype.
4325 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
4326 (CMPtype): Define as __gcc_CMPtype.
4328 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
4330 Support valgrind 3.3 for --enable-checking=valgrind.
4331 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
4333 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
4334 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
4335 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
4336 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
4337 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
4338 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
4339 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
4341 * ggc-zone.c: Similar.
4342 * ggc-page.c: Similar.
4344 2008-02-19 Paul Brook <paul@codesourcery.com>
4347 * config/arm/ieee754-df.S: Fix do_it typo.
4348 * config/arm/ieee754-sf.S: Fix do_it typo.
4350 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
4353 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
4354 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
4355 (OPTION_MASK_ISA_SSE_SET): Likewise.
4356 (OPTION_MASK_ISA_SSE2_SET): Likewise.
4357 (OPTION_MASK_ISA_SSE3_SET): Likewise.
4358 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
4359 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
4360 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
4361 (OPTION_MASK_ISA_SSE4_SET): Likewise.
4362 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
4363 (OPTION_MASK_ISA_SSE5_SET): Likewise.
4364 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
4365 (OPTION_MASK_ISA_MMX_UNSET): Updated.
4366 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
4367 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
4368 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
4369 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
4370 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
4371 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
4372 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
4373 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
4374 (OPTION_MASK_ISA_SSE4): Removed.
4375 (ix86_handle_option): Turn on bits in ix86_isa_flags and
4376 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
4377 (override_options): Don't turn on implied SSE/MMX bits in
4380 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
4382 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
4385 2008-02-18 Joey Ye <joey.ye@intel.com>
4388 * tree-nested.c (insert_field_into_struct): Set type alignment
4389 to field alignment if the former is less than the latter.
4391 2008-02-18 Jakub Jelinek <jakub@redhat.com>
4393 * BASE-VER: Set to 4.4.0.
4395 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4397 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
4398 * doc/cfg.texi: Likewise.
4399 * doc/extend.texi: Likewise.
4400 * doc/gty.texi: Likewise.
4401 * doc/invoke.texi: Likewise.
4402 * doc/loop.texi: Likewise.
4403 * doc/md.texi: Likewise.
4404 * doc/passes.texi: Likewise.
4405 * doc/rtl.texi: Likewise.
4406 * doc/sourcebuild.texi: Likewise.
4407 * doc/tm.texi: Likewise.
4408 * doc/tree-ssa.texi: Likewise.
4410 2008-02-17 Richard Guenther <rguenther@suse.de>
4413 * tree-complex.c (init_parameter_lattice_values): Handle parameters
4414 without default definition.
4416 2008-02-17 Richard Guenther <rguenther@suse.de>
4418 PR tree-optimization/35231
4419 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
4422 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
4425 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
4426 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
4427 libgcc_cmp_return mode.
4429 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4432 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
4434 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
4436 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
4439 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4441 * doc/c-tree.texi: Use `@.' where appropriate.
4442 * doc/extend.texi: Likewise.
4443 * doc/install.texi: Likewise.
4444 * doc/invoke.texi: Likewise.
4445 * doc/loop.texi: Likewise.
4446 * doc/makefile.texi: Likewise.
4447 * doc/md.texi: Likewise.
4448 * doc/passes.texi: Likewise.
4449 * doc/standards.texi: Likewise.
4450 * doc/tm.texi: Likewise.
4452 2008-02-15 Jakub Jelinek <jakub@redhat.com>
4455 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
4457 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
4458 rather than in entry_bb.
4460 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
4462 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
4463 libgcc_cmp_return mode.
4465 2008-02-15 Jakub Jelinek <jakub@redhat.com>
4468 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
4469 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
4471 2008-02-15 Richard Guenther <rguenther@suse.de>
4472 Zdenek Dvorak <ook@ucw.cz>
4474 PR tree-optimization/35164
4475 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
4476 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
4477 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
4478 Only propagate addresses which do not have abnormal SSA_NAMEs
4481 2008-02-15 Joseph Myers <joseph@codesourcery.com>
4484 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
4486 2008-02-15 Jan Hubicka <jh@suse.cz>
4489 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
4491 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
4494 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
4495 when calculating alignment_pad.
4497 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
4499 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
4500 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
4501 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
4502 and STACK_BOUNDARY define.
4504 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
4506 PR preprocessor/35061
4507 * c-pragma.c (handle_pragma_pop_macro): Check that
4508 pushed_macro_table has been allocated.
4510 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
4513 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
4514 (force_gimple_operand): Likewise.
4515 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
4516 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
4517 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
4518 (find_interesting_uses_address): Check addressability and alignment
4519 of the base expression only after substituting bases of IVs into it.
4521 2008-02-14 Michael Matz <matz@suse.de>
4524 * function.c (instantiate_virtual_regs_in_insn): Reload address
4525 before falling back to reloading the whole operand.
4527 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
4529 * config/s390/s390.c (s390_mainpool_start): Emit the pool
4530 before the first section switch note.
4532 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4534 * doc/bugreport.texi: Update copyright years.
4535 * doc/c-tree.texi: Likewise.
4536 * doc/cfg.texi: Likewise.
4537 * doc/cpp.texi: Likewise.
4538 * doc/cppinternals.texi: Likewise.
4539 * doc/fragments.texi: Likewise.
4540 * doc/frontends.texi: Likewise.
4541 * doc/gcc.texi: Likewise.
4542 * doc/gty.texi: Likewise.
4543 * doc/hostconfig.texi: Likewise.
4544 * doc/implement-c.texi: Likewise.
4545 * doc/libgcc.texi: Likewise.
4546 * doc/loop.texi: Likewise.
4547 * doc/makefile.texi: Likewise.
4548 * doc/options.texi: Likewise.
4549 * doc/passes.texi: Likewise.
4550 * doc/rtl.texi: Likewise.
4551 * doc/sourcebuild.texi: Likewise.
4552 * doc/standards.texi: Likewise.
4553 * doc/tree-ssa.texi: Likewise.
4554 * doc/trouble.texi: Likewise.
4556 * doc/extend.texi: Use @: or add comma where appropriate.
4557 * doc/invoke.texi: Likewise.
4558 * doc/tm.texi: Likewise.
4560 2008-02-14 Alan Modra <amodra@bigpond.net.au>
4563 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
4566 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
4568 * doc/md.texi (clz, ctz): Add reference.
4569 * doc/rtl.texi (clz, ctz): Likewise.
4571 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4574 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
4577 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
4579 * config/s390/s390.c (struct constant_pool): New field
4580 emit_pool_after added.
4581 (s390_mainpool_start): Set the emit_pool_after flag according
4582 to the section switch notes.
4583 (s390_mainpool_finish): Consider emit_pool_after when emitting
4584 the literal pool at the end of the function.
4585 (s390_chunkify_start): Force literal pool splits at section
4588 2008-02-13 Michael Matz <matz@suse.de>
4591 * var-tracking.c (clobber_variable_part): Correctly traverse the
4594 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4597 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
4598 Add -fdump-ipa-inline.
4599 * tree-dump.c (dump_files): Remove tree-inlined dump.
4600 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
4602 2008-02-12 Richard Guenther <rguenther@suse.de>
4604 PR tree-optimization/35171
4605 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
4608 2008-02-12 Richard Guenther <rguenther@suse.de>
4611 * fold-const.c (fold_widened_comparison): Use get_unwidened in
4612 value-preserving mode. Disallow final truncation.
4614 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
4617 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
4618 code from here to...
4619 (force_gimple_operand): ...here.
4621 2008-02-12 Jakub Jelinek <jakub@redhat.com>
4624 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
4625 non-compatible pointers.
4626 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
4627 different FIELD_DECLs, try harder by comparing field offsets, sizes
4631 * function.c (match_asm_constraints_1): Don't replace the same input
4634 2008-02-12 Anatoly Sokolov <aesok@post.ru>
4636 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
4637 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
4638 (expand_epilogue): Restore RAMPZ register.
4639 * config/avr/avr.md (RAMPZ_ADDR): New constant.
4641 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
4643 * config/i386/cygwin.asm: (__alloca): Correct calling
4644 convention and alignment.
4645 (__chkstk): Force 8 byte stack alignment.
4647 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
4648 Richard Guenther <rguenther@suse.de>
4650 PR tree-optimization/33992
4651 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
4652 the zero we compare against.
4654 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4657 * gthr-win32.h (__gthread_mutex_destroy_function): New function
4658 to CloseHandle after unlocking to prevent accumulation of handle
4661 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4664 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
4665 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
4666 and update LABEL_NUSES during and after reload.
4668 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
4671 * combine.c (simplify_if_then_else): Make sure the comparison is
4672 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
4674 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
4677 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
4678 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
4679 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
4680 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
4681 * tree.h (get_type_static_bounds): Likewise.
4683 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4685 * doc/invoke.texi (Option Summary, C++ Dialect Options)
4686 (Objective-C and Objective-C++ Dialect Options, Warning Options):
4687 Make -Wfoo language annotations match what the compiler outputs.
4689 2008-02-08 Sa Liu <saliu@de.ibm.com>
4691 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
4692 intrinsics spu_convts, spu_convtu, spu_convtf.
4693 * testsuite/gcc.target/spu/intrinsics-3.c: New. Test error messages.
4695 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
4697 * doc/extend.texi (Function Attributes) <noinline>: Mention
4698 asm ("") as method to keep calls.
4700 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4703 * doc/options.texi (Options): Replace references to opts.sh with
4705 * opts-common.c: Likewise.
4706 * optc-gen.awk: Likewise.
4708 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
4710 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
4712 2008-02-07 Richard Henderson <rth@redhat.com>
4715 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
4716 EXPR_LIST for the REG_EQUAL instead of a comparison with a
4719 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
4721 PR tree-optimization/35085
4722 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
4723 for operand entry oe2 in addition to operand entry oe3 in order to
4724 expose more opportunities for vectorizer sum reduction.
4726 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4729 * Makefile.in (LIBS): Remove $(GMPLIBS).
4730 (cc1-dummy, cc1): Add $(GMPLIBS).
4732 2008-02-06 Jan Hubicka <jh@suse.cz>
4735 * i386.md (moddf_integer): Do not produce partial memory stalls for
4736 targets where it hurts.
4738 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
4741 * optabs.c (expand_float): Do not check for decimal modes when
4742 expanding unsigned integer through signed conversion.
4744 2008-02-06 Nick Clifton <nickc@redhat.com>
4746 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
4747 inside the clobber with a match_operand and duplicated operand
4748 number in the constraint.
4749 (ineqbranchsi): Delete redundant comment.
4751 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
4753 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
4754 builtin_define ("__USE_INIT_FINI__").
4755 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
4757 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
4759 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4761 PR documentation/30330
4762 * doc/invoke.texi (C++ Dialect Options)
4763 (Objective-C and Objective-C++ Dialect Options, Warning Options):
4764 For each warning option -Wfoo that allows -Wno-foo, ensure both
4765 -Wfoo and -Wno-foo are listed in the option index. Fix index
4766 entry of -Wswitch-default, index -Wnormalized= including the
4767 `=', and -Wlarger-than-@var{len} including @var{len}.
4769 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
4771 * config/i386/i386.md (floatunssisf2): Use
4772 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
4773 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
4774 Macroize expander using MODEF mode iterator.
4776 2008-02-05 Diego Novillo <dnovillo@google.com>
4778 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
4781 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
4783 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4786 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
4788 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
4791 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
4792 to indicate if a message should be generated.
4793 (init_cumulative_args): Updated.
4794 (function_value_32): Likewise.
4796 2008-02-05 Joseph Myers <joseph@codesourcery.com>
4798 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
4800 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
4803 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
4804 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
4806 2008-02-04 Diego Novillo <dnovillo@google.com>
4808 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
4811 * tree-vrp.c (vrp_evaluate_conditional): With
4812 -Wtype-limits, emit a warning when comparing against a
4813 constant outside the natural range of OP0's type.
4815 2008-02-04 Richard Guenther <rguenther@suse.de>
4818 * expr.c (count_type_elements): Give for unions instead of
4821 2008-02-04 Richard Guenther <rguenther@suse.de>
4824 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
4825 to TYPE_DOMAINs base type instead of using bitsizetype here.
4827 2008-02-03 Jason Merrill <jason@redhat.com>
4829 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
4831 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4834 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
4835 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
4836 (RS/6000 and PowerPC Options): Fix typos and markup.
4837 * doc/passes.texi (Tree-SSA passes): Likewise.
4839 2008-02-02 Michael Matz <matz@suse.de>
4842 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
4843 from record_last_reg_set_info.
4844 (record_last_reg_set_info): Take an RTX argument, iterate over all
4845 constituent hardregs.
4846 (record_last_set_info, record_opr_changes): Change calls to
4847 new signature or to record_last_reg_set_info_regno.
4849 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
4851 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
4853 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
4855 PR rtl-optimization/34773
4856 * reg-notes.def (EQUAL): Mention significance of combination of
4857 REG_EQUAL and REG_RETVAL.
4858 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
4859 insn that has a REG_RETVAL.
4861 2008-02-01 Roger Sayle <roger@eyesopen.com>
4864 * configure.ac (--enable-fixed-point): Disable unless explicitly
4866 * configure: Regenerate.
4868 2008-02-01 Richard Guenther <rguenther@suse.de>
4871 * invoke.texi (-finline-limit): Remove no longer true parts
4872 of the documentation. Note that there is no default value.
4874 2008-02-01 Andrew Pinski <pinskia@gmail.com>
4875 Mark Mitchell <mark@codesourcery.com>
4876 Ben Elliston <bje@au.ibm.com>
4879 * doc/extend.texi (Other Builtins): Document.
4881 2008-01-31 Tom Browder <tom.browder@gmail.com>
4883 * doc/c-tree.texi (Types): Fix grammar.
4884 (Expression trees): Ditto.
4885 * doc/passes.texi (Tree-SSA passes): Ditto.
4887 * doc/configterms.texi (Configure Terms): Fix typo.
4888 * doc/cpp.texi (Common Predefined Macros): Ditto.
4889 * doc/md.texi (Machine Constraints): Ditto.
4891 * doc/makefile.texi (Makefile): Add comma.
4893 2008-01-31 Tom Browder <tom.browder@gmail.com>
4894 Gerald Pfeifer <gerald@pfeifer.com>
4896 * doc/sourcebuild.texi (Front End): Remove references to CVS
4897 and CVSROOT/modules.
4898 (Texinfo Manuals): Replace reference to CVS by one to SVN.
4899 (Back End): Remove reference to CVS.
4901 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
4904 * config/mips/mips.c (gen_load_const_gp): New function, taking a
4906 (mips16_gp_pseudo_reg): ...here.
4907 * config/mips/mips.md (load_const_gp): Replace with...
4908 (load_const_gp_<mode>): ...this :P-based insn.
4910 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4912 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
4913 options. Minor fixes.
4914 (-std): Move reference to standards closer to where language
4915 standards are first mentioned.
4917 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
4919 PR rtl-optimization/34995
4920 * reload.c (alternative_allows_const_pool_ref): Take an rtx
4921 parameter and return a bool. If the rtx parameter is nonnull,
4922 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
4923 (find_reloads): Update call accordingly. Pass the new operand
4924 if it needed no address reloads, otherwise pass null.
4926 2008-01-30 Richard Henderson <rth@redhat.com>
4929 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
4930 for unbounded arrays.
4932 2008-01-30 Silvius Rus <rus@google.com>
4934 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
4936 2008-01-30 Jan Hubicka <jh@suse.cz>
4939 * i386.c (init_cumulative_args): Use real function declaration when
4942 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
4944 PR rtl-optimization/34998
4945 * global.c (build_insn_chain): Treat non-subreg_lowpart
4946 SUBREGs of pseudos as clobbering all the words covered by the
4947 SUBREG, not just all the bytes.
4948 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
4949 original df_ref rather than an extract parameter.
4950 (global_conflicts): Update call accordingly.
4952 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
4954 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
4955 the overflow check to make it easier to read.
4956 (__fixtfdi): Change the type of the ll member in union
4957 long_double to UDItype_x.
4959 2008-01-30 Jakub Jelinek <jakub@redhat.com>
4962 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
4963 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
4964 * tree-inline.c (fold_marked_statements): Call
4965 cgraph_update_edges_for_call_stmt if folding a call statement.
4966 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
4967 debug_generic_stmt calls, reset it back afterwards.
4970 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
4972 * c-typeck.c (build_external_ref): Don't pedwarn about
4973 static vars in current function's scope.
4975 2008-01-29 Joseph Myers <joseph@codesourcery.com>
4977 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
4979 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
4982 * ipa-struct-reorg.c: Fix spelling.
4983 * params.def: Ditto.
4985 2008-01-29 Richard Guenther <rguenther@suse.de>
4988 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
4990 * tree-inline.c (remap_type): Increment remapping_type_depth
4991 around remapping types.
4992 (copy_body_r): Only add referenced variables if they are referenced
4993 from code, not types.
4995 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
5006 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
5007 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
5009 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
5012 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
5013 pointer for tiny stack.
5015 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
5017 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
5019 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
5021 * config/vx-common.h: Fix typo in comment.
5023 2008-01-28 Ian Lance Taylor <iant@google.com>
5027 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
5028 coalesce pointers if they have different DECL_NO_TBAA_P values.
5029 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
5030 between variables with different DECL_NO_TBAA_P values.
5032 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
5035 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
5036 are not legitimate small data references on SPE targets.
5038 2008-01-28 David Daney <ddaney@avtrex.com>
5040 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
5042 2008-01-28 David Daney <ddaney@avtrex.com>
5044 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
5046 2008-01-27 Joseph Myers <joseph@codesourcery.com>
5048 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
5049 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
5050 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
5051 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
5052 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
5053 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
5054 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
5055 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
5057 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
5059 * basic-block.h (condjump_equiv_p): Fix comment.
5061 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
5063 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
5064 print_generic_stmt_indented): Fix comment.
5066 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
5068 * configure.ac (__stack_chk_fail): Add detecion for availability
5069 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
5070 * configure: Regenerate.
5072 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
5075 * final.c (output_addr_const): Handle TRUNCATE.
5077 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
5080 * tree-ssa-loop-ivopts.c (comp_cost): New type.
5081 (zero_cost, infinite_cost): New constants.
5082 (struct cost_pair): Change type of cost to comp_cost.
5083 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
5084 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
5086 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
5087 split_address_cost, ptr_difference_cost, difference_cost,
5088 get_computation_cost_at, get_computation_cost,
5089 determine_use_iv_cost_generic, determine_use_iv_cost_address,
5090 determine_use_iv_cost_condition, determine_use_iv_costs,
5091 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
5092 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
5093 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
5094 Change type of cost to comp_cost.
5095 (determine_iv_cost): Increase cost of non-original ivs, instead
5096 of decreasing the cost of original ones.
5097 (get_address_cost): Indicate the complexity of the addressing mode
5099 (try_add_cand_for): Prefer using ivs not specific to some object.
5100 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
5102 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
5103 Janis Johnson <janis187@us.ibm.com>
5106 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
5107 (TARGET_INSTANTIATE_DECLS): Likewise.
5108 * target.h (expand_to_rtl_hook): New target hook.
5109 (instantiate_decls): Likewise.
5110 * function.c (instantiate_decl): Make non-static. Rename to...
5111 (instantiate_decl_rtl): ... this.
5112 (instantiate_expr): Use instantiate_decl_rtl.
5113 (instantiate_decls_1): Likewise.
5114 (instantiate_decls): Likewise.
5115 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
5116 * function.h (instantiate_decl_rtl): Add prototype.
5117 * cfgexpand.c (target.h): New include.
5118 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
5119 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
5120 (TARGET_INSTANTIATE_DECLS): Likewise.
5121 (TARGET_INITIALIZER): New target hooks added.
5122 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
5124 * config/rs6000/rs6000.c (tree-flow.h): New include.
5125 (machine_function): Add sdmode_stack_slot field.
5126 (rs6000_alloc_sdmode_stack_slot): New function.
5127 (rs6000_instantiate_decls): Likewise.
5128 (rs6000_secondary_memory_needed_rtx): Likewise.
5129 (rs6000_check_sdmode): Likewise.
5130 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
5131 (TARGET_INSTANTIATE_DECLS): Likewise.
5132 (rs6000_hard_regno_mode_ok): Allow SDmode.
5133 (num_insns_constant): Likewise. Handle _Decimal32 constants.
5134 (rs6000_emit_move): Handle SDmode.
5135 (function_arg_advance): Likewise.
5136 (function_arg): Likewise.
5137 (rs6000_gimplify_va_arg): Likewise. Add special handling of
5138 SDmode var args for 32-bit compiles.
5139 (rs6000_secondary_reload_class): Handle SDmode.
5140 (rs6000_output_function_epilogue): Likewise.
5141 (rs6000_function_value): Simplify if statement.
5142 (rs6000_libcall_value): Likewise.
5143 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
5144 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
5145 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
5146 (movsd_hardfloat): New define_insn.
5147 (movsd_softfloat): Likewise.
5148 (movsd_store): Likewise.
5149 (movsd_load): Likewise.
5150 (extendsddd2): Likewise.
5151 (extendsdtd2): Likewise.
5152 (truncddsd2): Likewise.
5153 (movdd_hardfloat64): Fixup comment.
5154 (UNSPEC_MOVSD_LOAD): New constant.
5155 (UNSPEC_MOVSD_STORE): Likewise.
5157 2008-01-26 Jakub Jelinek <jakub@redhat.com>
5160 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
5162 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
5163 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
5164 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
5167 2008-01-26 David Edelsohn <edelsohn@gnu.org>
5170 * config.gcc: Separate AIX 5.3 from AIX 6.1.
5171 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5172 __LONGDOUBLE128 too.
5173 * config/rs6000/aix61.h: New file.
5175 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
5177 PR rtl-optimization/34959
5178 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
5179 popcount and parity rtxes the same mode as their operand.
5180 Truncate or extend the result to the return value's mode
5183 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
5186 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
5187 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
5188 to GOT_VERSION_REGNUM.
5189 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
5190 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
5191 * config/mips/mips.c (mips_emit_call_insn): New function.
5192 (mips_call_tls_get_addr): Call mips_expand_call directly.
5193 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
5195 (mips16_build_call_stub): Likewise. Return the call insn or null.
5196 (mips_expand_call): Update the call to mips16_build_call_stub
5197 accordingly and a remove redundant condition. Assert that MIPS16
5198 stubs do not use lazy binding. Use mips_emit_call_insn and return
5200 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
5202 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
5203 (mips_avoid_hazard): Remove hazard_set handling.
5204 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
5205 (UNSPEC_RESTORE_GP): ...this.
5206 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
5207 (FAKE_CALL_REGNO): Rename to...
5208 (GOT_VERSION_REGNUM): ...this.
5209 (type): Add "ghost" value. Add an associated insn reservation.
5210 (hazard_set): Remove.
5211 (exception_receiver): Rename to...
5212 (restore_gp): ...this and update the unspec identifier accordingly.
5213 (exception_receiver, nonlocal_got_receiver): New expanders.
5214 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
5215 FAKE_CALL_REGNO. Remove hazard_set attribute.
5216 (set_got_version, update_got_version): New patterns.
5218 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
5221 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
5223 2008-01-25 Joseph Myers <joseph@codesourcery.com>
5226 * doc/install.texi2html: Generate gcc-vers.texi.
5228 2008-01-25 DJ Delorie <dj@redhat.com>
5230 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5232 2008-01-25 Joseph Myers <joseph@codesourcery.com>
5234 * config/c4x: Remove directory.
5235 * config.gcc (crx-*, mt-*): Mark obsolete.
5236 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
5237 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
5238 sh-*-rtemscoff*): Remove cases.
5239 * defaults.h (C4X_FLOAT_FORMAT): Remove.
5240 * real.c (encode_c4x_single, decode_c4x_single,
5241 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
5242 c4x_extended_format): Remove.
5243 * real.h (c4x_single_format, c4x_extended_format): Remove.
5244 * doc/extend.texi (interrupt, naked): Remove mention of attributes
5246 (Pragmas): Remove comment about c4x pragmas.
5247 * doc/install.texi (c4x): Remove target-specific instructions.
5248 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
5249 * doc/md.texi (Machine Constraints): Remove C4x documentation.
5250 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
5251 refer to C4x source files as examples.
5252 (C4X_FLOAT_FORMAT): Remove documentation.
5254 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
5256 * config/bfin/bfin.c (override_options): Reorder tests so that
5257 flag_pic gets enabled for -msep-data.
5259 2008-01-25 Richard Guenther <rguenther@suse.de>
5262 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
5263 to its bitfield precision if required.
5265 2008-01-25 Jakub Jelinek <jakub@redhat.com>
5268 * tree-nested.c (walk_omp_for): New function.
5269 (convert_nonlocal_reference, convert_local_reference): Call
5270 walk_omp_for on OMP_FOR.
5271 (convert_call_expr): Call walk_body on OMP_FOR's
5272 OMP_FOR_PRE_INIT_BODY.
5274 2008-01-25 Richard Guenther <rguenther@suse.de>
5276 PR tree-optimization/34966
5277 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
5278 default defs and PHI_NODEs we have to insert after the
5281 2008-01-24 Nick Clifton <nickc@redhat.com>
5283 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
5284 Provide a default definition.
5285 (LIBGCC2_UNITS_PER_WORD): Likewise.
5287 * config/stormy16/stormy16.c: Include df.h for the prototype
5288 for df_regs_ever_live_p.
5289 (xstormy16_expand_builtin_va_start): Convert the stack offset
5290 into a component_ref and then use POINTER_PLUS_EXPR to add it
5291 to the incoming_virtual_args_rtx.
5292 (xstormy16_gimplify_va_arg_expr): Rename to
5293 xstormy16_gimplify_va_arg_expr.
5294 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
5295 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
5296 xstormy16_gimplify_va_arg_expr.
5297 Fix up some formatting issues.
5299 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
5300 Move to predicates.md.
5301 (xs_hi_general_operand): Likewise.
5302 (xs_hi_nonmemory_operand): Likewise.
5303 * config/stormy16/predicates.md:
5304 (xstormy16_carry_plus_operand): New predicate.
5305 (xs_hi_general_operand): New predicate.
5306 (xs_hi_nonmemory_operand): New predicate.
5307 * config/stormy16/stormy16-protos.h:
5308 (xstormy16_carry_plus_operand): Delete prototype.
5309 (xs_hi_general_operand): Likewise.
5310 (xs_hi_nonmemory_operand): Likewise.
5312 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
5313 modifiers as they are no longer needed and they can trigger
5314 reload spill failures.
5316 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
5317 with a match_operand in order to help reload.
5319 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
5320 constraint with 'e' for the 8th alternative as this version of
5321 the mov.w instruction only accepts the lower 8 registers.
5323 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
5326 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
5327 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
5330 2008-01-25 Jakub Jelinek <jakub@redhat.com>
5333 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
5335 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
5337 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
5339 (remove_structure): Update allocations list before removing structure.
5341 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
5343 * ipa-struct-reorg.c (is_safe_cond_expr,
5344 create_new_stmts_for_cond_expr): Use integer_zerop function,
5345 that recognize not only zero-pointer, but zero-integer too.
5347 2008-01-25 Ben Elliston <bje@au.ibm.com>
5350 * fixproto: Escape "." in sed expression that strips leading "./".
5352 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
5355 * gcc.c (SWITCH_OK): Removed.
5356 (SWITCH_LIVE): Changed to bit.
5357 (SWITCH_FALSE): Likewise.
5358 (SWITCH_IGNORE): Likewise.
5359 (switchstr): Change live_cond to unsigned int.
5360 (process_command): Replace SWITCH_OK with 0.
5361 (do_self_spec): Likewise.
5362 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
5363 (give_switch): Likewise.
5364 (used_arg): Likewise.
5365 (do_spec_1): Set the SWITCH_IGNORE bit.
5366 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
5367 bits. Set the SWITCH_LIVE bit.
5369 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
5371 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
5373 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
5375 PR tree-optimization/34472
5376 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
5377 parameter to a "bool *" and set *DATA to false if there is
5378 an unsafe access. Do not delete the structure here.
5379 (check_cond_exprs): Delete it here instead.
5380 (check_cond_exprs, exclude_cold_structs): Do not increase
5381 I when removing a structure.
5383 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
5386 * config/i386/i386.c (ix86_expand_vector_init): Consider only
5387 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
5389 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
5392 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
5393 a fixed vector for stack.
5395 2008-01-24 Ben Elliston <bje@au.ibm.com>
5398 * doc/gcc.texi (Software development): Add a direntry for g++.
5400 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
5402 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
5403 stale and straggling -fforce-addr comments above.
5405 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
5407 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
5408 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
5410 2008-01-23 Michael Matz <matz@suse.de>
5413 * dwarf2out.c (force_type_die): Use modified_type_die instead of
5416 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
5418 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
5421 2008-01-23 Anatoly Sokolov <aesok@post.ru>
5423 * config/avr/avr.c (avr_current_arch): New variable.
5424 (avr_arch_types): Add 'avr31' and 'avr51' entries.
5425 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
5426 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
5427 (avr_override_options): Init 'avr_current_arch'.
5428 (base_arch_s): Move from here...
5429 * config/avr/avr.h (base_arch_s): ... here. Add new members
5430 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
5431 'mega' to 'have_jmp_call'.
5432 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
5433 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
5435 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
5437 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5438 MULTILIB_MATCHES): (Ditto.).
5440 2008-01-23 Richard Guenther <rguenther@suse.de>
5443 * cgraphunit.c (cgraph_reset_node): Always mark the node
5444 not reachable if it is not queued already.
5446 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
5448 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
5449 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
5450 (cputype_selected): New static variable.
5451 (bfin_handle_option): Set it if -mcpu is used.
5452 (override_option): Select default set of workarounds if no cpu type
5453 selected on the command line.
5454 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
5456 From Michael Frysinger <michael.frysinger@analog.com>
5457 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
5458 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
5460 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
5461 for bf547, bf523, bf524, and bf526.
5462 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
5464 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5465 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
5466 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
5467 __ADSPBF547__ and __ADSPBF54x__ for bf547.
5468 * doc/invoke.texi (Blackfin Options): Document that
5469 -mcpu now accept bf547, bf523, bf524, and bf526.
5471 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
5473 PR rtl-optimization/34628
5474 * combine.c (try_combine): Stop and undo after the first combination
5475 if an autoincrement side-effect on the first insn has effectively
5478 2008-01-22 David Edelsohn <edelsohn@gnu.org>
5481 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
5482 Offset addresses are not valid for Altivec or paired float modes.
5484 2008-01-22 Jakub Jelinek <jakub@redhat.com>
5487 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
5488 if DECL_INITIAL (decl) is error_mark_node.
5491 * c-common.c (handle_vector_size_attribute): Only allow
5492 integral, scalar float and fixed point types. Handle OFFSET_TYPE
5493 the same way as pointer, array etc. types.
5494 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
5497 * tree.c (build_type_attribute_qual_variant): Call
5498 build_qualified_type if attributes are equal, but quals are not.
5500 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5503 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
5504 * flags.h (warn_strict_aliasing): Remove.
5505 (warn_strict_overflow): Remove.
5506 * opts.c (warn_strict_aliasing): Remove.
5507 (warn_strict_overflow): Remove.
5508 * c-opts.c (c_common_handle_option): -Wall only sets
5509 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
5510 (c_common_post_options): Give default values to -Wstrict-aliasing
5511 and -Wstrict-overflow if they are uninitialized.
5512 * common.opt (Wstrict-aliasing): Specify Var and Init.
5513 (Wstrict-overflow): Likewise.
5515 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
5517 PR rtl-optimization/26854
5518 PR rtl-optimization/34400
5519 PR rtl-optimization/34884
5520 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
5522 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
5523 (df_rd_bb_info.expanded_lr_out): Deleted
5524 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
5525 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
5526 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
5527 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
5528 Removed code to allocate, initialize or free expanded_lr_out.
5529 (df_rd_bb_local_compute_process_def): Restructured to make more
5531 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
5532 sets if the sets are being trimmed.
5534 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
5537 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
5538 (as_vers): Likewise.
5539 * configure: Regenerated.
5541 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5544 * tree-pass.h (pass_build_alias): New pass.
5545 * tree-ssa-alias.c (gate_build_alias): New.
5546 (pass_build_alias): New.
5547 * passes.c (init_optimization_passes): Add pass_build_alias after
5548 pass_create_structure_vars.
5550 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
5552 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
5553 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
5554 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
5555 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
5556 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
5557 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
5558 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
5559 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
5560 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
5561 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
5562 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
5563 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
5564 * config/s390/s390.md (FP_ALL): New mode iterator.
5565 (_d): New mode attribute.
5566 ("*signbit<mode>2>"): Changed mode of first operand.
5567 ("isinf<mode>2"): Changed mode of first operand.
5568 ("*TDC_insn"): Adaptation for DFP modes.
5570 2008-01-22 Ben Elliston <bje@au.ibm.com>
5572 * tree.c (check_qualified_type): Improve function description.
5574 2008-01-21 Jason Merrill <jason@redhat.com>
5577 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
5578 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
5581 2008-01-21 DJ Delorie <dj@redhat.com>
5583 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
5586 2008-01-21 Richard Guenther <rguenther@suse.de>
5589 * tree-cfg.c (verify_expr): Allow all invariant expressions
5590 instead of just constant class ones as reference argument.
5591 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
5592 like any other constant.
5593 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5595 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
5597 * regmove.c (fixup_match_1): Update call crossed frequencies.
5599 2008-01-21 Richard Guenther <rguenther@suse.de>
5602 * tree-inline.c (setup_one_parameter): Deal with mismatched
5603 types using a VIEW_CONVERT_EXPR.
5605 2008-01-21 Alon Dayan <alond@il.ibm.com>
5606 Olga Golovanevsky <olga@il.ibm.com>
5608 PR tree-optimization/34701
5609 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
5610 when the structure size is not a power of 2.
5612 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5614 * doc/install.texi: Add doc for --enable-checking=df.
5616 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
5618 PR rtl-optimization/34808
5619 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
5621 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
5623 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
5626 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
5628 PR rtl-optimization/26854
5629 PR rtl-optimization/34400
5630 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
5632 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
5633 (df_rd_bb_info.expanded_lr_out): New.
5634 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
5635 * loop_iv.c (iv_analysis_loop_init): Ditto.
5636 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
5637 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
5638 Added code to allocate, initialize or free expanded_lr_out.
5639 (df_rd_bb_local_compute_process_def): Restructured to make
5640 more understandable.
5641 (df_rd_confluence_n): Add code to do nothing with fake edges and
5642 code to no apply invalidate_by_call sets if the sets are being trimmed.
5643 (df_lr_local_finalize): Renamed to df_lr_finalize.
5644 (df_live_local_finalize): Renamed to df_live_finalize.
5646 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
5649 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
5650 deciding whether to use reciprocal instructions.
5652 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
5654 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
5655 dwarf2out_note_section_used if cold_text_section is NULL.
5657 2008-01-19 Jakub Jelinek <jakub@redhat.com>
5659 PR gcov-profile/34610
5660 * tree-cfg.c (make_edges): Mark both outgoing edges from
5661 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
5662 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
5663 from OMP_FOR and OMP_CONTINUE outgoing edges.
5665 * tree-profile.c (tree_profiling): Return early if
5666 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
5668 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
5669 from cfun to child_cfun.
5670 * function.h (struct function): Add after_tree_profile bit.
5672 2008-01-19 Anatoly Sokolov <aesok@post.ru>
5674 * config/avr/avr.S (_exit): Disable interrupt.
5676 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
5677 Steven Bosscher <stevenb.gcc@gmail.com>
5679 PR rtl-optimization/26854
5680 PR rtl-optimization/34400
5681 * df-problems.c (df_live_scratch): New scratch bitmap.
5682 (df_live_alloc): Allocate df_live_scratch when doing df_live.
5683 (df_live_reset): Clear the proper bitmaps.
5684 (df_live_bb_local_compute): Only process the artificial defs once
5685 since the order is not important.
5686 (df_live_init): Init the df_live sets only with the variables
5687 found live by df_lr.
5688 (df_live_transfer_function): Use the df_lr sets to prune the
5689 df_live sets as they are being computed.
5690 (df_live_free): Free df_live_scratch.
5692 2008-01-18 Ian Lance Taylor <iant@google.com>
5694 * common.opt: Add fmerge-debug-strings.
5695 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
5696 flag_merge_debug_strings rather than flag_merge_constants.
5697 * doc/invoke.texi (Option Summary): Mention
5698 -fmerge-debug-strings.
5699 (Debugging Options): Document -fmerge-debug-strings.
5701 2008-01-18 Ian Lance Taylor <iant@google.com>
5704 * tree.h (DECL_IS_OPERATOR_NEW): Define.
5705 (struct tree_function_decl): Add new field operator_new_flag.
5706 * tree-inline.c (expand_call_inline): When inlining a call to
5707 operator new, force the return value to go into a variable, and
5708 set DECL_NO_TBAA_P on that variable.
5709 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
5711 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
5714 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
5715 DWARF2_DEBUGGING_INFO.
5716 (dwarf2out_note_section_used): Ditto. Add prototype.
5717 (have_multiple_function_sections, text_section_used,
5718 cold_text_section_used, *cold_text_sections): Move declarations
5721 2008-01-17 Bob Wilson <bob.wilson@acm.org>
5723 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
5724 field and add signal_ra.
5725 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
5726 assignments to frame state pc. Move end of stack check after
5727 MD_FALLBACK_FRAME_STATE_FOR.
5728 (uw_update_context_1): Use frame state signal_regs if set, instead
5729 of checking signal_frame flag.
5730 (uw_update_context): Use frame state signal_ra if set.
5731 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
5732 * config/xtensa/linux-unwind.h: New file.
5734 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
5736 * modulo-sched.c (get_sched_window): Fix comment typo.
5738 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
5740 PR tree-optimization/34648
5741 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
5743 2008-01-17 Anatoly Sokolov <aesok@post.ru>
5745 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
5746 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
5748 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
5750 PR rtl-optimization/34400
5751 * df-core.c (df_worklist_dataflow_overeager,
5752 df_worklist_dataflow_doublequeue): New functions.
5753 (df_worklist_dataflow): Two different worklist solvers.
5754 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
5757 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
5760 * doc/invoke.texi: Document the dependence on pthread for fopenmp
5761 and ftree-parallelize-loops.
5763 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
5765 PR rtl-optimization/34826
5766 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
5768 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
5770 * global.c (find_reg): Mark the eh regs as used if necessary.
5771 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
5772 * ra.h (struct allocno): no_eh_reg field added. Changed
5773 no_stack_reg type to bitfield.
5775 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
5777 * tree.c (substitute_in_expr): Add missing 'break'.
5779 2008-01-17 Richard Guenther <rguenther@suse.de>
5781 PR tree-optimization/34825
5782 * tree-ssa-math-opts.c (is_division_by): Do not recognize
5783 x / x as division to handle.
5785 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5787 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
5788 "-pthread" is specified.
5789 * pa-hpux11.h (LIB_SPEC): Likewise.
5791 2008-01-16 Janis Johnson <janis187@us.ibm.com>
5792 Peter Bergner <bergner@vnet.ibm.com>
5794 PR rtl-optimization/33796
5795 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
5797 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5799 PR libgfortran/34699
5800 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
5802 * pa-hpux10.h (LINK_SPEC): Likewise.
5803 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
5805 2008-01-16 Richard Guenther <rguenther@suse.de>
5808 * fold-const.c (fold_convert_const_int_from_int): Do not
5809 set overflow if that occured only because of a sign extension
5810 change when converting from/to a sizetype with the same
5811 precision and signedness.
5813 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
5816 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
5817 location address to the correct place. Update copyright year.
5819 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
5821 * lambda-code.c (lambda_transform_legal_p): Handle the case of
5822 no dependences in the dependence_relations vector.
5824 2008-01-16 Jan Hubicka <jh@suse.cz>
5826 PR rtl-optimization/31396
5827 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
5828 * cfg.c (dump_reg_info): Print it.
5829 * regs.h (struct reg_info_t): add freq_calls_crossed.
5830 (REG_FREQ_CALLS_CROSSED): New macro.
5831 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
5832 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
5833 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
5834 regmove_optimize): Update call crossed frequencies.
5835 * local-alloc.c (struct qty): Add freq_calls_crossed.
5836 (alloc_qty): Copute freq_calls_crossed.
5837 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
5838 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
5839 * ra.h (struct allocno): Add freq_calls_crossed.
5841 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
5843 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
5844 libgomp when compiling with ftree-parallelize-loops.
5845 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
5847 2008-01-16 Richard Guenther <rguenther@suse.de>
5849 PR tree-optimization/34769
5850 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
5851 * tree.c (int_cst_value): Instead make this function more
5852 permissive in what it accepts as valid input. Document this
5853 function always sign-extends the value.
5855 2008-01-16 Jakub Jelinek <jakub@redhat.com>
5856 Richard Guenther <rguenther@suse.de>
5859 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
5860 (gimple_fold_indirect_ref_rhs): ... this.
5861 (gimple_fold_indirect_ref): New function with foldings
5862 that preserve lvalueness.
5863 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
5864 * tree-flow.h (gimple_fold_indirect_ref): Declare.
5865 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
5866 to fold an INDIRECT_REF, fall back to the old use of
5867 fold_indirect_ref_1.
5869 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
5871 * tree-data-ref.c (subscript_dependence_tester_1): Call
5872 free_conflict_function.
5873 (compute_self_dependence): Same.
5875 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
5878 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
5879 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
5881 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
5882 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
5883 for DWARF2_UNWIND_INFO targets.
5885 2008-01-16 Richard Guenther <rguenther@suse.de>
5888 * c-typeck.c (common_pointer_type): Do not merge inconsistent
5889 type qualifiers for function types.
5891 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
5893 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
5894 loop_iterator li from previous commit.
5896 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
5898 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
5900 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
5902 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
5903 (parallelize_loops): Don't parallelize irreducible components.
5905 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5908 * c-opts (c_common_post_options): Do not enable CPP
5909 flag_pedantic_errors by default.
5911 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
5913 PR rtl-optimization/31944
5914 * cse.c (remove_pseudo_from_table): New function.
5915 (merge_equiv_classes): Use above function to remove pseudo-registers.
5916 (invalidate): Likewise.
5918 2008-01-13 Richard Guenther <rguenther@suse.de>
5921 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
5922 instead of TYPE_MODE to deal with calls from expand_one_error_var.
5924 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
5926 * gcse.c (cprop_jump): Call validate_unshare_change instead of
5927 validate_change to unshare the source of the PC set.
5929 2008-01-12 Jan Hubicka <jh@suse.cz>
5932 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
5933 references above array bounds. This might trigger bounds checks for
5936 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
5938 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
5939 new_replaceable_dependencies.
5941 2008-01-12 Doug Kwan <dougkwan@google.com>
5943 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
5944 instead of OPT_Wreturn_type in warning due to ignored return type
5946 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
5947 options included in -Wextra.
5948 * c.opt: New option -Wignored_qualifiers.
5949 * doc/invoke.texi (Warning Options, -Wextra): Add new option
5950 -Wignore_qualifiers.
5951 (-Wignored-qualifiers): Document.
5952 (-Wreturn-type): Remove description of functionality now handled
5953 by -Wignored-qualifiers.
5955 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
5958 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
5959 NOP_EXPR if it is between integral types with the same precision.
5961 2008-01-12 Jan Hubicka <jh@suse.cz>
5964 * invoke.texi (max-inline-recursive-depth): Fix default value.
5966 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
5968 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
5971 2008-01-11 Bob Wilson <bob.wilson@acm.org>
5973 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
5975 2008-01-11 James E. Wilson <wilson@specifix.com>
5978 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
5980 2008-01-11 Anatoly Sokolov <aesok@post.ru>
5982 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
5983 save/restore frame pointer register and don't use 'call-prologues'
5984 optimization in function with "OS_task" attribute.
5986 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
5989 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
5990 when copying to memory.
5992 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
5994 PR rtl-optimization/30905
5995 * cfgcleanup.c: Include dce.h
5996 (crossjumps_occured): New global variable.
5997 (try_crossjump_bb): Exit loop after finding a fallthru edge.
5998 If something changed, set crossjumps_occured to true.
5999 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
6000 Don't add/remove fake edges to exit here...
6001 (cleanup_cfg): ...but do it here, when crossjumping.
6002 Run a fast DCE when successful crossjumps occured in the latest
6003 iteration of try_optimize_cfg.
6005 2008-01-11 Richard Guenther <rguenther@suse.de>
6007 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
6008 (struct vn_unary_op_s): Likewise.
6009 (vn_reference_insert): Free old reference on hash collision.
6011 2008-01-10 Raksit Ashok <raksit@google.com>
6013 PR rtl-optimization/27971
6014 * combine.c (find_split_point): Split PLUS expressions which are
6015 inside a MEM rtx, and whose first operand is complex.
6017 2008-01-10 DJ Delorie <dj@redhat.com>
6019 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
6020 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
6021 (m32c_hard_regno_ok): Call the underlying function.
6023 2008-01-10 Richard Guenther <rguenther@suse.de>
6026 * tree-cfg.c (tree_merge_blocks): Do not go through the
6027 full-blown folding and stmt updating path if we just deal
6028 with virtual operands.
6029 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
6030 test for abnormal SSA_NAMEs.
6032 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
6035 * reload.c (push_reload): Add assertions. All constants from
6036 reg_equiv_constant should have been used for replacing the respective
6038 (find_reloads_address): Invoke find_reloads_address_part for
6039 constant taken from the reg_equiv_constant array.
6041 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
6043 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
6044 field (valnum) the first in the struct. Replace bools with
6047 2008-01-10 Richard Guenther <rguenther@suse.de>
6049 PR tree-optimization/34651
6050 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
6051 types and ordering for masking and converting.
6053 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
6055 PR tree-optimization/34017
6056 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
6057 also for PHI_NODE expressions.
6059 2008-01-09 Jan Hubicka <jh@suse.cz>
6061 PR tree-optimization/34708
6062 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
6063 based on number of case labels.
6064 (init_inline_once): Remove switch_cost.
6065 * tree-inline.h (eni_weights_d): Remove switch_cost.
6067 2008-01-09 Richard Guenther <rguenther@suse.de>
6068 Andrew Pinski <andrew_pinski@playstation.sony.com>
6071 * gimplify.c (gimplify_cond_expr): Do not create an addressable
6072 temporary if an rvalue is ok or an lvalue is not required.
6074 2008-01-09 Richard Guenther <rguenther@suse.de>
6077 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
6080 2008-01-09 Richard Guenther <rguenther@suse.de>
6083 * tree.c (host_integerp): Check for sizetype only if the
6084 type is an integer type.
6086 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
6089 * opts.c (decode_options): Disable inlining of functions called
6090 once if not in unit-at-a-time mode.
6092 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
6094 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
6096 2008-01-08 Richard Guenther <rguenther@suse.de>
6099 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
6100 out early if the result will be unused.
6102 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
6107 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
6108 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
6111 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
6113 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
6114 for vectorization tuned.
6116 2008-01-08 Richard Guenther <rguenther@suse.de>
6118 PR tree-optimization/34683
6119 * tree-ssa-operands.c (operand_build_cmp): Export.
6120 * tree-ssa-operands.h (operand_build_cmp): Declare.
6121 * tree-vn.c (vuses_compare): Remove.
6122 (sort_vuses): Use operand_build_cmp.
6123 (sort_vuses_heap): Likewise.
6124 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
6125 to re-use old VEC if available. Do not sort already sorted VUSEs.
6126 (vdefs_to_vec): Do not sort already sorted VDEFs.
6128 2008-01-08 Jakub Jelinek <jakub@redhat.com>
6131 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
6133 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
6136 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
6137 limitations of reciprocal sequences on x86 targets.
6139 2008-01-08 Richard Guenther <rguenther@suse.de>
6141 PR tree-optimization/34683
6142 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
6144 2008-01-07 Jakub Jelinek <jakub@redhat.com>
6147 * config/darwin.c (darwin_mergeable_string_section): Don't use
6148 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
6150 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
6153 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
6154 negxf2. Macroize expander using X87MODEF mode iterator. Change
6155 predicates of op0 and op1 to register_operand.
6156 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
6157 expander using X87MODEF mode iterator. Change predicates of
6158 op0 and op1 to register_operand.
6159 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
6160 corresponding patterns and macroize using MODEF macro. Change
6161 predicates of op0 and op1 to register_operand and remove
6162 "m" constraint. Disparage "r" alternative with "!".
6163 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
6164 macroize using X87MODEF macro. Change predicates of op0 and op1
6165 to register_operand and remove "m" constraint. Disparage "r"
6166 alternative with "!".
6167 (absneg splitter with memory operands): Remove.
6168 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
6169 patterns and macroize using X87MODEF mode iterator.
6170 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
6171 Change predicate of op1 to register_operand.
6172 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
6173 for memory operands.
6175 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
6177 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
6179 2008-01-07 Richard Guenther <rguenther@suse.de>
6181 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
6184 2008-01-07 Richard Guenther <rguenther@suse.de>
6186 PR tree-optimization/34683
6187 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
6188 VOPs of the needed size to save memory. Use VEC_quick_push
6189 to save compile-time.
6190 (vdefs_to_vec): Likewise.
6192 2008-01-07 Sa Liu <saliu@de.ibm.com>
6194 * config/spu/spu.md (divdf3): Genetate inline code for double
6195 division. The implementation doesn't handle INF or NAN, therefore it
6196 only applies when -ffinite-math-only is given.
6198 2008-01-06 Paolo Carlini <pcarlini@suse.de>
6201 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
6202 * doc/cpp.texi ([Common Predefined Macros]): Document.
6204 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
6206 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
6207 order to use commutative addition instead of subtraction.
6209 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
6210 Mircea Namolaru <namolaru@il.ibm.com>
6211 Vladimir Yanovsky <yanov@il.ibm.com>
6212 Revital Eres <eres@il.ibm.com>
6214 PR tree-optimization/34263
6215 * tree-outof-ssa.c (process_single_block_loop_latch,
6216 contains_tree_r): New functions.
6217 (analyze_edges_for_bb): Call process_single_block_loop_latch
6218 function to empty single-basic-block latch block if possible.
6220 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
6222 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
6224 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
6226 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
6228 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
6230 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
6232 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
6234 2008-01-05 Jakub Jelinek <jakub@redhat.com>
6236 PR tree-optimization/34618
6237 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
6240 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
6243 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
6244 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
6245 Update copyright year.
6247 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
6248 Update copyright year.
6249 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
6252 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
6254 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
6255 edge does not point to current bb before changing need_assert.
6257 2008-01-04 Richard Guenther <rguenther@suse.de>
6260 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
6261 for verifying purposes if they are is_gimple_min_invariant.
6263 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
6265 PR tree-optimization/34448
6266 PR tree-optimization/34465
6267 * gimplify.c (gimplify_init_constructor): Add new parameter
6268 notify_temp_creation. Use it.
6269 (gimplify_modify_expr_rhs): Take volatiles into account when
6270 optimizing constructors.
6271 Do not optimize constructors if gimplify_init_constructor will dump to
6273 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
6274 * gcc.c-torture/compile/pr34448.c: New.
6276 2008-01-04 Jakub Jelinek <jakub@redhat.com>
6278 PR gcov-profile/34609
6279 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
6280 return_slot if result is TREE_ADDRESSABLE.
6282 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
6284 * config/mips/mips.md (sqrt_condition): Tweak comment.
6285 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
6287 2008-01-03 Tom Tromey <tromey@redhat.com>
6290 * c-common.c (c_type_hash): Handle VLAs.
6292 2008-01-03 Jan Hubicka <jh@suse.cz>
6294 PR tree-optimization/31081
6295 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
6296 0 when inlining and not inlining to first basic block.
6297 (remap_decl): When var is initialized to 0, don't set default_def.
6298 (expand_call_inline): Set entry_bb.
6299 * tree-inline.h (copy_body_data): Add entry_bb.
6301 2008-01-03 Jakub Jelinek <jakub@redhat.com>
6304 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
6307 PR tree-optimization/29484
6308 * tree-inline.c (inline_forbidden_p_2): New function.
6309 (inline_forbidden_p): Disallow inlining if some static var
6310 has an address of a local LABEL_DECL in its initializer.
6311 * doc/extend.texi (Labels as Values): Document &&foo behaviour
6314 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
6316 PR tree-optimization/34635
6317 * tree-data-ref.c (add_other_self_distances): Make sure that the
6318 evolution step is constant.
6320 2008-01-03 Jakub Jelinek <jakub@redhat.com>
6323 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
6325 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
6327 * tree-sra.c (scalarize_init): Insert the generate_element_init
6328 statements after the generate_element_zero statements.
6330 2008-01-02 Richard Guenther <rguenther@suse.de>
6334 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
6335 for very large number of operands instead of ICEing.
6337 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
6340 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
6341 while stack probing.
6343 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
6345 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
6348 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
6351 * tree-mudflap.c (mx_register_decls): Guard warning by
6352 !DECL_ARTIFICIAL check.
6354 2008-01-01 Jakub Jelinek <jakub@redhat.com>
6356 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
6357 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
6358 sse5_perm<mode>): Fix constraints.