1 2007-05-24 Ollie Wild <aaw@google.com>
3 * doc/cpp.texi (Common Predefined Macros): Add __COUNTER__
6 2007-05-24 Richard Sandiford <rsandifo@nildram.co.uk>
8 * postreload-gcse.c (reg_changed_after_insn_p): New function.
9 (oprs_unchanged_p): Use it to check all registers in a REG.
10 (record_opr_changes): Look for clobbers in CALL_INSN_FUNCTION_USAGE.
11 (reg_set_between_after_reload_p): Delete.
12 (reg_used_between_after_reload_p): Likewise.
13 (reg_set_or_used_since_bb_start): Likewise.
14 (eliminate_partially_redundant_load): Use reg_changed_after_insn_p
15 and reg_used_between_p instead of reg_set_or_used_since_bb_start.
16 Use reg_set_between_p instead of reg_set_between_after_reload_p.
17 * rtlanal.c (reg_set_p): Check whether REG overlaps
18 regs_invalidated_by_call, rather than just checking the
19 membership of REGNO (REG).
21 2007-05-24 Zdenek Dvorak <dvorakz@suse.cz>
23 * doc/passes.texi: Document predictive commoning.
24 * doc/invoke.texi (-fpredictive-commoning): Document.
25 * opts.c (decode_options): Enable flag_predictive_commoning on -O3.
26 * tree-ssa-loop-im.c (get_lsm_tmp_name): Export. Allow
27 adding indices to the generated name.
28 (schedule_sm): Pass 0 to get_lsm_tmp_name.
29 * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Export.
30 * tree-pretty-print.c (op_symbol_1): Renamed to ...
31 (op_symbol_code): ... and exported.
32 (dump_omp_clause, op_symbol): Use op_symbol_code
33 instead of op_symbol_1.
34 * tree-pass.h (pass_predcom): Declare.
35 * timevar.def (TV_PREDCOM): New timevar.
36 * tree-ssa-loop.c (run_tree_predictive_commoning,
37 gate_tree_predictive_commoning, pass_predcom): New.
38 * tree-data-ref.c (find_data_references_in_loop): Find the
39 references in dominance order.
40 (canonicalize_base_object_address): Ensure that the result has
42 (dr_analyze_innermost): Export.
43 (create_data_ref): Code to fail for references with invariant
45 (find_data_references_in_stmt): ... here.
46 * tree-data-ref.h (dr_analyze_innermost): Declare.
47 * tree-affine.c: Include tree-gimple.h and hashtab.h.
48 (aff_combination_find_elt, name_expansion_hash,
49 name_expansion_eq, tree_to_aff_combination_expand,
50 double_int_constant_multiple_p, aff_combination_constant_multiple_p):
52 * tree-affine.h (aff_combination_constant_multiple_p,
53 tree_to_aff_combination_expand): Declare.
54 * tree-predcom.c: New file.
55 * common.opt (fpredictive-commoning): New option.
56 * tree-flow.h (op_symbol_code, tree_predictive_commoning,
57 stmt_dominates_stmt_p, get_lsm_tmp_name): Declare.
58 * Makefile.in (tree-predcom.o): Add.
59 (tree-affine.o): Add TREE_GIMPLE_H dependency.
60 * passes.c (init_optimization_passes): Add dceloop after
61 copy propagation in loop optimizer. Add predictive commoning
62 to loop optimizer passes.
64 2007-05-24 H.J. Lu <hongjiu.lu@intel.com>
66 * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Correct
69 2007-05-24 Jan Hubicka <jh@suse.cz>
71 * gengenrtl.c (gendecl, gendef): Output the gens annotated for
73 (genheader): Include statistics.h.
75 * doc/invoke.texi (-fdump-unnumbered): Update docs when line number
77 * print-rtl.c (flag_dump_unnumbered): Update comments.
78 (print_rtl): Fix my previous change.
79 * emit-rtl.c (emit_note_before, emit_note_after): Clear out note
82 2007-05-24 Zdenek Dvorak <dvorakz@suse.cz>
85 * tree-ssa-threadupdate.c (thread_through_loop_header): Use
87 (thread_through_all_blocks): Call initialize_original_copy_tables
88 and free_original_copy_tables.
89 * cfgloopmanip.c (duplicate_loop, duplicate_loop_to_header_edge):
91 * tree-cfg.c (tree_duplicate_sese_region): Ditto.
92 * cfghooks.c (duplicate_block): Use get_loop_copy.
93 * cfg.c: Include cfgloop.h.
94 (loop_copy): New hash table.
95 (initialize_original_copy_tables): Initialize loop_copy table.
96 (free_original_copy_tables): Free loop_copy table.
97 (copy_original_table_clear, copy_original_table_set,
98 set_loop_copy, get_loop_copy): New functions.
99 (set_bb_original, set_bb_copy): Use copy_original_table_set.
100 * cfgloop.h (struct loop): Remove copy field.
101 * Makefile.in (cfg.o): Add CFGLOOP_H dependency.
102 * basic-block.h (set_loop_copy, get_loop_copy): Declare.
104 2007-05-24 H.J. Lu <hongjiu.lu@intel.com>
106 * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 for
109 2007-05-24 H.J. Lu <hongjiu.lu@intel.com>
111 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Mark
112 __builtin_ia32_vec_set_v2di with MASK_64BIT.
114 2007-05-24 Danny Smith <dannysmith@users.sourceforge.net>
117 * doc/tm.texi (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Document.
118 * targhooks.h (default_mangle_decl_assembler_name): Declare
120 * targhooks.c (default_mangle_decl_assembler_name): Define
122 * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) New. Set to
124 * target.h (struct gcc_target): Add mangle_decl_assembler_name field.
125 * langhooks.c (lhd_set_decl_assembler_name): Call
126 targetm.mangle_decl_assembler_name for names with global scope.
128 * config/i386/cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) Override
130 (ASM_OUTPUT_DEF_FROM_DECLS): Simplify to use DECL_ASSEMBLER_NAME.
131 * config/i386/i386-protos.h (i386_pe_mangle_decl_assembler_name):
133 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
134 New. Factored out of i386_pe_encode_section_info.
135 (gen_stdcall_or_fastcall_suffix): Get name identifier as argument.
136 Move check for prior decoration of stdcall
137 symbols to i386_pe_encode_section_info.
138 (i386_pe_encode_section_info): Adjust call to
139 gen_stdcall_or_fastcall_suffix. Use
140 i386_pe_maybe_mangle_decl_assembler_name, if needed.
141 (i386_pe_mangle_decl_assembler_name): New. Wrap
142 i386_pe_maybe_mangle_decl_assembler_name.
144 2007-05-16 Rafael Avila de Espindola <espindola@google.com>
146 * c-common.c (c_common_signed_or_unsigned_type): Delay the check for
147 INTEGRAL_TYPE_P and TYPE_UNSIGNED.
148 * langhooks.c (get_signed_or_unsigned_type): Don't check for
149 INTEGRAL_TYPE_P or TYPE_UNSIGNED.
150 (lhd_signed_or_unsigned_type): Check for INTEGRAL_TYPE_P and
153 2007-05-23 Sandra Loosemore <sandra@codesourcery.com>
154 Nigel Stephens <nigel@mips.com>
155 Richard Sandiford <richard@codesourcery.com>
157 Fix up MIPS16 hard float and add support for complex.
159 * config/mips/mips.h (TARGET_HARD_FLOAT_ABI): New.
160 (TARGET_SOFT_FLOAT_ABI): New.
161 (TARGET_CPU_CPP_BUILTINS): Define __mips_hard_float and
162 __mips_soft_float to reflect the ABI in use, not whether the
163 FPU is directly accessible (e.g., in MIPS16 mode).
164 (UNITS_PER_HWFPVALUE): Use TARGET_SOFT_FLOAT_ABI.
165 (UNITS_PER_FPVALUE): Likewise.
167 * config/mips/mips.c (mips_expand_call): Remove redundant
169 (mips_arg_regno): New.
170 (function_arg_advance): When setting bits in cum->fp_code for
171 MIPS16, don't subtract 1 from cum->arg_number, since it is now
173 (function_arg): Use mips_arg_regno.
174 (mips_return_mode_in_fpr_p): New.
175 (mips16_call_stub_mode_suffix): New.
176 (mips16_cfun_returns_in_fpr_p): New.
177 (mips_save_reg_p): Use mips16_cfun_returns_in_fpr_p.
178 (mips_output_function_prologue): Test mips16_hard_float, not
179 !TARGET_SOFT_FLOAT, to decide when a function stub is required.
180 (mips_expand_epilogue): Call MIPS16 helper routines to copy
181 return value into a floating-point register.
182 (mips_can_use_return_insn): Use mips16_cfun_returns_in_fpr_p.
183 (mips_function_value): Rewrite to use mips_return_mode_in_fpr_p.
184 (mips16_fp_args): Handle MIPS32r2 ISA which supports
185 TARGET_FLOAT64, and use mfhc1/mthc1 to copy the most significant
186 word of double arguments from or to the high bits of 64-bit
187 floating point registers.
188 (build_mips16_function_stub): Fill in DECL_RESULT for stubdecl.
189 (mips16_fpret_double): New helper function.
190 (build_mips16_call_stub): Use mips16_return_mode_in_fpr_p. Add
191 support for complex modes. Fill in DECL_RESULT for stubdecl.
192 (mips_init_libfuncs): Remove redundant TARGET_MIPS16 check.
194 * config/mips/mips16.S
195 (RET, ARG1, ARG2): New.
196 (MERGE_GPRf, MERGE_GPRt): New.
197 (DELAYt, DELAYf): New.
198 (MOVE_SF_BYTE0, MOVE_SI_BYTE0): New.
199 (MOVE_SF_BYTE4, MOVE_SF_BYTE8): New.
200 (MOVE_DF_BYTE0, MOVE_DF_BYTE8): New.
201 (MOVE_SF_RET, MOVE_SC_RET, MOVE_DF_RET, MOVE_DC_RET, MOVE_SI_RET): New.
202 (SFOP): Renamed to...
203 (OPSF3): This, and macro-ified. Updated all uses.
204 (SFOP2): Renamed to...
205 (OPSF2): This, and macro-ified. Updated all uses.
206 (SFCMP): Renamed to...
207 (CMPSF): This, and macro-ified. Updated all uses.
208 (SFREVCMP): Renamed to...
209 (REVCMPSF): This, and macro-ified. Updated all uses.
210 (__mips16_floatsisf, __mips16_fix_truncsfsi): Macro-ified.
211 (LDDBL1, LDDBL2, RETDBL): Deleted.
212 (DFOP): Renamed to...
213 (OPDF3): This, and macro-ified. Updated all uses.
214 (DFOP2): Renamed to...
215 (OPDF2): This, and macro-ified. Updated all uses.
216 (__mips16_extendsfdf2, __mips16_truncdfsf2): Macro-ified.
217 (DFCMP): Renamed to...
218 (CMPDF): This, and macro-ified. Updated all uses.
219 (DFREVCMP): Renamed to...
220 (REVCMPDF): This, and macro-ified. Updated all uses.
221 (__mips16_floatsidf, __mips16_fix_truncdfsi): Macro-ified.
223 (__mips16_ret_sf, __mips16_ret_df): Macro-ified.
224 (__mips16_ret_sc, __mips16_ret_dc): New.
225 (STUB_ARGS_0, STUB_ARGS_1, STUB_ARGS_5, STUB_ARGS_9, STUB_ARGS_2,
226 STUB_ARGS_6, STUB_ARGS_10): New.
227 (CALL_STUB_NO_RET): New.
228 (__mips16_call_stub_1): Macro-ified.
229 (__mips16_call_stub_5): Macro-ified.
230 (__mips16_call_stub_2): Macro-ified.
231 (__mips16_call_stub_6): Macro-ified.
232 (__mips16_call_stub_9): Macro-ified.
233 (__mips16_call_stub_10): Macro-ified.
234 (CALL_STUB_RET): New.
235 (__mips16_call_stub_sf_0): Macro-ified.
236 (__mips16_call_stub_sf_1): Macro-ified.
237 (__mips16_call_stub_sf_5): Macro-ified.
238 (__mips16_call_stub_sf_2): Macro-ified.
239 (__mips16_call_stub_sf_6): Macro-ified.
240 (__mips16_call_stub_sf_9): Macro-ified.
241 (__mips16_call_stub_sf_10): Macro-ified.
242 (__mips16_call_stub_df_0): Macro-ified.
243 (__mips16_call_stub_df_1): Macro-ified.
244 (__mips16_call_stub_df_5): Macro-ified.
245 (__mips16_call_stub_df_2): Macro-ified.
246 (__mips16_call_stub_df_6): Macro-ified.
247 (__mips16_call_stub_df_9): Macro-ified.
248 (__mips16_call_stub_df_10): Macro-ified.
249 (__mips16_call_stub_sc_0): New.
250 (__mips16_call_stub_sc_1): New.
251 (__mips16_call_stub_sc_5): New.
252 (__mips16_call_stub_sc_2): New.
253 (__mips16_call_stub_sc_6): New.
254 (__mips16_call_stub_sc_9): New.
255 (__mips16_call_stub_sc_10): New.
256 (__mips16_call_stub_dc_0): New.
257 (__mips16_call_stub_dc_1): New.
258 (__mips16_call_stub_dc_5): New.
259 (__mips16_call_stub_dc_2): New.
260 (__mips16_call_stub_dc_6): New.
261 (__mips16_call_stub_dc_9): New.
262 (__mips16_call_stub_dc_10): New.
264 * config/mips/t-elf (LIB1ASMFUNCS): Add MIPS16 floating-point stubs.
265 * config/mips/t-isa3264 (LIB1ASMFUNCS): Likewise.
266 * config/mips/t-r2900 (LIB1ASMFUNCS): Likewise.
268 2007-05-23 Ian Lance Taylor <iant@google.com>
270 * doc/invoke.texi (Invoking GCC): Document that the order of the
273 2007-05-23 Chen Liqin <liqin@sunnorth.com.cn>
276 * config/score/misc.md (bitclr_c, bitset_c, bittgl_c): Remove.
277 * config/score/predicate.md (const_pow2, const_npow2): Remove.
278 * config/score/score.h (ASM_OUTPUT_EXTERNAL): Add ASM_OUTPUT_EXTERNAL
282 * config/score/score.c (score_print_operand): Make sure that only
285 2007-05-22 Ian Lance Taylor <iant@google.com>
287 * tree-vrp.c (avoid_overflow_infinity): New static function,
288 broken out of set_value_range_to_value.
289 (set_value_range_to_value): Call avoid_overflow_infinity.
290 (extract_range_from_assert): Likewise.
292 2007-05-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
295 * builtins.c (expand_builtin_memmove_args): Strip nops that don't
296 change the type before looking for a COMPOUND_EXPR.
298 2007-05-22 Ian Lance Taylor <iant@google.com>
300 * lower-subreg.c (decompose_multiword_subregs): If we change an
301 insn, call remove_retval_note on it.
303 2007-05-22 Richard Sandiford <rsandifo@nildram.co.uk>
305 * regs.h (end_hard_regno): New function.
306 (END_HARD_REGNO, END_REGNO): New macros.
307 (add_to_hard_reg_set): New function.
308 (remove_from_hard_reg_set): Likewise.
309 (in_hard_reg_set_p): Likewise.
310 (overlaps_hard_reg_set_p): Likewise.
311 * bt-load.c (find_btr_reference): Use overlaps_hard_reg_set_p.
312 (note_btr_set): Use END_HARD_REGNO.
313 * caller-save.c (setup_save_areas): Use end_hard_regno.
314 (mark_set_regs): Use END_HARD_REGNO.
315 (add_stored_regs): Use end_hard_regno.
316 (mark_referenced_regs): Use add_to_hard_reg_set.
317 * combine.c (update_table_tick): Use END_REGNO.
318 (record_value_for_reg): Likewise.
319 (record_dead_and_set_regs): Likewise.
320 (get_last_value_validate): Likewise.
321 (use_crosses_set_p): Likewise.
322 (reg_dead_at_p_1): Likewise.
323 (reg_dead_at_p): Likewise.
324 (mark_used_regs_combine): Use add_to_hard_reg_set.
325 (move_deaths): Use END_HARD_REGNO.
326 (reg_bitfield_target_p): Use end_hard_regno.
327 (distribute_notes): Use END_HARD_REGNO.
328 * cse.c (mention_regs): Use END_REGNO.
329 (insert): Use add_to_hard_reg_set.
330 (invalidate): Use END_HARD_REGNO.
331 (invalidate_for_call): Likewise.
332 (exp_equiv_p): Use END_REGNO.
333 (cse_insn): Likewise.
334 * cselib.c (cselib_invalidate_regno): Use end_hard_regno.
335 * df-problems.c (df_urec_mark_reg_change): Use END_HARD_REGNO.
336 * df-scan.c (df_ref_record): Use END_HARD_REGNO.
337 * function.c (keep_stack_depressed): Use end_hard_regno.
338 * global.c (global_alloc): Use end_hard_regno.
339 (global_conflicts): Use add_to_hard_reg_set instead of
341 (find_reg): Likewise.
342 (mark_reg_store): Likewise.
343 (mark_reg_conflicts): Likewise.
344 (mark_reg_death): Use remove_from_hard_reg_set.
345 (mark_reg_live_nc): Delete.
346 (set_preference): Use end_hard_regno.
347 * local-alloc.c (mark_life): Use add_to_hard_reg_set and
348 remove_from_hard_reg_set.
349 (post_mark_life): Use add_to_hard_reg_set.
350 * mode-switching.c (reg_dies): Use remove_from_hard_reg_set.
351 (reg_becomes_live): Use add_to_hard_reg_set.
352 * recog.c (reg_fits_class_p): Use in_hard_reg_set_p.
353 (peep2_find_free_register): Use add_to_hard_reg_set.
354 * reg-stack.c (convert_regs_exit): Use END_HARD_REGNO.
355 * regclass.c (record_reg_classes): Use in_hard_reg_set_p.
356 * regrename.c (note_sets): Use add_to_hard_reg_set.
357 (clear_dead_regs): Use remove_from_hard_reg_set.
358 (regrename_optimize): Use add_to_hard_reg_set.
359 (find_oldest_value_reg): Use in_hard_reg_set_p.
360 * reload.c (push_reload): Use in_hard_reg_set_p and end_hard_regno.
361 (hard_reg_set_here_p): Use end_hard_regno.
362 (decompose): Likewise.
363 (reg_overlap_mentioned_for_reload_p): Use END_HARD_REGNO.
364 (find_equiv_reg): Use in_hard_reg_set_p and end_hard_regno.
365 * reload1.c (compute_use_by_pseudos): Use add_to_hard_reg_set.
366 (mark_home_live): Use end_hard_regno.
367 (spill_hard_reg): Likewise.
368 (clear_reload_reg_in_use): Likewise.
369 * reorg.c (delete_prior_computation): Use END_REGNO.
370 * resource.c (update_live_status): Use END_HARD_REGNO.
371 (mark_referenced_resources): Use add_to_hard_reg_set.
372 (mark_set_resources): Likewise.
373 (mark_target_live_regs): Likewise. Use remove_from_hard_reg_set.
374 * rtlanal.c (refers_to_regno_p): Use END_REGNO.
375 (reg_overlap_mentioned_p): Likewise.
376 (dead_or_set_p): Likewise. Use an exclusive upper loop bound.
377 (covers_regno_no_parallel_p): Use END_REGNO.
378 (find_regno_note): Likewise.
379 (find_reg_fusage): Use END_HARD_REGNO.
380 * stmt.c (decl_overlaps_hard_reg_set_p): Use overlaps_hard_reg_set_p.
381 * var-tracking.c (emit_note_insn_var_location): Use end_hard_regno.
383 2007-05-22 Richard Sandiford <rsandifo@nildram.co.uk>
385 * mode-switching.c (reg_dies): Change type of second argument to
387 (optimize_mode_switching): Update accordingly.
389 2007-05-22 Richard Sandiford <richard@codesourcery.com>
391 * hard-reg-set.h (GO_IF_HARD_REG_SUBSET, GO_IF_HARD_REG_EQUAL): Delete
393 (hard_reg_subset_p, hard_reg_sets_equal_p, hard_reg_sets_intersect_p)
394 (hard_reg_set_empty_p): ...these new functions.
395 * bt-load.c (choose_btr): Use hard_reg_subset_p instead of
396 GO_IF_HARD_REG_SUBSET.
397 * cfgcleanup.c (old_insns_match_p): Use hard_reg_sets_equal_p
398 instead of GO_IF_HARD_REG_EQUAL.
399 * df-problems.c (df_urec_local_compute): Use hard_reg_set_empty_p
400 instead of GO_IF_HARD_REG_EQUAL.
401 * global.c (find_reg): Use hard_reg_set_empty_p instead of
402 GO_IF_HARD_REG_SUBSET.
403 (modify_reg_pav): Use hard_reg_set_empty_p instead of
404 GO_IF_HARD_REG_EQUAL.
405 * local-alloc.c (find_free_reg): Use hard_reg_subset_p instead
406 of GO_IF_HARD_REG_SUBSET.
407 * reg-stack.c (change_stack, convert_regs_1): Use hard_reg_sets_equal_p
408 instead of GO_IF_HARD_REG_EQUAL.
409 * regclass.c (init_reg_sets_1, reg_scan_mark_refs): Use
410 hard_reg_subset_p instead of GO_IF_HARD_REG_SUBSET.
411 (reg_classes_intersect_p): Use hard_reg_sets_intersect_p instead
412 of GO_IF_HARD_REG_SUBSET,
413 * reload1.c (finish_spills): Use hard_reg_subset_p instead of
414 GO_IF_HARD_REG_SUBSET.
415 * struct-equiv.c (death_notes_match_p): Use hard_reg_sets_equal_p
416 instead of GO_IF_HARD_REG_EQUAL.
417 * config/sh/sh.c (push_regs, calc_live_regs): Use
418 hard_reg_sets_intersect_p instead of hard_regs_intersect_p.
419 (hard_regs_intersect_p): Delete.
421 2007-05-22 Janis Johnson <janis187@us.ibm.com>
423 * doc/sourcebuild.texi (Test Directives) Add dg-message.
425 2007-05-22 H.J. Lu <hongjiu.lu@intel.com>
426 Richard Henderson <rth@redhat.com>
428 * config.gcc (i[34567]86-*-*): Add smmintrin.h to
430 (x86_64-*-*): Likewise.
432 * i386/i386-modes.def (V2QI): New.
434 * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 and
436 (override_options): Support SSE4.1.
437 (IX86_BUILTIN_BLENDPD): New for SSE4.1.
438 (IX86_BUILTIN_BLENDPS): Likewise.
439 (IX86_BUILTIN_BLENDVPD): Likewise.
440 (IX86_BUILTIN_BLENDVPS): Likewise.
441 (IX86_BUILTIN_PBLENDVB128): Likewise.
442 (IX86_BUILTIN_PBLENDW128): Likewise.
443 (IX86_BUILTIN_DPPD): Likewise.
444 (IX86_BUILTIN_DPPS): Likewise.
445 (IX86_BUILTIN_INSERTPS128): Likewise.
446 (IX86_BUILTIN_MOVNTDQA): Likewise.
447 (IX86_BUILTIN_MPSADBW128): Likewise.
448 (IX86_BUILTIN_PACKUSDW128): Likewise.
449 (IX86_BUILTIN_PCMPEQQ): Likewise.
450 (IX86_BUILTIN_PHMINPOSUW128): Likewise.
451 (IX86_BUILTIN_PMAXSB128): Likewise.
452 (IX86_BUILTIN_PMAXSD128): Likewise.
453 (IX86_BUILTIN_PMAXUD128): Likewise.
454 (IX86_BUILTIN_PMAXUW128): Likewise.
455 (IX86_BUILTIN_PMINSB128): Likewise.
456 (IX86_BUILTIN_PMINSD128): Likewise.
457 (IX86_BUILTIN_PMINUD128): Likewise.
458 (IX86_BUILTIN_PMINUW128): Likewise.
459 (IX86_BUILTIN_PMOVSXBW128): Likewise.
460 (IX86_BUILTIN_PMOVSXBD128): Likewise.
461 (IX86_BUILTIN_PMOVSXBQ128): Likewise.
462 (IX86_BUILTIN_PMOVSXWD128): Likewise.
463 (IX86_BUILTIN_PMOVSXWQ128): Likewise.
464 (IX86_BUILTIN_PMOVSXDQ128): Likewise.
465 (IX86_BUILTIN_PMOVZXBW128): Likewise.
466 (IX86_BUILTIN_PMOVZXBD128): Likewise.
467 (IX86_BUILTIN_PMOVZXBQ128): Likewise.
468 (IX86_BUILTIN_PMOVZXWD128): Likewise.
469 (IX86_BUILTIN_PMOVZXWQ128): Likewise.
470 (IX86_BUILTIN_PMOVZXDQ128): Likewise.
471 (IX86_BUILTIN_PMULDQ128): Likewise.
472 (IX86_BUILTIN_PMULLD128): Likewise.
473 (IX86_BUILTIN_ROUNDPD): Likewise.
474 (IX86_BUILTIN_ROUNDPS): Likewise.
475 (IX86_BUILTIN_ROUNDSD): Likewise.
476 (IX86_BUILTIN_ROUNDSS): Likewise.
477 (IX86_BUILTIN_PTESTZ): Likewise.
478 (IX86_BUILTIN_PTESTC): Likewise.
479 (IX86_BUILTIN_PTESTNZC): Likewise.
480 (IX86_BUILTIN_VEC_EXT_V16QI): Likewise.
481 (IX86_BUILTIN_VEC_SET_V2DI): Likewise.
482 (IX86_BUILTIN_VEC_SET_V4SF): Likewise.
483 (IX86_BUILTIN_VEC_SET_V4SI): Likewise.
484 (IX86_BUILTIN_VEC_SET_V16QI): Likewise.
486 (bdesc_sse_3arg): Likewise.
487 (bdesc_2arg): Likewise.
488 (bdesc_1arg): Likewise.
489 (ix86_init_mmx_sse_builtins): Support SSE4.1. Handle SSE builtins
491 (ix86_expand_sse_4_operands_builtin): New.
492 (ix86_expand_unop_builtin): Support 2 arg builtins with a constant
493 smaller than 8 bits as the 2nd arg.
494 (ix86_expand_sse_ptest): New.
495 (ix86_expand_builtin): Support SSE4.1. Support 3 arg SSE builtins.
496 (ix86_expand_vector_set): Support SSE4.1.
497 (ix86_expand_vector_extract): Likewise.
499 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
500 __SSE4_1__ for -msse4.1.
502 * config/i386/i386.md (UNSPEC_BLENDV): New for SSE4.1.
503 (UNSPEC_INSERTPS): Likewise.
504 (UNSPEC_DP): Likewise.
505 (UNSPEC_MOVNTDQA): Likewise.
506 (UNSPEC_MPSADBW): Likewise.
507 (UNSPEC_PHMINPOSUW): Likewise.
508 (UNSPEC_PTEST): Likewise.
509 (UNSPEC_ROUNDP): Likewise.
510 (UNSPEC_ROUNDS): Likewise.
512 * config/i386/i386.opt (msse4.1): New for SSE4.1.
514 * config/i386/predicates.md (const_pow2_1_to_2_operand): New.
515 (const_pow2_1_to_32768_operand): Likewise.
517 * config/i386/smmintrin.h: New. The SSE4.1 intrinsic header
520 * config/i386/sse.md (*vec_setv4sf_sse4_1): New pattern for
522 (sse4_1_insertps): Likewise.
523 (*sse4_1_extractps): Likewise.
524 (sse4_1_ptest): Likewise.
525 (sse4_1_mulv2siv2di3): Likewise.
526 (*sse4_1_mulv4si3): Likewise.
527 (*sse4_1_smax<mode>3): Likewise.
528 (*sse4_1_umax<mode>3): Likewise.
529 (*sse4_1_smin<mode>3): Likewise.
530 (*sse4_1_umin<mode>3): Likewise.
531 (sse4_1_eqv2di3): Likewise.
532 (*sse4_1_pinsrb): Likewise.
533 (*sse4_1_pinsrd): Likewise.
534 (*sse4_1_pinsrq): Likewise.
535 (*sse4_1_pextrb): Likewise.
536 (*sse4_1_pextrb_memory): Likewise.
537 (*sse4_1_pextrw_memory): Likewise.
538 (*sse4_1_pextrq): Likewise.
539 (sse4_1_blendpd): Likewise.
540 (sse4_1_blendps): Likewise.
541 (sse4_1_blendvpd): Likewise.
542 (sse4_1_blendvps): Likewise.
543 (sse4_1_dppd): Likewise.
544 (sse4_1_dpps): Likewise.
545 (sse4_1_movntdqa): Likewise.
546 (sse4_1_mpsadbw): Likewise.
547 (sse4_1_packusdw): Likewise.
548 (sse4_1_pblendvb): Likewise.
549 (sse4_1_pblendw): Likewise.
550 (sse4_1_phminposuw): Likewise.
551 (sse4_1_extendv8qiv8hi2): Likewise.
552 (*sse4_1_extendv8qiv8hi2): Likewise.
553 (sse4_1_extendv4qiv4si2): Likewise.
554 (*sse4_1_extendv4qiv4si2): Likewise.
555 (sse4_1_extendv2qiv2di2): Likewise.
556 (*sse4_1_extendv2qiv2di2): Likewise.
557 (sse4_1_extendv4hiv4si2): Likewise.
558 (*sse4_1_extendv4hiv4si2): Likewise.
559 (sse4_1_extendv2hiv2di2): Likewise.
560 (*sse4_1_extendv2hiv2di2): Likewise.
561 (sse4_1_extendv2siv2di2): Likewise.
562 (*sse4_1_extendv2siv2di2): Likewise.
563 (sse4_1_zero_extendv8qiv8hi2): Likewise.
564 (*sse4_1_zero_extendv8qiv8hi2): Likewise.
565 (sse4_1_zero_extendv4qiv4si2): Likewise.
566 (*sse4_1_zero_extendv4qiv4si2): Likewise.
567 (sse4_1_zero_extendv2qiv2di2): Likewise.
568 (*sse4_1_zero_extendv2qiv2di2): Likewise.
569 (sse4_1_zero_extendv4hiv4si2): Likewise.
570 (*sse4_1_zero_extendv4hiv4si2): Likewise.
571 (sse4_1_zero_extendv2hiv2di2): Likewise.
572 (*sse4_1_zero_extendv2hiv2di2): Likewise.
573 (sse4_1_zero_extendv2siv2di2): Likewise.
574 (*sse4_1_zero_extendv2siv2di2): Likewise.
575 (sse4_1_roundpd): Likewise.
576 (sse4_1_roundps): Likewise.
577 (sse4_1_roundsd): Likewise.
578 (sse4_1_roundss): Likewise.
579 (mulv4si3): Don't expand for SSE4.1.
580 (smax<mode>3): Likewise.
581 (umaxv4si3): Likewise.
582 (uminv16qi3): Likewise.
583 (umin<mode>3): Likewise.
584 (umaxv8hi3): Rewrite. Only enabled for SSE4.1.
586 * doc/extend.texi: Document SSE4.1 built-in functions.
588 * doc/invoke.texi: Document -msse4.1.
590 2007-05-22 Nathan Sidwell <nathan@codesourcery.com>
592 * config/m68k/linux.h (ASM_SPEC): Add asm_pcrel_spec.
593 * config/m68k/m68k-none.h (ASM_SPEC): Don't override here.
594 * config/m68k/m68k.h (ASM_PCREL_SPEC): New.
595 (ASM_SPEC): Add asm_pcrel_spec.
596 (EXTRA_SPECS): Add asm_pcrel_spec.
598 2007-05-21 David Daney <ddaney@avtrex.com>
600 * doc/install.texi (Building a cross compiler): Add requirements
601 for Java cross compiler.
603 2007-05-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
606 * tree-chrec.c (evolution_function_is_affine_multivariate_p):
607 Add loopno argument. Use evolution_function_is_invariant_rec_p
608 instead of evolution_function_is_constant_p.
609 Update calls to evolution_function_is_affine_multivariate_p.
610 * tree-chrec.h (evolution_function_is_affine_multivariate_p):
612 * tree-scalar-evolution.c (gather_chrec_stats): Call
613 evolution_function_is_affine_multivariate_p with a loop
615 * tree-data-ref.c (analyze_miv_subscript): Likewise.
616 (analyze_overlapping_iterations): Likewise.
617 (access_functions_are_affine_or_constant_p): Likewise.
618 (build_classic_dist_vector_1): If the access functions
619 are equal, don't do anything.
621 2007-05-21 Paolo Bonzini <bonzini@gnu.org>
622 Paolo Carlini <pcarlini@suse.de>
623 Uros Bizjak <ubizjak@gmail.com>
625 * c-cppbuiltin.c (c_cpp_builtins): Define
626 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
627 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8,
628 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16, if appropriate.
629 * doc/cpp.texi ([Standard Predefined Macros]): Document.
631 2007-05-21 Mike Stump <mrs@apple.com>
633 * config/darwin.h (LINK_COMMAND_SPEC): Add .cxx/.cp for dsymutil
635 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
637 2007-05-21 Uros Bizjak <ubizjak@gmail.com>
639 * config/i386/tmmintrin.h (_mm_alignr_epi8): Provide macro
640 implementation if __OPTIMIZE__ is not defined.
641 (_mm_alignr_pi8): Ditto.
642 * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
643 (_mm_inserti_si64): Ditto.
644 * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
645 (_mm_slli_epi16): Ditto.
646 (_mm_slli_epi32): Ditto.
647 (_mm_slli_epi64): Ditto.
648 (_mm_srai_epi16): Ditto.
649 (_mm_srai_epi32): Ditto.
650 (_mm_srli_si128): Ditto.
651 (_mm_slli_si128): Ditto.
652 (_mm_srli_epi16): Ditto.
653 (_mm_srli_epi32): Ditto.
654 (_mm_srli_epi64): Ditto.
655 (_mm_extract_epi16): Ditto.
656 (_mm_insert_epi16): Ditto.
657 (_mm_shufflehi_epi16): Ditto.
658 (_mm_shufflelo_epi16): Ditto.
659 (_mm_shuffle_epi32): Ditto.
660 * config/i386/xmmintrin.h (_mm_extract_pi16): Ditto.
662 (_mm_insert_pi16): Ditto.
664 (_mm_shuffle_pi16): Ditto.
666 (_mm_shufle_ps): Ditto.
667 (_mm_prefetch): Ditto.
669 2007-05-21 Andreas Krebbel <krebbel1@de.ibm.com>
671 * defaults.h (IBM_FLOAT_FORMAT): Macro definition removed.
672 * doc/tm.texi (IBM_FLOAT_FORMAT): Documentation entry removed.
673 * real.c (encode_i370_single, decode_i370_single,
674 encode_i370_double, decode_i370_double): Functions removed.
675 (i370_single_format, i370_double_format): Initializations removed.
676 (real_maxval, round_for_format, exact_real_truncate, significand_size):
677 Consider the log2_b field to always be one.
678 (ieee_single_format, mips_single_format, coldfire_single_format,
679 ieee_double_format, mips_double_format, coldfire_double_format,
680 ieee_extended_motorola_format, ieee_extended_intel_96_format,
681 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
682 ibm_extended_format, mips_extended_format, ieee_quad_format,
683 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
684 decimal_single_format, decimal_double_format, decimal_quad_format,
685 c4x_single_format, c4x_extended_format, real_internal_format): Remove
686 initialization of log2_b.
687 * real.h (i370_single_format, i370_double_format): Declarations removed.
688 * c-cppbuiltin.c (builtin_define_float_constants): Consider the log2_b
689 field to always be one.
691 2007-05-21 Andreas Schwab <schwab@suse.de>
693 * config/ia64/ia64.c (emit_predicate_relation_info): Fix use of
694 NOTE_INSN_BASIC_BLOCK_P.
695 (process_for_unwind_directive): Likewise.
697 2007-05-21 Nathan Sidwell <nathan@codesourcery.com>
699 * builtins.c (expand_builtin_setjmp_setup): Update comment.
700 * function.h (struct function): Move va_list_gpr_size,
701 va_list_fpr_size, function_frequency to front of bitfields. Add
703 (current_function_calls_unwind_init): New.
704 * except.c (expand_builtin_unwind_init): Set
705 current_function_calls_unwind_init not
706 current_function_has_nonlocal_label.
707 * reload1.c (has_nonexceptional_receiver): New.
708 (reload): Use it and current_function_calls_unwind_init to
709 determine whether call-saved regs must be saved.
711 2007-05-20 Jan Hubicka <jh@suse.cz>
713 * gengtype.c (adjust_field_rtx_def): Use NOTE_KIND instead of
714 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
715 * ddg.c (create_ddg): LIkewise.
716 * final.c (final): Remove hunk moving line numbernotes around since
717 they are no longer present at this stage.
718 (final_scan_insn): Use NOTE_KIND instead of
719 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
720 (output_asm_label): Likewise.
721 * reorg.c (dbr_schedule): Likewise.
722 * haifa-sched.c (unlink_other_notes): Likewise.
723 * mode-switching.c (optimize_mode_switching): Likewise.
724 * graph.c (start_bb): Likewise.
725 * rtl.def (NOTE): Update description.
726 * jump.c (squeeze_notes): Delete.
727 (mark_jump_label): Use NOTE_KIND instead of NOTE_LINE_NUMBER; use
728 NOTE_INSN_BASIC_BLOCK_P when possible.
729 * ifcvt.c (dead_or_predicable): Remove call of squeeze_notes.
730 * dwarf2out.c (gen_label_die): Use NOTE_KIND instead of
731 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
732 (dwarf2out_var_location): Likewise.
733 * cfgbuild.c (make_edges): Likewise.
734 (find_basic_blocks_1): Likewise.
735 * function.c (reorder_blocks_1): Likewise.
736 (epilogue_done): Likewise.
737 (reposition_prologue_and_epilogue_notes): Likewise.
738 * print-rtl.c (print_rtx): Likewise; drop code for printing line number
740 (print_rtl): Likewise.
741 (print_rtl_single): Likewise.
742 * gcse.c (insert_insn_start_bb): Likewise.
743 * alias.c (init_alias_analysis): Likewise.
744 * calls.c (fixup_tail_calls): Likewise.
745 * except.c (sjlj_emit_function_enter): Likewise.
746 * emit-rtl.c (add_insn_after): Likeiwse.
747 (emit_label_before): Likewise.
748 (emit_label_after): Likewise.
749 (emit_note_before, emit_note_after, emit_note): Update
750 parameter to be enum insn_note; do not deal with source
752 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps):
753 Use NOTE_KIND instead of NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P
755 (merge_blocks_move_successor_nojumps): Simplify now when
756 we don't have BLOCK notes.
757 (try_optimize_cfg): Likewise.
758 * cfglayout.c (skip_insns_after_block): Likewise.
759 (record_effective_endpoints): Likewise.
760 (duplicate_insn_chain): Likewise.
761 * varasm.c (output_constant_pool_1): Likewise.
762 * sched-deps.c (sched_analyze): Likewise.
763 * rtl.c (NOTE_INSN_MAX_isnt_negative_adjust_NOTE_INSN_BIAS):
765 (note_insn_name): Simplify now when NOTE_INSN_BIAS is gone.
766 * rtl.h (NOTE_SOURCE_LOCATION, NOTE_EXPANDED_LOCATION): Exterminate.
767 (SET_INSN_DELETED): Simplify.
768 (NOTE_LINE_NUMBER): Exterminate.
769 (NOTE_LINE_KIND): New.
770 (NOTE_INSN_BASIC_BLOCK_P): Update.
771 (enum insn_note): Simplify.
772 (GET_NOTE_INSN_NAME) Simplify.
773 (emit_note_before, emit_note_after, emit_note): Update prototype.
774 (squeeze_notes): Remove.
775 * sched-int.h (NOTE_NOT_BB_P): Update.
776 * resource.c (mark_target_live_regs): Update.
777 * sched-rgn.c (debug_dependencies): Update.
778 * sched-vis.c (print_insn): Update.
779 * config/alpha/alpha.c (alpha_handle_trap_shadows): Update.
780 * config/i386/i386.c (ix86_output_function_epilogue): Update.
781 * config/sh/sh.c (sh_adjust_unroll_max): Function dead since gcc 4.0.0.
782 (TARGET_ADJUST_UNROLL_MAX): Likewise.
783 (split_branches): Update.
784 (sh_optimize_target_register_callee_saved): Remove hunk dead since gcc
786 (sh_adjust_unroll_max): Exterminate.
787 * config/c4x/c4x.c (c4x_reorg): Use SET_INSN_DELETED.
788 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Likewise.
789 (m68hc11_reorg): Likewise.
790 * config/ia64/ia64.c (emit_insn_group_barriers): Update.
791 (emit_predicate_relation_info): Update.
792 (process_for_unwind_directive): Update.
793 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update.
794 (output_call): Update.
795 * config/pa/pa.c (output_lbranch): Update.
796 (output_millicode_call): Update.
797 (output_call): Update.
798 (pa_combine_instructions): Update.
799 * config/mips/mips.c (mips16_gp_pseudo_reg): Update.
800 * config/bfin/bfin.c (gen_one_bundle): Update.
801 * cfgrtl.c (can_delete_note_p): Update.
802 (delete_insn): Update.
803 (rtl_merge_blocks): Update.
804 (commit_one_edge_insertion): Update.
805 (rtl_verify_flow_info): Update.
806 * stmt.c (expand_case): Do not call squeeze_notes.
808 2007-05-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
815 * c.opt (Wtype-limits): New.
816 * doc/invoke.texi (Wtype-limits): Document it.
817 (Wextra): Enabled by -Wextra.
818 * c-opts.c (c_common_post_options): Enabled by -Wextra.
819 * c-common.c (shorten_compare): Warn with Wtype-limits.
821 2007-05-20 Uros Bizjak <ubizjak@gmail.com>
823 * config/i386/tmmintrin.h (_mm_alignr_epi32): Implement as always
824 inlined function, not as a macro.
825 (_mm_alignr_pi8): Ditto.
826 * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
827 (_mm_inserti_si64): Ditto.
828 * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
829 (_mm_extract_epi16): Ditto.
830 (_mm_insert_epi16): Ditto.
831 (_mm_shufflehi_epi16): Ditto.
832 (_mm_shufflelo_epi16): Ditto.
833 (_mm_shuffle_epi32): Ditto.
834 * config/i386/xmmintrin.h (_mm_set_ss): Use 0.0f for float constant.
835 * config/386/mm3dnow.h: Add __attribute__((__always_inline__)) to
837 (_m_from_float): Add __extension__ to conversion. Use 0.0f for
839 (_m_to_float): Use C89 compatible assignment.
841 2007-04-20 Martin Michlmayr <tbm@cyrius.com>
844 * config/arm/lib1funcs.asm: Define __ARM_ARCH__ on v2/v3 machines.
846 2007-05-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
849 * doc/invoke.texi (Wreturn-type): Complete description.
850 (Wextra): Delete item about return-type warning.
851 * c-decl.c: Delete redundant Wextra warning.
853 2007-05-20 Uros Bizjak <ubizjak@gmail.com>
856 * config/i386/pmmintrin.h: Do not include xmmintrin.h
857 * config/i386/xmmintrin.h (_mm_extract_pi16): Implement as always
858 inlined function, not as a macro.
859 (_mm_prefetch): Ditto.
861 (_mm_insert_pi16): Ditto.
863 (_mm_shuffle_pi16): Ditto. Add const to __N argument.
864 (_m_pshufw): Ditto. Add const to __N argument.
865 (_mm_shufle_ps): Ditto. Add const to __mask argument.
866 * config/i386/emmintrin.h (_mm_slli_epi16): Add const to __B argument.
867 (_mm_slli_epi32): Ditto.
868 (_mm_srli_si128): Implement as always inlined function, not as a macro.
869 Add __inline to function declaration.
870 (_mm_slli_si128): Ditto.
872 2007-05-19 Uros Bizjak <ubizjak@gmail.com>
874 * config/i386/sfp-machine.h (FP_EX_INVALID, FP_EX_DENORM,
875 FP_EXP_DIVZERO, FP_EX_OVERFLOW, FP_EX_UNDERFLOW, FP_EX_INEXACT):
877 (struct fenv): New structure.
878 (FP_HANDLE_EXCEPTIONS): New define.
879 (FP_RND_NEAREST, FP_RND_ZERO, FP_RND_PINF, FP_RND_MINF): New constants.
880 (_FP_DECL_EXP): New define.
881 (FP_INIT_ROUNDMODE): New define.
882 (FP_ROUNDMODE): New define.
884 2007-05-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
886 * doc/invoke.texi (Warning Options): Add -Wconversion-sign.
887 (Wconversion): Update description.
888 (Wconversion-sign): New.
889 * c.opt (Wconversion-sign): New.
890 * c-opts.c (c_common_post_options): Uninitialized Wconversion-sign
891 means disabled for C++. Otherwise, take the status of Wconversion.
892 * c-common.c (conversion_warning): Warn with either Wconversion or
894 (warnings_for_convert_and_check): Conditions are already checked by
896 (convert_and_check): Don't check warnings if the conversion failed.
898 2007-05-19 Andy Hutchinson <HutchinsonAndy@netscape.net>
899 Anatoly Sokolov <aesok@dol.ru>
901 * config/avr/avr-protos.h (expand_prologue, expand_epilogue,
902 avr_epilogue_uses) : Add declaration.
903 * config/avr/predicates.md (avr_sp_immediate_operand): New predicate.
904 * config/avr/constraints.md (R): New constraint.
905 config/avr/avr.md (SREG_ADDR, UNSPEC_SEI, UNSPEC_CLI,
906 UNSPECV_PROLOGUE_SAVES, UNSPECV_EPILOGUE_RESTORES): New constants.
907 (*pop1, *pop2, *pop3, *pop4, *pop5): Combine into ...
908 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): ... these patterns.
909 (*movhi_sp, popqi, pophi, enable_interrupt, disable_interrupt,
910 call_prologue_saves, epilogue_restores, return_from_epilogue,
911 return_from_main_epilogue, return_from_interrupt_epilogue,
912 return_from_naked_epilogue, prologue, epilogue): New patterns.
913 (jump): Handle symbol reference.
914 * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr,
915 avr_output_function_prologue, avr_output_function_epilogue): Remove
917 (avr_init_machine_status, expand_prologue, expand_epilogue,
918 avr_asm_function_end_prologue, avr_epilogue_uses,
919 avr_asm_function_begin_epilogue): New functions.
920 (prologue_size, epilogue_size, jump_tables_size): Remove global
922 (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
923 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
924 (TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): Define.
925 (avr_override_options): Initialise init_machine_status.
926 (output_movhi): Handle all stack pointer loads.
927 (out_movqi_r_mr, out_movqi_mr_r): Handle SREG_ADDR address.
928 (avr_output_addr_vec_elt): Do not use variable jump_tables_size.
929 * config/avr/avr.h (AVR_2_BYTE_PC, AVR_3_BYTE_PC): New.
930 (EPILOGUE_USES) Redefine.
931 (machine_function) Declare.
933 2007-05-19 Richard Sandiford <richard@codesourcery.com>
935 * config/mips/mips.c (mips_offset_within_alignment_p): Tweak comment.
936 Use a single return statement.
938 2007-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
941 * builtins.c (do_mpfr_lgamma_r): New.
942 (fold_builtin_2): Handle builtin gamma_r/lgamma_r.
943 * tree.h (CASE_FLT_FN_REENT): New.
945 2007-05-18 Geoffrey Keating <geoffk@apple.com>
947 * dwarf2out.c (print_die): Use '%ld' not '%lu' to print a 'long'.
948 (output_die): Use 'unsigned long' with %x.
949 * sched-vis.c (print_value): Use 'unsigned HOST_WIDE_INT' and
950 HOST_WIDE_INT_PRINT_HEX to print HOST_WIDE_INT.
951 * tree-dump.c (dump_pointer): Use 'unsigned long' for %lx.
953 * unwind-dw2.c (uw_identify_context): Use the CFA, not the IP.
955 2007-05-18 H.J. Lu <hongjiu.lu@intel.com>
960 * config/i386/i386.c (init_cumulative_args): Set maybe_vaarg to
961 true if function has no argument.
963 2007-05-18 DJ Delorie <dj@redhat.com>
965 * config/mips/mips.c (mips_offset_within_alignment_p): New.
966 (mips_symbolic_constant_p): Call it for TPREL and DTPREL symbols.
968 2007-05-18 Uros Bizjak <ubizjak@gmail.com>
970 * longlong.h (__x86_64__): Add definitions for add_ssaaaa,
971 sub_ddmmss, umul_ppmm, udiv_qrnnd, count_leading_zeros and
972 count_trailing_zeros.
973 (__i386__): Implement count_leading_zeros using __builtin_clz().
974 Implement count_trailing_zeros usign __builtin_ctz().
976 2007-05-18 Richard Sandiford <richard@codesourcery.com>
978 * config/i386/vxworks.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine.
980 2007-05-18 Uros Bizjak <ubizjak@gmail.com>
983 * expr.c (emit_move_change_mode): Change mode of push operands here.
985 2007-05-17 Ian Lance Taylor <iant@google.com>
987 PR tree-optimization/31953
988 * tree-vrp.c (set_value_range_to_value): Add equiv parameter.
990 (set_value_range_to_null): Call set_value_range_to_value.
991 (extract_range_from_comparison): Likewise.
993 2007-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
995 * toplev.c (print_version): Output GMP/MPFR version info.
997 * builtins.c (CASE_MATHFN_REENT): New macro.
998 (mathfn_built_in): Use it.
999 * builtins.def (BUILT_IN_GAMMA_R, BUILT_IN_GAMMAF_R,
1000 BUILT_IN_GAMMAL_R, BUILT_IN_LGAMMA_R, BUILT_IN_LGAMMAF_R,
1001 BUILT_IN_LGAMMAL_R): New.
1002 * doc/extend.texi: Document new builtins.
1005 * builtins.c (do_mpfr_remquo): New.
1006 (fold_builtin_2): Handle BUILT_IN_DREM/BUILT_IN_REMAINDER.
1007 (fold_builtin_3): Handle BUILT_IN_REMQUO.
1010 * builtins.c (fold_builtin_1): Handle y0, y1.
1011 (fold_builtin_2): Handle yn.
1014 * builtins.c (do_mpfr_bessel_n): New.
1015 (fold_builtin_1): Handle BUILT_IN_J0 and BUILT_IN_J1.
1016 (fold_builtin_2): Handle BUILT_IN_JN.
1018 2007-05-17 Danny Smith <dannysmith@users.sourceforge.net>
1021 * config/i386/mingw32.h (_INTEGRAL_MAX_BITS): Define builtin as
1022 TYPE_PRECISION (intmax_type_node).
1024 2007-05-17 Steve Ellcey <sje@cup.hp.com>
1027 * reload.c (subst_reloads): Remove checking.
1029 2007-05-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1031 PR rtl-optimization/31691
1032 * combine.c (simplify_set): Build a new src pattern instead of
1033 substituting its operands in the COMPARE case.
1035 2007-05-17 Zdenek Dvorak <dvorakz@suse.cz>
1037 * tree-vrp.c (finalize_jump_threads): Do not care about dominance info.
1038 (execute_vrp): Preserve loops through jump threading.
1039 * tree-ssa-threadupdate.c (thread_single_edge,
1040 dbds_continue_enumeration_p, determine_bb_domination_status,
1041 thread_through_loop_header): New functions.
1042 (create_edge_and_update_destination_phis,
1043 create_edge_and_update_destination_phis): Set loops for the new blocks.
1044 (prune_undesirable_thread_requests): Removed.
1045 (redirect_edges): Do not pretend that redirect_edge_and_branch can
1047 (thread_block): Do not call prune_undesirable_thread_requests.
1049 (mark_threaded_blocks): Select edges to thread here.
1050 (thread_through_all_blocks): Take may_peel_loop_headers argument.
1051 Thread edges through loop headers independently.
1052 * cfgloopmanip.c (create_preheader, mfb_keep_just): Export.
1053 * tree-pass.h (TODO_mark_first_instance): New.
1054 (first_pass_instance): Declare.
1055 * cfghooks.c (duplicate_block): Put the block to the original loop
1056 if copy is not specified.
1057 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Preserve loops through
1058 jump threading. Pass may_peel_loop_headers to
1059 thread_through_all_blocks according to first_pass_instance.
1060 * cfgloop.h (create_preheader): Declare.
1061 * tree-flow.h (thread_through_all_blocks): Declaration changed.
1062 * basic-block.h (mfb_keep_just, mfb_kj_edge): Declare.
1063 * passes.c (first_pass_instance): New variable.
1064 (next_pass_1): Set TODO_mark_first_instance.
1065 (execute_todo): Set first_pass_instance.
1067 2007-05-17 Uros Bizjak <ubizjak@gmail.com>
1069 PR tree-optimization/24659
1070 * optabs.h (enum optab_index): Add OTI_vec_unpacks_float_hi,
1071 OTI_vec_unpacks_float_lo, OTI_vec_unpacku_float_hi,
1072 OTI_vec_unpacku_float_lo, OTI_vec_pack_sfix_trunc and
1073 OTI_vec_pack_ufix_trunc.
1074 (vec_unpacks_float_hi_optab): Define new macro.
1075 (vec_unpacks_float_lo_optab): Ditto.
1076 (vec_unpacku_float_hi_optab): Ditto.
1077 (vec_unpacku_float_lo_optab): Ditto.
1078 (vec_pack_sfix_trunc_optab): Ditto.
1079 (vec_pack_ufix_trunc_optab): Ditto.
1080 * genopinit.c (optabs): Implement vec_unpack[s|u]_[hi|lo]_optab
1081 and vec_pack_[s|u]fix_trunc_optab using
1082 vec_unpack[s|u]_[hi\lo]_* and vec_pack_[u|s]fix_trunc_* patterns
1083 * tree-vectorizer.c (supportable_widening_operation): Handle
1084 FLOAT_EXPR and CONVERT_EXPR. Update comment.
1085 (supportable_narrowing_operation): New function.
1086 * tree-vectorizer.h (supportable_narrowing_operation): Prototype.
1087 * tree-vect-transform.c (vectorizable_conversion): Handle
1088 (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
1089 (vect_gen_widened_results_half): Move before vectorizable_conversion.
1090 (vectorizable_type_demotion): Call supportable_narrowing_operation()
1091 to check for target support.
1092 * optabs.c (optab_for_tree_code) Return vec_unpack[s|u]_float_hi_optab
1093 for VEC_UNPACK_FLOAT_HI_EXPR, vec_unpack[s|u]_float_lo_optab
1094 for VEC_UNPACK_FLOAT_LO_EXPR and vec_pack_[u|s]fix_trunc_optab
1095 for VEC_PACK_FIX_TRUNC_EXPR.
1096 (expand_binop): Special case mode of the result for
1097 vec_pack_[u|s]fix_trunc_optab.
1098 (init_optabs): Initialize vec_unpack[s|u]_[hi|lo]_optab and
1099 vec_pack_[u|s]fix_trunc_optab.
1101 * tree.def (VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR,
1102 VEC_PACK_FIX_TRUNC_EXPR): New tree codes.
1103 * tree-pretty-print.c (dump_generic_node): Handle
1104 VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
1105 VEC_PACK_FIX_TRUNC_EXPR.
1107 * expr.c (expand_expr_real_1): Ditto.
1108 * tree-inline.c (estimate_num_insns_1): Ditto.
1109 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
1111 * config/i386/sse.md (vec_unpacks_float_hi_v8hi): New expander.
1112 (vec_unpacks_float_lo_v8hi): Ditto.
1113 (vec_unpacku_float_hi_v8hi): Ditto.
1114 (vec_unpacku_float_lo_v8hi): Ditto.
1115 (vec_unpacks_float_hi_v4si): Ditto.
1116 (vec_unpacks_float_lo_v4si): Ditto.
1117 (vec_pack_sfix_trunc_v2df): Ditto.
1119 * doc/c-tree.texi (Expression trees) [VEC_UNPACK_FLOAT_HI_EXPR]:
1121 [VEC_UNPACK_FLOAT_LO_EXPR]: Ditto.
1122 [VEC_PACK_FIX_TRUNC_EXPR]: Ditto.
1123 * doc/md.texi (Standard Names) [vec_pack_sfix_trunc]: Document.
1124 [vec_pack_ufix_trunc]: Ditto.
1125 [vec_unpacks_float_hi]: Ditto.
1126 [vec_unpacks_float_lo]: Ditto.
1127 [vec_unpacku_float_hi]: Ditto.
1128 [vec_unpacku_float_lo]: Ditto.
1130 2007-05-16 Uros Bizjak <ubizjak@gmail.com>
1132 * soft-fp/README: Update for new files.
1133 * soft-fp/floattisf.c: New file.
1134 * soft-fp/floattidf.c: New file.
1135 * soft-fp/floattitf.c: New file.
1136 * soft-fp/floatuntisf.c: New file.
1137 * soft-fp/floatuntidf.c: New file.
1138 * soft-fp/floatuntitf.c: New file.
1139 * soft-fp/fixsfti.c: New file.
1140 * soft-fp/fixdfti.c: New file.
1141 * soft-fp/fixtfti.c: New file.
1142 * soft-fp/fixunssfti.c: New file.
1143 * soft-fp/fixunsdfti.c: New file.
1144 * soft-fp/fixunstfti.c: New file.
1145 * soft-fp/extendxftf.c: New file.
1146 * soft-fp/trunctfxf.c: New file.
1148 * libgcc-std.ver (__extendxftf2): Added to GCC_4.3.0 section.
1149 (__trunctfxf2): Ditto.
1151 * config/i386/libgcc-x86_64-glibc.ver (__addtf3, __divtf3, __eqtf2,
1152 __extenddftf2, __extendsftf2, __fixtfdi, __fixtfsi, __fixtfti,
1153 __fixunstfdi, __fixunstfsi, __fixunstfti, __floatditf, __floatsitf,
1154 __floattitf, __floatunditf, __floatunsitf, __floatuntitf, __getf2,
1155 __letf2, __multf3, __negtf2, __subtf3, __trunctfdf2, __trunctfsf2,
1156 __unordtf2): Exclude and add to GCC_4.3.0 section for x86_64 targets.
1158 * config/i386/t-fprules-softfp64: New file.
1159 * config/i386/sfp-machine.h: New file.
1160 * config.gcc (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu,
1161 x86_64-*-knetbsd*-gnu): Add i386/t-fprules-softfp64
1162 and soft-fp/t-softfp to tmake_file.
1163 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1164 i[34567]86-*-knetbsd*-gnu): Ditto for --enable-targets=all.
1166 * config/i386/t-linux64 (softfp_wrap_start): New.
1167 (softfp_wrap_end): New.
1168 * config/i386/i386.c (ix86_scalar_mode_supported): TFmode is
1169 supported for TARGET_64BIT.
1171 2007-05-16 Rafael Avila de Espindola <espindola@google.com>
1173 * c-common.c (c_common_signed_or_unsigned_type): Emulate
1174 c_common_unsigned_type behavior.
1176 2007-05-16 Paolo Bonzini <bonzini@gnu.org>
1178 * config/i386/i386.c (legitimize_tls_address): Mark __tls_get_addr
1181 2007-05-16 Eric Christopher <echristo@apple.com>
1183 * config/rs6000/rs6000.c (rs6000_emit_prologue): Move altivec register
1184 saving after stack push. Set sp_offset whenever we push.
1185 (rs6000_emit_epilogue): Move altivec register restore before
1188 2007-05-16 Richard Sandiford <richard@codesourcery.com>
1190 * configure.ac: Allow sysroots to be relocated under $prefix as
1191 well as $exec_prefix.
1192 * configure: Regenerate.
1194 2007-05-16 Richard Sandiford <richard@codesourcery.com>
1198 2007-05-12 Richard Sandiford <richard@codesourcery.com>
1200 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
1201 (gcc_tooldir): Likewise.
1202 * configure: Regenerate.
1203 * Makefile.in (libsubdir_to_prefix): New variable, based on the
1204 old configure.ac gcc_tooldir setting.
1205 (prefix_to_exec_prefix): New variable.
1206 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
1207 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
1209 2007-05-14 Janis Johnson <janis187@us.ibm.com>
1211 * c-typeck.c (build_binary_op): Return early for error.
1213 2007-05-15 Zdenek Dvorak <dvorakz@suse.cz>
1215 * tree-ssa-loop-niter.c (record_estimate): Use GGC_NEW to allocate
1216 struct nb_iter_bound.
1217 (free_numbers_of_iterations_estimates_loop): Use ggc_free.
1218 * gengtype.c (open_base_files): Add cfhloop.h to the list of includes.
1219 * cfgloopmanip.c (place_new_loop): Vector larray is gc-allocated.
1220 * tree-scalar-evolution.c: Include gt-tree-scalar-evolution.h.
1221 (struct scev_info_str, scalar_evolution_info): Add GTY markers.
1222 (new_scev_info_str): Use GGC_NEW to allocate struct scev_info_str.
1223 (del_scev_info): Use ggc_free.
1224 (scev_initialize): Allocate scalar_evolution_info in gc memory.
1225 * loop-init.c: Include ggc.h.
1226 (loop_optimizer_init): Use GGC_CNEW to allocate struct loops.
1227 (loop_optimizer_finalize): Use ggc_free.
1228 * tree-ssa-loop.c (pass_tree_unswitch, pass_vectorize,
1229 pass_linear_transfom, pass_empty_loop, pass_complete_unroll,
1230 pass_iv_optimize): Add TODO_ggc_collect.
1231 * function.h (struct function): Remove skip marker from x_current_loops.
1232 * cfgloop.c: Include ggc.h.
1233 (flow_loops_free, flow_loop_free): Free the loop descriptions in gc
1235 (establish_preds): Vector superloops is gc allocated.
1236 (alloc_loop): Allocate loop using GGC_CNEW. Allocate head of
1238 (flow_loops_find): Vector larray is gc allocated.
1239 (loop_exit_free): Use ggc_free.
1240 (rescan_loop_exit): Use GGC_NEW to allocate struct loop_exit. Reflect
1241 that head of exits list is now not a part of struct loop.
1242 (record_loop_exits): Allocate exits table in gc memory.
1243 (get_loop_exit_edges, verify_loop_structure, single_exit): Reflect that
1244 head of exits list is now not a part of struct loop.
1245 * cfgloop.h (struct lpt_decision, struct nb_iter_bound,
1246 struct loop_exit): Add GTY marker.
1247 (struct loop): Add GTY marker. Make superloops vector gc allocated.
1248 Add skip marker to aux field. Make head of exits list a separate
1250 (struct loops): Add GTY marker. Make larray vector gc allocated.
1251 Add param marker to exits table.
1252 (get_loops): Type changed.
1253 * Makefile.in (tree-scalar-evolution.o): Add gt-tree-scalar-evolution.h
1255 (cfgloop.o, loop-init.o): Add ggc.h dependency.
1256 (GTFILES): Add cfgloop.h and tree-scalar-evolution.c.
1257 * basic-block.h (struct basic_block_def): Remove skip marker from
1260 2007-05-14 Uros Bizjak <ubizjak@gmail.com>
1262 * builtins.c (expand_builtin_mathfn): Use EXPAND_NORMAL instead
1263 of 0 in the call to expand_expr().
1264 (expand_builtin_mathfn_3): Ditto.
1265 (expand_builtin_interclass_mathfn): Ditto.
1266 (expand_builtin_cexpi): Ditto.
1267 (expand_builtin_int_roundingfn): Ditto.
1268 (expand_builtin_int_roundingfn_2): Ditto.
1269 (expand_builtin_pow): Ditto.
1270 (expand_builtin_powi): Ditto.
1271 (expand_builtin_bswap): Ditto.
1272 (expand_builtin_unop): Ditto.
1273 (expand_builtin_fabs): Ditto.
1274 (get_builtin_sync_mem): Use NULL_RTX instead of NULL in
1275 the call to expand_expr().
1276 (expand_builtin_sync_operation): Ditto.
1277 (expand_builtin_compare_and_swap): Ditto.
1278 (expand_builtin_lock_test_and_set): Ditto.
1279 * except.c (expand_builtin_eh_return_data_regno): Use EXPAND_NORMAL
1280 instead of 0 in the call to expand_expr().
1281 (expand_builtin_extract_return_addr): Ditto.
1282 (expand_builtin_eh_return): Ditto.
1283 (expand_eh_return): Ditto.
1284 * explow.c (expr_size): Ditto.
1285 * expr.c (optimize_bitfield_assignment_op): Ditto.
1286 (expand_assignement): Ditto.
1287 (store_expr): Ditto.
1288 (store_field): Ditto.
1289 (expand_expr_addr_expr_1): Use NULL_RTX instead of NULL in
1290 the call to expand_expr().
1291 (expand_expr_real_1) [COMPLEX_CST]: Use EXPAND_NORMAL instead of 0
1292 in the call to expand_expr().
1293 [CONSTRUCTOR, PLUS_EXPR, MINUS_EXPR, NEGATE_EXPR, ABS_EXPR,
1294 BIT_NOT_EXPR, LSHIFT_EXPR, LT_EXPR, TRUTH_NOT_EXPR]: Ditto.
1295 [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO]: Use expand_normal() instead
1297 * optabs.c (expand_vec_shift_expr): Ditto.
1298 (expand_vec_cond_expr): Ditto.
1299 (vector_compare_rtx): Use EXPAND_STACK_PARM instead of 1 in the
1300 call to expand_expr().
1301 * stmt.c (expand_return): Use EXPAND_NORMAL instead of 0
1302 in the call to expand_expr().
1304 2007-05-14 Dave Korn <dave.korn@artimi.com>
1306 * genautomata.c (gen_regexp_el): Allocate correct size for regexp.
1308 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
1310 * c-common.c (warnings_for_convert_and_check): Use unsigned_type_for
1311 instead of c_common_unsigned_type.
1312 (c_common_unsigned_type): Remove.
1313 (shorten_compare): Use c_common_signed_or_unsigned_type instead of
1314 c_common_unsigned_type.
1315 (c_common_nodes_and_builtins): Use unsigned_type_for instead of
1316 c_common_unsigned_type.
1317 * c-common.h (c_common_unsigned_type): Remove.
1318 * c-decl.c (grokdeclarator): Use unsigned_type_for instead of
1319 c_common_unsigned_type.
1320 * c-format.c (check_format_types): Use unsigned_type_for instead of
1321 c_common_unsigned_type.
1322 * c-objc-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
1323 * c-typeck.c (convert_for_assignment): Use unsigned_type_for instead of
1324 c_common_unsigned_type.
1325 * convert.c (convert_to_integer): Use unsigned_type_for instead of
1326 lang_hooks.types.unsigned_type.
1327 * expmed.c (make_tree): Use unsigned_type_for instead of
1328 lang_hooks.types.unsigned_type.
1329 * fold-const.c (fold_negate_expr): Use unsigned_type_for instead of
1330 lang_hooks.types.unsigned_type.
1331 (build_range_check): Likewise.
1332 (fold_unary): Likewise.
1333 (fold_binary): Likewise.
1334 (fold_ternary): Likewise.
1335 * langhooks-def.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
1336 * langhooks.h (lang_hooks_for_types): Remove unsigned_type.
1337 * tree.c (get_unsigned_type): New.
1338 (unsigned_type_for): Use get_unsigned_type instead of
1339 lang_hooks.types.unsigned_type.
1341 2007-05-14 Kazu Hirata <kazu@codesourcery.com>
1343 * config/m68k/m68k-protos.h: Rename m68k_interrupt_function_p
1344 to m68k_get_function_kind. Update its prototype.
1345 * config/m68k/m68k.c (m68k_attribute_table): Add an entry for
1347 (m68k_interrupt_function_p): Return enum m68k_function_type
1348 instead of bool. Rename to m68k_get_function_kind.
1349 (m68k_handle_fndecl_attribute): Reject interrupt_thread if the
1351 (m68k_compute_frame_layout): Don't mark any register for save
1352 if an interrupt_thread attribute is specified.
1353 (m68k_hard_regno_rename_ok): Update a use of
1354 m68k_interrupt_function_p.
1355 * config/m68k/m68k.h (EPILOGUE_USES): Update a use of
1356 m68k_interrupt_function_p.
1357 (m68k_function_type): New.
1358 * config/m68k/m68k.md (*return): Output a 'sleep' instruction
1359 for a function with an interrupt_thread attribute.
1360 * doc/extend.texi: Document the interrupt_thread attribute.
1362 2007-05-13 Daniel Berlin <dberlin@dberlin.org>
1364 Fix PR tree-optimization/31911
1365 * tree-ssa-pre.c (phi_translate): Make sure to cache results even
1366 if they didn't change the expression.
1368 2007-05-13 Zdenek Dvorak <dvorakz@suse.cz>
1370 * tree-scalar-evolution.c (resolve_mixers): Exported.
1371 * tree-scalar-evolution.h (resolve_mixers): Declare.
1372 * tree-data-ref.c (object_analysis, ptr_decl_may_alias_p,
1373 ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
1374 record_record_differ_p, record_array_differ_p, array_ptr_differ_p,
1375 base_object_differ_p, base_addr_differ_p, analyze_array_indexes,
1376 init_array_ref, init_pointer_ref, analyze_indirect_ref,
1377 strip_conversion, analyze_offset_expr, address_analysis,
1378 object_analysis, analyze_offset): Removed.
1379 (dr_analyze_innermost, dr_analyze_indices, dr_analyze_alias,
1380 split_constant_offset, canonicalize_base_object_address,
1381 object_address_invariant_in_loop_p, disjoint_objects_p,
1382 dr_may_alias_p, dr_address_invariant_p): New functions.
1383 (create_data_ref): Use dr_analyze_innermost, dr_analyze_indices
1384 and dr_analyze_alias.
1385 (initialize_data_dependence_relation): Use dr_may_alias_p
1386 and object_address_invariant_in_loop_p.
1387 (compute_self_dependence): Handle the case when DDR_ARE_DEPENDENT (ddr)
1389 (find_data_references_in_stmt): Restrict the analysis of data references
1390 to the given loop nest.
1391 (find_data_references_in_loop): Made static. Pass loop nest to
1392 find_data_references_in_stmt.
1393 (compute_data_dependences_for_loop): Use DR_VOPS.
1394 (free_data_ref): Free DR_VOPS.
1395 * tree-data-ref.h (struct first_location_in_loop): Replaced by ...
1396 (struct innermost_loop_behavior): ... new.
1397 (struct base_object_info): Replaced by ...
1398 (struct indices): ... new.
1399 (struct dr_alias): New.
1400 (enum data_ref_type): Removed.
1401 (struct data_reference): Consist of struct innermost_loop_behavior,
1402 struct indices and struct dr_alias.
1403 (DR_SET_ACCESS_FNS, DR_FREE_ACCESS_FNS): Removed.
1404 (DR_MEMTAG): Renamed to ...
1405 (DR_SYMBOL_TAG): ... this.
1406 (find_data_references_in_loop): Declaration removed.
1407 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use DR_INIT
1408 instead of DR_OFFSET_MISALIGNMENT. DR_ALIGNED_TO is never NULL.
1409 (vect_analyze_data_refs): Use DR_SYMBOL_TAG instead of DR_MEMTAG.
1410 * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
1412 2007-05-13 Revital Eres <eres@il.ibm.com>
1414 * tree-ssa-dse.c (get_use_of_stmt_lhs): New function
1415 which walks virtual def-use chains to find redundant stores.
1416 (dse_optimize_stmt): Call it.
1418 2007-05-12 Steven Bosscher <steven@gcc.gnu.org>
1420 * gcse.c (gcse_main): Do jump bypassing in CPROP2.
1421 * passes.c (init_optimization_passes): Move pass_jump_bypass
1424 * basic-block.h (bb_has_eh_pred): Fix style issue.
1426 2007-05-12 Steven Bosscher <steven@gcc.gnu.org>
1428 PR rtl-optimization/31848
1429 * loop-invariant.c (move_invariant_reg): If we move an insn
1430 with a REG_EQUAL note, and that insn is not always executed,
1431 remove the REG_EQUAL note.
1433 2007-05-12 Richard Guenther <rguenther@suse.de>
1435 PR tree-optimization/31797
1436 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
1437 propagate into a stmt that has volatile ops.
1439 2007-05-12 Richard Sandiford <richard@codesourcery.com>
1441 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
1442 (gcc_tooldir): Likewise.
1443 * configure: Regenerate.
1444 * Makefile.in (libsubdir_to_prefix): New variable, based on the
1445 old configure.ac gcc_tooldir setting.
1446 (prefix_to_exec_prefix): New variable.
1447 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
1448 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
1450 2007-05-11 Silvius Rus <rus@google.com>
1452 * Makefile.in (OBJS-common): Add tree-ssa-alias-warnings.o.
1453 * c-common.c (strict_aliasing_warning): Modify -Wstrict-aliasing logic.
1454 * c-common.h (strict_aliasing_warning): Change return type.
1455 * c-opts.c (c_common_handle_option): Add call to set_Wstrict_aliasing.
1456 * c-typeck.c (build_indirect_ref): Add call to strict_aliasing_warning.
1457 (build_c_cast): Condition call to strict_aliasing_warning.
1458 * doc/invoke.texi: Update description of -Wstrict-aliasing[=n].
1459 * flags.h (set_Wstrict_aliasing): Declare.
1460 * opts.c (set_Wstrict_alising): Define, add call to.
1461 * tree-flow.h (strict_aliasing_warning_backend): Declare.
1462 * tree-ssa-alias-warnings.c: New file.
1463 * tree-ssa-alias.c (compute_may_aliases): Add call to
1464 strict_aliasing_warning_backend.
1466 2007-05-11 Zdenek Dvorak <dvorakz@suse.cz>
1468 * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
1469 Use loop_depth and loop_outer accessor functions.
1470 * tree-ssa-loop-im.c (outermost_invariant_loop, set_level,
1471 determine_invariantness_stmt, move_computations_stmt): Ditto.
1472 * cfgloopmanip.c (fix_bb_placement, fix_loop_placement, remove_path,
1473 add_loop, loopify, unloop, fix_loop_structure): Ditto.
1474 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Ditto.
1475 * tree-scalar-evolution.c (interpret_loop_phi,
1476 compute_scalar_evolution_in_loop, analyze_scalar_evolution_in_loop,
1477 instantiate_parameters_1, scev_const_prop): Ditto.
1478 * cfghooks.c (make_forwarder_block): Ditto.
1479 * cfgloopanal.c (mark_irreducible_loops, mark_loop_exit_edges): Ditto.
1480 * modulo-sched.c (loop_canon_p): Ditto.
1481 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg,
1482 slpeel_can_duplicate_loop_p): Ditto.
1483 * lambda-code.c (invariant_in_loop_and_outer_loops): Ditto.
1484 * tree-cfg.c (tree_duplicate_sese_region): Ditto.
1485 * cfgloop.c (flow_loop_dump, flow_loop_nodes_find, rescan_loop_exit,
1486 cancel_loop, verify_loop_structure): Ditto.
1487 (flow_loop_nested_p, superloop_at_depth, flow_loop_free,
1488 add_bb_to_loop, remove_bb_from_loops, find_common_loop): Use the
1489 superloops vector instead of "pred" array.
1490 (establish_preds): Take father loop as an argument. Initialize the
1492 (flow_loop_tree_node_add): Pass father loop to establish_preds. Do not
1493 initialize loop->outer.
1494 (flow_loop_tree_node_remove): Truncate the superloops vector.
1495 * cfgloop.h (struct loop): Removed field "outer", fields "depth" and
1496 "pred" merged to "superloops" vector.
1497 (loop_depth, loop_outer): New.
1498 (fel_init): Use loop_outer.
1500 2007-05-11 Jan Hubicka <jh@suse.cz>
1502 * cgraphunit.c: Include gt-cgraphunit.h
1503 (static_ctors, static_dtors): New static vars.
1504 (record_cdtor_fn, build_cdtor, cgraph_build_cdtor_fns): New functions,
1505 based on implementation in c-common.c
1506 (cgraph_finalize_function): Call record_cdtor_fn.
1507 (cgraph_optimize): Call cgraph_build_cdtor_fns.
1508 * decl.c (finish_function): Do not call c_record_cdtor_fn.
1509 (c_write_global_declarations): Do not call c_build_cdtor_fns.
1510 * c-common.c (static_ctors, static_dtors, c_record_cdtor_fn,
1511 build_cdtor, c_build_cdtor_fns): Remove.
1512 * c-common.h (static_ctors, static_dtors, c_record_cdtor_fn,
1513 c_build_cdtor_fns): Remove prototype.
1515 2007-05-11 Paolo Carlini <pcarlini@suse.de>
1518 * builtin-types.def: Add BT_FN_PTR_CONST_PTR_INT_SIZE.
1519 * builtins.def: Add BUILT_IN_MEMCHR, use the latter.
1520 * builtins.c (fold_builtin_memchr): New.
1521 (expand_builtin_memchr): Call the latter.
1522 (expand_builtin, fold_builtin_3): Deal with BUILT_IN_MEMCHR.
1523 * doc/extend.texi ([Other built-in functions provided by GCC]):
1526 2007-05-11 Andreas Krebbel <krebbel1@de.ibm.com>
1528 * config/s390/s390.md (GPR0_REGNUM, FPR0_REGNUM, FPR2_REGNUM,
1529 PFPO_CONVERT, PFPO_OP_TYPE_SF, PFPO_OP_TYPE_DF, PFPO_OP_TYPE_TF,
1530 PFPO_OP_TYPE_SD, PFPO_OP_TYPE_DD, PFPO_OP_TYPE_TD, PFPO_OP0_TYPE_SHIFT,
1531 PFPO_OP1_TYPE_SHIFT): Constants added.
1532 (DFP_ALL): Mode macro defined.
1533 ("*trunc<BFP:mode><DFP_ALL:mode>2", "*trunc<DFP_ALL:mode><BFP:mode>2",
1534 "*extend<BFP:mode><DFP_ALL:mode>2", "*extend<DFP_ALL:mode><BFP:mode>2"):
1535 Insn definitions added.
1536 ("trunc<BFP:mode><DFP_ALL:mode>2", "trunc<DFP_ALL:mode><BFP:mode>2",
1537 "extend<BFP:mode><DFP_ALL:mode>2", "extend<DFP_ALL:mode><BFP:mode>2"):
1540 2007-05-10 Zdenek Dvorak <dvorakz@suse.cz>
1542 PR tree-optimization/31885
1543 * tree-chrec.c (chrec_contains_undetermined): Do not consider NULL_TREE
1545 (automatically_generated_chrec_p): Return false for NULL.
1547 2007-05-08 Bernd Schmidt <bernd.schmidt@analog.com>
1549 * config/bfin/bfin.h (MOVE_RATIO): Define.
1551 2007-05-10 Richard Sandiford <richard@codesourcery.com>
1553 * config.gcc (sparc-wrs-vxworks): New target.
1554 * config/sparc/vxworks.h, config/sparc/t-vxworks: New files.
1555 * config/sparc/sparc-protos.h (sparc_emit_call_insn): Declare.
1556 * config/sparc/sparc.h: Include vxworks-dummy.h.
1557 (PRINT_OPERAND_ADDRESS): Extend SYMBOL_REF handling to
1558 include LABEL_REFs too.
1559 * config/sparc/sparc.c (sparc_expand_move): Don't assume that
1560 _GLOBAL_OFFSET_TABLE_ - label_ref is a link-time constant on
1562 (legitimize_pic_address): Handle LABEL_REFs like SYMBOL_REFs
1564 (load_pic_register): Use gen_vxworks_load_got for VxWorks.
1565 (sparc_emit_call_insn): New function.
1566 (sparc_function_ok_for_sibcall): Restrict sibcalls to locally-binding
1567 functions when generating VxWorks PIC.
1568 * config/sparc/sparc.md (vxworks_load_got): New pattern.
1569 (call, call_value): Use sparc_emit_call_insn instead of
1572 2007-05-09 Bob Wilson <bob.wilson@acm.org>
1574 * config/xtensa/xtensa.c (xtensa_output_literal): Don't use #if.
1576 2007-05-09 Bob Wilson <bob.wilson@acm.org>
1578 * config/xtensa/xtensa.c (xtensa_output_literal): Mask out high bits
1579 for floating-point values if HOST_BITS_PER_LONG > 32. Use split_double
1580 instead of operand_subword.
1582 2007-05-08 Bernd Schmidt <bernd.schmidt@analog.com>
1584 * config/bfin/bfin.h (LOCAL_ALIGNMENT): Define.
1585 * config/bfin/bfin.c (bfin_local_alignment): New function.
1586 * config/bfin/bfin-protos.h (bfin_local_alignment): Declare it.
1588 2007-05-08 Chao-ying Fu <fu@mips.com>
1590 * doc/md.texi (msub@var{m}@var{n}4, usub@var{m}@var{n}4): Document.
1591 * optabs.h (OTI_smsub_widen, OTI_umsub_widen): New optab_indexes.
1592 (smsub_widen_optab, umsub_widen_optab): Define.
1593 * optabs.c (init_optabs): Initialize smsub_widen_optab and
1595 * genopinit.c (optabs): Fill in smsub_widen_optab and
1597 * expr.c (expand_expr_real_1): Try to use smsub_widen_optab
1598 and umsub_widen_optab to implement multiply-subtract sequences.
1599 * config/mips/mips.md (*msac<u>_di): Rename to...
1600 (<u>msubsidi4): ...this. Extend condition to include
1601 GENERATE_MADD_MSUB and TARGET_DSPR2. Change the constraint
1602 of operand 0 to "ka" and use the three-operand form of msub<u>
1604 * config/mips/mips-dspr2.md (mips_msub, mips_msubu): Convert
1607 2007-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
1609 PR rtl-optimization/28011
1610 * reload.c (push_reload): Set dont_share if IN appears in OUT
1611 also when IN is a PLUS rtx.
1612 (reg_overlap_mentioned_for_reload_p): Return true if X and IN
1615 2007-05-08 Kazu Hirata <kazu@codesourcery.com>
1617 * emit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL. Don't
1618 call unshare_all_decls.
1619 (unshare_all_rtl): Adjust the call to unshare_all_rtl_1.
1620 (unshare_all_decls): Remove.
1622 2007-05-08 Simon Martin <simartin@users.sourceforge.net>
1625 * tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree
1628 2007-05-08 Sandra Loosemore <sandra@codesourcery.com>
1629 Nigel Stephens <nigel@mips.com>
1631 * config/mips/mips.h (MAX_FPRS_PER_FMT): Renamed from FP_INC.
1632 Update comments and all uses.
1633 (MIN_FPRS_PER_FMT): Define.
1634 * config/mips/mips.c (function_arg): Fix to correctly handle
1635 the -mips32r2 -mfp64 -mabi=32 case.
1636 (override_options): Enable use of odd-numbered registers for
1637 SFmode values on MIPS32.
1638 (mips_save_reg_p): Save whole floating-point register pair if
1639 either half is used.
1640 (compute_frame_size): Fix comment.
1642 2007-05-08 Jie Zhang <jie.zhang@analog.com>
1644 * config/bfin/bfin-protos.h (bfin_expand_epilogue): Add a third
1645 argument of type bool.
1646 * config/bfin/bfin.c (add_to_reg): Add epilogue_p as a fourth
1647 argument. Safely select temporary P register according to it.
1648 (do_link): Change call site of add_to_reg accordingly.
1649 (do_unlink): Add epilogue_p as a fourth argument and pass it
1651 (expand_interrupt_handler_epilogue): Change call of do_unlink
1653 (bfin_expand_prologue): Add a third argument sibcall_p.
1654 * config/bfin/bfin.md (epilogue): Change call of
1655 bfin_expand_epilogue accordingly.
1656 (sibcall_epilogue): Likewise.
1657 (eh_return_internal): Likewise.
1659 * config/bfin/bfin-protos.h (enum bfin_cpu): Add
1660 BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.
1661 * config/bfin/bfin.c (bfin_handle_option): Handle
1662 -mcpu=bf534, -mcpu=bf536 and -mcpu=bf561.
1663 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS):
1664 Support bf534, bf536 and bf561.
1665 * doc/invoke.texi (Blackfin Options): Document -mcpu and -msim.
1667 2007-05-08 Uros Bizjak <ubizjak@gmail.com>
1670 * config/i386/i386.c (ix86_function_regparm): Process local
1671 functions only when TREE_CODE (decl) equals FUNCTION_DECL.
1673 2007-05-07 Mike Stump <mrs@apple.com>
1675 * doc/invoke.texi (Warning Options): Document that -Wempty-body
1676 also checks for and while statements in C++.
1678 2007-05-07 Nathan Froyd <froydnj@codesourcery.com>
1680 * gcc.c (at_file_supplied): New variable.
1681 (main): Set it if we expanded argv.
1682 (do_spec_1): Pass an @-file to the linker if we were called with
1683 an @-file argument and HAVE_GNU_LD.
1684 * collect2.c (at_file_supplied): New variable.
1685 (response_file): New variable.
1686 (collect_exit): Unlink response_file if necessary.
1687 (handler): Likewise.
1688 (do_wait): Likewise.
1689 (main): Set at_file_supplied if we expanded argv.
1690 (collect_execute): Pass an @-file to subprocesses if we were called
1691 with an @-file argument.
1692 * configure.ac: Add define for HAVE_GNU_LD.
1693 * configure: Regenerate.
1694 * config.in: Regenerate.
1696 2007-05-07 Naveen.H.S <naveen.hs@kpitcummins.com>
1698 * config/m32c/muldiv.md (mulhisi3_c): Limit the mode of the 2nd
1704 2007-05-07 Jayant Sonar <jayants@kpitcummins.com>
1706 * config/m32c/m32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
1707 (TARGET_ENCODE_SECTION_INFO): Re-define.
1708 (m32c_encode_section_info): New
1709 (function_vector_handler): New
1710 (current_function_special_page_vector): New
1711 (m32c_special_page_vector_p): New.
1712 * config/m32c/m32c-protos.h (m32c_special_page_vector_p):
1714 * config/m32c/jump.md: Added instruction JSRS for functions
1715 with attribute "function_vector".
1716 * doc/extend.texi (function_vector): Added description
1717 for M16C, M32C targets.
1719 2007-05-07 DJ Delorie <dj@redhat.com>
1722 * config/m32c/shift.md (ashlpsi3_i, ashrpsi3_i, ashlpsi3,
1723 ashrpsi3, lshrpsi3): Update shift count constraint.
1725 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
1726 Nathan Froyd <froydnj@codesourcery.com>
1729 * c-incpath.c (add_path): Strip trailing path separators.
1731 2007-05-07 Eric Botcazou <ebotcazou@adacore.com>
1733 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.
1734 Free dominance info before purging EH edges.
1735 (eliminate_degenerate_phis): Likewise.
1736 (propagate_rhs_into_lhs): Set cfg_altered to true instead of 1.
1738 2007-05-07 Jan Hubicka <jh@suse.cz>
1740 * gimplify.c (gimplify_expr): Do not crash when folding
1741 (void *)(int)&a + 4.
1743 2007-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1746 * c-opts.c (lang_fortran): Make it non static.
1747 * c-common.h (lang_fortran): New prototype.
1748 * c-cppbuiltin.c (c_cpp_builtins): Create a __GFORTRAN__ if the
1749 -lang-fortran option was passed by the driver.
1751 2007-05-06 Eric Botcazou <ebotcazou@adacore.com>
1753 * timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead
1754 of ASSERT_CHECKING. Tweak message.
1756 2007-05-06 Revital Eres <eres@il.ibm.com>
1759 * loop-unroll.c (insert_var_expansion_initialization):
1760 Initialize the expansions with -zero instead of +zero.
1762 2007-05-05 Aurelien Jarno <aurelien@aurel32.net>
1764 * config/pa/pa.md: Split tgd_load, tld_load and tie_load
1765 into pic and non-pic versions. Mark r19 as used for
1766 tgd_load_pic, tld_load_pic and tie_load_pic. Mark r27 as used
1767 for tgd_load, tld_load and tie_load .
1768 * config/pa/pa.c (legitimize_tls_address): Emit pic or non-pic
1769 version of tgd_load, tld_load and tie_load depending on the
1772 2007-05-04 Ulrich Drepper <drepper@redhat.com>
1773 Jakub Jelinek <jakub@redhat.com>
1775 * crtstuff.c (HIDDEN_DTOR_LIST_END): New macro.
1776 (__do_global_dtors_aux): Use more paranoid loop to run
1777 destructors if HIDDEN_DTOR_LIST_END.
1778 (__DTOR_END__): Export as a hidden symbol when HIDDEN_DTOR_LIST_END.
1780 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1782 * varasm.c (align_variable): Don't increase alignment for
1783 DECL_THREAD_LOCAL_P variables above BITS_PER_WORD through
1784 DATA_ALIGNMENT or CONSTANT_ALIGNMENT.
1786 2007-05-04 Josh Conner <jconner@apple.com>
1788 * basic-block.h (cdi_direction): Assign values to all enumeration
1790 (dom_computed): Remove.
1791 (dom_info_state): New.
1792 (set_dom_info_availability): New.
1793 * tree-ssa-loop-im.c (determine_invariantness): Initialize
1794 walk_data.dom_direction.
1795 * cfghooks.c (delete_basic_block): Use dom_info_available_p()
1796 instead of dom_computed[].
1797 (split_edge): Likewise.
1798 (create_basic_block): Likewise.
1799 (merge_blocks): Likewise.
1800 * ifcvt.c (find_if_header): Likewise.
1801 * tree-cfgcleanup.c (cleanup_tree_cfg): Likewise.
1802 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
1803 * tree-ssa.c (verify_ssa): Likewise.
1804 * tree-cfg.c (tree_verify_flow_info): Likewise.
1805 (remove_edge_and_dominated_blocks): Likewise.
1806 * dominance.c (dom_computed): Make static.
1807 (calc_dfs_tree_nonrec): Change third param to a bool.
1808 (calc_dfs_tree): Change second param to a bool.
1809 (calc_idioms): Change second param to a bool. Use
1810 dom_convert_dir_to_idx.
1811 (init_dom_info): Validate dir before using.
1812 (dom_convert_dir_to_idx): New.
1813 (calculate_dominance_info): Use dom_convert_dir_to_idx. New
1814 variable 'reverse' used for calling calc_dfs_tree and calc_idoms.
1815 (free_dominance_info): Use dom_convert_dir_to_idx.
1816 (get_immediate_dominator): Likewise.
1817 (set_immediate_dominator): Likewise.
1818 (get_dominated_by): Likewise.
1819 (redirect_immediate_dominators): Likewise.
1820 (nearest_common_denominator): Likewise.
1821 (dominated_by_p): Likewise.
1822 (bb_dom_dfs_in): Likewise.
1823 (bb_dom_dfs_out): Likewise.
1824 (recount_dominator): Likewise.
1825 (iterate_fix_dominators): Likewise.
1826 (add_to_dominance_info): Likewise.
1827 (delete_from_dominance_info): Likewise.
1828 (first_dom_son): Likewise.
1829 (next_dom_son): Likewise.
1830 (dom_info_available_p): Likewise.
1831 (dom_info_state): New.
1832 (set_dom_info_availability): New.
1834 2007-05-04 Andreas Krebbel <krebbel1@de.ibm.com>
1836 * config/s390/s390.md ("fix_trunc<mode>di2", "fix_trunc<mode>si2"):
1838 ("fix_trunc<DSF:mode><GPR:mode>2"): Expander added.
1840 2007-05-04 Bob Wilson <bob.wilson@acm.org>
1842 * config/xtensa/xtensa.md (adddi3, adddi_carry): Delete.
1843 (subdi3, subdi_carry): Delete.
1845 2007-05-04 Jan Hubicka <jh@suse.cz>
1846 Richard Guenther <rguenther@suse.de>
1848 * opts.c (decode_options): Do not fiddle with inlining
1849 parameters in case of optimizing for size.
1850 * ipa-inline.c (cgraph_decide_recursive_inlining): When optimizing
1851 for size do nothing.
1852 (cgraph_decide_inlining_of_small_function): When optimizing for
1853 size never inline functions increasing caller size.
1854 (cgraph_early_inlining): Inline for size when optimizing for size.
1856 2007-04-18 Bernd Schmidt <bernd.schmidt@analog.com>
1858 * config/bfin/bfin.md (<optab>di3): Now a define_expand which expands
1859 logical operations piecewise.
1860 (<optab>di_zesidi_di, <optab>di_sesidi_di, negdi2, one_cmpldi2,
1861 zero_extendsidi2, subdi_di_zesidi, subdi_zesidi_di, subdi_di_sesidi,
1862 subdi_sesidi_di): Delete.
1863 (add_with_carry): Produce carry in CC instead of a DREG to shorten
1864 the generated sequence. Allow three-reg add in constraints. Rewrite
1865 the rtl expression for carry to avoid zero_extend of a constant.
1866 (sub_with_carry): New pattern.
1867 (adddi3, subdi3): Change into define_expand. For subtract, generate a
1868 different sequence not involving jumps.
1869 (notbi): Now a named pattern.
1871 2007-05-04 Bradley Lucier <lucier@math.purdue.edu>
1873 * doc/invoke.texi (i386 and x86-64 Options) [-mpc32, -mpc64, -mpc80]:
1874 Add the note about a significant loss of accuracy of some
1875 mathematical routines when these options are used.
1877 2007-05-04 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1879 * haifa-sched.c (rtx_vec_t): New typedef.
1880 (contributes_to_priority_p): Extract piece of priority () into new
1882 (priority): Use the function. Add assertion.
1883 (rank_for_schedule, set_priorities): Add assertion to check that
1884 insn's priority is initialized.
1885 (clear_priorities, calc_priorities): Change signature. Make it update
1886 all relevant insns. Update all callers ('add_to_speculative_block ()'
1887 and 'create_block_check_twin ()').
1888 * sched-int.h (struct haifa_insn_data): Remove field 'priority_known'.
1889 Add new field 'priority_status'.
1890 (INSN_PRIORITY_STATUS): New macro.
1891 (INSN_PRIORITY_KNOWN): Change to use INSN_PRIORITY_STATUS.
1893 2007-05-04 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1895 * sched-ebb.c (debug_ebb_dependencies): New static function.
1896 (init_ready_list): Use it.
1898 * sched-rgn.c (debug_dependencies): Split into 'debug_dependencies ()'
1899 with changed signature and 'debug_rgn_dependencies ()'.
1900 (debug_rgn_dependencies): New static function.
1901 (init_ready_list): Use it.
1903 * sched-int.h (debug_dependencies): Declare.
1905 2007-05-04 Andreas Krebbel <krebbel1@de.ibm.com>
1907 * libgcc-std.ver (__ffssi2): Added to GCC_4.3.0 section.
1909 2007-05-04 Dirk Mueller <dmueller@suse.de>
1911 * c.opt(Wmain,ffreestanding): Enable for C++,ObjC++.
1913 2007-05-03 Jan Hubicka <jh@suse.cz>
1915 * fold-const.c (fold_unary): Convert (T1)(X op Y) into ((T1)X op (T1)Y),
1916 for pointer type in more cases than before.
1918 * gimplify.c (gimplify_expr): Fold (void *)&a + 4.
1920 * tree-object-size.c (plus_expr_object_size): When operand size is
1921 unknown, return unknown.
1923 2007-05-03 Dirk Mueller <dmueller@suse.de>
1925 * doc/invoke.texi (-m386,-m486,-mpentium,-mpentiumpro): Remove.
1927 * config/i386/i386.h (CC1_CPU_SPEC): Remove handling for deprecated
1930 * config/i386/i386.opt (m386,m486,mpentium,mpentiumpro): Remove.
1932 2007-05-03 Janis Johnson <janis187@us.ibm.com>
1934 * doc/sourcebuild.texi (Test Directives) Clarify dg-excess-errors.
1936 2007-05-03 Joseph Myers <joseph@codesourcery.com>
1938 * config/soft-fp/double.h, config/soft-fp/extended.h,
1939 config/soft-fp/floatundidf.c, config/soft-fp/floatundisf.c,
1940 config/soft-fp/floatunsidf.c, config/soft-fp/floatunsisf.c,
1941 config/soft-fp/op-2.h, config/soft-fp/op-4.h,
1942 config/soft-fp/op-common.h, config/soft-fp/quad.h: Update from
1945 2007-05-03 Ian Lance Taylor <iant@google.com>
1947 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
1948 MASK_PPC_GFXOPT for 8540 or 8548.
1950 2007-05-03 Uros Bizjak <ubizjak@gmail.com>
1952 * tree-vect-transform.c (vect_update_inits_of_drs): Use
1953 vect_print_dump_info() to output debug information.
1955 2007-05-03 Uros Bizjak <ubizjak@gmail.com>
1958 * config/i386/i386.c (print_operand) ['z']: Output 'w' for
1959 operands of size 2 when operand is not MEM_P.
1961 2007-05-03 Zdenek Dvorak <dvorakz@suse.cz>
1963 PR tree-optimization/30565
1964 * lambda-code.c (perfect_nestify): Fix updating of dominators.
1966 2007-05-03 Bernd Schmidt <bernd.schmidt@analog.com>
1968 * config/bfin/bfin.md (addpdi3, us_truncpdisi2): New patterns.
1969 (umulsi3_highpart): Use them.
1970 * config/bfin/lib1funcs.asm (__umulsi3_highpart): Use unsigned move
1971 for final accumulator to D regisster tranfser.
1973 2007-05-03 Dorit Nuzman <dorit@il.ibm.com>
1975 PR tree-optimization/31699
1976 * tree-vect-analyze.c (vect_update_misalignment_for_peel): Remove wrong
1978 (vect_enhance_data_refs_alignment): Compute peel amount using
1979 TYPE_VECTOR_SUBPARTS instead of vf.
1980 * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Likewise.
1982 2007-05-02 Brooks Moses <brooks.moses@codesourcery.com>
1985 * system.h: Remove inclusion of double-int.h
1986 * tree.h: Include double-int.h
1987 * gengtype.c: Likewise
1988 * cfgloop.h: Likewise
1989 * Makefile.in: Adjust dependencies on double-int.h
1991 2007-05-02 Eric Christopher <echristo@apple.com>
1993 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Translate
1994 -shared to -Zdynamiclib.
1996 2007-05-02 Seongbae Park <seongbae.park@gmail.com>
1999 * c-common.c (strip_pointer_or_array_types): New function.
2000 * c-common.h (strip_pointer_or_array_types): New function declaration.
2002 2007-05-03 Zdenek Dvorak <dvorakz@suse.cz>
2004 PR tree-optimization/31771
2005 * tree-cfg.c (move_block_to_fn): Assign bb to the correct index.
2007 2007-05-02 Paul Brook <paul@codesourcery.com>
2009 * config/arm/bpabi.S (aeabi_lcmp): Fix result on overflow.
2011 2007-05-02 Andrew Pinski <andrew_pinski@playstation.sony.com>
2014 * fold-const.c (fold_comparision): Remove the "foo++ == CONST"
2017 2007-05-02 Nick Clifton <nickc@redhat.com>
2019 * config/frv/predicates.md (symbolic_operand): Accept CONSTs.
2021 2007-05-02 Richard Guenther <rguenther@suse.de>
2023 PR tree-optimization/31146
2024 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
2025 argument, single_use_p. If we have a single use that is
2026 a conversion to the definition rhs type, propagate that rhs.
2027 (forward_propagate_addr_expr): Pass single_use_p argument
2028 to forward_propagate_addr_expr_1.
2030 2007-05-01 H.J. Lu <hongjiu.lu@intel.com>
2032 * config/i386/i386.c (ix86_expand_sse_comi): Remove unused
2035 2007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2037 * doc/invoke.texi: Fix typo, 'AMD Family 10h core' instead of
2038 'AMD Family 10 core'.
2040 2007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2042 * config/i386/i386.c (override_options): Accept k8-sse3, opteron-sse3
2043 and athlon64-sse3 as improved versions of k8, opteron and athlon64
2044 with SSE3 instruction set support.
2045 * doc/invoke.texi: Likewise.
2047 2007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2049 * config/i386/i386.c (override_options): Tuning 32-byte loop
2050 alignment for amdfam10 architecture. Increasing the max loop
2051 alignment to 24 bytes.
2053 2007-05-01 Kazu Hirata <kazu@codesourcery.com>
2055 * config/m68k/constraints.md: New.
2056 * config/m68k/m68k.h (REG_CLASS_FROM_LETTER,
2057 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
2058 EXTRA_CONSTRAINT): Remove.
2059 * config/m68k/m68k.md: Include constraints.md.
2060 * expr.c (expand_expr_real_1): Copy DECL_RTL before using it.
2062 2007-05-01 Ian Lance Taylor <iant@google.com>
2064 PR tree-optimization/31739
2065 * tree-vrp.c (vrp_val_is_max): New static function.
2066 (vrp_val_is_min): New static function.
2067 (set_value_range_to_value): Use TYPE_{MAX,MIN}_VALUE rather than
2069 (set_value_range): Use vrp_val_is_{max,min}.
2070 (extract_range_from_assert): Likewise.
2071 (extract_range_from_binary_expr): Likewise.
2072 (extract_range_from_unary_expr): Likewise.
2073 (dump_value_range, vrp_meet): Likewise.
2074 (vrp_visit_phi_node): Likewise.
2075 * tree.c (build_distinct_type_copy): Revert change of 2007-04-27.
2077 2007-05-01 Mark Mitchell <mark@codesourcery.com>
2079 * config/i386/gmon-sol2.c (size_t): New type.
2080 (intptr_t): Likewise.
2081 (s_textsize): Declare as size_t.
2083 (monstartup): Use size_t for sizes.
2084 (_mcount): Save and restore registers.
2085 (internal_mcount): Pass 0 as the first argument to monstartup
2087 (moncontrol): Convert pointer to appropriately sized integer
2088 before passing to profil.
2090 2007-05-01 Joseph Myers <joseph@codesourcery.com>
2092 * config/rs6000/darwin-ldouble.c (__gcc_qunord): Define if
2093 __NO_FPRS__, not just if _SOFT_DOUBLE.
2094 * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qunord): Likewise.
2095 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use __gcc_qunord
2096 also for E500 double.
2097 * config/rs6000/rs6000.md (buneq, bunge, bungt, bunle, bunlt,
2098 suneq, sunge, sungt, sunle, sunlt): Disable for (TARGET_HARD_FLOAT
2101 2007-05-01 Richard Guenther <rguenther@suse.de>
2103 * tree-ssa-loop-manip.c (ip_normal_pos): Check if last stmt
2106 2007-05-01 Joseph Myers <joseph@codesourcery.com>
2108 * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qgt): Fix typo.
2110 2007-05-01 Jan Hubicka <jh@suse.cz>
2112 * tree-vectorize.c (vect_is_simple_use): gimple_min_invariant is
2115 2007-05-01 Jan Hubicka <jh@suse.cz>
2117 * tree.h (maybe_fold_offset_to_component_ref): Remove.
2118 (maybe_fold_offset_to_reference): Declare.
2119 * fold-const.c (fold_unary): Do not fold
2120 (type *)&A into &A->field_of_type_and_offset_0
2121 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): When base type
2122 size is unknown, give up.
2123 (maybe_fold_offset_to_component_ref): Ignore firelds with unknown
2125 (maybe_fold_offset_to_reference): New.
2126 (maybe_fold_stmt_indirect): Use it.
2127 (fold_stmt_r): Fold (type *)&A+offset into A->field_if_type_and_offset.
2128 * gimplify.c (gimplify_conversion): Canonicalize conversions to
2130 (gimplify_expr): Likewise for plus_expr.
2132 2007-05-01 Zdenek Dvorak <dvorakz@suse.cz>
2134 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Use
2135 bsi_after_labels. Always insert statements before bsi.
2136 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
2137 * predict.c (apply_return_prediction): Check for empty blocks.
2138 * cfgexpand.c (lab_rtx_for_bb): New variable.
2139 (label_rtx_for_bb): Do not create new tree labels.
2140 (expand_gimple_basic_block): Add labels recorded in lab_rtx_for_bb.
2141 (tree_expand_cfg): Initialize lab_rtx_for_bb.
2142 * tree-cfg.c (build_tree_cfg): Call cleanup_dead_labels after
2144 (label_for_bb): Add field used.
2145 (update_eh_label, main_block_label): Mark the label used.
2146 (cleanup_dead_labels): Remove unused labels.
2148 2007-05-01 Richard Guenther <rguenther@suse.de>
2150 * tree-vrp.c (set_value_range): Do not allocate equiv bitmap
2151 if it is not about to be set.
2152 (get_value_range): Do not pre-allocate equiv bitmap.
2153 (update_value_range): No need to clear equiv field.
2154 (add_equivalence): Change prototype to get bitmap pointer.
2155 Allocate bitmap here if it is not already.
2156 (extract_range_from_assert): Do not allocate bitmap here.
2157 Update callers to add_equivalence.
2158 (extract_range_from_ssa_name): Likewise.
2159 (get_vr_for_comparison): New static helper.
2160 (compare_name_with_value): Handle NULL equiv bitmap by
2161 peeling the first iteration of the comparison loop.
2162 Use get_vr_for_comparison.
2163 (compare_names): Handle NULL equiv bitmaps by using fake
2164 ones. Use get_vr_for_comparison.
2166 2007-04-30 Brooks Moses <brooks.moses@codesourcery.com>
2168 * double-int.c (mpz_set_double_int): Moved from
2169 tree-ssa-loop-niter.c.
2170 (mpz_get_double_int): Likewise; also, add option to wrap
2171 out-of-range integers.
2172 * double-int.h: New prototypes for above.
2173 * tree.c (get_static_type_bounds): Moved from
2174 tree-ssa-loop-niter.c; now returns TYPE_MIN_VALUE and
2175 TYPE_MAX_VALUE if they exist..
2176 * tree.h: New prototype for above.
2177 * tree-ssa-loop-niter.c: Adjust mpz_to_double_int and
2178 get_type_bounds calls.
2179 (mpz_set_double_int): Move to double-int.c.
2180 (get_type_bounds): Move to tree.c, rename to
2181 get_static_type_bounds.
2182 (mpz_to_double_int): Move to double-int.c, rename to
2185 2007-04-30 Bob Wilson <bob.wilson@acm.org>
2187 * config/xtensa/lib1funcs.asm (__umodsi3, __modsi3): Rearrange so that
2188 DIV0 exception can fall through to a normal return.
2190 2007-04-30 Alexandre Oliva <aoliva@redhat.com>
2194 2007-04-06 Andreas Tobler <a.tobler@schweiz.org>
2195 * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
2196 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
2197 * tree-sra.c (try_instantiate_multiple_fields): Needlessly
2198 initialize align to silence bogus warning.
2199 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
2200 * tree-sra.c (struct sra_elt): Add in_bitfld_block. Remove
2202 (struct sra_walk_fns): Remove use_all parameter from use.
2203 (sra_hash_tree): Handle BIT_FIELD_REFs.
2204 (sra_elt_hash): Don't hash bitfld blocks.
2205 (sra_elt_eq): Skip them in parent compares as well. Handle
2207 (sra_walk_expr): Don't maintain or pass down use_all_p.
2208 (scan_use): Remove use_all parameter.
2209 (scalarize_use): Likewise. Re-expand assignment to
2210 BIT_FIELD_REF of gimple_reg. De-scalarize before input or
2211 output, and re-scalarize after output. Don't mark anything
2213 (scalarize_ldst): Adjust.
2214 (scalarize_walk_gimple_modify_statement): Likewise.
2215 (build_element_name_1): Handle BIT_FIELD_REFs.
2216 (instantiate_element): Don't warn for any element whose parent
2218 (instantiate_missing_elements_1): Return the sra_elt.
2219 (canon_type_for_field): New.
2220 (try_instantiate_multiple_fields): New.
2221 (instantiate_missing_elemnts): Use them.
2222 (mark_no_warning): Removed.
2223 (generate_one_element_ref): Handle BIT_FIELD_REFs.
2224 (REPLDUP, sra_build_elt_assignment): New.
2225 (generate_copy_inout): Use them.
2226 (generate_element_copy): Likewise. Handle bitfld differences.
2227 (generate_element_zero): Don't recurse for blocks. Use
2228 sra_build_elt_assignment.
2229 (generate_one_element_int): Take elt instead of var. Use
2230 sra_build_elt_assignment.
2231 (generate_element_init_1): Adjust.
2232 (scalarize_use, scalarize_copy): Use REPLDUP.
2233 (scalarize_ldst): Move assert before dereference.
2234 (dump_sra_elt_name): Handle BIT_FIELD_REFs.
2236 2007-04-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
2239 * tree.c (reconstruct_complex_type): Reconstruct a reference
2241 Also use the same mode for the pointer as the old pointer type.
2243 2007-04-30 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2245 * doc/trouble.texi (Interoperation): Remove note about Ultrix
2248 2007-04-29 Zdenek Dvorak <dvorakz@suse.cz>
2250 PR rtl-optimization/31676
2251 * df-scan.c (record_nonlocal_goto_receiver_defs): New function.
2252 (df_refs_record): Call it.
2254 2007-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
2256 * rtl.def (SS_ABS): New code.
2257 * config/bfin/bfin.c (print_operand): New modifier 'v'.
2258 (enum bfin_builtins): Add BFIN_BUILTIN_SUM_2X16, BFIN_BUILTIN_ABS_1x32,
2259 BFIN_BUILTIN_ROUND_1x32, BFIN_BUILTIN_MULT_1x32x32,
2260 BFIN_BUILTIN_MULT_1x32x32NS, BFIN_BUILTIN_SSASHIFT_1x32.
2261 (bfin_init_builtins): Define them.
2262 (bdesc_1arg, bdesc_2arg): Add some of them here, ...
2263 (bfin_expand_builtin): ... and handle the others here.
2264 * config/bfin/bfin.md (ssabssi2, ssroundsi2, ssashiftsi3,
2265 flag_mul_macv2hi_parts_acconly_andcc0): New patterns.
2266 (ss_absv2hi2): Renamed from absv2hi; use ss_abs code.
2267 (ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3): Shift count
2268 operand is only HImode.
2270 2007-04-29 Steven Bosscher <steven@gcc.gnu.org>
2272 * regclass.c (scan_one_insn): Remove splitting of
2275 2007-04-28 Sandra Loosemore <sandra@codesourcery.com>
2276 Nigel Stephens <nigel@mips.com>
2278 * config/mips/mips.h (SLOW_BYTE_ACCESS): Turn off for MIPS16.
2280 2007-04-28 Jan Hubicka <jh@suse.cz>
2282 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Use
2283 insn_locators_alloc instead of insn_locators_initialize;
2284 call reset_block_changes.
2285 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2286 * config/sh/sh.c (sparc_output_mi_thunk): Likewise.
2287 * config/is64/ia64.c (ia64_output_mi_thunk): Likewise.
2288 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
2289 * config/score/score.c (th_output_mi_thunk): Likewise.
2290 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
2291 * cfglyaout.c (set_curr_insn_source_location, set_curr_insn_block):
2292 tolerate uninitialized locator info.
2295 * function.c (init_function_start): Don't init line number info.
2296 (expand_function_end): Update.
2297 (reset_block_changes, record_block_change, finalize_block_changes,
2298 check_block_change, free_block_changes): Kill.
2299 * function.h (reset_block_changes, record_block_change,
2300 finalize_block_changes, check_block_change, free_block_changes): Remove
2302 (struct function): Remove ib_boundaries_block.
2303 * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
2304 Use curr_insn_locator to initialize locator.
2305 (emit_line_note): Remove.
2306 * cfgexpand.c (expand_gimple_cond_expr): Update.
2307 (construct_exit_block): Likewise.
2308 (tree_expand_cfg): Initialize/finalize locators.
2309 * expr.c (expand_expr_real): Update.
2310 * cfglayout.c (line_locators_locs, line_locators_lines,
2311 file_locators_locs, file_locators_files): Remove.
2312 (set_block_levels): Move to cfgexpand.c.
2313 (insn_locators_initialize): Remove.
2314 (pass_insn_locators_initialize): Remove.
2315 (locations_locators_locs, locations_locators_vals): New static vars.
2316 (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
2318 (insn_locators_alloc, insn_locators_finalize,
2319 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
2321 (locator_location): New.
2322 (locator_line, locator_file): Rewrite.
2323 * rtl.h (emit_line_note): Kill.
2324 (insn_locators_alloc, insn_locators_finalize,
2325 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
2327 * tree-inline.c (initialize_cfun): Do not initialize
2328 ib_boundaries_block.
2329 * passes.c (pass_insn_locators_initialize): Remove.
2331 2007-04-28 Zdenek Dvorak <dvorakz@suse.cz>
2333 * tree-cfg.c (move_block_to_fn): Release bb from dominance
2334 info. Update last_basic_block correctly.
2336 2007-04-27 Kaz Kojima <kkojima@gcc.gnu.org>
2339 * config/sh/sh.c (output_stack_adjust): Avoid using the frame
2340 register itself to hold the offset constant. Tell flow the use
2341 of r4 and r5 when they are used.
2343 2007-04-27 Richard Guenther <rguenther@suse.de>
2345 * tree-ssa-forwprop.c (forward_propagate_into_cond): Keep track
2346 if we simplified anything.
2347 (tree_ssa_forward_propagate_single_use_vars): Defer overflow
2348 warnings until we did a simplification and the stmt was not
2349 marked as TREE_NO_WARNING.
2351 2007-04-27 Mike Stump <mrs@apple.com>
2353 * config/rs6000/darwin.h (ALWAYS_PUSH_CONSTS_USING_REGS_P): Remove.
2355 2007-04-27 Ian Lance Taylor <iant@google.com>
2358 * tree.c (build_distinct_type_copy): If TYPE_MIN_VALUE or
2359 TYPE_MAX_VALUE exist, convert them to the new type.
2361 2007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
2363 * tree-cfgcleanup.c (cleanup_tree_cfg): Verify dominance info
2364 if it claims to be available.
2365 * tree-ssa-dce.c (remove_dead_stmt): Mark cfg as altered when
2367 (perform_tree_ssa_dce): Always free postdominators.
2369 2007-04-27 Richard Henderson <rth@redhat.com>
2371 * config/alpha/predicates.md (aligned_memory_operand): Mark
2372 as define_special_predicate.
2373 (unaligned_memory_operand, normal_memory_operand): Likewise.
2374 (reg_or_unaligned_mem_operand): Remove.
2375 (any_memory_operand): Match the documentation and check for
2376 non-renumbered pseudos during reload.
2377 * config/alpha/alpha.c (alpha_secondary_reload): Rename from
2378 alpha_secondary_reload_class, update to new interface, make static.
2379 Handle CQImode like HImode. Remove FP subreg check.
2380 (alpha_expand_mov): Use replace_equiv_address.
2381 (alpha_expand_mov_nobwx): Use any_memory_operand.
2382 (TARGET_SECONDARY_RELOAD): New.
2383 * config/alpha/alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Remove.
2384 (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
2385 * config/alpha/sync.md (I12MODE, I48MODE, modesuffix): Move ...
2386 * config/alpha/alpha.md: ... here.
2387 (RELOAD12, reloadmode): New.
2389 (reload_in<RELOAD12>): Macro-ize from reload_inqi, reload_inhi.
2390 Don't handle the aligned case here.
2391 (reload_out<RELOAD12>): Macro-ize from reload_outqi, reload_outhi.
2392 (reload_in<I12MODE>_aligned): Macro-ize from reload_inqi_help,
2393 reload_inhi_help. Don't expect a scratch register.
2394 (reload_out<I12MODE>_aligned): Macro-ize from reload_outqi_help,
2396 * config/alpha/alpha-protos.h (alpha_secondary_reload_class): Remove.
2398 2007-04-27 Richard Guenther <rguenther@suse.de>
2400 * tree-ssa-forwprop.c (get_prop_dest_stmt): Fix comment typo.
2402 2007-04-27 Richard Guenther <rguenther@suse.de>
2404 PR tree-optimization/30965
2405 PR tree-optimization/30978
2406 * Makefile.in (tree-ssa-forwprop.o): Depend on $(FLAGS_H).
2407 * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove.
2408 (find_equivalent_equality_comparison): Likewise.
2409 (simplify_cond): Likewise.
2410 (get_prop_source_stmt): New helper.
2411 (get_prop_dest_stmt): Likewise.
2412 (can_propagate_from): Likewise.
2413 (remove_prop_source_from_use): Likewise.
2414 (combine_cond_expr_cond): Likewise.
2415 (forward_propagate_comparison): New function.
2416 (forward_propagate_into_cond): Rewrite to use fold for
2418 (tree_ssa_forward_propagate_single_use_vars): Call
2419 forward_propagate_comparison to propagate comparisons.
2421 2007-04-27 Richard Guenther <rguenther@suse.de>
2423 PR tree-optimization/31715
2424 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make
2425 sure to do computation on the offset in an appropriate
2428 2007-04-27 Richard Sandiford <richard@codesourcery.com>
2430 * reload.h (elimination_target_reg_p): Declare.
2431 * reload.c (find_reloads): Don't apply the reg_rtx move
2432 optimization if the SET_DEST satisfies elimination_target_reg_p.
2433 * reload1.c (elimination_target_reg_p): New function.
2434 (gen_reload): In the move/add2 fallback, make sure that op0
2435 does not overlap the destination register.
2437 2007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
2439 * tree-ssa-loop-im.c (determine_invariantness_stmt): Attempt to
2440 transform only GIMPLE_MODIFY_STMTs.
2441 * tree-complex.c (expand_complex_operations_1): Ditto.
2442 (expand_complex_div_wide): Do not create gotos in COND_EXPR branches.
2443 * tree-ssa-loop-manip.c (build_if_stmt): Removed.
2444 (tree_transform_and_unroll_loop): Do not create gotos in COND_EXPR
2446 * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
2447 tree_mod_subtract, tree_ic, tree_stringop_fixed_value): Ditto.
2448 * omp-low.c (expand_parallel_call, expand_omp_for_generic,
2449 expand_omp_for_static_chunk, expand_omp_for_static_nochunk): Ditto.
2450 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes,
2451 slpeel_add_loop_guard): Ditto.
2452 * tree-mudflap.c (mf_build_check_statement_for): Ditto.
2453 * lambda-code.c (perfect_nestify): Ditto.
2454 * tree-iterator.c (tsi_split_statement_list_before): Fix splitting
2455 before the first statement.
2456 * tree-optimize.c (execute_free_datastructures): Fix comments.
2457 (execute_free_cfg_annotations): Do not call disband_implicit_edges.
2458 * tree-flow.h (disband_implicit_edges): Declaration removed.
2459 * tree-cfg.c (make_cond_expr_edges): Remove gotos from COND_EXPR
2461 (cleanup_dead_labels, tree_redirect_edge_and_branch): Handle COND_EXPRs
2463 (disband_implicit_edges, has_label_p): Removed.
2464 (tree_verify_flow_info): Verify that COND_EXPR branches are empty.
2465 (tree_lv_add_condition_to_bb): Do not create gotos in COND_EXPR
2467 * tree.c (build3_stat): Mark COND_EXPRs used as statements as having
2469 * tree-pretty-print.c (dump_implicit_edges): Dump implicit edges
2470 also for COND_EXPRs.
2471 * cfgexpand.c (label_rtx_for_bb): New function.
2472 (expand_gimple_cond_expr): Do not expect gotos in COND_EXPR branches.
2473 Use label_rtx_for_bb to find the labels.
2474 (expand_gimple_basic_block): Remove RETURN_EXPR at the end of the
2475 last block. Detect fallthru edges.
2477 2007-04-26 Ian Lance Taylor <iant@google.com>
2480 * reload.c (find_reloads_subreg_address): If the address was valid
2481 in the original mode but not in the new mode, reload the whole
2484 2007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
2486 * tree-cfgcleanup.c (cfgcleanup_altered_bbs): New global variable.
2487 (remove_fallthru_edge): Use remove_edge_and_dominated_blocks.
2488 (cleanup_control_expr_graph): Do not invalidate dominance info.
2489 Record altered blocks.
2490 (cleanup_control_flow, cleanup_forwarder_blocks): Removed.
2491 (cleanup_control_flow_bb, split_bbs_on_noreturn_calls,
2492 cleanup_tree_cfg_bb): New functions.
2493 (remove_forwarder_block): Do not maintain the worklist of blocks.
2494 Record altered blocks.
2495 (cleanup_tree_cfg_1): Iterate over cfgcleanup_altered_bbs,
2497 (cleanup_tree_cfg): Do not iterate cleanup_tree_cfg_1. Only call
2498 delete_unreachable_blocks if dominators are not available.
2499 * tree-inline.c (optimize_inline_calls): Free dominance information
2501 * tree-flow.h (remove_edge_and_dominated_blocks,
2502 cfgcleanup_altered_bbs): Altered.
2503 * tree-cfg.c (replace_uses_by, tree_merge_blocks): Record altered
2505 (get_all_dominated_blocks, remove_edge_and_dominated_blocks): New
2507 (tree_purge_dead_eh_edges): Use remove_edge_and_dominated_blocks,
2508 do not invalidate dominators.
2510 2007-04-26 Anatoly Sokolov <aesok@post.ru>
2512 * config/avr/avr.c (avr_mcu_types): Add support for ATmega8HVA and
2513 ATmega16HVA devices. Move AT90USB82 device to 'avr5' architecture.
2514 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
2515 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2517 2007-04-26 Steve Ellcey <sje@cup.hp.com>
2519 * config/ia64/ia64.md (ip_value): Fix itanium_class attribute.
2521 2007-04-26 Richard Guenther <rguenther@suse.de>
2523 PR tree-optimization/31703
2524 * tree-ssa-loop-im.c (rewrite_bittest): Make sure to use
2525 the right type for the target of the bittest.
2527 2007-04-26 Richard Sandiford <richard@codesourcery.com>
2529 * config/i386/vx-common.h (RETURN_IN_MEMORY): Use
2530 ix86_sol10_return_in_memory.
2532 2007-04-26 Richard Sandiford <richard@codesourcery.com>
2534 * config/i386/i386.c (ix86_sol10_return_in_memory): Remove unused
2537 2007-04-26 Jakub Jelinek <jakub@redhat.com>
2540 * tree-inline.c (copy_body_r): Don't touch TREE_TYPE of OMP_CLAUSE.
2542 PR tree-optimization/30558
2543 * tree-eh.c (lower_eh_filter): If EH_FILTER_MUST_NOT_THROW
2544 clear this_state.prev_try.
2546 2007-04-26 Richard Sandiford <richard@codesourcery.com>
2547 Mark Mitchell <mark@codesourcery.com>
2549 * config/i386/i386-protos.h (ix86_sol10_return_in_memory): Declare.
2550 * config/i386/i386.c (ix86_sol10_return_in_memory): New function.
2551 * config/i386/sol2-10.h (RETURN_IN_MEMORY): Use it.
2553 2007-04-26 Richard Sandiford <richard@codesourcery.com>
2556 * doc/invoke.texi (%:print-asm-header): Document.
2557 * gcc.c (asm_options): Use %:print-asm-header() for --target-help
2559 (static_spec_functions): Add print-asm-header.
2560 (main): Print a banner before the --target-help linker options.
2561 (print_asm_header_spec_function): New function.
2563 2007-04-25 Kaz Kojima <kkojima@gcc.gnu.org>
2566 * config/sh/sh.md (movsi_ie): Fix length for TARGET_SH2A.
2567 (movsf_ie): Likewise.
2569 2007-04-25 Paolo Carlini <pcarlini@suse.de>
2571 * doc/extend.texi ([Type Traits]): Adjust per N2255.
2573 2007-04-25 Bob Wilson <bob.wilson@acm.org>
2575 * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Throw an exception
2577 (__umodsi3, __modsi3): Likewise.
2579 2007-04-25 Dirk Mueller <dmueller@suse.de>
2581 * c-typeck.c (build_compound_expr): Annotate warning()
2582 call with OPT_Wunused_value.
2583 * tree-ssa.c (warn_uninit): Annotate warning with
2585 * c-common.c (handle_sentinel_attribute): Annotate warning
2586 call with OPT_Wattributes.
2588 2007-04-25 Thiemo Seufer <ths@mips.com>
2590 * config/mips/mips.opt (mdmx, mmt, mno-mdmx): New options.
2592 * config/mips/mips.h (ASM_SPEC): Pass -mmt/-mno-mt and -mdmx/-mno-mdmx
2593 on to the assembler. Improve handling of -mno-mips16. Add handling
2594 of -mno-mips3d, -mno-dsp, -mno-dspr2.
2595 * doc/invoke.texi (MIPS Options): Whitespace cleanup. Fix wrong use
2596 of @itemx. Document -mno-dsp, -mno-dspr2, -mno-paired-single, -mdmx,
2597 -mno-mdmx, -mno-mips3d, -mmt and -mno-mt.
2599 2007-04-25 Danny Smith <dannysmith.users.sourceforge.net>
2602 * config/i386/winnt.c (i386_pe_file_end): Strip only
2603 USER_LABEL_PREFIX when writing export name.
2605 2007-04-25 Richard Sandiford <richard@codesourcery.com>
2607 * config.gcc (sh-wrs-vxworks): Don't include dbxelf.h. Include
2608 sh/elf.h, vx-common.h and vxworks.h.
2609 * config/sh/sh.h: Include config/vxworks-dummy.h.
2610 (SUBTARGET_OVERRIDE_OPTIONS): Define.
2611 (OVERRIDE_OPTIONS): Use it.
2612 * config/sh/sh.md (GOTaddr2picreg): Add suport for VxWorks RTPs.
2613 (vxworks_picreg): New pattern.
2614 * config/sh/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
2615 VXWORKS_OS_CPP_BUILTINS.
2616 (LIB_SPEC, LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine
2617 to their VXWORKS_* equivalents.
2618 (SUBTARGET_OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
2619 (SUBTARGET_LINK_EMUL_SUFFIX, FUNCTION_PROFILER): Define.
2620 * config/sh/lib1funcs.asm (NO_FPSCR_VALUES): Define for VxWorks PIC.
2621 (set_fpscr, ic_invalidate): Add VxWorks PIC sequences.
2622 * config/sh/t-vxworks (MULTILIB_OPTIONS): Add m4a, -mrtp and
2623 -mrtp/-fPIC multilibs.
2624 (MULTILIB_EXCEPTIONS): Generalize globs accordingly.
2625 (MULTILIB_MATCHES, EXTRA_MULTILIB_PARTS): Define.
2626 (MULTILIB_OSDIRNAMES): Delete.
2628 2007-04-25 Anatoly Sokolov <aesok@post.ru>
2631 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Redefine.
2633 2007-04-24 Brooks Moses <brooks.moses@codesourcery.com>
2635 * real.c (mpfr_from_real): Handle Inf and NaN, and allow the
2636 rounding mode to be specified by the caller.
2637 (real_to_mpfr) Likewise.
2638 * real.h: Update mpfr_from_real, mpfr_to_real prototypes to
2639 include new arguments.
2640 * builtins.c: Update mpfr_from_real, mpfr_to_real calls.
2642 2007-04-24 Ian Lance Taylor <iant@google.com>
2644 PR tree-optimization/31605
2645 * tree-vrp.c (set_value_range): Check that min and max are not
2646 both overflow infinities.
2647 (set_value_range_to_value): New static function.
2648 (extract_range_from_binary_expr): Call set_value_range_to_value.
2649 (extract_range_from_cond_expr): Likewise.
2650 (extract_range_from_expr): Likewise.
2651 (extract_range_from_unary_expr): Likewise. Don't create a range
2652 which overflows on both sides.
2653 (vrp_meet): Check for a useless range.
2654 (vrp_visit_phi_node): If we see a constant which looks like an
2655 overflow infinity, turn off the TREE_OVERFLOW flag.
2657 2007-04-24 Ian Lance Taylor <iant@google.com>
2659 * flow.c (elim_reg_cond): Handle a comparison of a subreg.
2661 2007-04-24 Simon Martin <simartin@users.sourceforge.net>
2664 * tree-pass.h (TDF_DIAGNOSTIC): New dump control to specify that a
2665 diagnostic message is being built.
2666 * tree-pretty-print.c (dump_generic_node): Only write the
2667 formatted text into BUFFER's stream if we are not building a
2669 * toplev.c (default_tree_printer): Pass TDF_DIAGNOSTIC to
2671 * Makefile.in (toplev.o): Depend on tree-pass.h.
2673 2007-04-24 Ian Lance Taylor <iant@google.com>
2675 PR tree-optimization/31602
2676 * tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING for
2677 conditionals in the copied loop header.
2678 * tree-cfg.c (fold_cond_expr_cond): Don't issue undefined overflow
2679 warnings if TREE_NO_WARNING is set.
2680 * doc/invoke.texi (Warning Options): Clarify that
2681 -Wstrict-overflow does not warn about loops.
2683 2007-04-24 Janis Johnson <janis187@us.ibm.com>
2685 * config/rs6000/rs6000.c (function_arg_advance): For 32-bit ELF ABI,
2686 expand on the comment about _Decimal128 arguments and check the
2687 integer result of the modulus operation; for 64-bit ELF ABI, ensure
2688 that _Decimal128 argument uses even/odd register pair.
2689 (function_arg): Ditto.
2691 2007-04-24 Hui-May Chang <hm.chang@apple.com>
2693 * reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER
2694 instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction.
2696 2007-04-24 Richard Guenther <rguenther@suse.de>
2697 Olga Golovanevsky <olga@il.ibm.com>
2699 * fold-const.c (multiple_of_p): Check for bottom
2702 2007-04-24 Richard Henderson <rth@redhat.com>
2704 * libgcc2.h (AVOID_FP_TYPE_CONVERSION): Rename from
2705 IS_IBM_EXTENDED. Also define in terms of WIDEST_HARDWARE_FP_SIZE.
2706 * libgcc2.c (__floatdisf): Avoid double-word arithmetic when
2707 looking for non-zero bits shifted out. Avoid a recursive call
2708 when constructing the scalar.
2709 (__floatundisf): Likewise.
2711 2007-04-24 Nathan Froyd <froydnj@codesourcery.com>
2713 * dwarf2out.c (field_byte_offset): Move the existing logic
2714 under the control of PCC_BITFIELD_TYPE_MATTERS and just use
2715 the bit offset of the field if !PCC_BITFIELD_TYPE_MATTERS.
2717 2007-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
2720 * config/s390/s390.c (s390_expand_setmem): Don't ICE for constant length
2721 argument of 0 for memset.
2722 (s390_expand_movmem, s390_expand_setmem, s390_expand_cmpmem): Use
2723 unsigned shift instead of the signed variant.
2725 2007-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
2727 * config/s390/s390.md ("*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs_ibm",
2728 "fix_trunc<BFP:mode><GPR:mode>2_ieee", "fix_truncdfsi2_ibm",
2729 "floatsidf2_ibm", "floatsisf2", "truncdfsf2_ieee", "truncdfsf2_ibm",
2730 "*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
2731 "*trunctfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
2732 "*extenddftf2_ieee", "*extenddftf2_ibm", "*extendsftf2_ieee",
2733 "*extendsftf2_ibm", "*add<mode>3", "*add<mode>3_ibm", "*sub<mode>3_ibm",
2734 "*mul<mode>3", "*mul<mode>3_ibm", "*div<mode>3", "*div<mode>3_ibm",
2735 "*neg<mode>2_ibm", "*abs<mode>2_ibm"): Insn definitions removed.
2736 ("fix_trunc<BFP:mode><GPR:mode>2_bfp", "floatsi<mode>2",
2737 "truncdfsf2", "trunctf<mode>2", "add<mode>3", "sub<mode>3",
2738 "mul<mode>3", "div<mode>3"): Insn definitions added.
2739 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fix_trunc<mode>di2",
2740 "fix_trunc<mode>si2"): gen_fix_trunc<BFP:mode><GPR:mode>2_ieee renamed
2741 to gen_fix_trunc<BFP:mode><GPR:mode>2_bfp.
2742 ("fix_truncdfsi2", "floatsitf2", "truncdfsf2", "trunctfdf2",
2743 "trunctfsf2", "extendsfdf2", "extenddftf2", "extendsftf2", "add<mode>3",
2744 "sub<mode>3", "mul<mode>3", "div<mode>3"): Expander removed.
2745 ("fix_trunc<mode>si2", "extend<DSF:mode><BFP:mode>2"): Expander added.
2746 * config/s390/s390.h (TARGET_IBM_FLOAT, TARGET_IEEE_FLOAT,
2747 TARGET_FLOAT_FORMAT): Macro definitions removed.
2748 (FP_REGNO_P): No special case for !TARGET_IEEE_FLOAT anymore.
2749 * config/s390/s390.c (struct processor_costs, z900_cost, z990_cost,
2750 z9_109_cost): Remove fields for hexfloat instructions: dxr, ddr and der.
2751 (s390_rtx_costs): Remove !TARGET_IEEE_FLOAT special branches.
2752 (s390_gen_rtx_const_DI): Function removed.
2753 * config/s390/s390-protos.h (s390_gen_rtx_const_DI): Prototype removed.
2755 2007-04-24 Richard Sandiford <richard@codesourcery.com>
2757 * optabs.c (set_conv_libfunc): Prefer libgcc2's __ffsMM2 functions
2758 over an external ffs function.
2760 2007-04-24 Chao-ying Fu <fu@mips.com>
2761 Richard Sandiford <richard@nildram.co.uk>
2763 * doc/md.texi (madd@var{m}@var{n}4, umadd@var{m}@var{n}4): Document.
2764 * optabs.h (OTI_smadd_widen, OTI_umadd_widen): New optab_indexes.
2765 (smadd_widen_optab, umadd_widen_optab): Define.
2766 * optabs.c (init_optabs): Initialize smadd_widen_optab and
2768 * genopinit.c (optabs): Fill in smadd_widen_optab and
2770 * expr.c (expand_expr_real_1): Try to use smadd_widen_optab
2771 and umadd_widen_optab to implement multiply-add sequences.
2772 * config/mips/mips.md (*<su>mul_acc_di): Rename to...
2773 (<u>maddsidi4): ...this. Extend condition to include
2774 GENERATE_MADD_MSUB and TARGET_DSPR2. Change the constraint
2775 of operand 0 to "ka" and use the three-operand form of madd<u>
2777 * config/mips/mips-dspr2.md (mips_madd, mips_maddu): Convert
2779 * config/mips/constraints.md (ka): New register constraint.
2781 2007-04-24 Jan Hubicka <j@suse.cz>
2785 2007-04-23 Jan Hubicka <jh@suse.cz>
2786 * function.c (init_function_start): Don't init line number info.
2787 (expand_function_end): Update.
2788 (reset_block_changes, record_block_change, finalize_block_changes,
2789 check_block_change, free_block_changes): Kill.
2790 * function.h (reset_block_changes, record_block_change,
2791 finalize_block_changes, check_block_change, free_block_changes): Remove
2793 (struct function): Remove ib_boundaries_block.
2794 * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
2795 Use curr_insn_locator to initialize locator.
2796 (emit_line_note): Remove.
2797 * cfgexpand.c (expand_gimple_cond_expr): Update.
2798 (construct_exit_block): Likewise.
2799 (tree_expand_cfg): Initialize/finalize locators.
2800 * expr.c (expand_expr_real): Update.
2801 * cfglayout.c (line_locators_locs, line_locators_lines,
2802 file_locators_locs, file_locators_files): Remove.
2803 (set_block_levels): Move to cfgexpand.c.
2804 (insn_locators_initialize): Remove.
2805 (pass_insn_locators_initialize): Remove.
2806 (locations_locators_locs, locations_locators_vals): New static vars.
2807 (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
2809 (insn_locators_alloc, insn_locators_finalize,
2810 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
2812 (locator_location): New.
2813 (locator_line, locator_file): Rewrite.
2814 * rtl.h (emit_line_note): Kill.
2815 (insn_locators_alloc, insn_locators_finalize,
2816 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
2818 * tree-inline.c (initialize_cfun): Do not initialize
2819 ib_boundaries_block.
2820 * passes.c (pass_insn_locators_initialize): Remove.
2822 2007-04-24 Daniel Franke <franke.daniel@gmail.com>
2824 * doc/invoke.texi: Removed leading '-' from option index entries.
2826 2007-04-23 Zdenek Dvorak <dvorakz@suse.cz>
2828 * tree-phinodes.c (reserve_phi_args_for_new_edge, remove_phi_node):
2830 (create_phi_node): Use set_phi_nodes.
2831 * omp-low.c (expand_omp_parallel): Use bb_stmt_list.
2832 * tree-if-conv.c (process_phi_nodes): Use set_phi_nodes.
2833 (combine_blocks): Use bb_stmt_list and set_bb_stmt_list.
2834 * tree-flow-inline.h (phi_nodes, set_phi_nodes,
2835 (bsi_start, bsi_last): Use bb_stmt_list.
2836 (phi_nodes_ptr, bb_stmt_list, set_bb_stmt_list): New functions.
2837 * cfgexpand.c (expand_gimple_basic_block): Use bb_stmt_list.
2838 Traverse the statements using tsi iterator.
2839 * basic-block.h (struct basic_block_def): Fields stmt_list
2840 and phi_nodes moved to ...
2841 (struct tree_bb_info): ... new structure.
2842 * tree-cfg.c (create_bb): Allocate il.tree. Use set_bb_stmt_list.
2843 (tree_merge_blocks): Use bb_stmt_list and set_bb_stmt_list.
2844 (remove_bb): Handle blocks with NULL stmt list. Clear il.tree field.
2845 (tree_verify_flow_info): Verify that il.tree is not set for
2846 entry and exit block.
2847 (tree_split_block): Use set_bb_stmt_list.
2849 2007-04-23 Mike Stump <mrs@apple.com>
2851 * config/i386/i386.c (ix86_tune_features
2852 [X86_TUNE_DEEP_BRANCH_PREDICTION]: Prefer call over thunks on
2855 2007-04-23 H.J. Lu <hongjiu.lu@intel.com>
2857 * config/i386/i386.md (prefix_extra): New attribute.
2858 (length): Add prefix_extra.
2860 * onfig/i386/sse.md (sse2_movdqu): Set prefix_data16.
2861 (sse2_movntv2di): Likewise.
2862 (sse2_cvtps2dq): Likewise.
2863 (sse2_cvtpd2pi): Likewise.
2864 (sse2_cvttpd2pi): Likewise.
2865 (*sse2_cvtpd2ps): Likewise.
2866 (*add<mode>3): Likewise.
2867 (sse2_ssadd<mode>3): Likewise.
2868 (sse2_usadd<mode>3): Likewise.
2869 (*sub<mode>3): Likewise.
2870 (sse2_sssub<mode>3): Likewise.
2871 (sse2_ussub<mode>3): Likewise.
2872 (*mulv8hi3): Likewise.
2873 (*smulv8hi3_highpart): Likewise.
2874 (*umulv8hi3_highpart): Likewise.
2875 (sse2_umulv2siv2di3): Likewise.
2876 (sse2_pmaddwd): Likewise.
2877 (ashr<mode>3): Likewise.
2878 (lshr<mode>3): Likewise.
2879 (ashl<mode>3): Likewise.
2880 (sse2_ashlti3): Likewise.
2881 (sse2_lshrti3): Likewise.
2882 (*umaxv16qi3): Likewise.
2883 (*smaxv8hi3): Likewise.
2884 (*uminv16qi3): Likewise.
2885 (*sminv8hi3): Likewise.
2886 (sse2_eq<mode>3): Likewise.
2887 (sse2_gt<mode>3): Likewise.
2888 (*and<mode>3): Likewise.
2889 (sse2_nand<mode>3): Likewise.
2890 (*ior<mode>3): Likewise.
2891 (*xor<mode>3): Likewise.
2892 (sse2_packsswb): Likewise.
2893 (sse2_packssdw): Likewise.
2894 (sse2_packuswb): Likewise.
2895 (sse2_punpckhbw): Likewise.
2896 (sse2_punpcklbw): Likewise.
2897 (sse2_punpckhwd): Likewise.
2898 (sse2_punpcklwd): Likewise.
2899 (sse2_punpckhdq): Likewise.
2900 (sse2_punpckldq): Likewise.
2901 (sse2_punpckhqdq): Likewise.
2902 (sse2_punpcklqdq): Likewise.
2903 (*sse2_pinsrw): Likewise.
2904 (*sse2_pextrw): Likewise.
2905 (sse2_pshufd_1): Likewise.
2906 (sse2_uavgv16qi3): Likewise.
2907 (sse2_uavgv8hi3): Likewise.
2908 (sse2_psadbw): Likewise.
2909 (sse2_pmovmskb): Likewise.
2910 (*sse2_maskmovdqu): Likewise.
2911 (*sse2_maskmovdqu_rex64): Likewise.
2912 (sse4a_extrqi): Likewise.
2913 (sse4a_extrq): Likewise.
2914 (sse3_lddqu): Set prefix_rep.
2915 (sse3_addsubv4sf3): Likewise.
2916 (sse3_haddv4sf3): Likewise.
2917 (sse3_hsubv4sf3): Likewise.
2918 (sse_cvtss2si): Likewise.
2919 (sse_cvtss2si_2): Likewise.
2920 (sse_cvtss2siq): Likewise.
2921 (sse_cvtss2siq_2): Likewise.
2922 (sse_cvttss2si): Likewise.
2923 (sse_cvttss2siq): Likewise.
2924 (sse2_cvttps2dq): Likewise.
2925 (sse3_movshdup): Likewise.
2926 (sse3_movsldup): Likewise.
2927 (sse2_cvtsd2si): Likewise.
2928 (sse2_cvtsd2si_2): Likewise.
2929 (sse2_cvtsd2siq): Likewise.
2930 (sse2_cvtsd2siq_2): Likewise.
2931 (sse2_cvttsd2si): Likewise.
2932 (sse2_cvttsd2siq): Likewise.
2933 (*sse2_cvtpd2dq): Likewise.
2934 (*sse2_cvttpd2dq): Likewise.
2935 (sse2_pshuflw_1): Likewise.
2936 (sse2_pshufhw_1): Likewise.
2937 (sse4a_insertqi): Likewise.
2938 (sse4a_insertq): Likewise.
2939 (ssse3_phaddwv8hi3): Set prefix_data16 and prefix_extra.
2940 (ssse3_phadddv4si3): Likewise.
2941 (ssse3_phaddswv8hi3): Likewise.
2942 (ssse3_phsubwv8hi3): Likewise.
2943 (ssse3_phsubdv4si3): Likewise.
2944 (ssse3_phsubswv8hi3): Likewise.
2945 (ssse3_pmaddubswv8hi3): Likewise.
2946 (ssse3_pmulhrswv8hi3): Likewise.
2947 (ssse3_pshufbv16qi3): Likewise.
2948 (ssse3_psign<mode>3): Likewise.
2949 (ssse3_palignrti): Likewise.
2950 (abs<mode>2): Likewise.
2951 (ssse3_phaddwv4hi3): Set prefix_extra.
2952 (ssse3_phadddv2si3): Likewise.
2953 (ssse3_phaddswv4hi3): Likewise.
2954 (ssse3_phsubwv4hi3): Likewise.
2955 (ssse3_phsubdv2si3): Likewise.
2956 (ssse3_phsubswv4hi3): Likewise.
2957 (ssse3_pmaddubswv4hi3): Likewise.
2958 (ssse3_pmulhrswv4hi3): Likewise.
2959 (ssse3_pshufbv8qi3): Likewise.
2960 (ssse3_psign<mode>3): Likewise.
2961 (ssse3_palignrdi): Likewise.
2962 (abs<mode>2): Likewise.
2963 (sse2_cvtdq2ps): Set mode to V4SF instead of V2DF.
2964 (*vec_dupv2df): Set mode to V2DF instead of V4SF.
2965 (sse2_pmovmskb): Set mode to SI instead of V2DF.
2967 2007-04-23 Nick Clifton <nickc@redhat.com>
2969 * params.def: Fix formatting of emacs local variables.
2971 2007-04-23 H.J. Lu <hongjiu.lu@intel.com>
2973 * config/i386/sse.md (sse2_stored): Don't split to inter-unit
2974 move if inter-unit move isn't allowed.
2975 Don't split moving the first element of V2DI to DI to inter-unit
2976 move if inter-unit move isn't allowed.
2978 2007-04-23 Richard Guenther <rguenther@suse.de>
2980 * tree-ssa-sink.c (execute_sink_code): Calculate CDI_DOMINATORS
2981 and CDI_POST_DOMINATORS separately.
2983 2007-04-23 Nick Clifton <nickc@redhat.com>
2985 * c.opt (Wformat-contains-nul): Add warning attribute.
2987 2007-04-23 Jan Hubicka <jh@suse.cz>
2989 * function.c (init_function_start): Don't init line number info.
2990 (expand_function_end): Update.
2991 (reset_block_changes, record_block_change, finalize_block_changes,
2992 check_block_change, free_block_changes): Kill.
2993 * function.h (reset_block_changes, record_block_change,
2994 finalize_block_changes, check_block_change, free_block_changes): Remove
2996 (struct function): Remove ib_boundaries_block.
2997 * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
2998 Use curr_insn_locator to initialize locator.
2999 (emit_line_note): Remove.
3000 * cfgexpand.c (expand_gimple_cond_expr): Update.
3001 (construct_exit_block): Likewise.
3002 (tree_expand_cfg): Initialize/finalize locators.
3003 * expr.c (expand_expr_real): Update.
3004 * cfglayout.c (line_locators_locs, line_locators_lines,
3005 file_locators_locs, file_locators_files): Remove.
3006 (set_block_levels): Move to cfgexpand.c.
3007 (insn_locators_initialize): Remove.
3008 (pass_insn_locators_initialize): Remove.
3009 (locations_locators_locs, locations_locators_vals): New static vars.
3010 (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
3012 (insn_locators_alloc, insn_locators_finalize,
3013 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
3015 (locator_location): New.
3016 (locator_line, locator_file): Rewrite.
3017 * rtl.h (emit_line_note): Kill.
3018 (insn_locators_alloc, insn_locators_finalize,
3019 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
3021 * tree-inline.c (initialize_cfun): Do not initialize
3022 ib_boundaries_block.
3023 * passes.c (pass_insn_locators_initialize): Remove.
3025 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
3028 * expr.c (reduce_to_bit_field_precision): Handle
3031 2007-04-22 Uros Bizjak <ubizjak@gmail.com>
3033 PR tree-optimization/24659
3034 * optabs.h (enum optab_index) [OTI_vec_unpacks_hi,
3035 OTI_vec_unpacks_lo]: Update comment to mention floating point operands.
3036 (vec_pack_trunc_optab): Rename from vec_pack_mod_optab.
3037 * genopinit.c (optabs): Rename vec_pack_mod_optab
3038 to vec_pack_trunc_optab.
3039 * tree-vect-transform.c (vectorizable_type_demotion): Do not fail
3040 early for scalar floating point operands for NOP_EXPR.
3041 (vectorizable_type_promotion): Ditto.
3042 * optabs.c (optab_for_tree_code) [VEC_PACK_TRUNC_EXPR]: Return
3043 vec_pack_trunc_optab.
3044 (expand_binop): Rename vec_float_trunc_optab to vec_pack_mod_optab.
3046 * tree.def (VEC_PACK_TRUNC_EXPR): Rename from VEC_PACK_MOD_EXPR.
3047 * tree-pretty-print.c (dump_generic_node) [VEC_PACK_TRUNC_EXPR]:
3048 Rename from VEC_PACK_MOD_EXPR.
3049 (op_prio) [VEC_PACK_TRUNC_EXPR]: Ditto.
3050 * expr.c (expand_expr_real_1): Ditto.
3051 * tree-inline.c (estimate_num_insns_1): Ditto.
3052 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
3054 * config/i386/sse.md (vec_unpacks_hi_v4sf): New expander.
3055 (vec_unpacks_lo_v4sf): Ditto.
3056 (vec_pack_trunc_v2df): Ditto.
3057 (vec_pack_trunc_v8hi): Rename from vec_pack_mod_v8hi.
3058 (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
3059 (vec_pack_trunc_v2di): Rename from vec_pack_mod_v2di.
3061 * config/rs6000/altivec.md (vec_pack_trunc_v8hi): Rename from
3063 (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
3065 * doc/c-tree.texi (Expression trees) [VEC_PACK_TRUNC_EXPR]:
3066 Rename from VEC_PACK_MOD_EXPR. This expression also represent
3067 packing of floating point operands.
3068 [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR]: These expression also
3069 represent unpacking of floating point operands.
3070 * doc/md.texi (Standard Names) [vec_pack_trunc]: Update documentation.
3071 [vec_unpacks_hi]: Ditto.
3072 [vec_unpacks_lo]: Ditto.
3074 2007-04-22 Jan Hubicka <jh@suse.cz>
3076 * final.c (rest_of_handle_final): Call
3077 targetm.asm_out.constructor/targetm.asm_out.destructor
3078 * cgraphunit.c (cgraph_build_static_cdtor): Don't do it here; set
3079 proper priority via decl_*_priority_insert.
3080 * c-common.c (c_expand_body): Likewise.
3082 2007-04-22 Richard Guenther <rguenther@suse.de>
3084 PR tree-optimization/29789
3085 * tree-ssa-loop-im.c (stmt_cost): Adjust cost of shifts.
3086 (rewrite_reciprocal): New helper split out from
3087 determine_invariantness_stmt.
3088 (rewrite_bittest): Likewise.
3089 (determine_invariantness_stmt): Rewrite (A >> B) & 1 to
3090 A & (1 << B) if (1 << B) is loop invariant but (A >> B)
3093 2007-04-22 Revital Eres <eres@il.ibm.com>
3095 * loop-unroll.c (var_to_expand): New field to support also
3096 insns of the form x = something + x.
3097 (analyze_insn_to_expand_var): Use it.
3098 (expand_var_during_unrolling): Likewise.
3100 2007-04-21 Zdenek Dvorak <dvorakz@suse.cz>
3102 * predict.c: Include pointer-set.h.
3103 (bb_predictions): New variable.
3104 (tree_predicted_by_p, tree_predict_edge,
3105 remove_predictions_associated_with_edge): Use bb_predictions map
3106 instead of bb->predictions.
3107 (clear_bb_predictions, assert_is_empty): New functions.
3108 (combine_predictions_for_bb): Use bb_predictions map. Call
3109 clear_bb_predictions.
3110 (tree_estimate_probability): Create and free bb_predictions map.
3111 * Makefile.in (predict.o): Add pointer-set.h dependency.
3112 * basic-block.h (struct basic_block_def): Remove predictions
3114 * cfgrtl.c (rtl_verify_flow_info_1): Do not check bb->predictions.
3116 2007-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
3119 * config/sh/sh.md (length): Check if prev_nonnote_insn (insn)
3122 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
3124 * timevar.c (timevar_print): Change reference of --disable-checking to
3125 --enable-checking=release. Also warn if assert checking is disabled.
3127 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
3130 * c-gimplifier.c (gimplify_compound_literal_expr): Mark the
3131 decl as addressable if the compound literal was marked as
3133 Mark the decl as a gimple register if it is a complex or
3134 vector decl and does not live in memory.
3136 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
3138 * tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs.
3139 (GENERIC_NEXT): New function macro.
3140 (PHI_CHAIN): Use phi_node's new chain variable.
3141 (tree_phi_node): Change tree_common to tree_base
3142 and add the chain field.
3143 * tree-phinodes.c (make_phi_node): Don't set
3144 TREE_TYPE on the new node.
3145 * c-decl.c (lang_tree_node): Use GENERIC_NEXT
3146 instead of checking GIMPLE_TUPLE_P in chain_next.
3147 * tree-vect-transform.c
3148 (get_initial_def_for_induction): Look at
3149 PHI_RESULT_TREE for the type of the phi node.
3150 (update_vuses_to_preheader): Use PHI_CHAIN
3151 instead of TREE_CHAIN on the phi node.
3152 * tree-ssa-structalias.c (compute_points_to_sets):
3154 (ipa_pta_execute): Likewise.
3156 2007-04-21 Richard Guenther <rguenther@suse.de>
3159 * fold-const.c (fold_unary): Call fold_convert_const on the
3162 2007-04-21 Alexandre Oliva <aoliva@redhat.com>
3164 * gcse.c (store_killed_in_insn): Handle PARALLELs.
3165 (store_killed_in_pat): New.
3167 2007-04-20 Richard Henderson <rth@redhat.com>
3170 * config/i386/i386.c (type_has_variadic_args_p): Look for any
3171 TREE_LIST with a void_type_node value, not void_list_node exactly.
3173 2007-04-21 Douglas Gregor <doug.gregor@gmail.com>
3175 * doc/standards.texi: Re-arrange into language-specific
3176 subsections. Add a C++ section, documenting which standards we
3179 2007-04-21 Zdenek Dvorak <dvorakz@suse.cz>
3181 * tree-ssa-structalias.c (delete_points_to_sets): Free graph->complex.
3182 * tree-ssa-operands.c (finalize_ssa_vuse_ops): Free new_ops.
3184 2007-04-20 Daniel Jacobowitz <dan@codesourcery.com>
3186 * config/rs6000/sysv4.h (STARTFILE_DEFAULT_SPEC): Include
3187 ecrti.o and crtbegin.o.
3188 (LIB_DEFAULT_SPEC): Include -lc.
3189 (ENDFILE_DEFAULT_SPEC): Include crtend.o and ecrtn.o.
3191 2007-04-20 Richard Henderson <rth@redhat.com>
3194 * config/alpha/alpha.c (get_unaligned_address): Remove extra_offset
3195 argument; update all callers.
3196 (get_unaligned_offset): New.
3197 * config/alpha/alpha.md (extendqidi2, extendhidi2): Don't use
3198 get_unaligned_address, just pass on the address directly.
3199 (unaligned_extendqidi): Use gen_lowpart instead of open-coding
3200 the subreg in the helper patterns.
3201 (unaligned_extendqidi_le): Use get_unaligned_offset.
3202 (unaligned_extendqidi_be, unaligned_extendhidi_le): Likewise.
3203 (unaligned_extendhidi_be): Likewise.
3204 (unaligned_extendhidi): Tidy.
3205 * config/alpha/alpha-protos.h: Update.
3207 2007-04-20 Richard Henderson <rth@redhat.com>
3209 * config/alpha/alpha.h (CPP_SPEC, CPP_SUBTARGET_SPEC): Remove.
3210 (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
3211 * config/alpha/linux.h (CPP_SPEC): Undef before redefine.
3212 * config/alpha/linux-elf.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
3213 * config/alpha/freebsd.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
3214 (CPP_SPEC): Don't include %(cpp_subtarget).
3215 * config/alpha/netbsd.h (CPP_SPEC): Rename CPP_SUBTARGET_SPEC.
3216 (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
3217 * config/alpha/osf.h (CPP_SPEC, EXTRA_SPECS): Similarly.
3219 2007-04-20 Jakub Jelinek <jakub@redhat.com>
3221 * config/i386/i386.c (bdesc_2arg): Use ORDERED rather than UNORDERED
3222 for __builtin_ia32_cmpordss.
3224 PR tree-optimization/31632
3225 * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
3226 and arg1 for optimizations of comparison against min/max values.
3227 Fold arg0 to arg1's type for optimizations of comparison against
3228 min+1 and max-1 values.
3230 2007-04-19 Bernd Schmidt <bernd.schmidt@analog.com>
3232 * reload.c (combine_reloads): When trying to use a dying register,
3233 check whether it's uninitialized and don't use if so.
3235 2007-04-19 Brooks Moses <brooks.moses@codesourcery.com>
3237 * fold-const.c: Remove prototypes for native_encode_expr and
3238 native_interpret_expr.
3239 (native_encode_expr): Make non-static.
3240 (native_interpret_expr): Likewise.
3241 * tree.h: Add prototypes for the above.
3243 2007-04-19 Joseph Myers <joseph@codesourcery.com>
3245 * config/rs6000/spe.md (*frob_tf_ti, *frob_ti_tf, *frob_ti_tf_2,
3246 *mov_si<mode>_e500_subreg0, *mov_si<mode>_e500_subreg0_2,
3247 *mov_sitf_e500_subreg8, *mov_sitf_e500_subreg8_2, spe_extenddftf2,
3248 spe_fix_trunctfsi2_internal, spe_negtf2_internal, cmptfeq_gpr,
3249 tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr, tsttflt_gpr):
3250 Add length attributes.
3252 2007-04-19 Janis Johnson <janis187@us.ibm.com>
3254 * ginclude/float.h: Check that __STDC_WANT_DEC_FP__ is defined,
3257 * c-cppbuiltin.c (c_cpp_builtins): Remove definition of
3258 __STDC_WANT_DEC_FP__.
3260 2007-04-19 Joseph Myers <joseph@codesourcery.com>
3262 * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu*
3263 for long double compatibility.
3264 * configure: Regenerate.
3266 2007-04-19 Eric Botcazou <ebotcazou@libertysurf.fr>
3268 PR rtl-optimization/29841
3269 * cfgbuild.c (control_flow_insn_p): Return TRUE for unconditional
3271 * sched-deps.c (sched_analyze_insn): Prevent all non-jump instructions
3272 that may cause control flow transfer from being moved.
3274 2007-04-18 Jan Hubicka <jh@suse.cz>
3276 * fold-const.c (div_if_zero_remainder): Do signed divide for pointer
3279 2007-04-18 Eric Christopher <echristo@apple.com>
3281 * config/rs6000/darwin.md (load_macho_picbase): Use link register
3282 only. Update operands.
3283 * config/rs6000/rs6000.c (rs6000_emit_prologue): Update caller.
3284 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Ditto. Move from
3285 link register to pic register.
3287 2007-04-18 Dirk Mueller <dmueller@suse.de>
3290 * tree-vrp.c (search_for_addr_array): New.
3291 (check_array_bounds): Suppress warning about
3292 address taken of array refs if its not de-referenced.
3294 2007-04-18 Dorit Nuzman <dorit@il.ibm.com>
3296 * tree-vectorizer.c (destroy_loop_vec_info): Set loop->aux to NULL.
3297 * tree-vect-analyze.c (vect_analyze_loop_form): Set loop->aux.
3299 * tree-vectorizer.h (NITERS_KNOWN_P): New.
3300 * tree-vect-analyze.c (vect_analyze_loop_form): Call NITERS_KNOWN_P
3301 instead of LOOP_VINFO_INT_NITERS to avoid having to geneate loop_info.
3303 * tree-vect-analyze.c (vect_determine_vectorization_factor): Add
3305 (vect_analyze_operations): Fix indenetation. Fix a comment. Fix a
3307 (vect_analyze_scalar_cycles): Fix indentation.
3308 (vect_enhance_data_refs_alignment): Fix check in case of peeling.
3309 (vect_mark_relevant): Include phis in relevance analysis.
3311 * tree-vect-transform.c (vect_transform_loop): Add an assert.
3313 2007-04-18 Anatoly Sokolov <aesok@post.ru>
3315 * config/avr/avr.c (ptrreg_to_str): Replace error() with
3316 output_operand_lossage().
3318 2007-04-18 Dorit Nuzman <dorit@il.ibm.com>
3320 * tree-vect-transform.c (get_initial_def_for_reduction): Clean away
3321 the unused code for reduction without adjust-in-epilog to simplify the
3324 2007-04-18 Wolfgang Gellerich <gellerich@de.ibm.com>
3326 * config/s390/s390.h (S390_TDC_POSITIVE_ZERO): New constant.
3327 (S390_TDC_NEGATIVE_ZERO): New constant.
3328 (S390_TDC_POSITIVE_NORMALIZED_NUMBER): New constant.
3329 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): New constant.
3330 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): New constant.
3331 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): New constant.
3332 (S390_TDC_POSITIVE_INFINITY): New constant.
3333 (S390_TDC_NEGATIVE_INFINITY): New constant.
3334 (S390_TDC_POSITIVE_QUIET_NAN): New constant.
3335 (S390_TDC_NEGATIVE_QUIET_NAN): New constant.
3336 (S390_TDC_POSITIVE_SIGNALING_NAN): New constant.
3337 (S390_TDC_NEGATIVE_SIGNALING_NAN): New constant.
3338 (S390_TDC_INFINITY): New constant.
3339 * config/s390/s390.c (s390_canonicalize_comparison): Renamed
3340 UNSPEC_CMPINT to UNSPEC_CCU_TO_INT, added a UNSPEC_CCU_TO_INT-like
3341 optimization for UNSPEC_CCZ_TO_INT.
3342 * config/s390/s390.md ("*TDC_insn_<mode>"): New insn.
3343 ("*ccz_to_int"): New insn.
3344 ("isinf<mode>2"): New insn.
3345 (UNSPEC_CMPINT): Renamed to UNSPEC_CCU_TO_INT.
3346 (UNSPEC_CCU_TO_INT): New constant, replaces UNSPEC_CMPINT.
3347 (UNSPEC_CCZ_TO_INT): New constant.
3349 2007-04-18 Richard Guenther <rguenther@suse.de>
3351 PR tree-optimization/19431
3352 PR tree-optimization/21463
3353 * tree-pass.h (pass_phiprop): Declare.
3354 * passes.c (init_optimization_passes): New phiprop pass.
3355 * tree-ssa-forwprop.c (struct phiprop_d): New structure.
3356 (phivn_valid_p): New helper function.
3357 (phiprop_insert_phi): Likewise.
3358 (propagate_with_phi): Likewise.
3359 (tree_ssa_phiprop): New propagator propagating loads
3360 through phi nodes if profitable.
3362 2007-04-18 Dorit Nuzman <dorit@il.ibm.com>
3364 * tree-vect-analyze.c (process_use): New function.
3365 (vect_mark_stmts_to_be_vectorized): Factor out code to process_use.
3366 Check phis in all bbs.
3367 * tree-vectorizer.c (vect_is_simple_use): Remove a no longer relavant
3370 2007-04-18 Bernd Schmidt <bernd.schmidt@analog.com>
3372 * reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way
3375 2007-04-17 Anatoly Sokolov <aesok@post.ru>
3378 * config/avr/avr.c (ptrreg_to_str): Replace gcc_unreachable() with
3381 2007-04-17 H.J. Lu <hongjiu.lu@intel.com>
3383 * config/i386/sse.md (sse_vmaddv4sf3): Use register_operand
3385 (sse_vmmulv4sf3): Likewise.
3386 (sse2_vmaddv2df3): Likewise.
3387 (sse2_vmmulv2df3): Likewise.
3389 2007-04-17 Zdenek Dvorak <dvorakz@suse.cz>
3391 PR rtl-optimization/31360
3392 * cfgloopanal.c (target_small_cost, target_pres_cost): Removed.
3393 (target_reg_cost): New.
3394 (init_set_costs): Initialize target_reg_cost. Add comments
3395 regarding the rationale of the costs.
3396 (global_cost_for_size): Renamed to...
3397 (estimate_reg_pressure_cost): ... and simplify. Decrease importance
3398 of register pressure.
3399 * tree-ssa-loop-ivopts.c (ivopts_global_cost_for_size): Use
3400 estimate_reg_pressure_cost. Add number of ivs.
3401 (determine_set_costs): Dump target_reg_cost.
3402 * loop-invariant.c (gain_for_invariant): Use
3403 estimate_reg_pressure_cost. Removed n_inv_uses argument.
3404 (best_gain_for_invariant, find_invariants_to_move): Remove
3406 * cfgloop.h (target_small_cost, target_pres_cost): Removed.
3407 (target_reg_cost): Declare.
3408 (global_cost_for_size): Declaration removed.
3409 (estimate_reg_pressure_cost): Declare.
3411 2007-04-17 Peter Bergner <bergner@vnet.ibm.com>
3413 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Force TDmode
3414 regnos into even/odd register pairs.
3415 * config/rs6000/rs6000.h [SLOW_UNALIGNED_ACCESS]: Treat DDmode and
3416 TDmode similar to the other floating point modes.
3417 [SECONDARY_MEMORY_NEEDED]: Treat DDmode similar to DFmode.
3418 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): New
3420 (negdd2_fpr, absdd2_fpr, nabsdd2_fpr, negtd2_fpr, abstd2_fpr,
3421 nabstd2_fpr, movdd_hardfloat64_mfpgpr): New define_insn's.
3422 (movdd_hardfloat64): Use TARGET_MFPGPR.
3424 2007-04-17 Bernd Schmidt <bernd.schmidt@analog.com>
3426 * reload1.c (delete_output_reload): Don't count output in n_inherited.
3429 2005-01-05 Richard Henderson <rth@redhat.com>
3431 * reload1.c (do_input_reload): Restrict the optimization deleteing
3432 a previous output reload to RELOAD_FOR_INPUT.
3434 2007-04-17 Dorit Nuzman <dorit@il.ibm.com>
3436 * tree-vectorizer.h (stmt_vec_info_type): Add enum value
3437 induc_vec_info_type.
3438 (vectorizable_induction): New function declaration.
3439 * tree-vect-transform.c (get_initial_def_for_induction): No need to
3440 check if already vectorized. Find first place in BB where new stmts
3441 can be inserted. Takes only one argument.
3442 (vectorizable_induction): New function.
3443 (vect_transform_stmt): Add case for induc_vec_info_type to call
3444 vectorizable_induction.
3445 (vect_transform_loop): Consider phis for vectorization.
3446 * tree-vect-analyze.c (vect_determine_vectorization_factor): Simplify
3448 (analyze_operations): Call vectorizable_induction when analyzing phis.
3450 (vect_mark_stmts_to_be_vectorized): Remove redundant checks.
3451 (vect_mark_relevant): Include phis in relevance analysis.
3452 (vect_mark_stmts_to_be_vectorize): Likewise.
3453 * tree-vect-patterns.c (widened_name_p): Remove obsolete asserts.
3455 2007-04-16 Lawrence Crowl <crowl@google.com>
3457 * doc/invoke.texi (Debugging Options): Add documentation for the
3458 -femit-struct-debug options -femit-struct-debug-baseonly,
3459 -femit-struct-debug-reduced, and
3460 -femit-struct-debug-detailed[=...].
3462 * c-opts.c (c_common_handle_option): Add
3463 OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
3464 and OPT_femit_struct_debug_detailed_.
3465 * c.opt: Add specifications for
3466 -femit-struct-debug-baseonly, -femit-struct-debug-reduced,
3467 and -femit-struct-debug-detailed[=...].
3468 * opts.c (set_struct_debug_option): Parse the
3469 -femit-struct-debug-... options.
3470 * opts.c (matches_main_base, main_input_basename,
3471 main_input_baselength, base_of_path, matches_main_base): Add
3472 variables and functions to compare header base name to compilation
3474 * opts.c (should_emit_struct_debug): Add to determine to emit a
3475 structure based on the option.
3476 (dump_struct_debug) Also disabled function to debug this
3478 * opts.c (handle_options): Save the base name of the
3481 * langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
3482 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
3483 This hook indicates if a type is generic. Set it by default
3485 * langhooks.h (struct lang_hooks_for_types): Add a new hook
3486 to determine if a struct type is generic or not.
3487 * cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
3488 * cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
3489 * cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
3492 * flags.h (enum debug_info_usage): Add an enumeration to describe
3493 a program's use of a structure type.
3494 * dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
3495 to indicate the program's usage of the type. Filter structs based
3496 on the -femit-struct-debug-... specification.
3497 (gen_type_die): Split into two routines, gen_type_die and
3498 gen_type_die_with_usage. gen_type_die is now a wrapper
3499 that assumes direct usage.
3500 (gen_type_die_with_usage): Replace calls to gen_type_die
3501 with gen_type_die_with_usage adding the program usage of
3502 the referenced type.
3503 (dwarf2out_imported_module_or_decl): Suppress struct debug
3504 information using should_emit_struct_debug when appropriate.
3506 2007-04-16 Ian Lance Taylor <iant@google.com>
3508 PR tree-optimization/31522
3509 * tree-vrp.c (vr_phi_edge_counts): New static variable.
3510 (vrp_initialize): Allocate vr_phi_edge_counts.
3511 (vrp_visit_phi_node): Don't push to infinity if we saw a new
3512 executable edge. Drop test for all constants.
3513 (vrp_finalize): Free vrp_phi_edge_counts.
3515 * doc/cpp.texi (Common Predefined Macros): Clarify description of
3516 __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
3518 * tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer
3519 predecessors at head rather than tail.
3521 2007-04-16 Matthias Klose <doko@debian.org>
3523 * config/alpha/linux.h (CPP_SPEC): Define.
3524 * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Extend.
3526 2007-04-16 Aldy Hernandez <aldyh@redhat.com>
3528 * function.h: Remove sequence_stack extern declaration.
3530 2007-04-16 Kazu Hirata <kazu@codesourcery.com>
3532 * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Change to 64 on
3534 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Change to 64 if __mfido__ is
3537 2007-04-16 Anatoly Sokolov <aesok@post.ru>
3539 * config/avr/avr.c (avr_arch_types): Rearranging array.
3540 (enum avr_arch): Add.
3541 (avr_mcu_types): Use avr_arch enumeration constants instead of
3543 * config/avr/avr.h (LINK_SPEC): Simplify.
3545 2007-04-16 Kazu Hirata <kazu@codesourcery.com>
3547 * config/m68k/m68k.c (m68k_libcall_value,
3548 m68k_function_value): Use macros for register names more.
3550 * config/m68k/m68k.h (FRAME_POINTER_REGNUM): Use A6_REG
3552 (M68K_REGNAME): Use A6_REG.
3553 * config/m68k/m68k.md (FP_REG): Rename to A6_REG.
3555 2007-04-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3558 * sched-int.h (struct deps): Split field 'pending_lists_length' into
3559 'pending_read_list_length' and 'pending_write_list_length'. Update
3561 * sched-deps.c (add_insn_mem_dependence): Change signature. Update
3562 to handle two length counters instead of one. Update all uses.
3563 (flush_pending_lists, sched_analyze_1, init_deps): Update to handle
3564 two length counters instead of one.
3565 * sched-rgn.c (propagate_deps): Update to handle two length counters
3568 2007-04-16 H.J. Lu <hongjiu.lu@intel.com>
3571 * config/i386/i386.c (ix86_expand_vec_set_builtin): Make a
3572 copy of source, pass it to ix86_expand_vector_set and return
3575 2007-04-16 David Ung <davidu@mips.com>
3576 Joseph Myers <joseph@codesourcery.com>
3578 * config/mips/mips.h (PROCESSOR_74KC, PROCESSOR_74KF,
3579 PROCESSOR_74KX, TUNE_74K, GENERATE_MADD_MSUB): Define.
3580 * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
3581 Add 74K processor information.
3582 * config/mips/mips.md: Include 74k.md.
3583 (cpu): Add 74kc,74kf,74kx.
3584 (ISA_HAS_MADD_MSUB): Change to GENERATE_MADD_MSUB throughout.
3585 * config/mips/74k.md: New.
3586 * doc/invoke.texi (MIPS Options): Document 74K support.
3588 2007-04-16 Dorit Nuzman <dorit@il.ibm.com>
3590 * tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to
3591 vectorizable_* functions.
3592 * tree-vect-transform.c (vectorizable_call): Add check for
3593 STMT_VINFO_RELEVANT_P, STMT_VINFO_DEF_TYPE and STMT_VINFO_LIVE_P.
3594 (vectorizable_store): likewise.
3595 (vectorizable_conversion): Add check for STMT_VINFO_DEF_TYPE.
3597 (vectorizable_operation, vectorizable_type_demotion): Likewise.
3598 (vectorizable_type_promotion, vectorizable_load): Likewise.
3599 (vectorizable_live_operation, vectorizable_condition): Likewise.
3600 (vectorizable_assignment): Add check for STMT_VINFO_DEF_TYPE and
3602 (vect_transform_stmt): Reorganize calls to vectorizable_* functions.
3604 2007-04-15 Kazu Hirata <kazu@codesourcery.com>
3606 * config/m68k/linux.h (FUNCTION_VALUE_REGNO_P): Use macros for
3607 register numbers more.
3608 * config/m68k/m68k.h (STACK_POINTER_REGNUM,
3609 FRAME_POINTER_REGNUM, STATIC_CHAIN_REGNUM,
3610 M68K_STRUCT_VALUE_REGNUM, FUNCTION_VALUE, LIBCALL_VALUE,
3611 FUNCTION_VALUE_REGNO_P): Likewise.
3612 * config/m68k/m68kelf.h (M68K_STRUCT_VALUE_REGNUM,
3613 STATIC_CHAIN_REGNUM): Likewise.
3614 * config/m68k/m68kemb.h (FUNCTION_VALUE_REGNO_P): Likewise.
3615 * config/m68k/netbsd-elf.h (M68K_STRUCT_VALUE_REGNUM,
3616 STATIC_CHAIN_REGNUM, FUNCTION_VALUE_REGNO_P): Likewise.
3617 * config/m68k/m68k.md (FP_REG): New.
3619 2007-04-15 Kazu Hirata <kazu@codesourcery.com>
3621 * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit
3624 2007-04-15 Kazu Hirata <kazu@codesourcery.com>
3626 * config/i386/i386.c, config/s390/s390.c, config/s390/s390.md,
3627 tree-ssa-loop-niter.c, tree-ssa-structalias.c, tree-vrp.c: Fix
3630 2007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
3632 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore
3635 2007-04-14 Andrew Pinski <andrew_pinski@playstation.sony.com>
3638 * c-decl.c (finish_decl): Grab the type of the decl after the call
3639 to store_init_value.
3641 2007-04-14 Steven Bosscher <steven@gcc.gnu.org>
3643 * common.opt (fforward-propagate): Fix "Optimization" annotation.
3645 2007-04-14 Jakub Jelinek <jakub@redhat.com>
3648 * omp-low.c (expand_omp_parallel): If child_cfun->cfg, free dominators,
3649 post dominators and cleanup cfg before returning.
3651 2007-04-14 Bernd Schmidt <bernd.schmidt@analog.com>
3653 * config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
3654 * config/bfin/bfin.md (movsi_insn): Delete two unused alternatives.
3656 2007-04-14 Kazu Hirata <kazu@codesourcery.com>
3658 * config.gcc: Recognize fido.
3659 * config/m68k/m68k-devices.def (fidoa): New.
3660 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define
3662 (FL_FIDOA, TARGET_FIDOA): New.
3663 * config/m68k/m68k.opt (mfidoa): New.
3665 2007-04-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3668 * dwarf2out.c (output_call_frame_info): Call assemble_external_libcall
3669 when a personality function is used.
3671 2007-04-13 Bob Wilson <bob.wilson@acm.org>
3673 * config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
3675 2007-04-13 Mike Stump <mrs@apple.com>
3677 * config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
3679 * config/darwin.opt (fapple-kext): Make C++ only.
3680 * config/darwin.c (darwin_override_options): Remove code to ensure
3681 -fapple-kext is given for C++ only.
3683 2007-04-13 Richard Sandiford <richard@codesourcery.com>
3685 * config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
3686 * config/mips/mips.c (override_options): Call
3687 SUBTARGET_OVERRIDE_OPTIONS, if defined.
3689 2007-04-13 H.J. Lu <hongjiu.lu@intel.com>
3691 * config/i386/i386.opt (msvr3-shlib): Removed.
3693 * doc/invoke.texi: Remove -msvr3-shlib.
3695 2007-04-13 H.J. Lu <hongjiu.lu@intel.com>
3697 * config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
3698 with "popcnt" instruction.
3700 2007-04-13 Richard Guenther <rguenther@suse.de>
3702 PR tree-optimization/21258
3703 * tree-vrp.c (compare_case_labels): New helper.
3704 (find_switch_asserts): New function.
3705 (find_assert_locations): Call it for SWITCH_EXPRs.
3707 2007-04-13 Uros Bizjak <ubizjak@gmail.com>
3709 * config/i386/i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
3710 * config/i386/i386.md (*cmpfp0): Remove check for TARGET_80387, this
3711 check is now implied in X87_FLOAT_MODE_P.
3712 (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
3713 (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
3714 (fix_trunc<mode>_i386_fisttp): Ditto.
3715 (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
3716 (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
3717 (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
3718 (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
3719 (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
3720 (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
3721 (unnamed_splitters): Ditto.
3722 * config/i386/i386.c (function_value_32): Generate FIRST_FLOAT_REG
3723 for X87_FLOAT_MODE_P mode. Override FIRST_FLOAT_REG with
3724 FIRST_SSE_REG for local functions when SSE math is enabled or
3725 for functions with sseregparm attribute.
3726 (standard_80387_constant_p): Return -1 if mode is not
3728 (ix86_cc_mode): Assert that scalar mode is not DECIMAL_FLOAT_MODE_P.
3729 (ix86_expand_compare): Ditto.
3730 (ix86_expand_carry_flag_compare): Ditto.
3731 (ix86_expand_int_movcc): Check for SCALAR_FLOAT_MODE_P instead
3732 of FLOAT_MODE_P for cmp_mode and assert that cmp_mode is not
3733 DECIMAL_FLOAT_MODE_P.
3734 (ix86_preferred_output_reload_class): Use X87_FLOAT_MODE_P instead
3735 of SCALAR_FLOAT_MODE_P.
3736 (ix86_rtx_costs) [PLUS] Remove FLOAT_MODE_P and fall through to ...
3737 [MINUS]: ... here. Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P
3738 checks before FLOAT_MODE_P.
3739 [MULT]: Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P checks
3740 before FLOAT_MODE_P.
3745 [FLOAT_EXTEND]: Use SSE_FLOAT_MODE_P.
3747 2007-04-12 Paolo Bonzini <bonzini@gnu.org>
3748 Charles Wilson <libtool@cwilson.fastmail.fm>
3750 * Makefile.in (stamp-as, stamp-collect-ld, stamp-nm): Remove.
3751 (libgcc.mvars): Don't depend on them.
3752 * configure.ac (as, collect-ld, nm): Create from exec-tool.in.
3753 * exec-tool.in: New.
3755 2007-04-12 Brooks Moses <brooks.moses@codesourcery.com>
3757 * doc/invoke.text (--help): Document --help=common.
3759 2007-04-12 Thomas Neumann <tneumann@users.sourceforge.net>
3761 * stub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.
3763 2007-04-12 Richard Sandiford <richard@codesourcery.com>
3765 * Makefile.in (insn-emit.o): Depend on $(INTEGRATE_H).
3766 * genemit.c (main): Emit #include "integrate.h".
3767 * config/mips/mips-protos.h (SYMBOL_HALF): New mips_symbol_type.
3768 (LOADGP_RTP): New mips_loadgp_style.
3769 * config/mips/mips.h: Include config/vxworks-dummy.h.
3770 (TARGET_RTP_PIC): New macro.
3771 (TARGET_USE_GOT): Return true for TARGET_RTP_PIC.
3772 (TARGET_USE_PIC_FN_ADDR_REG): Return true for TARGET_VXWORKS_RTP.
3773 (ASM_OUTPUT_ADDR_DIFF_ELT): Emit function-relative case tables
3775 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Define. Pass down
3776 -mvxworks-pic when using -mrtp and a PIC option.
3777 * config/mips/mips.c (mips_classify_symbol): Return SYMBOL_GOT_DISP
3779 (mips_symbolic_constant_p, mips_symbolic_address_p)
3780 (mips_symbol_insns): Handle SYMBOL_HALF.
3781 (override_options): Warn about -G and -mrtp being used together.
3782 Initialize mips_lo_relocs[SYMBOL_HALF].
3783 (mips_current_loadgp_style): Return LOADGP_RTP for RTP PIC.
3784 (mips_emit_loadgp): Handle LOADGP_RTP.
3785 (mips_in_small_data_p): Return false for TARGET_VXWORKS_RTP.
3786 * config/mips/mips.md (loadgp_rtp): New insn and splitter.
3787 (tablejump): Handle function-relative case table entries if
3789 * config/mips/predicates.md (symbol_ref_operand): New predicate.
3791 2007-04-12 Richard Sandiford <richard@codesourcery.com>
3793 * config/mips/mips.md (load_call<mode>): Allow any general register.
3795 (sibcall_value_internal, sibcall_value_multiple_internal)
3796 (call_value_internal, call_value_split, call_value_multiple_internal)
3797 (call_value_multiple_split): Remove constraints from operand 0.
3799 2007-04-12 Richard Sandiford <richard@codesourcery.com>
3801 * config/mips/mips-protos.h: In comments, refer to loadgp_absolute
3802 rather than loadgp_noshared.
3803 * config/mips/mips.c (mips_emit_loadgp): Use gen_loadgp_absolute
3804 instead of gen_loadgp_noshared. Use gen_loadgp_newabi instead of
3806 * config/mips/mips.md (loadgp): Rename to...
3807 (loadgp_newabi): ...this.
3808 (loadgp_noshared): Rename to...
3809 (loadgp_absolute): ...this.
3811 2007-04-12 Richard Sandiford <richard@codesourcery.com>
3813 * config/mips/mips.c (mips_ok_for_lazy_binding_p): Always return
3814 false for locally-binding symbols.
3815 (mips_dangerous_for_la25_p): Check mips_global_symbol_p.
3817 2007-04-12 Richard Sandiford <richard@codesourcery.com>
3819 * config/mips/mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
3820 (SYMBOL_GOT_PAGE_OFST): ...this.
3821 (SYMBOL_GOT_GLOBAL): Rename to...
3822 (SYMBOL_GOT_DISP): ...this.
3823 (SYMBOL_GOTOFF_GLOBAL): Rename to...
3824 (SYMBOL_GOTOFF_DISP): ...this. Update comments accordingly.
3825 * config/mips/mips.c (mips_global_symbol_p): New function.
3826 (mips_symbol_binds_local_p): Likewise.
3827 (mips_classify_symbol): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP
3828 and SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST. Use mips_global_symbol_p
3829 and mips_symbol_binds_local_p.
3830 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
3831 (override_options): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP,
3832 SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST and SYMBOL_GOTOFF_GLOBAL to
3834 (mips_ok_for_lazy_binding_p): New function.
3835 (mips_load_call_address, mips_expand_call): Use it.
3836 (mips_dangerous_for_la25_p): Likewise.
3837 * config/mips/mips.md (*xgot_hi<mode>, *xgot_lo<mode>)
3838 (*got_disp<mode>): Use got_disp_operand instead of
3839 global_got_operand. Use SYMBOL_GOTOFF_DISP instead of
3840 SYMBOL_GOTOFF_GLOBAL.
3841 (*got_page<mode>): Use got_page_ofst_operand instead of
3843 * config/mips/predicates.md (const_call_insn_operand): Use
3844 SYMBOL_GOT_DISP instead of SYMBOL_GOT_GLOBAL.
3845 (global_got_operand): Rename to...
3846 (got_disp_operand): ...this and use SYMBOL_GOT_DISP instead of
3848 (local_got_operand): Rename to...
3849 (got_page_ofst_operand): ...this and use SYMBOL_GOT_PAGE_OFST instead
3850 of SYMBOL_GOT_LOCAL.
3852 2007-04-12 Richard Sandiford <richard@codesourcery.com>
3854 * config/mips/mips.h (TARGET_SPLIT_CALLS): Check
3855 TARGET_CALL_CLOBBERED_GP.
3856 (TARGET_SIBCALLS): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
3857 (TARGET_USE_GOT, TARGET_CALL_CLOBBERED_GP): New macros.
3858 (TARGET_CALL_SAVED_GP, TARGET_USE_PIC_FN_ADDR_REG): Likewise.
3859 (STARTING_FRAME_OFFSET): Check TARGET_CALL_CLOBBERED_GP instead
3860 of TARGET_ABICALLS && !TARGET_NEWABI.
3861 (MIPS_CALL): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
3862 * config/mips/mips.c (mips_load_call_address): Check
3863 TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
3864 (mips_global_pointer): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
3865 Check TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
3866 (mips_save_reg_p): Check TARGET_CALL_SAVED_GP instead of
3867 TARGET_ABICALLS && TARGET_NEWABI.
3868 (mips_current_loadgp_style): Check TARGET_USE_GOT instead of
3870 (mips_expand_prologue): Check TARGET_OLDABI instead of !TARGET_NEWABI.
3871 (mips_expand_epilogue): Check TARGET_CALL_SAVED_GP instead of
3872 TARGET_ABICALLS && TARGET_NEWABI.
3873 (mips_output_mi_thunk): Check TARGET_USE_GOT instead of
3874 TARGET_ABICALLS. Check TARGET_CALL_SAVED_GP instead of
3875 TARGET_NEWABI. Use TARGET_USE_PIC_FN_ADDR_REG to decide
3876 whether indirect calls must use $25.
3877 (mips_extra_live_on_entry): Check TARGET_GOT instead of
3879 * config/mips/mips.md (jal_macro): Check flag_pic and
3880 TARGET_CALL_CLOBBERED_GP instead of TARGET_ABICALLS and TARGET_NEWABI.
3881 (builtin_setjmp_setup, builtin_longjmp): Check TARGET_USE_GOT
3882 instead of TARGET_ABICALLS.
3883 (exception_receiver): Check TARGET_CALL_CLOBBERED_GP instead of
3884 TARGET_ABICALLS && TARGET_OLDABI.
3885 (load_call<mode>): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
3886 (sibcall): In the comment above the define_insn, mention
3887 TARGET_USE_PIC_FN_ADDR_REG instead of TARGET_ABICALLS.
3888 * config/mips/constraints.md (c): Check TARGET_USE_PIC_FN_ADDR_REG
3889 instead of TARGET_ABICALLS.
3891 2007-04-12 Bernd Schmidt <bernd.schmidt@analog.com>
3893 * doc/md.texi (Blackfin family constraints): Document PA and PB.
3894 * config/bfin/bfin.h (CONST_OK_FOR_P): Handle PA and PB.
3895 (MACFLAGS_MATCH_P): New macro.
3896 * config/bfin/bfin.c (print_operand): Handle MACFLAG_IS_M.
3897 (bfin_secondary_reload): Treat EVEN_AREGS and ODD_AREGS like AREGS.
3898 * config/bfin/bfin.md (MACFLAG_IS_M): New constant. Renumber some of
3899 the other MACFLAG constants.
3900 (sum_of_accumulators, lshrpdi3, ashrpdi3): New patterns.
3901 (flag_machi): Tighten constraints. Renumber some of the operands.
3902 (flag_machi_acconly): Tighten constraints. Correct operand numbers in
3904 (flag_machi_parts_acconly): New pattern.
3905 (flag_macinithi): Tighten constraints. Allow any accumulator to be
3907 (flag_macinit1hi): Tighten constraints.
3908 (flag_mul_macv2hi_parts_acconly): New pattern.
3910 * config/bfin/lib1funcs.asm (___umulsi3_highpart, __smulsi3_highpart):
3911 Use a more efficient implementation.
3912 * config/bfin/bfin.md (umulsi3_highpart, smulsi3_highpart): Emit
3913 inline sequences when not optimizing for size.
3915 * config/bfin/bfin.md (movhi_low2high, movhi_high2high, movhi_low2low,
3916 movhi_high2low): Delete, merge functionality into...
3917 (packv2hi): ... this pattern.
3919 2007-02-11 Jie Zhang <jie.zhang@analog.com>
3920 * config/bfin/bfin.opt (msim): New option.
3921 (mcpu=): New option.
3922 * config/bfin/bfin-protos.h (enum bfin_cpu): New.
3923 (bfin_cpu_t): Typedef of enum bfin_cpu.
3924 (bfin_cpu_type): New declaration.
3925 * config/bfin/elf.h (STARTFILE_SPEC): Add support for
3926 -msim and -mcpu= options.
3927 (LIB_SPEC): Likewise.
3928 * config/bfin/bfin.c (bfin_cpu_type): Define.
3929 (bfin_handle_option): Handle -mcpu= option.
3930 * config/bfin/bfin.h (DEFAULT_CPU_TYPE): Define as BFIN_CPU_BF532.
3931 (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF531__, __ADSPBF532__,
3932 __ADSPBF533__ or __ADSPBF537__ according to the cpu type.
3934 2007-04-12 Richard Sandiford <richard@codesourcery.com>
3936 * config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.
3937 (arm-wrs-vxworks, mips-wrs-vxworks, powerpc-wrs-vxworks)
3938 (powerpc-wrs-vxworksae): Use ${tm_file}.
3939 (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add svr4.h
3940 after elfos.h. Remove i386/sysv4.h and add i386/vx-common.h.
3941 * config/i386/vx-common.h: New file.
3943 2007-04-12 Richard Sandiford <richard@codesourcery.com>
3945 * config/vxworks.h (VXWORKS_STARTFILE_SPEC): Use -l:crt0.o instead
3948 2007-04-12 Andreas Krebbel <krebbel1@de.ibm.com>
3950 * config/s390/s390.md ("trunctddd2"): Use TDmode for the target of
3953 2007-04-12 Douglas Gregor <doug.gregor@gmail.com>
3957 * c-common.c (c_build_qualified_type): Set canonical type
3960 2007-04-12 Richard Guenther <rguenther@suse.de>
3962 * tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
3963 lower bound and element size if lower bound is not zero
3964 or either of the ARRAY_REF operands is set.
3966 2007-04-12 Richard Guenther <rguenther@suse.de>
3968 PR tree-optimization/24689
3969 PR tree-optimization/31307
3970 * fold-const.c (operand_equal_p): Compare INTEGER_CST array
3972 * gimplify.c (canonicalize_addr_expr): To be consistent with
3973 gimplify_compound_lval only set operands two and three of
3974 ARRAY_REFs if they are not gimple_min_invariant. This makes
3975 it never at this place.
3976 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
3978 2007-04-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3980 * pa.c (pa_som_asm_init_sections): Ensure that cfun->machine is not
3981 null before emitting a .nsubspa directive.
3983 2007-04-11 Diego Novillo <dnovillo@redhat.com>
3985 * tree-ssa-alias.c (dump_mem_ref_stats): Do not call
3986 need_to_partition_p if there are no memory statements in the
3989 2007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
3991 * tree-data-ref.c (chrec_steps_divide_constant_p): Removed.
3992 (gcd_of_steps_may_divide_p): New function.
3993 (analyze_miv_subscript): Use gcd_of_steps_may_divide_p.
3995 2007-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
3997 * reload.c (find_reloads_toplev, find_reloads_address,
3998 find_reloads_address_1, find_reloads_subreg_address): Use rtx_equal_p,
3999 not a pointer equality test, to decide if we need to call
4000 push_reg_equiv_alt_mem.
4002 2007-04-11 Sebastian Pop <sebastian.pop@inria.fr>
4004 * tree-data-ref.c (affine_function_zero_p, constant_access_functions,
4005 insert_innermost_unit_dist_vector, add_distance_for_zero_overlaps): New.
4006 (build_classic_dist_vector): Call add_distance_for_zero_overlaps.
4008 2007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
4010 * tree-data-ref.c (add_multivariate_self_dist): Force the distance
4011 vector to be positive.
4013 2007-04-11 Diego Novillo <dnovillo@redhat.com>
4017 * doc/invoke.texi: Document --params max-aliased-vops and
4019 * tree-ssa-operands.h (get_mpt_for, dump_memory_partitions,
4020 debug_memory_partitions): Move to tree-flow.h
4021 * params.h (AVG_ALIASED_VOPS): Define.
4022 * tree-ssa-alias.c (struct mp_info_def): Remove. Update all
4024 (mp_info_t): Likewise.
4025 (get_mem_sym_stats_for): New.
4026 (set_memory_partition): Move from tree-flow-inline.h.
4027 (mark_non_addressable): Only clear the set of symbols for the
4028 partition if it exists.
4029 (dump_memory_partitions): Move from tree-ssa-operands.c
4030 (debug_memory_partitions): Likewise.
4031 (need_to_partition_p): New.
4032 (dump_mem_ref_stats): New.
4033 (debug_mem_ref_stats): New.
4034 (dump_mem_sym_stats): New.
4035 (debug_mem_sym_stats): New.
4036 (update_mem_sym_stats_from_stmt): New.
4037 (compare_mp_info_entries): New.
4038 (mp_info_cmp): Call it.
4039 (sort_mp_info): Change argument to a list of mem_sym_stats_t
4041 (get_mpt_for): Move from tree-ssa-operands.c.
4042 (find_partition_for): New.
4043 (create_partition_for): Remove.
4044 (estimate_vop_reduction): New.
4045 (update_reference_counts): New.
4046 (build_mp_info): New.
4047 (compute_memory_partitions): Refactor.
4048 Document new heuristic.
4049 Call build_mp_info, update_reference_counts,
4050 find_partition_for and estimate_vop_reduction.
4051 (compute_may_aliases): Populate virtual operands before
4052 calling debugging dumps.
4053 (delete_mem_sym_stats): New.
4054 (delete_mem_ref_stats): New.
4055 (init_mem_ref_stats): New.
4056 (init_alias_info): Call it.
4057 (maybe_create_global_var): Remove alias_info argument.
4058 Get number of call sites and number of pure/const call sites
4059 from gimple_mem_ref_stats().
4060 (dump_alias_info): Call dump_memory_partitions first.
4061 (dump_points_to_info_for): Show how many times a pointer has
4063 * opts.c (decode_options): For -O2 set --param
4064 max-aliased-vops to 500.
4065 For -O3 set --param max-aliased-vops to 1000 and --param
4066 avg-aliased-vops to 3.
4067 * fortran/options.c (gfc_init_options): Remove assignment to
4069 * tree-flow-inline.h (gimple_mem_ref_stats): New.
4070 * tree-dfa.c (dump_variable): Dump memory reference
4072 Dump NO_ALIAS* settings.
4073 (referenced_var_lookup): Tidy.
4074 (mem_sym_stats): New.
4075 * tree-ssa-copy.c (may_propagate_copy): Return true if DEST
4076 and ORIG are different SSA names for a memory partition.
4077 * tree-ssa.c (delete_tree_ssa): Call delete_mem_ref_stats.
4078 * tree-flow.h (struct mem_sym_stats_d): Define.
4079 (mem_sym_stats_t): Define.
4080 (struct mem_ref_stats_d): Define.
4081 (struct gimple_df): Add field mem_ref_stats.
4082 (enum noalias_state): Define.
4083 (struct var_ann_d): Add bitfield noalias_state.
4084 (mem_sym_stats, delete_mem_ref_stats, dump_mem_ref_stats,
4085 debug_mem_ref_stats, debug_memory_partitions,
4086 debug_mem_sym_stats): Declare.
4087 * tree-ssa-structalias.c (update_alias_info): Update call
4088 sites, pure/const call sites and asm sites in structure
4089 returned by gimple_mem_ref_stats.
4090 Remove local variable IS_POTENTIAL_DEREF.
4091 Increase NUM_DEREFS if the memory expression is a potential
4093 Call update_mem_sym_stats_from_stmt.
4094 If the memory references memory, call
4095 update_mem_sym_stats_from_stmt for all the direct memory
4096 symbol references found.
4097 (intra_create_variable_infos): Set noalias_state field for
4098 pointer arguments according to the value of
4099 flag_argument_noalias.
4100 * tree-ssa-structalias.h (struct alias_info): Remove fields
4101 num_calls_found and num_pure_const_calls_found.
4102 (update_mem_sym_stats_from_stmt): Declare.
4103 * params.def (PARAM_MAX_ALIASED_VOPS): Change description.
4104 Set default value to 100.
4105 (PARAM_AVG_ALIASED_VOPS): Define.
4107 2007-04-11 Richard Guenther <rguenther@suse.de>
4110 * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
4111 a * -b + c as c - a * b if we honor sign dependent rounding.
4113 2007-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
4115 * config/bfin/bfin-protos.h (bfin_expand_movmem): Renamed from
4117 * config/bfin/bfin.c (bfin_expand_prologue, bfin_delegitimize_address,
4118 bfin_function_ok_for_sibcall, split_load_immediate): Remove unused
4120 (initialize_trampoline): Don't use old-style function definition.
4121 (bfin_secondary_reload): Mark IN_P argument as unused.
4123 2007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
4125 PR tree-optimization/31343
4126 * tree-chrec.h (chrec_zerop): Moved before build_polynomial_chrec.
4127 (build_polynomial_chrec): Return a scalar when the evolution is zero.
4128 * testsuite/gcc.dg/vect/pr31343.c: New.
4130 2007-04-10 Eric Christopher <echristo@apple.com>
4132 * config/i386/i386.h (X87_FLOAT_MODE_P): New.
4133 * config/i386/i386.md (*cmpfp0): Use.
4134 (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
4135 (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
4136 (fix_trunc<mode>_i386_fisttp): Ditto.
4137 (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
4138 (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
4139 (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
4140 (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
4141 (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
4142 (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
4143 (unnamed_splitters): Ditto.
4144 * config/i386/i386.c (output_fix_trunc): Assert that
4145 we're not being passed a TFmode operand.
4147 2007-04-10 Zdenek Dvorak <dvorakz@suse.cz>
4149 PR tree-optimization/31526
4150 * tree-inline.c (copy_cfg_body): Use last_basic_block instead of
4151 n_basic_blocks to find newly added blocks.
4153 2007-04-10 Uros Bizjak <ubizjak@gmail.com>
4155 * config/i386/i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm"
4157 (fix_trunc<mode>si_sse): Ditto.
4158 (*floatsisf2_mixed, *floatsisf2_sse): Ditto.
4159 (*floatsidf2_mixed, *floatsidf2_sse): Ditto.
4160 (*floatdisf2_mixed, *floatdisf2_sse): Ditto.
4161 (*floatdidf2_mixed, *floatdidf2_sse): Ditto.
4162 (floathi<mode>2): Rename from floathisf2 and floathidf2. Macroize
4163 expander using SSEMODEF mode macro.
4164 (floatsi<mode>2): Rename from floatsisf2 and floashidf2. Macroize
4165 expander using SSEMODEF mode macro.
4166 (*floathi<mode>2_i387): Rename from *floathisf2_i387 and
4167 *floathidf2_i387. Macroize insn using X87MODEF12 mode macro.
4168 (*floatsi<mode>2_i387): Rename from *floatsisf2_i387 and
4169 *floatsidf2_i387. Macroize insn using X87MODEF12 mode macro.
4170 (*floatdi<mode>2_i387): Rename from *floatdisf2_i387 and
4171 *floatdidf2_i387. Macroize insn using X87MODEF12 mode macro.
4172 (float<mode>xf2): Rename from floathixf2, floatsixf2 and floatdixf2.
4173 Macroize insn using X87MODEF mode macro.
4175 2007-04-09 H.J. Lu <hongjiu.lu@intel.com>
4177 * config/i386/sse.md (sse2_pinsrw): Removed.
4178 (sse2_pextrw): Renamed to ...
4179 (*sse2_pextrw): This.
4181 2007-04-09 Jan Hubicka <jh@suse.cz>
4184 * config/i386/sse.md
4185 (sse_vmaddv4sf3, sse_vmmulv4sf3): Remove '%' modifier.
4186 (sse_vmsmaxv4sf3_finite, sse_vmsminv4sf3_finite): Remove.
4187 (sse2_vmaddv2df3, sse2_vmmulv2df3): Remove '%' modifier.
4188 (sse2_vmsmaxv2df3_finite, sse2_vmsminv2df3_finite): Remove.
4190 2007-04-09 Jan Hubicka <jh@suse.cz>
4192 * tree-ssa-ccp (maybe_fold_offset_to_component_ref): Recurse into
4193 multiple fields of union.
4195 2007-04-09 Zdenek Dvorak <dvorakz@suse.cz>
4197 * cfgloopmanip.c (create_preheader): Do not use loop_preheader_edge.
4198 (create_preheaders): Check that loops are available.
4199 (fix_loop_structure): Clean up, improve comments.
4200 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa):
4201 Check that loops are available. Set LOOP_CLOSED_SSA to the loops
4203 * tree-scalar-evolution.c (scev_finalize): Clear scalar_evolution_info.
4204 * predict.c (tree_estimate_probability): Do not call
4205 calculate_dominance_info. Call create_preheaders.
4206 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Only call
4207 rewrite_into_loop_closed_ssa if LOOP_CLOSED_SSA is set in loops state
4209 * cfgloop.c (loop_preheader_edge): Assert that loops have preheaders.
4210 * cfgloop.h (LOOP_CLOSED_SSA): New constant.
4211 * tree-cfg.c (tree_split_edge): Make an assert more precise.
4212 * tree-ssa-threadedge.c (thread_across_edge): Comment the function
4215 2007-04-08 Jan Hubicka <jh@suse.cz>
4217 * tree.h (maybe_fold_offset_to_component_ref): Declare.
4218 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Export.
4219 * fold-const.c (fold_unary): Use it.
4221 2007-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
4223 * varasm.c (assemble_variable): Remove call to
4224 lang_hooks.decls.prepare_assemble_variable.
4225 * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Kill.
4226 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE.
4227 * langhooks.h (lang_hooks_for_decls): Remove
4228 prepare_assemble_variable.
4230 2007-04-08 Mike Stump <mrs@apple.com>
4232 * config/i386/i386.c: Use inc/dec on Core2.
4234 2007-04-08 Steven Bosscher <steven@gcc.gnu.org>
4236 * langhooks.c (lhd_tree_inlining_add_pending_fn_decls,
4237 lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
4238 lhd_tree_inlining_end_inlining): Remove.
4239 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove then
4240 add_pending_fn_decls, anon_aggr_type_p, start_inlining, and
4242 * langhooks-def.h (lhd_tree_inlining_add_pending_fn_decls,
4243 lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
4244 lhd_tree_inlining_end_inlining): Remove prototypes.
4245 (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS,
4246 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
4247 LANG_HOOKS_TREE_INLINING_START_INLINING,
4248 LANG_HOOKS_TREE_INLINING_END_INLINING): Remove.
4250 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do
4253 2007-04-08 Anatoly Sokolov <aesok@post.ru>
4256 * config/avr/predicates.md (io_address_operand): Delete predicate.
4257 (low_io_address_operand): Don't use 'mode' argument.
4258 (higth_io_address_operand): Rename ...
4259 (high_io_address_operand): ... to this. Don't use 'mode' argument.
4260 * config/avr/avr.md (*sbix_branch_tmp, *sbix_branch_tmp_bit7): Adjust
4263 2007-04-07 Daniel Berlin <dberlin@dberlin.org>
4265 Revert change removing staticp.
4267 2007-04-07 Anatoly Sokolov <aesok@post.ru>
4270 * config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as
4273 2007-04-07 Bruce Korb <bkorb@gnu.org>
4275 * c.opt: Add -Wformat-contains-nul.
4276 * c-format.c (set_Wformat): Set warn_format_contains_nul to the
4278 (check_format_info_main): Check OPT_Wformat_contains_nul before emitting
4279 the NUL byte warning.
4281 2007-04-07 H.J. Lu <hongjiu.lu@intel.com>
4283 * config/i386/i386.c (ix86_handle_option): Handle SSSE3.
4285 2007-04-06 Daniel Berlin <dberlin@dberlin.org>
4287 * tree.c (staticp): No longer use staticp langhook.
4288 * langhooks.c (lhd_staticp): Removed.
4289 * langhooks.h (struct lang_hooks): Remove staticp.
4290 * c-common.c (c_staticp): Remove.
4291 * c-common.h (c_staticp): Ditto.
4292 * langhooks-defs.h (lhd_staticp): Ditto.
4293 (LHD_HOOKS_STATICP): Ditto
4294 * tree.h (gcc_assert_lowered): New macro.
4296 2007-04-06 Zdenek Dvorak <dvorakz@suse.cz>
4298 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Add and use
4299 argument "reliable".
4300 (infer_loop_bounds_from_ref, infer_loop_bounds_from_array):
4301 Add argument "reliable". Propagate it through calls.
4302 (infer_loop_bounds_from_undefined): Derive number of iterations
4303 estimates from references in blocks that do not dominate loop latch.
4304 (gcov_type_to_double_int): New function.
4305 (estimate_numbers_of_iterations_loop): Use gcov_type_to_double_int
4306 and expected_loop_iterations_unbounded.
4307 * cfgloopanal.c (expected_loop_iterations_unbounded): New function.
4308 (expected_loop_iterations): Use expected_loop_iterations_unbounded.
4309 * tree-data-ref.c (estimated_loop_iterations): Export.
4310 (get_references_in_stmt): Fix -- do not return addresses of local
4312 * cfgloop.h (expected_loop_iterations_unbounded,
4313 estimated_loop_iterations): Declare.
4315 2007-04-06 Andreas Tobler <a.tobler@schweiz.org>
4317 * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
4319 2007-04-06 Uros Bizjak <ubizjak@gmail.com>
4321 * config/i386/i386.md (extend<mode>xf2): Rename from extendsfxf2
4322 and extenddfxf2. Macroize expander using X87MODEF12 mode macro.
4323 (*truncdfsf_mixed, *truncdfsf_i387, *truncdfsf2_i387_1):
4324 Use output_387_reg_move().
4325 (*truncxf<mode>2): Rename from *truncxfsf2 and truncxfdf2. Macroize
4326 expander using X87MODEF12 mode macro.
4327 (*truncxfsf2_mixed): Combine alternatives, ignore "r" alternative when
4328 choosing register preferences. Use output_387_reg_move().
4329 (*truncxfdf2_mixed): Combine alternatives, use "r" alternative
4330 instead of "x". Use output_387_reg_move().
4331 (*truncxf<mode>2_i387_noop): Rename from *truncxfsf2_i387_noop and
4332 *truncxfdf2_i387_noop. Macroize insn using X87MODEF12 mode macro.
4333 (*truncxf<mode>2_i387): Rename from *truncxfsf2_i387 and
4334 *truncxfdf2_i387. Macroize insn using X87MODEF12 mode macro.
4335 Use output_387_reg_move().
4336 (*truncxf?f_mixed splitter): Macroize splitter using X87MODEF12
4338 (*truncxf?f_i387 splitter): Ditto.
4340 2007-04-06 Daniel Berlin <dberlin@dberlin.org>
4342 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
4343 LANG_HOOKS_SAFE_FROM_P.
4344 * expr.c (safe_from_p): Remove langhook call.
4345 * langhooks.h (lang_hooks): Remove safe_from_p.
4346 (lhd_safe_from_p): Remove prototype.
4347 * langhooks.c (lhd_safe_from_p): Remove.
4349 2007-04-06 Jan Hubicka <jh@suse.cz>
4351 * cgraphunit.c (decide_is_function_needed): Do not keep always_inline
4354 2007-04-06 Uros Bizjak <ubizjak@gmail.com>
4356 * config/i386/i386.c (output_387_reg_move): Handle memory operand[0].
4357 * config/i386/i386.md (*movsf_1, *movdf_nointeger,
4358 *movdf_integer_rex64, *movdf_integer, *movxf_nointeger,
4359 *movxf_integer): Use output_387_reg_move() for x87 reg->mem
4361 (*extendsfdf2_mixed, *extendsfdf2_i387, *extendsfxf2_i387,
4362 *extenddfxf2_i387, *truncdfsf_fast_mixed): Ditto.
4364 2007-04-05 Richard Henderson <rth@redhat.com>
4366 * config/alpha/alpha.c (print_operand) [+]: Remove.
4367 (alpha_end_function): Print nop if call at end of function.
4368 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Remove +.
4369 * config/alpha/alpha.md (UNSPEC_LDGP1): New.
4370 (call_osf_1_er_noreturn, call_value_osf_1_er_noreturn): New.
4371 (call_osf_2_er_nogp, call_value_osf_2_er_nogp): New.
4372 (call_osf_2_er, call_value_osf_2_er): Merge the ldgp highpart into
4373 the call pattern. Update peepholes to match.
4375 2007-04-05 Janis Johnson <janis187@us.ibm.com>
4377 * doc/extend.texi (Other Builtins): Add decimal float variants
4379 * builtins.def: Ditto.
4380 * builtins.c (expand_builtin): Ditto.
4382 2007-04-05 Uros Bizjak <ubizjak@gmail.com>
4383 H.J. Lu <hongjiu.lu@intel.com>
4386 * config/i386/sse.md (sse2_umulv2siv2di3): Use V4SImode instead
4387 of V8HImode when calling ix86_binary_operator_ok.
4388 (sse2_pmaddwd): Call ix86_binary_operator_ok.
4389 (sdot_prodv8hi): Operands 1 and 2 must be register.
4391 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
4393 * tree-sra.c (try_instantiate_multiple_fields): Needlessly
4394 initialize align to silence bogus warning.
4396 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
4399 * tree-sra.c (struct sra_elt): Add in_bitfld_block. Remove
4401 (struct sra_walk_fns): Remove use_all parameter from use.
4402 (sra_hash_tree): Handle BIT_FIELD_REFs.
4403 (sra_elt_hash): Don't hash bitfld blocks.
4404 (sra_elt_eq): Skip them in parent compares as well. Handle
4406 (sra_walk_expr): Don't maintain or pass down use_all_p.
4407 (scan_use): Remove use_all parameter.
4408 (scalarize_use): Likewise. Re-expand assignment to
4409 BIT_FIELD_REF of gimple_reg. De-scalarize before input or
4410 output, and re-scalarize after output. Don't mark anything
4412 (scalarize_ldst): Adjust.
4413 (scalarize_walk_gimple_modify_statement): Likewise.
4414 (build_element_name_1): Handle BIT_FIELD_REFs.
4415 (instantiate_element): Don't warn for any element whose parent
4417 (instantiate_missing_elements_1): Return the sra_elt.
4418 (canon_type_for_field): New.
4419 (try_instantiate_multiple_fields): New.
4420 (instantiate_missing_elemnts): Use them.
4421 (mark_no_warning): Removed.
4422 (generate_one_element_ref): Handle BIT_FIELD_REFs.
4423 (REPLDUP, sra_build_elt_assignment): New.
4424 (generate_copy_inout): Use them.
4425 (generate_element_copy): Likewise. Handle bitfld differences.
4426 (generate_element_zero): Don't recurse for blocks. Use
4427 sra_build_elt_assignment.
4428 (generate_one_element_int): Take elt instead of var. Use
4429 sra_build_elt_assignment.
4430 (generate_element_init_1): Adjust.
4431 (scalarize_use, scalarize_copy): Use REPLDUP.
4432 (scalarize_ldst): Move assert before dereference.
4433 (dump_sra_elt_name): Handle BIT_FIELD_REFs.
4435 2007-04-05 Steven Bosscher <steven@gcc.gnu.org>
4437 * regmove.c: Fix unused variable warnings due to previous commit.
4439 2007-04-05 Steven Bosscher <steven@gcc.gnu.org>
4441 * regmove.c (STACK_GROWS_DOWNWARD): Don't boolean-ize.
4442 (regmove_bb_head): Remove.
4443 (copy_src_to_dest): Don't update regmove_bb_head and BB_HEAD.
4444 (regmove_optimize): Don't do unnecessary CFG fixes for non-existing
4445 problems with fixup_match_1.
4446 Don't initialize/free regmove_bb_head.
4448 (reg_is_remote_constant_p): If an insn is in the same basic block
4449 but not before INSN, consider it remote, too.
4451 2007-04-05 Anatoly Sokolov <aesok@post.ru>
4454 * config/avr/avr.c (avr_handle_fndecl_attribute): Use the
4455 DECL_ASSEMBLER_NAME, not the DECL_NAME.
4457 2007-04-05 H.J. Lu <hongjiu.lu@intel.com>
4459 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat.
4460 (CONDITIONAL_REGISTER_USAGE): Likewise.
4462 2007-04-04 Richard Henderson <rth@redhat.com>
4464 * config/alpha/lib1funcs.asm: Remove unused file.
4466 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
4469 * opts.c (print_specific_help): Fix --help=<language>
4471 (common_handle_option): Support --help=common.
4473 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
4476 * gcc.c (main): Do not run the linker if
4477 print_subprocess_help indicates that it shouldn't be
4480 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
4483 * doc/invoke.texi (--help=): Document <languages> value, fix
4484 formatting in tables of values.
4486 2007-04-04 Danny Smith <dannysmith.users.sourceforge.net>
4488 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore
4489 dllimport attribute of virtual methods.
4491 2007-04-04 Chen Liqin <liqin@sunnorth.com.cn>
4493 * config/score/crti.asm: Change _bss_start to __bss_start.
4494 * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Added.
4495 (OUTGOING_REG_PARM_STACK_SPACE) update.
4496 * config/score/score.opt: add options to make backend support
4497 score5, score5u, score7 and score7d.
4498 * config/score/score.md: Likewise.
4499 * config/score/misc.md: Likewise.
4500 * config/score/mac.md: Likewise.
4501 * doc/invoke.texi: Likewise.
4502 * doc/md.texi: update constraints define.
4504 2007-04-03 Richard Henderson <rth@redhat.com>
4506 * expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield
4507 an appropriate type, use the mode instead.
4509 2007-04-03 Richard Sandiford <richard@codesourcery.com>
4511 * config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file.
4512 Set the default --with-arch setting to mips2.
4513 * config/mips/t-vxworks (MULTILIB_OPTIONS, MULTILIB_MATCHES)
4514 (MULTILIB_EXCEPTIONS): Redefine with new multilibs.
4515 (MULTILIB_OSDIRNAMES): Delete.
4516 (MULTILIB_DIRNAMES): Define.
4517 * config/mips/vxworks.h (LINK_SPEC): Add VXWORKS_LINK_SPEC.
4518 (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Define.
4519 (TARGET_OS_CPP_BUILTINS): Incorporate old SUBTARGET_CPP_SPEC
4520 definitions, except for _WRS_R3K_EXC_SUPPORT. Call
4521 VXWORKS_OS_CPP_BUILTINS.
4522 (SUBTARGET_CPP_SPEC): Redefine to VXWORKS_ADDITIONAL_CPP_SPEC.
4523 (MIPS_DEBUGGING_INFO): Undefine.
4524 (FUNCTION_PROFILER): Define to VXWORKS_FUNCTION_PROFILER.
4526 2007-04-03 Jakub Jelinek <jakub@redhat.com>
4529 * fold-const.c (native_encode_real): Encode real.c provided longs
4530 as a series of 32-bit native integers.
4531 (native_interpret_real): Interpret buffer as a series of 32-bit
4534 2007-04-03 Richard Guenther <rguenther@suse.de>
4536 * genpreds.c (write_insn_constraint_len): Write function
4537 optimized for CONSTRAINT_LEN implementation.
4538 (write_tm_preds_h): Output insn_constraint_len inline and
4539 use it for CONSTRAINT_LEN.
4540 (write_insn_preds_c): Don't output insn_constraint_len.
4541 * doc/md.texi (define_register_constraint): Document multi-letter
4542 constraints shall have the same length if they start with the same
4545 2007-04-03 Uros Bizjak <ubizjak@gmail.com>
4548 * config/i386/i386.md (isinf<mode>2): Expand only when
4549 TARGET_C99_FUNCTIONS is set.
4551 2007-04-03 Uros Bizjak <ubizjak@gmail.com>
4553 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.
4554 (x86_64-*-linux*): Ditto.
4555 * config/i386/i386.opt (mpc): New option.
4556 * config/i386/i386.c (overrride_options): Handle
4557 ix87_precision_string.
4558 * config/i386/crtprec.c: New file.
4559 * config/i386/t-crtpc: Ditto.
4560 * config/i386/linux.h (ENDFILE_SPEC): Add handling of -mpc32, -mpc64
4562 * config/i386/linux64.h (ENDFILE_SPEC): Ditto.
4563 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
4564 crtprec32.o, crtprec64.o and crtprec80.o.
4566 * doc/invoke.texi (Machine Dependent Options): Add -mpc32, -mpc64
4568 (i386 and x86-64 Options): Document -mpc32, -mpc64 and -mpc80 options.
4570 2007-04-02 Eric Christopher <echristo@apple.com>
4572 * doc/invoke.texi (i386 and x86-64 Options): Document -m64
4573 limitations on darwin.
4575 2007-04-02 Anatoly Sokolov <aesok@post.ru>
4578 * config/avr/avr.c (avr_rtx_costs): Add missing 'break' statements.
4580 2007-04-02 Dave Korn <dave.korn@artimi.com>
4582 * doc/tm.texi (FUNCTION_MODE): Update and extend documentation.
4584 2007-04-02 Dave Korn <dave.korn@artimi.com>
4586 * libgcc2.h (exception_descriptor): Don't forward-declare.
4587 (__get_eh_table_language, __get_eh_table_version): Delete
4588 prototypes of long-dead functions.
4590 2007-04-01 Daniel Berlin <dberlin@dberlin.org>
4592 * ebitmap.h: New file
4593 * ebitmap.c: New file
4594 * Makefile.in (ebitmap.o): New target.
4596 2007-04-01 Jan Hubicka <jh@suse.cz>
4598 * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
4599 before very first instruction.
4601 2007-04-01 Jan Hubicka <jh@suse.cz>
4603 * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
4604 waring on 64bit hosts.
4605 * bitmap.h: Fix typo in bitmap_head_def.
4607 2007-04-01 Steven Bosscher <steven@gcc.gnu.org>
4609 PR rtl-optimization/31391
4610 * cfgcleanup.c (try_optimize_cfg): If a removed label is turned
4611 into a DELETED_LABEL note, and the label is in an empty basic
4612 block, update BB_END as well as BB_HEAD.
4614 2007-04-01 Richard Henderson <rth@redhat.com>
4616 PR tree-optimization/31169
4617 * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop
4618 to varying if the range is outside [0, prec-1].
4620 2007-04-01 Richard Sandiford <richard@codesourcery.com>
4623 * config/mips/mips.md (load_const_gp): New insn.
4624 * config/mips/mips.c (mips_split_symbol): Avoid using or creating
4625 the MIPS16 GP pseudo register if no_new_pseudos.
4626 (mips16_gp_pseudo_reg): Use gen_load_const_gp.
4628 2007-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
4631 * config/rs6000/rs6000.md (call): Convert to LR hard reg for
4633 (call_value): Likewise.
4635 2007-03-31 Wolfgang Bangerth <bangerth@dealii.org>
4636 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4639 * doc/invoke.texi: (optimization options): Reword description
4640 of -ffast-math. Document its primary purpose.
4642 2007-03-31 Richard Guenther <rguenther@suse.de>
4644 * omp-low.c (splay-tree.h): Include.
4645 (lookup_decl): Replace splay-tree usage by pointer-map.
4646 (maybe_lookup_decl): Likewise.
4647 (new_omp_context): Likewise.
4648 (delete_omp_context): Likewise.
4649 * gimplify.c (splay-tree.h): Include.
4650 * tree-inline.c (insert_decl_map): Replace splay-tree usage by
4652 (remap_ssa_name): Likewise.
4653 (remap_decl): Likewise.
4654 (remap_type_1): Likewise.
4655 (remap_type): Likewise.
4656 (copy_body_r): Likewise.
4657 (expand_call_inline): Likewise.
4658 (clone_body): Likewise.
4659 (copy_tree_r): Likewise.
4660 (remap_save_expr): Likewise.
4661 (unsave_r): Likewise.
4662 (unsave_expr_now): Likewise.
4663 (tree_function_versioning): Likewise.
4664 (build_duplicate_type): Likewise.
4665 * tree-inline.h (pointer-set.h): Include instead of splay-tree.h.
4666 (struct copy_body_data): Replace splay-tree by pointer-map.
4667 * Makefile.in (TREE_INLINE_H): Depend on pointer-map.h,
4668 not $(SPLAY_TREE_H).
4669 (gimplify.o): Depend on $(SPLAY_TREE_H).
4670 (omp-low.p): Likewise.
4672 2007-03-31 Anatoly Sokolov <aesok@post.ru>
4674 * config/avr/predicates.md (even_register_operand,
4675 odd_register_operand): New predicates.
4676 * config/avr/avr.md (movw peephole2): New.
4677 (movw_r peephole2): New.
4679 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
4681 * tree.h (get_signed_or_unsigned_type): New.
4682 * fold-const.c (operand_equal_for_comparison_p): Use
4683 get_signed_or_unsigned_type instead of
4684 lang_hooks.types.signed_or_unsigned_type.
4685 * expr.c (store_expr): Ditto.
4686 * langhooks.c (get_signed_or_unsigned_type): New.
4687 (lhd_signed_or_unsigned_type): New.
4688 * langhooks.h (lhd_signed_or_unsigned_type): New.
4689 * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
4691 2007-03-30 Richard Henderson <rth@redhat.com>
4693 * tree-ssa-loop-ivopts.c: Include target.h.
4694 (produce_memory_decl_rtl): Pass the rtx through encode_section_info.
4695 (get_address_cost): Force SYMBOL_FLAG_LOCAL set.
4696 (force_expr_to_var_cost): Use produce_memory_decl_rtl.
4697 * Makefile.in (tree-ssa-loop-ivopts.o): Depend on TARGET_H.
4699 2007-03-30 Richard Henderson <rth@redhat.com>
4700 Kai Tietz <kai.tietz@onevision.com>
4702 * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by
4704 (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit.
4705 (TARGET_64BIT_MS_ABI): New.
4706 (DBX_REGISTER_NUMBER): Handle 64-bit.
4707 (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit.
4708 (LONG_TYPE_SIZE): Force to 32.
4709 (REG_PARM_STACK_SPACE): New.
4710 (OUTGOING_REG_PARM_STACK_SPACE): New.
4711 (REGPARM_MAX, SSE_REGPARM_MAX): New.
4712 (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
4713 (STACK_BOUNDARY): Use 128 for 64-bit.
4714 * config/i386/cygwin.asm: Use push/ret to preserve call stack.
4715 Add 64-bit implementation.
4716 * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor
4718 * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New.
4719 (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI.
4720 Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm
4721 for 64-bit; use TARGET_SUBTARGET64_DEFAULT.
4722 (ix86_handle_cconv_attribute): Don't warn when ignoring if
4723 TARGET_64BIT_MS_ABI.
4724 (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI.
4725 (ix86_pass_by_reference): Likewise.
4726 (ix86_function_value_regno_p): Likewise.
4727 (ix86_build_builtin_va_list): Likewise.
4728 (ix86_va_start, ix86_gimplify_va_arg): Likewise.
4729 (function_arg_advance_ms_64): New.
4730 (function_arg_advance): Call it.
4731 (function_arg_ms_64): New.
4732 (function_arg): Call it.
4733 (function_value_ms_64): New.
4734 (ix86_function_value_1): Call it.
4735 (return_in_memory_ms_64): New.
4736 (ix86_return_in_memory): Call it.
4737 (setup_incoming_varargs_ms_64): New.
4738 (ix86_setup_incoming_varargs): Call it.
4739 (ix86_expand_prologue): Handle 64-bit stack probing.
4740 (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI.
4741 (output_pic_addr_const): Likewise.
4742 (x86_this_parameter): Likewise.
4743 (x86_output_mi_thunk): Likewise.
4744 (x86_function_profiler): Likewise.
4745 (TARGET_STRICT_ARGUMENT_NAMING): New.
4746 * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New.
4747 (TARGET_64BIT_MS_ABI): New.
4748 (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI.
4749 * config/i386/i386.md (allocate_stack_worker): Remove.
4750 (allocate_stack_worker_32): Rename from allocate_stack_worker_1;
4751 describe the clobber of eax without a match_scratch.
4752 (allocate_stack_worker_postreload): Remove.
4753 (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64;
4754 describe the clobbers of rax, r10, r11 properly; use __chkstk symbol.
4755 (allocate_stack_worker_rex64_postreload): Remove.
4756 (allocate_stack): Handle 64-bit.
4757 * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove.
4758 * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit.
4759 (EXTRA_OS_CPP_BUILTINS): Handle 64-bit.
4760 (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT.
4761 (STANDARD_STARTFILE_PREFIX_1): Likewise.
4762 * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New.
4763 * config.build (x86_64-*-mingw*): New host.
4764 * config.host (x86_64-*-mingw*): New host.
4765 * config.gcc (x86_64-*-mingw*): New target.
4766 * gthr-win32.h (__gthread_key_create): Mark dtor unused.
4768 2007-03-30 Richard Henderson <rth@redhat.com>
4769 Kai Tietz <kai.tietz@onevision.com>
4771 * c-pragma.c (struct def_pragma_macro_value): New.
4772 (struct def_pragma_macro): New.
4773 (pushed_macro_table): New.
4774 (dpm_hash, dpm_eq): New.
4775 (handle_pragma_push_macro, handle_pragma_pop_macro): New.
4776 (init_pragma): Install them.
4777 * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
4779 2007-03-30 Anatoly Sokolov <aesok@post.ru>
4781 * config/avr/avr.c (avr_override_options): Clear
4782 'flag_delete_null_pointer_checks'.
4784 2007-03-30 Paolo Carlini <pcarlini@suse.de>
4787 * c-common.h (enum rid): Add RID_HAS_NOTHROW_ASSIGN,
4788 RID_HAS_NOTHROW_CONSTRUCTOR, RID_HAS_NOTHROW_COPY,
4789 RID_HAS_TRIVIAL_ASSIGN, RID_HAS_TRIVIAL_CONSTRUCTOR,
4790 RID_HAS_TRIVIAL_COPY, RID_HAS_TRIVIAL_DESTRUCTOR,
4791 RID_HAS_VIRTUAL_DESTRUCTOR, RID_IS_ABSTRACT, RID_IS_BASE_OF,
4792 RID_IS_CONVERTIBLE_TO, RID_IS_CLASS, RID_IS_EMPTY, RID_IS_ENUM,
4793 RID_IS_POD, RID_IS_POLYMORPHIC, RID_IS_UNION, as
4795 * doc/extend.texi (Extensions to the C++ Language): Add Type Traits.
4797 2007-03-30 Steven Bosscher <steven@gcc.gnu.org>
4799 * regmove.c: Move all of pass_stack_adjustments from here...
4800 * combine-stack-adj.c: ...to this new file.
4801 * Makefile.in: Add rules for combine-stack-adj.o.
4803 2007-03-30 Zdenek Dvorak <dvorakz@suse.cz>
4805 PR tree-optimization/31383
4806 * tree-data-ref.c (affine_function_equal_p): Do not require the vectors
4807 to have the same length.
4809 2007-03-30 Jan Hubicka <jh@suse.cz>
4812 * dwarf2out.c (reference_to_unused): Ask cgraph for functions
4813 availablility; add more sanity checking; ask varpool only about
4816 2007-03-29 Richard Henderson <rth@redhat.com>
4818 * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
4819 to decide, but __SIZEOF_LONG_LONG__.
4821 2007-03-29 Richard Henderson <rth@redhat.com>
4823 * emutls.c (struct __emutls_array): New.
4824 (emutls_destroy): Use it instead of casting element 0 from void*.
4825 (__emutls_get_address): Likewise.
4827 2007-03-29 Richard Henderson <rth@redhat.com>
4829 * varasm.c (initializer_constant_valid_p): Don't deny
4830 DECL_DLLIMPORT_P on functions.
4832 * config/i386/cygming.h: Remove function declarations.
4833 (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
4834 (ASM_OUTPUT_LABELREF): Remove.
4835 (COMMON_ASM_OP): Remove.
4836 (ASM_OUTPUT_COMMON): Remove.
4837 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
4838 (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
4839 (ASM_DECLARE_FUNCTION_NAME): Likewise.
4840 * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
4841 Rename from TARGET_ENCODE_SECTION_INFO.
4842 * config/i386/netware.h: Likewise.
4843 * config/i386/i386-protos.h: Update.
4844 * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
4845 of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
4846 (legitimate_constant_p): Reject dllimports.
4847 (dllimport_map, get_dllimport_decl): New.
4848 (legitimize_dllimport_symbol): New.
4849 (legitimize_address, ix86_expand_move): Use it.
4850 (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
4851 * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
4852 (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
4853 (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
4854 * config/i386/predicates.md (constant_call_address_operand): Only
4855 accept symbols; reject dllimport_p symbols.
4856 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
4857 i386_pe_maybe_record_exported_symbol.
4858 * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
4859 (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
4860 (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
4861 trust the setting of DECL_DLLIMPORT_P.
4862 (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
4863 (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
4864 (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
4865 tidy the argument scanning loop.
4866 (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
4867 SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
4868 (i386_pe_strip_name_encoding): Remove.
4869 (i386_pe_binds_local_p): New.
4870 (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
4871 (i386_pe_output_labelref): Remove.
4872 (i386_pe_asm_output_aligned_decl_common): New.
4873 (i386_pe_maybe_record_exported_symbol): Rename from
4874 i386_pe_record_exported_symbol; check for dllexported symbols.
4876 2007-03-29 Zack Weinberg <zack@mrtock.ucsd.edu>
4878 * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
4879 add comment explaining why vsnprintf cannot be used.
4881 2007-03-29 Douglas Gregor <doug.gregor@gmail.com>
4883 PR tree-optimization/30666
4884 * tree.c (build_complex_type): When creating type names for DWARF2
4885 debug info, create TYPE_DECLs for TYPE_NAME instead of
4887 (build_common_tree_nodes_2): Use build_complex_type when building
4888 predefined complex types, to preserve canonical types.
4890 2007-03-29 Steven Bosscher <steven@gcc.gnu.org>
4892 * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
4893 (noce_get_alt_condition): Look at it to determine whether to
4894 reverse the condition or not.
4895 (noce_get_condition): Substitute the truth for lies.
4896 (noce_find_if_block): Set the then_else_reversed field.
4898 2007-03-29 Lars Poeschel <larsi@wh2.tu-dresden.de>
4900 * config/fr30/fr30.md (movdi): Do not accept immediates as the
4901 destination of this insn.
4902 * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
4903 than calling gen_rtx_SET directly. Use r0 to hold the value of
4904 'address + 4' rather than a stack based temporary which can be
4907 2007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
4909 * config/s390/s390.c (s390_secondary_input_reload_class,
4910 s390_secondary_output_reload_class): Functions removed.
4911 (s390_secondary_reload): New function.
4912 (TARGET_SECONDARY_RELOAD): Target macro defined.
4913 * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
4914 SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
4915 * config/s390/s390.md ("reload_outti", "reload_outdi",
4916 "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
4917 "reload_out<mode>"): Expanders removed.
4918 ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
4919 "reload<mode>_nonoffmem_out"): Expanders added.
4921 2007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
4923 * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair action if
4924 SRC->DEST replacement failed anyway.
4926 2007-03-28 Mike Stump <mrs@apple.com>
4928 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
4929 * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
4930 * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
4932 2007-03-28 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4934 * config.gcc: Accept barcelona as a variant of amdfam10.
4935 * config/i386/i386.c (override_options): Likewise.
4936 * doc/invoke.texi: Likewise.
4938 2007-03-28 Eric Botcazou <ebotcazou@adacore.com>
4940 * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
4941 offsets for BIT_FIELD_REF and COMPONENT_REF.
4943 2007-03-28 Richard Guenther <rguenther@suse.de>
4945 * tree.c (is_global_var): Move ...
4946 * tree-flow-inline.h (is_global_var): ... here.
4947 * tree.h (is_global_var): Remove declaration.
4949 2007-03-28 Uros Bizjak <ubizjak@gmail.com>
4951 * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
4953 (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
4954 * config/i386/i386.c (ix86_tune_features): Initialize new
4956 * config/i386/predicates.md (promotable_binary_operator): Use
4957 TARGET_TUNE_PROMOTE_HIMODE_IMUL.
4959 2007-03-28 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
4962 * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
4964 2007-03-28 Lars Poeschel <larsi@wh2.tu-dresden.de>
4966 * config/fr30/fr30.md (movsi_internal): Change destination
4967 constraint from m to V and add m to the end.
4969 2007-03-28 Christian Bruel <christian.bruel@st.com>
4971 * config/sh/sh.md (movsi_i): Fix type attribute.
4973 2007-03-28 Christian Bruel <christian.bruel@st.com>
4975 * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
4976 (movsf_ie): Likewise.
4978 2007-03-28 Christian Bruel <christian.bruel@st.com>
4980 * config.gcc: Add sh4-300 to multilib.
4981 * config/sh/t-mlib-sh4-300: New file.
4983 2007-03-28 Andreas Krebbel <krebbel1@de.ibm.com>
4985 * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
4986 ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
4988 ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use
4989 fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
4990 ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
4991 "fixuns_trunctddi2"): Whitespace fix.
4993 2007-03-28 Kaz Kojima <kkojima@gcc.gnu.org>
4995 * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
4996 the definition of struct sh_args.
4997 (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
4998 CALL_COOKIE_INT_REG_GET): Likewise.
5000 2007-03-28 Steven Bosscher <steven@gcc.gnu.org>
5002 * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
5003 transformations are applied successfully.
5005 2007-03-27 Douglas Gregor <doug.gregor@gmail.com>
5007 * tree.c (tree_contains_struct): Permit 512 tree codes.
5008 * tree.h (tree_contains_struct): Ditto.
5009 (MAX_TREE_CODES): Ditto.
5010 (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
5011 SPARE member to store remaining padding bits.
5013 2007-03-27 Anatoly Sokolov <aesok@post.ru>
5015 * config/avr/avr.c (avr_mcu_types): Move at90usb82 device to 'avr4'
5018 2007-03-27 Janis Johnson <janis187@us.ibm.com>
5020 * configure.ac: Fix assembler test for powerpc*-linux decimal float.
5021 * configure: Regenerate.
5023 * configure: Regenerate using the correct version of autoconf.
5025 2007-03-27 Anatoly Sokolov <aesok@post.ru>
5027 * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
5029 * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
5030 regs to "__SP_L__" and "__SP_H__".
5032 2007-03-27 Richard Guenther <rguenther@suse.de>
5034 * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
5035 computations with it with a HOST_WIDE_INT variable.
5037 2007-03-26 Mike Stump <mrs@apple.com>
5039 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Add
5040 objective-c-header, objective-c++-header and objc++-cpp-output
5042 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
5044 2007-03-26 Richard Henderson <rth@redhat.com>
5047 * config/i386/i386.c (IX86_BUILTIN_PSLLDQ128, IX86_BUILTIN_PSLLW128,
5048 IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128, IX86_BUILTIN_PSRAW128,
5049 IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128, IX86_BUILTIN_PSRLD128,
5050 IX86_BUILTIN_PSRLQ128): New.
5051 (ix86_init_mmx_sse_builtins): Add them.
5052 (ix86_expand_builtin): Expand them.
5053 * config/i386/sse.md (ashr<mode>3, lshr<mode>3, ashl<mode>3): Make
5054 operand 2 be TImode.
5055 * config/i386/emmintrin.h (_mm_slli_epi64, _mm_srai_epi16,
5056 _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
5057 _mm_srli_epi64): Mark __B const.
5058 (_mm_srli_si128, _mm_srli_si128): Fix disabled inline versions.
5059 (_mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64, _mm_sra_epi16,
5060 _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32, _mm_srl_epi64): Use
5061 new two-vector shift builtins.
5063 2007-03-26 Ian Lance Taylor <iant@google.com>
5065 PR tree-optimization/31345
5066 * tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
5067 [+INF, +INF(OVF)] into VARYING.
5069 2007-03-26 Zack Weinberg <zackw@panix.com>
5071 * gengtype-parse.c: New file.
5072 * gengtype-yacc.y: Delete.
5073 * gengtype-lex.l: Don't include gengtype-yacc.h.
5074 Define YY_DECL and yyterminate appropriately for recursive
5075 descent parser. yylval is now a string out-parameter to yylex.
5076 (HWS, EOID): New shorthand.
5077 (IWORD): Add a couple more types.
5078 (yylex): Add a setup stanza. Remove the complex rules for
5079 detecting GTY'ed types and typedefs; replace with simple
5080 keyword detectors. Adjust everything for the changed
5081 definition of yylval. Ignore all pp-directives, not just #define.
5083 (parse_file): Rename yybegin; do not call yyparse.
5085 * gengtype.c (xasprintf): Export again.
5086 (this_file): New. Use everywhere __FILE__ was being used.
5087 (get_lang_bitmap): Special case types defined in gengtype.c.
5088 (do_typedef, new_structure): Suppress definition of certain types.
5089 (new_structure): Improve diagnostics of duplicate definitions.
5090 Make sure location_s is associated with input.h.
5091 (nreverse_pairs, define_location_structures): New functions.
5092 (main): Improve tagging of kludge types. Remove old kludges
5093 for input.h types; use define_location_structures.
5094 * gengtype.h: Update prototypes. Define token codes here.
5095 * Makefile.in: Remove all references to gengtype-yacc.
5096 Add rules for gengtype-parse.o. Adjust rules for gengtype-lex.o
5098 * bitmap.h (struct bitmap_head_def): Coalesce definitions,
5099 add GTY((skip)) to the field that's only conditionally there.
5100 * doc/install.texi: Document that Bison is no longer required
5101 unless building treelang.
5103 * gengtype.c: Don't include gtyp-gen.h.
5104 (srcdir): Declare here.
5105 (base_files, lang_dir_names): Allocate dynamically.
5106 (gt_files, num_gt_files, num_lang_dirs): New globals.
5107 (measure_input_list, read_input_line, read_input_list)
5108 (set_lang_bitmap): New functions.
5109 (get_base_file_bitmap): Rename get_lang_bitmap and drastically
5110 simplify, relying on read_input_list to set up the bitmaps.
5111 (main): Arguments are no longer unused. Check for correct number
5112 of command line arguments, set srcdir and srcdir_len, then call
5113 read_input_list, before doing anything else. No need to worry
5114 about duplicates in main loop.
5115 * configure.ac: Simplify the calculation of all_gtfiles.
5116 Put language tags in there. Don't set or substitute
5117 all_gtfiles_files_langs or all_gtfiles_files_frags.
5118 * Makefile.in: Revamp the way gengtype is invoked, now that it
5119 takes a file on its command line with a much simpler format.
5120 Remove or replace with gtyp-input.list all references to gtyp-gen.h.
5121 (GTFILES): Remove duplicates and C source files.
5122 * c-config-lang.in, cp/config-lang.in, objc/config-lang.in
5123 * objcp/config-lang.in: Add c-pragma.h to gtfiles.
5124 * configure: Regenerate.
5126 * gengtype.h: Remove all type definitions to gengtype.c; leave
5127 only definitions of options_p, type_p, and pair_p as opaque
5128 pointers. Update prototypes.
5129 * gengtype.c: Many type definitions moved here from gengtype.h.
5130 Consolidate type definitions at the top of the file.
5131 (xvasprintf): Delete.
5132 (xasprintf): Make static.
5133 (create_nested_pointer_option): Add 'next' parameter.
5134 (create_field_all, create_field_at): New functions.
5135 (create_field): Now a thin wrapper around create_field_all.
5136 (create_optional_field): Rename create_optional_field_ and add
5137 line argument. Original name is now a macro which supplies
5139 (oprintf): Use vsnprintf directly.
5140 (close_output_files): Use fatal rather than perror/exit.
5141 (note_def_vec, note_def_vec_alloc): Use create_field_at.
5142 (main): Set progname. Don't use exit.
5143 * gengtype-yacc.y (struct_fields): Use create_field_at.
5144 (option, optionseqopt): Delete.
5145 (optionseq): Consolidate productions from option here so we
5146 can use the first argument to create_option.
5148 * gengtype-lex.l: Distinguish unions from structures in the
5149 token type. Don't call find_structure; return the tag as a string.
5150 * gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and ENT_UNION.
5151 Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is string.
5152 Reorganize typedef_struct production accordingly.
5153 Use create_nested_ptr_option.
5154 * gengtype.c (create_nested_ptr_option): New function.
5155 * gengtype.h: Declare it.
5157 * gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
5158 (string_type): Don't declare.
5159 (do_scalar_typedef): Declare.
5160 (create_scalar_type): Update prototype.
5161 * gengtype.c (string_type): Make static.
5162 (scalar_nonchar, scalar_char): New.
5163 (do_scalar_typedef): Export. Always use scalar_nonchar for the type.
5164 (resolve_typedef): Use scalar_nonchar for error recovery.
5165 (create_scalar_type): Remove name_len field. Return scalar_char
5166 or scalar_nonchar as appropriate.
5167 (adjust_field_type): Look at scalar_is_char boolean to decide whether
5169 (throughout): Use scalar_nonchar instead of calling create_scalar_type,
5171 (main): Initialize scalar_char and scalar_nonchar before calling
5173 * gengtype-lex.l: Adjust for removal of second argument to
5174 create_scalar_type. Use yylval.s instead of yylval.t when
5176 * gengtype-yacc.y: Type of SCALAR is string. Call
5177 create_scalar_type from type:SCALAR rule. Adjust for removal of
5178 second argument to create_scalar_type.
5180 * vec.h: Remove all #if IN_GENGTYPE blocks.
5181 Add comment saying that changes may require adjustments to gengtype.
5182 * gengtype.c: Don't include coretypes.h or tm.h.
5183 Add comment to inclusion of errors.h.
5184 (note_def_vec, note_def_vec_alloc): New functions.
5185 * gengtype.h: Declare new functions.
5186 * gengtype-lex.l: Don't include coretypes.h.
5187 (YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
5189 (update_lineno): Remove unnecessary prototype.
5190 (DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
5191 (VEC rule): Just return VEC_TOKEN.
5192 * gengtype-yacc.y (VEC_TOKEN): New token type.
5193 (type): Add a production for VEC(a,b).
5194 * Makefile.in: Update dependencies.
5196 * gengtype-lex.l: Remove rules for parsing pointer-to-function
5197 typedefs that use the old PARAMS macro.
5199 * gengtype-lex.l: Remove all rules and states relating to yacc
5201 * gengtype-yacc.y: Similarly.
5202 * gengtype.c (note_yacc_type): Delete function.
5203 * gengtype.h: Update prototypes.
5205 2007-03-26 Joseph Myers <joseph@codesourcery.com>
5207 * tree-pretty-print.c (dump_generic_node): Report precision of
5208 unnamed integer types.
5210 2007-03-26 Steven Bosscher <steven@gcc.gnu.org>
5212 * ifcvt.c (noce_try_store_flag_constants): Don't check
5213 no_new_pseudos here.
5214 (noce_try_store_flag_constants): Don't check no_new_pseudos.
5215 (noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
5216 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
5217 noce_try_sign_mask): Likewise.
5218 (if_convert): Check no_new_pseudos here.
5220 (cond_exec_process_if_block, noce_process_if_block, find_if_block):
5222 (struct noce_if_info): Add then_bb, else_bb, join_bb members.
5223 (noce_get_condition): Handle new then_else_reversed argument.
5224 (noce_init_if_info): Remove, fold into noce_find_if_block.
5225 (noce_process_if_block): Take a struct noce_if_info as the
5226 argument. Don't set up one based on ce_if_info. Update pointer
5227 references accordingly.
5228 (cond_move_process_if_block): Likewise.
5229 (process_if_block): Removed.
5230 (find_if_block): Removed. Move functionality two new functions,
5231 noce_find_if_block and cond_exec_find_if_block.
5232 (noce_find_if_block): New function. Be aware of IF-THEN-JOIN
5233 blocks and the symmetric IF-ELSE-JOIN case.
5234 (cond_exec_find_if_block): Also new function mostly based on old
5235 find_if_block and process_if_block.
5236 (find_if_header): Replace find_if_block call with separately
5237 guarded calls to noce_find_if_block and cond_exec_find_if_block.
5238 (find_cond_trap): Update noce_get_condition call.
5239 (dead_or_predicable): Likewise.
5241 2007-03-26 Jakub Jelinek <jakub@redhat.com>
5243 * config/i386/i386.c (IX86_BUILTIN_CMPNEPD, IX86_BUILTIN_CMPNESD):
5245 (IX86_BUILTIN_PSLLW128, IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128,
5246 IX86_BUILTIN_PSRAW128, IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128,
5247 IX86_BUILTIN_PSRLD128, IX86_BUILTIN_PSRLQ128): Remove.
5248 (ix86_init_mmx_sse_builtins): Remove v8hi_ftype_v8hi_v2di and
5249 v4si_ftype_v4si_v2di. Remove __builtin_ia32_psllw128,
5250 __builtin_ia32_pslld128, __builtin_ia32_psllq128,
5251 __builtin_ia32_psrlw128, __builtin_ia32_psrld128,
5252 __builtin_ia32_psrlq128, __builtin_ia32_psraw128 and
5253 __builtin_ia32_psrad128 builtins.
5255 2007-03-26 Uros Bizjak <ubizjak@gmail.com>
5257 * reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
5258 * config/i386/constraints.md
5259 (define_constraint "I"): Use IN_RANGE macro.
5260 (define_constraint "J"): Ditto.
5261 (define_constraint "K"): Ditto.
5262 (define_constraint "M"): Ditto.
5263 (define_constraint "N"): Ditto.
5264 (define_constraint "O"): Ditto.
5265 * config/i386/predicates.md
5266 (define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
5267 (define_predicate "const_0_to_3_operand"): Ditto.
5268 (define_predicate "const_0_to_7_operand"): Ditto.
5269 (define_predicate "const_0_to_15_operand"): Ditto.
5270 (define_predicate "const_0_to_63_operand"): Ditto.
5271 (define_predicate "const_0_to_255_operand"): Ditto.
5272 (define_predicate "const_1_to_31_operand"): Ditto.
5273 (define_predicate "const_2_to_3_operand"): Ditto.
5274 (define_predicate "const_4_to_7_operand"): Ditto.
5276 2007-03-25 David Edelsohn <edelsohn@gnu.org>
5278 * config/rs6000/rs6000.c (rs6000_emit_prologue): Always clobber LR
5279 in SImode for save_world.
5280 * config/rs6000/altivec.md (save_world, restore_world): Convert to
5283 2007-03-25 Dorit Nuzman <dorit@il.ibm.com>
5285 PR tree-optimization/30784
5286 * fold-const.c (fold_ternary): Handle CONSTRUCTOR in case
5289 2007-03-25 Revital Eres <eres@il.ibm.com>
5291 * tree-if-conv.c (if_convertible_gimple_modify_stmt_p):
5292 Fold movement_possibility function into it.
5294 2007-03-25 David Edelsohn <edelsohn@gnu.org>
5296 * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
5297 (load_macho_picbase_{si,di}): Convert to LR hard reg.
5298 (call_indirect_nonlocal_darwin64): Same.
5299 (call_nonlocal_darwin64): Same.
5300 (call_value_indirect_nonlocal_darwin64): Same.
5301 (call_value_nonlocal_darwin64): Same.
5302 (sibcall_nonlocal_darwin64): Same.
5303 (sibcall_value_nonlocal_darwin64): Same.
5304 (sibcall_symbolic_64): Same.
5305 (sibcall_value_symbolic_64): Same.
5306 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
5308 (rs6000_emit_load_toc_table): Same.
5309 * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
5310 * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
5316 (load_toc_v4_pic_si): Same
5317 (load_toc_v4_PIC_1): Same.
5318 (load_toc_v4_PIC_1b): Same.
5319 (call_indirect_aix{32,64}): Same.
5320 (call_value_indirect_aix{32,64}): Same.
5323 (call_local{32,64}): Same.
5324 (call_value_local{32,64}): Same.
5325 (call_indirect_nonlocal_aix{32,64}): Same.
5326 (call_nonlocal_aix{32,64}): Same.
5327 (call_value_indirect_nonlocal_aix{32,64}): Same.
5328 (call_value_nonlocal_aix{32,64}): Same.
5329 (call_indirect_nonlocal_sysv<mode>): Same.
5330 (call_nonlocal_sysv<mode>): Same.
5331 (call_value_indirect_nonlocal_sysv<mode>): Same.
5332 (call_value_nonlocal_sysv<mode>): Same.
5334 (sibcall_local{32,64}): Same.
5335 (sibcall_value_local{32,64}): Same.
5336 (sibcall_nonlocal_aix{32,64}): Same.
5337 (sibcall_value_nonlocal_aix{32,64}): Same.
5338 (sibcall_nonlocal_sysv<mode>): Same.
5339 (sibcall_value): Same.
5340 (sibcall_value_nonlocal_sysv<mode>): Same.
5342 2007-03-24 Paul Brook <paul@codesourcery.com>
5344 * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
5345 * config/arm/linux-eabi.h: Remove legacy syscall hack.
5347 2007-03-24 Richard Henderson <rth@redhat.com>
5349 * config/ia64/constraints.md: New file.
5350 * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
5351 satisfies_constraint_?.
5352 * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
5353 ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
5354 ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
5355 ia64_output_mi_thunk): Likewise.
5356 (ia64_const_ok_for_letter_p): Remove.
5357 (ia64_const_double_ok_for_letter_p): Remove.
5358 (ia64_extra_constraint): Remove.
5359 * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
5360 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
5361 CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
5362 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
5363 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
5364 EXTRA_MEMORY_CONSTRAINT): Remove.
5365 * config/ia64/ia64.md: Include constriants.md. Replace
5366 CONST_OK_FOR_? with satisfies_constraint_?.
5368 2007-03-23 Michael Meissner <michael.meissner@amd.com>
5369 H.J. Lu <hongjiu.lu@intel.com>
5371 * config/dfp-bit.h (DPD_BID_NAME): New macro to give either the
5373 (name macros): Use DPD_BID_NAME to convert names properly.
5375 * optabs.c (DECIMAL_PREFIX): Prefix string to use for the current
5376 decimal floating point format.
5377 (init_floating_libfuncs): Change decimal functions so that they
5378 have a "bid_" prefix if the decimal system uses the BID format,
5379 and "dpd_" prefix if the decimal system uses the DPD format.
5380 (init_interclass_conv_libfuncs): Ditto.
5381 (init_intraclass_conv_libfuncs): Ditto.
5383 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
5384 using the BID format.
5386 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
5387 whether we are using the BID decimal format.
5388 * configure: Regenerate.
5390 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
5391 the compiler has decimal floating point enabled. Define
5392 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
5395 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
5396 using the BID format.
5398 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
5399 whether we are using the BID decimal format.
5400 * configure: Regenerate.
5402 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
5403 the compiler has decimal floating point enabled. Define
5404 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
5407 * doc/install.texi (--enable-decimal-float): Document BID and DPD
5408 options, and that it is enabled for i386/x86_64 systems.
5410 * Makefile.in (enable_decimal_float): New.
5412 (DECNUMINC): Add -I$(DECNUMFMT).
5413 (DECNUM_H): Mov decimal32.h, decimal64.h and decimal128.h
5414 to $(DECNUMFMT) from $(DECNUM).
5416 * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
5417 Substitute enable_decimal_float.
5418 * configure: Regenerated.
5421 * config/dfp-bit.c (__dec_byte_swap): Use uint32_t instead of
5424 * configure.ac: Enable decimal float for x86_64-*-linux*.
5425 * configure: Regenerated.
5428 * dfp.c (decimal_real_arithmetic): Use decimal128FlipSign and
5429 decimal128ClearSign to flip and clear the sign bit in decimal128.
5430 (decimal_real_maxval): Set decimal128SetSign to set the sign
5433 2007-03-23 Ian Lance Taylor <iant@google.com>
5435 * fold-const.c (fold_binary): Correct warning for X - c >= X.
5437 2007-03-23 Ian Lance Taylor <iant@google.com>
5439 * tree-dump.c (dump_files): Correct comment.
5441 2007-03-23 Ian Lance Taylor <iant@google.com>
5443 * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
5445 2007-03-23 Steven Bosscher <steven@gcc.gnu.org>
5447 * tracer.c (tracer): Don't take FLAGS argument. Assert we are
5448 in cfglayout mode. Don't go into and out of cfglayout mode.
5449 Link the blocks in the order of the constructed traces.
5450 (rest_of_handle_tracer): Adjust call to tracer.
5451 * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
5452 Don't go into cfglayout mode.
5453 (rtl_loop_done): Don't go out of cfglayout mode.
5454 * cfglayout.c (relink_block_chain): New function, split out from...
5455 (fixup_reorder_chain): ...here. Remove redundant checking.
5456 (cfg_layout_finalize): Don't clear the header, footer, and aux
5457 fields here, move the code to do so to relink_block_chain. Likewise
5458 for free_original_copy_tables.
5459 * rtl.h (tracer): Update prototype.
5460 * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
5461 Assert we are in cfglayout mode. Don't go into and out of cfglayout
5462 mode. Use relink_block_chain to serialize the CFG according to the
5463 new basic block order. Move targetm.cannot_modify_jumps_p check from
5465 (gate_handle_reorder_blocks): ...to here.
5466 (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
5468 (gate_duplicate_computed_gotos): ...to here.
5469 (rest_of_handle_reorder_blocks): Don't see if anything has changed,
5470 something always changes when going into and out of cfglayout mode.
5471 Perform an expensive cfg cleanup while going into cfglayout mode.
5472 Always update liveness information on HAVE_conditional_execution
5473 targets. Reserialize the basic blocks and go out of cfglayout mode.
5474 * reg-stack.c: Include cfglayout.h.
5475 (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
5476 the call to reorder_basic_blocks.
5477 * basic-block.h (reorder_basic_blocks): Update prototype.
5478 (relink_block_chain): New prototype.
5479 * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
5481 2007-03-23 Joseph Myers <joseph@codesourcery.com>
5483 * config/mips/mips.md (type, hazard, *movdi_32bit,
5484 *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
5485 *movhi_internal, *movqi_internal, *movsf_hardfloat,
5486 *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
5487 movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
5488 mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
5490 (movcc): Change first xfer to multi.
5491 * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
5492 config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
5493 config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
5494 config/mips/generic.md: Change reservations using "xfer" to use
5496 * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
5497 using match_operand.
5498 (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
5499 * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
5501 (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
5503 2007-03-22 Richard Henderson <rth@redhat.com>
5505 * config/i386/i386.c: Remove unnecessary function declarations.
5506 Move targetm definition, and all related macros, to the end of
5507 the file. Resort some functions to put definitions before uses.
5508 (ix86_attribute_table): Make static. Move to end of file.
5509 (ix86_gimplify_va_arg): Make static.
5511 2007-03-22 Richard Henderson <rth@redhat.com>
5513 * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
5514 don't increase local_regparm with force_align_arg_pointer check.
5515 (ix86_function_sseregparm): Assert 32-bit.
5516 (type_has_variadic_args_p): New.
5517 (ix86_return_pops_args): Early exit for 64-bit. Reindent; use
5518 type_has_variadic_args_p.
5519 (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
5520 (init_cumulative_args): Remove TARGET_DEBUG_ARG. Remove zero_cum;
5521 use memset instead. Do maybe_vaarg check first; skip attribute
5522 tests if true; skip attribute tests for 64-bit.
5523 (construct_container): Remove TARGET_DEBUG_ARG.
5524 (function_arg_advance_32, function_arg_advance_64): Split out ...
5525 (function_arg_advance): ... from here.
5526 (function_arg_32, function_arg_64): Split out ...
5527 (function_arg): ... from here.
5528 (ix86_pass_by_reference): Tidy.
5529 (ix86_function_value_regno_p): Rearrange w/ switch on regno.
5530 (function_value_32): New, from parts of ix86_function_value
5531 and ix86_value_regno.
5532 (function_value_64): New, from parts of ix86_function_value
5533 and ix86_libcall_value.
5534 (ix86_function_value_1): New.
5535 (ix86_function_value, ix86_libcall_value): Use it.
5536 (return_in_memory_32, return_in_memory_64): Split out ...
5537 (ix86_return_in_memory): ... from here.
5538 (ix86_struct_value_rtx): Skip for 64-bit.
5539 (ix86_libcall_value, ix86_value_regno): Remove.
5540 (setup_incoming_varargs_64): Split out ...
5541 (ix86_setup_incoming_varargs): ... from here.
5542 (ix86_va_start): Remove TARGET_DEBUG_ARG.
5543 (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
5544 * config/i386/i386-protos.h (ix86_function_value): Remove.
5545 * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
5547 2007-03-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5550 * c-lex.c (interpret_float): On overflow, emit pedantic warning if
5551 infinities not supported, otherwise emit warning if -Woverflow. On
5552 underflow, emit warning if -Woverflow.
5553 * real.c (real_from_string): Return -1 if underflow, +1 if overflow
5555 * real.h (real_from_string): Update declaration
5557 2007-03-22 Kai Tietz <kai.tietz@onevision.com>
5558 Richard Henderson <rth@redhat.com>
5560 * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
5561 * calls.c (compute_argument_block_size, expand_call,
5562 emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
5563 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
5564 * function.c (STACK_DYNAMIC_OFFSET): Likewise.
5565 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
5566 * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
5567 config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
5568 config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
5569 config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
5572 2007-03-22 Joseph Myers <joseph@codesourcery.com>
5574 * c-incpath.c (add_sysroot_to_chain): New.
5575 (merge_include_chains): Add sysroot argument. Call
5576 add_sysroot_to_chain if sysrooted.
5577 (register_include_chains): Update call to merge_include_chains.
5578 * doc/cppopts.texi: Document use of '=' in include directory
5581 2007-03-22 Uros Bizjak <ubizjak@gmail.com>
5583 * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
5584 Macroize expander using SSEMODEF mode macro. Use SSE_FLOAT_MODE_P.
5585 (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
5586 insn pattern using X87MODEF12 mode macro.
5588 2007-03-21 Seongbae Park <seongbae.park@gmail.com>
5590 * regmove.c (regmove_optimize): Use reg_mentioned_p
5591 instead of reg_overlap_mentioned_p for DST.
5593 2007-03-21 Mike Stump <mrs@apple.com>
5595 * c.opt: Fixup for Objective-C/C++.
5597 2007-03-21 Steve Ellcey <sje@cup.hp.com>
5599 * explow.c (convert_memory_address): Fold memory reference when
5600 POINTERS_EXTEND_UNSIGNED < 0
5602 2007-03-21 Richard Henderson <rth@redhat.com>
5605 * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
5606 * config/i386/mmintrin.h (__m64): Likewise.
5607 * config/i386/xmmintrin.h (__m128): Likewise.
5609 2007-03-21 Richard Sandiford <richard@codesourcery.com>
5611 * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
5612 (VXWORKS_OS_CPP_BUILTINS): Define.
5613 * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
5614 (TARGET_OS_CPP_BUILTINS): ...here. Use VXWORKS_OS_CPP_BUILTINS.
5616 2007-03-21 Richard Sandiford <richard@codesourcery.com>
5618 * rtl.h (constant_pool_reference_p): Delete.
5619 (find_constant_src): Declare.
5620 * rtlanal.c (find_constant_src): New function.
5621 * simplify-rtx.c (constant_pool_reference_p): Delete.
5622 * config/i386/i386.md: Use find_constant_src instead of
5623 constant_pool_reference_p/avoid_constant_pool_reference pairs.
5625 2007-03-21 Richard Sandiford <richard@codesourcery.com>
5627 * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
5628 * c-cppbuiltin.c (c_cpp_builtins): Define them.
5630 2007-03-20 Mark Mitchell <mark@codesourcery.com>
5632 * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
5633 * config/arm/arm.c (arm_elf_asm_cdtor): New function.
5634 (arm_elf_asm_constructor): Use it.
5635 (arm_elf_asm_destructor): New function.
5637 2007-03-20 Bernd Schmidt <bernd.schmidt@analog.com>
5639 * jump.c (mark_jump_label): Treat SEQUENCE specially.
5641 2007-03-20 Nathan Sidwell <nathan@codesourcery.com>
5643 * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
5645 2007-03-19 Andrew Haley <aph@redhat.com>
5647 PR tree-optimization/31264
5648 * tree-vrp.c (register_edge_assert_for_1): Don't look though
5651 2007-03-19 Paolo Bonzini <bonzini@gnu.org>
5653 PR rtl-optimization/30907
5654 * fwprop.c (forward_propagate_into): Never propagate inside a loop.
5655 (fwprop_init): Always call loop_optimizer_initialize.
5656 (fwprop_done): Always call loop_optimizer_finalize.
5657 (fwprop): We always have loop info now.
5658 (gate_fwprop_addr): Remove.
5659 (pass_fwprop_addr): Use gate_fwprop as gate.
5661 PR rtl-optimization/30841
5662 * df-problems.c (df_ru_local_compute, df_rd_local_compute,
5663 df_chain_alloc): Call df_reorganize_refs unconditionally.
5664 * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
5665 refs_organized to refs_organized_size.
5666 (df_ref_create_structure): Use refs_organized_size instead of
5667 bitmap_size if refs had been organized, and keep refs_organized_size
5669 * df.h (struct df_ref_info): Change refs_organized to
5670 refs_organized_size.
5671 (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
5674 2007-03-19 Mark Mitchell <mark@codesourcery.com>
5676 * except.c (output_function_exception_table): Do not reference the
5677 EH personality routine for functions that do not require an
5680 2007-03-20 Jakub Jelinek <jakub@redhat.com>
5683 * c-typeck.c (convert_for_assignment): Call comptypes for
5684 RECORD_TYPE or UNION_TYPE.
5687 * reload1.c (reload): Do invalid ASM checking after
5688 cleanup_subreg_operands.
5690 2007-03-19 Jeff Law <law@redhat.com>
5692 * tree-cfg.c (find_taken_edge): Tighten conditions for
5693 optimizing computed gotos.
5695 2007-03-19 Michael Matz <matz@suse.de>
5697 * builtins.c (expand_builtin_sync_operation,
5698 expand_builtin_compare_and_swap,
5699 expand_builtin_lock_test_and_set): Care for extending CONST_INTs
5702 * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
5703 sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
5706 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
5708 * doc/tm.texi: Add brackets around the return type of
5709 TARGET_SECONDARY_RELOAD.
5711 2007-03-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
5712 Richard Guenther <rguenther@suse.de>
5714 PR tree-optimization/31254
5715 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
5716 Use handled_component_p () where appropriate. Continue
5717 propagating into the rhs if we propagated into an INDIRECT_REF
5720 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
5722 * config/s390/s390.md (op_type attribute): RRR instruction type added.
5723 (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
5724 (xde, xdee): Mode attributes adjusted to support DFP modes.
5725 (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
5726 ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
5727 DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
5728 "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
5729 "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
5730 "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
5731 "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
5733 ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
5734 "movsf"): Insn definitions removed.
5735 ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
5736 "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
5737 "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
5739 ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
5740 "reload_in<mode>", "reload_out<mode>"): Expander added.
5741 ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
5744 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
5746 * config/s390/s390.md: Only non-functional changes. Renamed
5747 FPR mode macro to BFP all over the file.
5749 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
5751 * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
5752 (op_type attribute): RRF instruction type added.
5753 (fT0): New mode attribute.
5754 ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
5755 "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
5756 * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new instruction
5757 no secondary memory is needed when moving DFmode values between GPRs
5760 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
5762 * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
5763 inverted and documentation adjusted.
5764 ("mhard-dfp", "msoft-dfp"): New options.
5765 * config/s390/s390.c (s390_handle_arch_option): New architecture
5767 (override_options): Sanity checks for the new options added.
5768 * config.gcc: New architecture switch: z9-ec.
5769 * config/s390/s390.h (processor_flags): PF_DFP added.
5770 (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
5771 (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
5772 when the bit is NOT set so remove it from the defaults.
5774 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
5776 * genemit.c (main): Print include statement for dfp.h.
5777 * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
5780 2007-03-19 Hans-Peter Nilsson <hp@axis.com>
5782 * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
5784 2007-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
5787 * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
5790 2007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5792 * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
5793 attr_length_call, output_call, output_indirect_call): Cleanup
5794 formatting of targetm calls.
5796 2007-03-19 Hans-Peter Nilsson <hp@axis.com>
5798 * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
5800 2007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5802 * pa.md: Add fpstore_load and store_fpload instruction types. Provide
5803 reservation, bypass and anti-bypass descriptions for these instructions.
5804 Update move patterns.
5805 * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
5808 2007-03-18 Dorit Nuzman <dorit@il.ibm.com>
5810 * tree-vect-transform.c (get_initial_def_for_induction): Replace
5811 GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
5812 (get_initial_def_for_reduction): Likewise.
5814 2007-03-16 Daniel Berlin <dberlin@dberlin.org>
5816 Fix PR tree-optimization/29922
5817 * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
5818 (get_representative): Removed.
5819 (value_dies_in_block_x): Update for rvuse removal.
5820 (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
5821 (compute_antic_aux): Handle when PHI nodes appear in
5822 non-single-successors.
5823 (dump_bitmap_of_names): Removed.
5824 (compute_antic_safe): Renamed and removed rvuse calculation.
5825 Calculate only antic safe.
5826 (insert_into_preds_of_block): Remove assert.
5827 (execute_pre): Update for renamed functions.
5828 (defer_or_phi_translate_block): New function.
5830 2007-03-17 Kazu Hirata <kazu@codesourcery.com>
5832 * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
5833 config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
5835 * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
5836 Follow spelling conventions.
5838 * tree-data-ref.h: Remove the prototype for analyze_array.
5840 2007-03-17 Dorit Nuzman <dorit@il.ibm.com>
5842 PR tree-optimization/31041
5843 * tree-vect-transform.c (get_initial_def_for_induction): Call
5844 force_gimple_operand.
5846 2007-03-17 Olga Golovanevsky <olga@il.ibm.com>
5848 * ipa-type-escape.c (look_for_casts) : Revert code to use
5849 handled_component_p due to ada test a-numaux.adb.
5851 2007-03-17 Kazu Hirata <kazu@codesourcery.com>
5853 * final.c (final_scan_insn): Alter the condition of a
5854 conditional trap if we have nonstandard CC.
5856 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
5858 * configure.ac: Remove excess quoting from asm line 0 test.
5859 * configure: Rebuilt.
5861 2007-03-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5863 * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
5864 * c-common.c (convert_and_check): Move warning logic to...
5865 (warnings_for_convert_and_check): ...here. Define.
5866 * c-common.h (warnings_for_convert_and_check): Declare.
5868 2007-03-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5870 * pa.c (attr_length_call): Partially revert change of 2007-03-09.
5871 (output_call): Likewise.
5873 2007-03-16 Richard Sandiford <richard@codesourcery.com>
5875 * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
5877 2007-03-16 Richard Sandiford <richard@codesourcery.com>
5879 * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
5881 2007-03-16 Uros Bizjak <ubizjak@gmail.com>
5883 * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
5884 opteron, athlon-64 and athlon-fx processor_alias_table entries.
5886 2007-03-16 Sebastian Pop <sebastian.pop@inria.fr>
5888 PR tree-optimization/31183
5889 * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
5890 Use double_int instead of unsigned int for representing access_strides.
5891 * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
5893 2007-03-16 Richard Guenther <rguenther@suse.de>
5895 PR tree-optimization/31146
5896 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
5897 to allow recursion of forward_propagate_addr_expr.
5898 (forward_propagate_addr_into_variable_array_index): Likewise.
5899 (forward_propagate_addr_expr): Likewise.
5900 (tree_ssa_forward_propagate_single_use_vars): Likewise.
5901 (forward_propagate_addr_expr_1): Recurse on simple copies
5902 instead of propagating into them. Do so for useless conversions
5904 (forward_propagate_addr_expr): Clean up unused statements after
5907 2007-03-16 Richard Guenther <rguenther@suse.de>
5909 * builtins.c (expand_builtin_cexpi): Use the right argument
5910 for the expansion via cexp.
5912 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
5914 * configure.ac: Don't require ELF binutils to tolerate # 0 "".
5915 * configure: Rebuilt.
5917 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
5920 * dwarf2out.c (force_type_die): Adjust comment.
5921 (dwarf2out_imported_module_or_decl): Handle base AT_import types.
5923 2007-03-15 DJ Delorie <dj@redhat.com>
5925 * config/frv/predicates.md (minmax_operator): Don't check operands
5928 2007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
5930 * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
5931 Update constant estimates of number of iterations.
5932 (record_nonwrapping_iv): Add "upper" argument. "data_size_bounds_p"
5933 argument renamed to "realistic".
5934 (compute_estimated_nb_iterations): Removed.
5935 (record_niter_bound): New function.
5936 (idx_infer_loop_bounds): For possible but unlikely tail arrays,
5937 call record_nonwrapping_iv with upper = false.
5938 (infer_loop_bounds_from_signedness): Pass upper argument to
5939 record_nonwrapping_iv.
5940 (estimate_numbers_of_iterations_loop): Do not call
5941 compute_estimated_nb_iterations. Record estimate based on profile
5942 information. Initialize the constant estimates of number of
5944 * tree-data-ref.c (estimated_loop_iterations): Return the recorded
5946 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
5947 number of iterations is too small.
5948 * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
5949 (EST_NOT_AVAILABLE): Removed.
5950 (struct loop): Replace estimated_nb_iterations by any_upper_bound,
5951 nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
5954 2007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
5956 * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
5957 Handle NE_EXPR guards.
5959 2007-03-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5962 * c-opts.c (c_common_post_options): Handle C++ post-processing here.
5963 Set also -pedantic-errors by default for the preprocessor unless
5964 -fpermissive is given.
5966 2007-03-15 Richard Guenther <rguenther@suse.de>
5970 * builtins.c (expand_builtin_cexpi): As a fallback if we
5971 don't have builtins for sincos or cexp create a function
5972 declaration for cexp and expand to a call to that.
5973 (expand_builtin_int_roundingfn): Always fall
5974 back to floor/ceil and its variants even if they may be
5977 2007-03-15 Steven Bosscher <steven@gcc.gnu.org>
5980 * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
5981 jump tables, move the call to delete_dead_jumptables from here...
5982 (cfg_layout_finalize): ...to here. But rebuild jump labels first.
5983 * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
5984 don't allow merging of blocks that try_redirect_by_replacing_jump
5985 also does not handle when not optimizing.
5987 2007-03-15 Uros Bizjak <ubizjak@gmail.com>
5988 Francois-Xavier Coudert <coudert@clipper.ens.fr>
5990 * config/i386/i386.md (x86_sahf_1): Correctly handle
5993 2007-03-15 Uros Bizjak <ubizjak@gmail.com>
5996 * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
5997 x86_64_general_operand as operand[2] predicate. Remove "iF"
5998 from operand constraints and use "e" constraint instead.
5999 (*subti3_1, *subti3_1 splitter): Ditto.
6000 (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
6001 operand[1] predicate.
6003 2007-03-14 Sebastian Pop <sebastian.pop@inria.fr>
6005 * tree-loop-linear.c (gather_interchange_stats): For multidimensional
6006 arrays, multiply the access strides by the size of the sub-array.
6007 * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
6009 2007-03-14 Uros Bizjak <ubizjak@gmail.com>
6011 * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
6012 the configured assembler supports the sahf mnemonic.
6013 * configure: Regenerate.
6014 * config.in: Regenerate.
6016 * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
6017 emit "sahf" or ".byte\t0x9e" as asm template.
6019 2007-03-14 Michael Meissner <michael.meissner@amd.com>
6022 * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
6023 option to replace hard coded TARGET_xxx in md file.
6024 (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
6025 (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
6026 (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
6027 (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
6028 (X86_TUNE_NOT_UNPAIRABLE): Ditto.
6029 (X86_TUNE_NOT_VECTORMODE): Ditto.
6030 (TUNE_SHORTEN_X87_SSE): Use new tuning option.
6031 (TUNE_AVOID_VECTOR_DECODE): Ditto.
6032 (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
6033 (TUNE_SLOW_IMUL_IMM8): Ditto.
6034 (TUNE_MOVE_M1_VIA_OR): Ditto.
6035 (TUNE_NOT_UNPAIRABLE): Ditto.
6036 (TUNE_NOT_VECTORMODE): Ditto.
6038 * config/i386/i386.c (ix86_tune_features): Fill in new tuning
6041 * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
6042 tuning options instead of hard coded TARGET_xxx.
6043 (fix ssemode peephole2's): Ditto.
6044 (imul peephole2's): Ditto.
6046 (movdi_or_rex64): Ditto.
6047 (move peephole2): Ditto.
6048 (not peephole2's): Ditto.
6050 2007-03-14 Dirk Mueller <dmueller@suse.de>
6052 * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
6053 * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
6054 * c-parser.c (c_parser_if_body): Always add an empty statement in case
6056 * c-parser.c (c_parser_do_statement): Warn about empty body in
6058 * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
6059 * doc/invoke.texi (-Wempty-body): Update documentation.
6061 2007-03-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6064 * c-common.h (warn_for_div_by_zero): Declare.
6065 * c-common.c (warn_for_div_by_zero): Define.
6066 * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
6069 2007-03-14 Richard Sandiford <richard@codesourcery.com>
6071 * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
6072 to PREFIX and STANDARD_PREFIX.
6074 2007-03-14 Richard Sandiford <richard@codesourcery.com>
6075 Phil Edwards <phil@codesourcery.com>
6077 * gthr-vxworks.h: Add an extern "C" wrapper for C++.
6078 (__gthread_once_t): Remove busy field for RTPs.
6079 (__GTHREAD_ONCE_INIT): Update accordingly.
6081 2007-03-14 Richard Sandiford <richard@codesourcery.com>
6083 * doc/invoke.texi: Document VxWorks options.
6085 2007-03-14 Uros Bizjak <ubizjak@gmail.com>
6087 * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
6089 2007-03-13 Seongbae Park <seongbae.park@gmail.com>
6091 PR tree-optimization/30590
6092 * tree-nrv.c (tree_nrv): Check for the partial update of the
6095 2007-03-13 Alexandre Oliva <aoliva@redhat.com>
6097 * flags.h (flag_random_seed): Remove declaration, in favor of...
6098 * toplev.h (get_random_seed, set_random_seed): ... these.
6099 * tree.c (get_file_function_name): Use the former.
6100 * opts.c (common_handle_option): Use the latter.
6103 2007-03-13 Steven Bosscher <steven@gcc.gnu.org>
6106 * cse.c (cse_find_path): Do not bail out if a basic block that
6107 we already visited now becomes part of a path that starts at a
6108 different basic block. Just disallow this, to make sure we
6109 visit each basic block at most once.
6111 2007-03-13 Jan Hubicka <jh@suse.cz>
6113 * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold attributes,
6114 when profile esitmate is present, calls with very low frequency are
6117 2007-03-13 Zdenek Dvorak <dvorakz@suse.cz>
6119 PR tree-optimization/30730
6120 PR tree-optimization/26900
6121 * tree-ssa-loop-niter.c: Include gmp.h.
6123 (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
6124 split_to_var_and_offset, determine_value_range,
6125 bound_difference_of_offsetted_base, refine_bounds_using_guard,
6126 bound_difference, bounds_add, bounds_negate,
6127 number_of_iterations_ne_max, dump_affine_iv): New functions.
6128 (number_of_iterations_ne, number_of_iterations_lt_to_ne,
6129 assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
6130 difference of initial and final value of control iv to validate
6132 (number_of_iterations_cond): Add loop parameter. Determine bounds
6133 on the difference of the extremes of the control iv. Add dumps.
6134 (expand_simple_operations): Handle phi nodes.
6135 (simplify_using_initial_conditions): Do not record used conditions.
6136 (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
6137 Do not set additional_info.
6138 (implies_nonnegative_p, implies_ge_p): Removed.
6139 (derive_constant_upper_bound): Do not use parameter `additional'.
6140 (record_estimate): Parameter `additional' removed. Parameter
6141 `i_bound' added. Do not call derive_constant_upper_bound.
6142 (record_nonwrapping_iv): Use derive_constant_upper_bound to
6143 bound the number of iterations estimate.
6144 (estimate_numbers_of_iterations_loop): Pass the estimate from
6145 the number of iterations analysis to record_estimate.
6146 * tree.h (multiple_of_p): Declare.
6147 * tree-scalar-evolution.c (expression_expensive_p): Removed.
6148 (scev_const_prop): Do not check expression_expensive_p.
6149 * fold-const.c (multiple_of_p): Exported.
6150 * double-int.c (double_int_mask): Exported.
6151 * double-int.h (double_int_mask): Declare.
6152 * tree-flow.h (struct tree_niter_desc): Removed additional_info
6153 field. Added max field.
6155 2007-03-13 David Taylor <taylor@candd.org>
6158 * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
6161 2007-03-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6164 * pa.md (vdepi_ior): Don't allow zero length deposit. Likewise for
6165 two unamed patterns.
6167 2007-03-13 Uros Bizjak <ubizjak@gmail.com>
6169 * config/i386/i386.opt (mcx16, msahf): New options.
6170 * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
6171 (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
6173 * config/i386/driver-i386.c (bit_LAHF_LM): New define.
6174 (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
6175 Output -mcx16 and -msahf options when corresponding bit is set.
6177 * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
6180 2007-03-13 Alexandre Oliva <aoliva@redhat.com>
6182 * configure.ac: Test for assembler tolerance to # 0 "".
6183 * configure, config.in: Rebuilt.
6184 * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
6186 2007-03-13 Geoffrey Keating <geoffk@apple.com>
6188 * doc/invoke.texi (Spec Files): Update for '%{,' spec.
6190 * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
6191 (handle_syscall): Handle direct system calls.
6192 * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
6194 2007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
6196 * doc/invoke.texi: Fix cpp.info cross-reference.
6197 * doc/passes.texi: Fix gcc.info cross-reference.
6199 2007-03-12 Zdenek Dvorak <dvorakz@suse.cz>
6201 PR tree-optimization/30835
6202 * lambda-code.c (can_convert_to_perfect_nest): Check whether
6203 bb_for_stmt is not NULL before accessing it.
6205 2007-03-12 Joseph Myers <joseph@codesourcery.com>
6207 * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
6210 2007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
6213 * doc/install.texi: Document --enable-stage1-languages
6215 2007-03-12 Steven Bosscher <steven@gcc.gnu.org>
6217 * tree-pass.h (pass_into_cfg_layout_mode,
6218 pass_outof_cfg_layout_mode): Declare.
6219 * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
6220 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
6221 * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
6222 (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
6224 2007-03-12 Seongbae Park <seongbae.park@gmail.com>
6226 * c-decl.c (warn_variable_length_array): New function.
6227 Refactored from grokdeclarator to handle warn_vla
6228 and handle unnamed array case.
6229 (grokdeclarator): Refactored VLA warning case.
6230 * c.opt (Wvla): New flag.
6231 * doc/invoke.texi (Wvla): New warning.
6233 2007-03-12 Richard Henderson <rth@redhat.com>
6235 * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
6236 (TARGET_SECTION_TYPE_FLAGS): New.
6238 2007-03-12 Richard Henderson <rth@redhat.com>
6240 * config/darwin.c (machopic_reloc_rw_mask): New.
6241 * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
6242 * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
6244 2007-03-12 Mark Mitchell <mark@codesourcery.com>
6246 * cppdefault.c (cpp_EXEC_PREFIX): New variable.
6247 * cppdefault.h (cpp_PREFIX): Document.
6248 (cpp_PREFIX_len): Likewise.
6249 (cpp_EXEC_PREFIX): New variable.
6250 * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
6251 * c-incpath.c (add_standard_paths): Correct logic for relocating
6252 paths within prefix.
6254 2007-03-12 Uros Bizjak <ubizjak@gmail.com>
6256 * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
6257 fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
6259 (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
6260 fix_truncdfdi_sse using SSEMODEF mode macro.
6261 (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
6262 fix_truncdfsi_sse using SSEMODEF mode macro.
6263 (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
6264 (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
6266 2007-03-12 Richard Sandiford <richard@codesourcery.com>
6268 * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
6271 2007-03-12 Olga Golovanevsky <olga@il.ibm.com>
6273 * tree.h : Add multiple_of_p declaration.
6274 * fold-const.c (multiple_of_p): Make multiple_of_p public.
6275 * ipa-type-escape.c (results_of_malloc): Redundant.
6276 (visited_stmts): New. Visited stmt for walk_use_def_chains.
6277 (cast_type): Extended with new members.
6278 (check_cast): Returns cast_type.
6279 (cast): New structure for data of walk_use_def_chains.
6280 (is_malloc_result, is_cast_from_non_pointer_1,
6281 is_cast_from_non_pointer,
6282 is_array_access_through_pointer_and_index): New functions.
6283 (look_for_casts): Returns cast types.
6284 (check_call): Returns void.
6285 (okay_pointer_operation): Use support of pointer plus index,
6286 pointer plus constant and allow all multiplications.
6288 2007-03-11 Richard Guenther <rguenther@suse.de>
6290 PR tree-optimization/31115
6291 * tree-vrp.c (extract_range_from_binary_expr): Make sure
6292 the shift count is positive and non-anti-range for RSHIFT_EXPR.
6293 A shift count of zero is not special as with *_DIV_EXPR.
6294 (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
6297 2007-03-11 Ian Lance Taylor <iant@google.com>
6299 * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
6300 the *_DIV_EXPR codes correctly with overflow infinities.
6302 2007-03-11 Ira Rosen <irar@il.ibm.com>
6304 * tree-data-ref.c (analyze_offset): Add a return value (bool) to
6305 indicate success/failure of the analysis. Add negation to subtrahend
6306 in case of subtraction. Fail if both operands contain constants.
6307 (create_data_ref): Fail if analyze_offset fails.
6309 2007-03-11 Uros Bizjak <ubizjak@gmail.com>
6311 * config/i386/i386.md (frndintxf2): Rename to ...
6312 (rintxf2): ... this. Remove expander having same name.
6313 (rintsf2, rintdf2): Implement using SSEMODEF macro.
6314 (roundsf2, rounddf2): Ditto.
6315 (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
6316 (lround<mode>di2, lround<mode>si2): Ditto.
6318 2007-03-11 Steven Bosscher <steven@gcc.gnu.org>
6320 * lower-subreg.c: Include except.h.
6321 (decompose_multiword_subregs): Verify that the only control flow
6322 insns we can split are loads to multi-words pseudos.
6323 Handle breaking such blocks after splitting, instead of calling
6324 find_many_sub_basic_blocks.
6326 * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
6327 on the new basic block. Add a lengthy comment explaining why we
6328 thought this was necessary.
6329 * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
6331 2007-03-10 Mark Mitchell <mark@codesourcery.com>
6334 * tree.c (walk_type_fields): Recurse into the element type of
6335 ARRAY_TYPEs if there is a pointer set.
6337 2007-03-10 Dirk Mueller <dmueller@suse.de>
6339 * c-common.c (warn_logical_operator): Fix condition.
6341 2007-03-10 Tobias Schlüter <tobi@gcc.gnu.org>
6343 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
6345 * config/darwin.c (machopic_select_section): Remove superfluous
6346 argument in call to categorize_decl_for_section. Remove unused
6349 2007-03-10 Joseph Myers <joseph@codesourcery.com>
6351 * configure.ac (glibc_header_dir): Set using with_build_sysroot if
6353 * configure: Regenerate.
6355 2007-03-10 Uros Bizjak <ubizjak@gmail.com>
6358 * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
6359 (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
6360 (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
6361 Add LABEL_NUSES to emitted label.
6362 * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
6363 branch probability value to emitted jump insn.
6364 * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
6365 Do not check life information and do not re-arrange input operands
6366 for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
6368 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
6370 * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
6371 the change of decode_asm_operands.
6373 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
6375 * mode-switching.c (create_pre_exit): Skip blockage insn.
6377 2007-03-09 Diego Novillo <dnovillo@redhat.com>
6379 * tree-pass.h (TODO_update_smt_usage): Remove.
6381 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
6385 2007-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6387 * pa.c (attr_length_call): Revise condition for long pc-relative branch.
6388 (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long local
6389 calls on the SOM target. Don't use "LONG_PIC_PCREL" call sequence on
6392 2007-03-09 Geoffrey Keating <geoffk@apple.com>
6394 * gcc.c: Document %{, in big comment at top.
6395 (input_suffix_matches): Remove special handling for .s and
6397 (input_spec_matches): New.
6398 (handle_braces): Handle %{,.
6399 (validate_switches): ',' indicates a value which is not a switch.
6400 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
6401 to detect assembler input.
6402 * config/i386/sol2.h (CPP_SPEC): Likewise.
6403 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
6404 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6405 * config/rs6000/lynx.h (ASM_SPEC): Likewise.
6406 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
6407 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
6408 -m64 causes deployment target to default to 10.5.
6409 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
6411 2007-03-09 Richard Henderson <rth@redhat.com>
6414 * target.h (targetm.asm.out.reloc_rw_mask): New.
6415 * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
6416 (TARGET_ASM_OUT): Use it.
6417 * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
6418 * varasm.c (categorize_decl_for_section): Remove shlib argument;
6419 use the new reloc_rw_mask target hook instead.
6420 (default_section_type_flags_1): Merge into...
6421 (default_section_type_flags): ... here.
6422 (decl_readonly_section_1): Merge into...
6423 (decl_readonly_section): ... here.
6424 (default_elf_select_section_1): Merge into...
6425 (default_elf_select_section): ... here.
6426 (default_unique_section_1): Merge into...
6427 (default_unique_section): ... here.
6428 (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
6429 (default_select_rtx_section): Use it.
6430 (default_elf_select_rtx_section): Likewise.
6431 * output.h: Update to match.
6432 * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
6433 * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
6434 (TARGET_ASM_RELOC_RW_MASK): New.
6435 * config/i386/i386.c (x86_64_elf_select_section): Adjust call
6436 to categorize_decl_for_section.
6437 (x86_64_elf_unique_section): Likewise.
6438 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
6439 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
6440 (TARGET_ASM_RELOC_RW_MASK): New.
6441 * config/ia64/ia64.c (ia64_rwreloc_select_section,
6442 ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
6443 (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
6444 (TARGET_RWRELOC): Remove.
6445 (ia64_section_type_flags): Adjust call to default_section_type_flags.
6446 * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
6447 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
6448 (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
6449 (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
6450 (rs6000_xcoff_select_section): Use decl_readonly_section.
6451 (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
6452 * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
6453 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
6454 (TARGET_SECTION_TYPE_FLAGS): Remove.
6455 * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
6457 2007-03-09 Roger Sayle <roger@eyesopen.com>
6459 * fold-const.c (fold_comparison): Remove compile-time evaluation of
6460 complex constant equality/inequality comparisons for here.
6461 (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
6462 known at compile-time or can be simplified to a scalar comparison.
6463 (fold_relational_const): Move compile-time evaluation of complex
6464 constant equality/inequality comparisons to here.
6466 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
6468 PR rtl-optimization/30643
6469 * cse.c (cse_insn): Recompute dest_hash after insert_regs for
6471 (fold_rtx): Recurse, like before 2006-11-03.
6473 2007-03-09 DJ Delorie <dj@redhat.com>
6475 * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
6478 2007-03-09 Aldy Hernandez <aldyh@redhat.com>
6480 PR tree-optimization/30375
6481 * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
6482 LHS of statements is not the same.
6483 * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
6485 2007-03-09 Chao-ying Fu <fu@mips.com>
6487 * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
6489 * doc/invoke.texi (-mdspr2): Document new option.
6490 * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
6491 New unspec for DSP REV 2.
6492 (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
6493 these instructions are extended in DSP REV 2.
6494 (mips-dspr2.md): Include.
6495 * config/mips/mips.opt (mdspr2): New option.
6496 * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
6497 MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
6498 MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
6499 (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
6500 (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
6501 (dsp_bdesc): Add DSP REV 2 builtins. Remove 32-bit only DSP builtins.
6502 (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
6504 (bdesc_map): Add one field of unsupported_target_flags.
6505 (bdesc_arrays): Update entries to have extra fields. Add
6507 (mips_init_builtins): Initialize new function types.
6508 Check unsupported_target_fileds to filter out builtins.
6509 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
6511 (ASM_SPEC): Pass mdspr2 to the assembler.
6512 * config/mips/mips-dspr2.md: New file.
6514 2007-03-09 Sa Liu <saliu@de.ibm.com>
6516 * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
6518 2007-03-09 Ian Lance Taylor <iant@google.com>
6520 * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
6521 argument) like -Wstrict-overflow=2.
6522 * doc/invoke.texi (Warning Options): Update documentation.
6524 2007-03-09 Dirk Mueller <dmueller@suse.de>
6527 * doc/invoke.texi (-Wlogical-op): Document.
6528 * common.opt (-Wlogical-op): New.
6529 * c-common.h (warn_logical_operator): Declare.
6530 * c-common.c (warn_logical_operator): Define.
6531 * c-typeck.c (parser_build_binary_op): Call
6532 warn_logical_operator.
6534 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
6536 * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
6537 * final.c (final_scan_insn): Test for non-"" file name.
6539 2007-03-09 Sebastian Pop <sebastian.pop@inria.fr>
6541 * doc/loop.texi: Document the Omega linear constraints solver.
6542 * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
6543 omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
6544 omega-hash-table-size, omega-max-keys, and
6545 omega-eliminate-redundant-constraints.
6546 * tree-pass.h (pass_check_data_deps): Declared.
6549 * timevar.def (TV_CHECK_DATA_DEPS): Declared.
6550 * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
6551 pass_check_data_deps): New.
6552 * tree-data-ref.c (init_data_ref): Remove declaration.
6553 (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
6554 (analyze_array): Renamed init_array_ref, move up initializations.
6555 (init_data_ref): Renamed init_pointer_ref. Moved before its call.
6556 Removed arguments that are set to NULL.
6557 (analyze_indirect_ref): Correct indentation, correct call to
6559 (object_analysis): Call init_array_ref instead of analyze_array.
6560 (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
6561 (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
6562 of DR_ACCESS_FNS_ADDR.
6563 (init_omega_eq_with_af, omega_extract_distance_vectors,
6564 omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
6565 ddr_consistent_p): New.
6566 (compute_affine_dependence): Check consistency of ddrs when
6567 flag_check_data_deps is passed.
6568 (analyze_all_data_dependences): Uncomment.
6569 (tree_check_data_deps): New.
6570 * tree-data-ref.h: Include omega.h.
6571 (DR_ACCESS_FNS_ADDR): Removed.
6572 (data_dependence_relation): Add inner_loop.
6573 (DDR_INNER_LOOP): New.
6574 * common.opt (fcheck-data-deps): New.
6575 * tree-flow.h (tree_check_data_deps): Declare.
6576 * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
6577 (OBJS-common): Depend on omega.o.
6579 * passes.c (pass_check_data_deps): Scheduled.
6580 * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
6581 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
6582 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
6583 PARAM_VECT_MAX_VERSION_CHECKS,
6584 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
6586 2007-03-09 Richard Guenther <rguenther@suse.de>
6588 PR tree-optimization/30904
6590 * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
6591 the same way as *_DIV_EXPR.
6593 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
6595 * recog.c (decode_asm_operands): No mixed declarations and code.
6597 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
6599 * rtl.def (ASM_INPUT): Add location.
6600 * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
6601 (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
6602 (decode_asm_operands): Add loc operand.
6603 (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
6604 * stmt.c (expand_asm): Rename to...
6605 (expand_asm_loc): ... this. Add locus argument. Pass it on to
6606 gen_rtx_ASM_INPUT_loc.
6607 (expand_asm_expr): Adjust.
6608 * recog.c (decode_asm_operands): Add loc operand.
6609 (check_asm_operands, extract_insn): Adjust.
6610 * reload1.c (maybe_fix_stack_asms): Likewise.
6611 * final.c (asm_insn_count): Likewise.
6612 (final_scan_insn): Output # line before and after asm.
6614 2007-03-09 Daniel Berlin <dberlin@dberlin.org>
6616 * tree-ssa-structalias.c (variable_info): Remove
6618 (new_var_info): Ditto.
6619 (shared_bitmap_info_t): New structure.
6620 (shared_bitmap_table): New variable.
6621 (shared_bitmap_hash): New function.
6622 (shared_bitmap_eq): Ditto
6623 (shared_bitmap_lookup): Ditto.
6624 (shared_bitmap_add): Ditto.
6625 (merge_smts_into): Change to take bitmap directly.
6626 (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
6627 (init_alias_vars): Init shared bitmap hashtable.
6628 (delete_points_to_sets): Delete shared bitmap hashtable.
6629 * tree-ssa-operands.c (add_virtual_operand): Partially revert the
6630 is_aliased removal as a change that was still necessary was
6633 2007-03-09 Uros Bizjak <ubizjak@gmail.com>
6635 * config/i386/i386.h (override_options): Conditionally disable
6636 x86_sahf for 64bit targets only.
6638 2007-03-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
6641 * c-decl.c (merge_decls): Don't call make_var_volatile.
6642 * varasm.c (make_var_volatile): Remove.
6643 * output.h (make_var_volatile): Remove.
6645 2007-03-08 Zdenek Dvorak <dvorakz@suse.cz>
6647 PR tree-optimization/31085
6648 * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
6650 2007-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6652 * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
6653 llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
6654 ATTR_CONST_NOTHROW_LIST.
6656 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
6659 2007-03-08 Diego Novillo <dnovillo@redhat.com>
6661 * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
6663 2007-03-08 Geoffrey Keating <geoffk@apple.com>
6666 * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
6668 * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
6669 passed, use shared libgcc.
6671 2007-03-08 Roger Sayle <roger@eyesopen.com>
6673 * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
6674 instead of calling build2 with a GIMPLE_MODIFY_STMT.
6675 (honor_protect_cleanup_actions, lower_try_finally_switch):
6677 * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
6678 ifc_temp_var): Likewise.
6679 * tree-inline.c (setup_one_parameter): Likewise.
6680 * tree-mudflap.c (mf_decl_cache_locals,
6681 mf_build_check_statement_for): Likewise.
6682 * tree-nested.c (init_tmp_var, save_tmp_var,
6683 finalize_nesting_tree_1): Likewise.
6684 * tree-outof-ssa.c (insert_copy_on_edge,
6685 insert_backedge_copies): Likewise.
6686 * tree-profile.c (tree_gen_edge_profiler,
6687 tree_gen_ic_profiler): Likewise.
6688 * tree-scalar-evolution.c (scev_const_prop): Likewise.
6689 * tree-sra.c (sra_build_assignment): Likewise.
6690 * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
6691 * tree-ssa-math-opts.c (insert_reciprocals,
6692 execute_cse_sincos_1): Likewise.
6693 * tree-tailcall.c (adjust_accumulator_values,
6694 adjust_return_value): Likewise.
6695 * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
6696 * tree-vect-transform.c (vect_create_data_ref_ptr,
6697 bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
6698 vect_create_epilog_for_reduction, vectorizable_reduction,
6699 vectorizable_call, vectorizable_conversion,
6700 vectorizable_assignment, vectorizable_operation,
6701 vectorizable_type_demotion, vect_gen_widened_results_half,
6702 vect_permute_store_chain, vectorizable_store,
6703 vect_setup_realignment, vect_permute_load_chain,
6704 vectorizable_load, vectorizable_condition,
6705 vect_create_cond_for_align_checks): Likewise.
6706 * tree-vrp.c (build_assert_expr_for): Likewise.
6708 2007-03-08 Ian Lance Taylor <iant@google.com>
6710 * tree-vrp.c: Include "intl.h".
6711 (usable_range_p): New static function.
6712 (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
6713 overflowed values, juts set *strict_overflow_p.
6714 (compare_values): Only return -2 if one of the operands is not a
6716 (compare_ranges): Call usable_range_p.
6717 (compare_range_with_value): Likewise.
6718 (vrp_evaluate_conditional_warnv): Rename from
6719 vrp_evaluate_conditional. Make static. Change all callers.
6720 (vrp_evaluate_conditional): New function.
6721 (simplify_div_or_mod_using_ranges): Issue warning about reliance
6723 (simplify_abs_using_ranges): Likewise.
6724 (simplify_stmt_for_jump_threading): Add within_stmt parameter.
6725 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
6726 within_stmt parameter.
6727 * tree-ssa-propagate.c (fold_predicate_in): Update call to
6728 vrp_evaluate_conditional.
6729 * tree-ssa-threadedge.c
6730 (record_temporary_equivalences_from_stmts_at_dest): Change
6731 simplify parameter to take a second tree parameter.
6732 (simplify_control_stmt_condition): Likewise.
6733 (thread_across_edge): Likewise.
6734 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
6735 (thread_across_edge): Likewise.
6736 * Makefile.in (tree-vrp.o): Depend upon intl.h.
6738 2007-03-08 Uros Bizjak <ubizjak@gmail.com>
6740 * config/i386/i386.h (TARGET_SAHF): New define.
6741 * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
6742 Also enable for m_K8, m_AMDFAM10 and m_CORE2.
6743 (x86_sahf): New global variable.
6744 (override_options): Add PTA_NO_SAHF to pta_flags enum. Recode
6745 pta_flags masks using shifts. Add PTA_NO_SAHF to x86_64 and
6746 nocona processor flags. Set x86_sahf when PTA_NO_SAHF is not set
6747 in processor flags. Do not unconditionally disable TARGET_USE_SAHF
6749 (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
6750 (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
6751 when expanding fcomi/sahf based tests.
6752 (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
6753 expanding sahf based alternative. Emit sahf based sequence when
6754 optimizing for code size.
6755 * config/i386/i386.md (x86_sahf_1): Do not disable for
6756 TARGET_64BIT, enable for TARGET_SAHF.
6758 2007-03-08 Martin Michlmayr <tbm@cyrius.com>
6760 * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
6761 spurious whitespace from error message.
6763 2007-03-08 Volker Reichelt <reichelt@netcologne.de>
6766 * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
6768 2007-03-08 Alexandre Oliva <aoliva@redhat.com>
6770 * c-decl.c (grokdeclarator): Disable warnings for anonymous
6772 * tree-sra.c (instantiate_element): Propagate disabled warnings
6773 from the element itself to the created variable.
6775 2007-03-07 Richard Henderson <rth@redhat.com>
6778 * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
6779 silently fix up the stack in the case of a missing register.
6781 2007-03-07 Paul Brook <paul@codesourcery.com>
6783 * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
6785 2007-03-07 Joseph Myers <joseph@codesourcery.com>
6787 * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
6789 (phase1_vrs): Use them.
6790 (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
6791 (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
6792 __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
6793 (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
6794 __gnu_Unwind_Restore_WMMXC if required.
6795 (_Unwind_VRS_Pop): Implement iWMMXt support.
6796 * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
6797 gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
6798 gnu_Unwind_Save_WMMXC): Define.
6800 2007-03-07 Richard Sandiford <richard@codesourcery.com>
6802 * config/vxworks.h (vxworks_override_options): Declare.
6803 (VXWORKS_OVERRIDE_OPTIONS): Use it.
6804 * config/vxworks.c: Include target.h and toplev.h.
6805 (vxworks_override_options): New function.
6806 * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
6808 2007-03-07 Andreas Krebbel <krebbel1@de.ibm.com>
6810 * config/s390/s390.c (override_options): Don't emit an error when
6811 -mstack-size is used without providing -mstack-guard.
6812 (s390_emit_prologue): Choose stack_guard value automatically if not
6813 provided via command line.
6814 * doc/invoke.texi: Adjust description of -mstack-guard and -mstack-size.
6816 2007-03-07 Richard Sandiford <richard@codesourcery.com>
6818 * config/i386/i386.c (output_set_got): Add a GOT initialization
6819 sequence for VxWorks PIC.
6820 (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
6821 around labels as well as symbols. Use gotoff_operand instead
6822 of local_symbolic_operand.
6823 (legitimize_pic_address): Use gotoff_operand instead of
6824 local_symbolic_operand. Use @GOT accesses for labels as
6826 (ix86_output_addr_diff_elt): Use PC-relative rather than
6827 GP-relative offsets for VxWorks PIC.
6828 (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
6829 no_new_pseudos. Check whether the returned register is op0.
6830 * config/i386/i386.md (tablejump): Use PC-relative rather than
6831 GP-relative offsets for VxWorks PIC.
6832 * config/i386/predicates.md (gotoff_operand): New predicate.
6834 2007-03-06 Richard Sandiford <richard@codesourcery.com>
6836 * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
6838 * config/vxworks-dummy.h: New file.
6839 * config/i386/i386.h: Include it.
6841 2007-03-07 Alexandre Oliva <aoliva@redhat.com>
6843 * dwarf2out.c (is_inlined_entry_point): New
6844 (add_high_low_attributes): Emit DW_AT_entry_pc along with
6845 DW_AT_ranges if the first subblock is the entry point.
6847 2007-03-06 David Daney <ddaney@avtrex.com>
6849 * doc/install.texi (mips-*-*): Change recommended binutils
6852 2007-03-06 Anatoly Sokolov <aesok@post.ru>
6854 * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
6855 ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
6857 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
6858 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
6860 2007-03-06 Jan Hubicka <jh@suse.cz>
6862 * errors.h (warning, error, fatal, internal_error): Mark as cold.
6863 * predict.c (maybe_hot_bb): Cold functions are never hot; hot functions
6865 (probably_cold_bb_p): Cold functions are cold.
6866 (probably_never_executed_bb_p): Cold functions are cold.
6867 (tree_bb_level_predictions): Predict calls to cold functions as not
6869 (compute_function_frequency): Check hot/cold attributes.
6870 * function.h (function_frequency): Update comments.
6871 * predict.def (PRED_COLD_FUNCTION): Predict cold function.
6872 * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
6873 (c_common_att): Add cold and hot.
6875 * doc/extend.texi (hot,cold attributes): Document.
6877 2007-03-06 Andrew Haley <aph@redhat.com>
6879 * function.c (expand_function_end): Move blockage to just after we
6880 emit the label for the naked return from the function.
6882 2007-03-06 Richard Sandiford <richard@codesourcery.com>
6884 * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
6887 2007-03-06 Jan Hubicka <jh@suse.cz>
6889 * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
6890 loaded for constant large models. Non-large 64bit PIC can do.
6891 * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
6892 * cmodel.h: Add LARGE PIC.
6893 * i386.md (UNSPEC_PLTOFF): New.
6894 (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other unspecs as
6896 (*call_1_rex64): Disable for large models.
6897 (*call_1_rex64_large): New.
6898 (*call_value_1_rex64): Disable for large models.
6899 (*call_value_1_rex64_large): New.
6900 (set_rip_rex4): New.
6901 (set_got_offset_rex64): New.
6902 * predicates.md (constant_call_address_operand): For large model
6903 constant calls are not possible.
6904 * i386-protos.h (construct_plt_address): Declare.
6905 * i386.c (override_options): Accept large models.
6906 (ix86_expand_prologue): Expand large PIC GOT pointer load.
6907 (legitimate_constant_p): Add new UNSPECs.
6908 (legitimate_pic_operand_p): Likewise.
6909 (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
6910 (legitimize_pic_address): Do easy RIP relative way for TLS only for
6912 (output_pic_addr_const): Add PLTOFF.
6913 (ix86_output_addr_diff_elt): Output 64bit tables when needed.
6914 (ix86_expand_move): Legitimize pic address when in PIC mode.
6915 (construct_plt_address): New function.
6916 (ix86_expand_call): Offload the address to register and use GOT pointer
6918 * invoke.texi (mcmodel=large): Update documentation.
6920 2007-03-06 Richard Henderson <rth@redhat.com>
6922 * config/i386/i386.c (x86_use_leave, x86_push_memory,
6923 x86_zero_extend_with_and, x86_movx, x86_double_with_add,
6924 x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
6925 x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
6926 x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
6927 x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
6928 x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
6929 x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
6930 x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
6931 x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
6932 x86_partial_reg_dependency, x86_memory_mismatch_stall,
6933 x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
6934 x86_sse_partial_reg_dependency, x86_sse_split_regs,
6935 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
6936 x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
6937 x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
6938 x86_schedule, x86_use_bt, x86_pad_returns,
6939 x86_use_xchgb): Merge into ...
6940 (ix86_tune_features): ... here. New array.
6941 (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
6942 x86_bswap): Merge into ...
6943 (ix86_arch_features): ... here. New array.
6944 (x86_3dnow_a): Remove.
6945 (x86_accumulate_outgoing_args): Make static.
6946 (x86_arch_always_fancy_math_387): Make static.
6947 (ix86_tune_mask, ix86_arch_mask): Move ...
6948 (override_options): ... to local variables here. Apply the
6949 appropriate mask to each element of ix86_arch_features and
6950 ix86_tune_features. Adjust TARGET_CMOVE and TARGET_USE_SAHF
6951 as were done in the old macros.
6952 (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
6953 * config/i386/i386.h (x86_use_leave, x86_push_memory,
6954 x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
6955 x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
6956 x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
6957 x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
6958 x86_read_modify_write, x86_read_modify, x86_split_long_moves,
6959 x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
6960 x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
6961 x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
6962 x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
6963 x86_partial_reg_dependency, x86_memory_mismatch_stall,
6964 x86_accumulate_outgoing_args, x86_prologue_using_move,
6965 x86_epilogue_using_move, x86_decompose_lea,
6966 x86_arch_always_fancy_math_387, x86_shift1,
6967 x86_sse_partial_reg_dependency, x86_sse_split_regs,
6968 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
6969 x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
6970 x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
6971 x86_use_incdec, x86_pad_returns, x86_bswap,
6972 x86_partial_flag_reg_stall): Remove.
6973 (enum ix86_tune_indices): New.
6974 (ix86_tune_features): New.
6975 (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
6976 TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
6977 TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
6978 TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
6979 TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
6980 TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
6981 TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
6982 TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
6983 TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
6984 TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
6985 TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
6986 TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
6987 TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
6988 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
6989 TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
6990 TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
6991 TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
6992 TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
6993 TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
6994 TARGET_EXT_80387_CONSTANTS): Use it.
6995 (enum ix86_arch_indices): New.
6996 (ix86_arch_features): New.
6997 (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
6998 TARGET_BSWAP): Use it.
6999 (ix86_tune_mask, ix86_arch_mask): Remove.
7001 2007-03-06 Joseph Myers <joseph@codesourcery.com>
7004 * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
7005 Define using $${sysroot_headers_suffix}.
7006 * configure: Regenerate.
7007 * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
7008 multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
7010 * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
7011 * gcc.c (print_sysroot_headers_suffix): New.
7012 (option_map): Include --print-sysroot-headers-suffix.
7013 (display_help): Mention -print-sysroot-headers-suffix.
7014 (process_command): Handle -print-sysroot-headers-suffix.
7015 (do_spec_1): Append multilib directory to include-fixed path if
7016 sysroot suffixes in use.
7017 (main): Handle -print-sysroot-headers-suffix.
7018 * Makefile.in (start.encap): Don't depend on xlimits.h
7019 (xlimits.h): Remove.
7020 (stmp-int-hdrs): Don't depend on xlimits.h. Inline generation of
7021 limits.h for each multilib in fixinc_list.
7022 (fixinc_list, s-fixinc_list): New.
7023 (stmp-fixinc): Depend on fixinc_list. If not copying headers,
7024 generate them for each multilib in fixinc_list.
7025 (stmp-fixproto): Use include-fixed. Run fixproto for each
7026 multilib in fixinc_list.
7027 (mostlyclean): Don't remove xlimits.h.
7028 (clean): Remove include-fixed.
7029 (real-install-headers-tar, real-install-headers-cpio,
7030 real-install-headers-cp): Don't copy include, only include-fixed.
7031 (install-mkheaders): Depend on fixinc_list. Don't depend on
7032 xlimits.h. Save limits.h files for each multilib in fixinc_list.
7033 Always save mkinstalldirs. Preserve ${sysroot_headers_suffix} in
7034 SYSTEM_HEADER_DIR setting in mkheaders.conf.
7036 2007-03-06 Jan Hubicka <jh@suse.cz>
7038 * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
7041 2007-03-06 Richard Sandiford <richard@codesourcery.com>
7043 * configure.ac: Allow tm_file to contain build-directory files.
7044 * configure: Regenerate.
7045 * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
7046 * config/m68k/t-uclinux (sysroot-suffix.h): New target.
7047 * config/m68k/print-sysroot-suffix.sh: New file.
7049 2007-03-06 Richard Sandiford <richard@codesourcery.com>
7051 * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
7052 of pic_offset_table_rtx if reload_completed.
7053 (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
7054 PIC_OFFSET_TABLE_REGNUM.
7055 * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
7057 (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
7058 (m68k_output_mi_thunk): Rewrite to use RTL. Honor vcall_offset.
7060 2007-03-06 Richard Sandiford <richard@codesourcery.com>
7062 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
7063 functions that call eh_return.
7065 2007-03-06 Richard Sandiford <richard@codesourcery.com>
7067 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
7068 functions that need a constant pool.
7070 2007-03-06 Richard Sandiford <richard@codesourcery.com>
7073 * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
7074 (m68k_preferred_reload_class): Likewise.
7075 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
7076 (SECONDARY_RELOAD_CLASS): Define.
7077 (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
7078 (LIMIT_RELOAD_CLASS): Delete.
7079 * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
7080 registers from storing bytes.
7081 (m68k_secondary_reload_class): New function.
7082 (m68k_preferred_reload_class): Likewise.
7084 2007-03-06 Richard Sandiford <richard@codesourcery.com>
7086 * config/m68k/m68k.c (m68k_save_reg): Remove special case for
7088 (m68k_expand_prologue): Likewise.
7090 2007-03-06 Richard Sandiford <richard@codesourcery.com>
7092 * config/m68k/m68k-protos.h (output_sibcall): Declare.
7093 (mips_expand_epilogue): Add a bool parameter.
7094 (m68k_legitimize_sibcall_address): Declare.
7095 * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
7096 (m68k_expand_epilogue): Add a parameter to select between sibling
7097 and normal epilogues. Only generate a return for the latter.
7098 (m68k_ok_for_sibcall_p): New function.
7099 (m68k_legitimize_sibcall_address, output_sibcall): New functions.
7100 * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
7101 (sibcall_value, *sibcall_value): Likewise.
7102 (*call, *call_value): Require !SIBLING_CALL_P.
7103 (epilogue): Update call to m68k_expand_epilogue.
7104 (sibcall_epilogue): New pattern.
7105 * config/m68k/predicates.md (const_call_operand): Say that this
7106 predicate applies to sibling calls too.
7107 (sibcall_operand): New predicate.
7109 2007-03-06 Richard Sandiford <richard@codesourcery.com>
7111 * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
7112 alternatives as movsi_cf.
7113 (movsf_cf_hard): Add commentary.
7115 2007-03-06 Kazu Hirata <kazu@codesourcery.com>
7116 Richard Sandiford <richard@codesourcery.com>
7118 * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
7119 (m68k_movem_pattern_p, m68k_output_movem): Likewise.
7120 (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
7121 * config/m68k/m68k.h (EPILOGUE_USES): Define. Treat all registers
7122 as being live on exit from an interrupt function.
7123 (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
7124 * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
7125 (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
7126 (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
7127 (m68k_interrupt_function_p): Globalize.
7128 (m68k_compute_frame_layout): Remove reverse mask code.
7129 (m68k_emit_movem, m68k_set_frame_related): New functions.
7130 (m68k_output_function_prologue): Delete in favor of...
7131 (m68k_expand_prologue): ...this new function.
7132 (m68k_output_function_epilogue): Delete in favor of...
7133 (m68k_expand_epilogue): ...this new function.
7134 (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
7136 (print_operand): Handle %?.
7137 * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
7138 (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
7139 (prologue, epilogue): New patterns.
7140 (return): Turn into a define_expand.
7141 (*return): New pattern, derived from old "return" pattern. Use rte
7142 rather than rts for interrupt functions. Only use rtd if the pop
7144 (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
7145 (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
7146 (link, *link, unlink, *unlink, load_got): Likewise.
7148 2007-03-06 Richard Sandiford <richard@codesourcery.com>
7152 * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
7153 (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
7154 (m68k_matches_q_p, m68k_matches_u_p): Likewise.
7155 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
7156 and m68k_matches_u_p.
7157 (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
7158 (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
7159 (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
7160 (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
7161 (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
7162 (REG_STRICT_P): New macro.
7163 (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
7164 PCREL_GENERAL_OPERAND_OK.
7165 (REG_OK_FOR_BASE_P): Merge definitions. Use REG_STRICT_P and
7166 m68k_legitimate_base_reg_p.
7167 (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
7168 (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
7169 (PIC_CASE_VECTOR_ADDRESS): Update comment.
7170 * config/m68k/m68k.c (m68k_address): New structure.
7171 (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
7172 (m68k_decompose_index, m68k_legitimate_constant_address_p)
7173 (m68k_jump_table_ref_p, m68k_decompose_address)
7174 (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
7175 (m68k_matches_u_p): New functions.
7176 (print_operand_address): Rewrite to use m68k_decompose_index.
7178 2007-03-05 David Taylor <dtaylor@emc.com>
7180 * gcc.c: Correct copyright date in --version output.
7182 2007-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7184 * pa.md: In unamed move patterns, disparge copies between general
7185 and floating point registers using '?' modifier. Don't include 'f'
7186 constraint for register preferences in DImode, SImode, HImode and
7187 QImode patterns. Likewise for 'r' in DFmode and SFmode patterns.
7188 Remove constraints for copies between general and floating registers
7189 in soft-float DFmode pattern.
7190 (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
7194 2007-03-05 Mike Stump <mrs@apple.com>
7196 * c-common.c (targetcm): Add.
7197 * c-opts.c (c_common_handle_option): Handle language specific
7199 * opts.c (handle_option): Verify language for target options, if
7201 * opth-gen.awk: Add CL_LANG_ALL.
7202 * target-def.h (TARGET_HANDLE_C_OPTION): Add.
7203 (TARGETCM_INITIALIZER): Add.
7204 * target.h (struct gcc_targetcm): Add.
7206 * targhooks.c (default_handle_c_option): Add.
7207 * targhooks.h (default_handle_c_option): Add.
7208 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
7210 * config/darwin.opt (iframework): Add.
7211 * config/darwin.h (TARGET_HAS_TARGETCM): Add.
7212 * config/darwin-c.c (handle_c_option): Add.
7213 (TARGET_HANDLE_C_OPTION): Add.
7215 * doc/invoke.texi (Darwin Options): Add -iframework.
7217 2007-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7219 * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
7222 2007-03-05 Ian Lance Taylor <iant@google.com>
7224 * c.opt (fgnu89-inline): New option.
7225 * c-opts.c (c_common_post_options): Set default value for
7227 * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
7228 (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
7230 (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
7231 (grokdeclarator, start_function): Likewise.
7232 * c-cppbuiltin.c (c_cpp_builtins): Define either
7233 __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
7234 * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
7235 (C Dialect Options): Document -fgnu89-inline.
7236 * doc/extend.texi (Function Attributes): Explain what the
7237 gnu_inline attribute does.
7238 * doc/cpp.texi (Common Predefined Macros): Document
7239 __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
7241 2007-03-05 Ian Lance Taylor <iant@google.com>
7243 PR tree-optimization/31034
7244 * tree-vrp.c (extract_range_from_assert): Don't try to handle a
7245 half-range if the other side is an overflow infinity.
7247 2007-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
7249 * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
7250 (bfin*-linux-uclibc*): New configuration.
7251 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
7253 * config/bfin/linux.h: New file.
7254 * config/bfin/libgcc-bfin.ver: New file.
7255 * config/bfin/t-bfin-uclinux: New file.
7256 * config/bfin/t-bfin-linux: New file.
7257 * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
7258 (TARGET_OS_CPP_BUILTINS): New macro.
7260 2007-03-05 Richard Guenther <rguenther@suse.de>
7262 * fold-const.c (fold_binary): Remove duplicate folding
7263 of comparison of non-null ADDR_EXPR against null.
7265 2007-03-05 Richard Guenther <rguenther@suse.de>
7266 Dorit Nuzman <dorit@il.ibm.com>
7268 PR tree-optimization/26420
7269 * tree-vectorizer.c (vectorize_loops): Bail out early if there
7270 are no loops in the function. Only print the number of
7271 vectorized loops if it is greater than zero or we are supposed
7272 to print information about unvectorized loops.
7274 2007-03-05 Revital Eres <eres@il.ibm.com>
7276 * gcc.dg/var-expand1.c: New test.
7277 * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
7278 when an accumulator is expanded.
7280 2007-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7283 * c-common.c (convert_and_check): Don't give warnings for
7284 conversion if 'expr' already overflowed.
7286 2007-03-04 Roger Sayle <roger@eyesopen.com>
7289 * fold-const.c (fold_comparison): Enforce type consistency when
7290 transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
7292 2007-03-04 Zdenek Dvorak <dvorakz@suse.cz>
7294 * tree-ssa-address.c (create_mem_ref): Do not put an expression
7295 containing a cast to the base of TARGET_MEM_REF.
7297 2007-03-04 Martin Michlmayr <tbm@cyrius.com>
7299 * tree.c (tree_contains_struct_check_failed): Remove spurious
7300 whitespace from error message.
7302 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
7305 * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
7306 instead of precision.
7308 2007-03-04 Roman Zippel <zippel@linux-m68k.org>
7309 Nathan Sidwell <nathan@codesourcery.com>
7311 * emit-rtl.c (find_auto_inc): New.
7312 (try_split): recreate REG_INC notes,
7313 Use regular for loops rather than whiles.
7315 2007-03-03 Andreas Schwab <schwab@suse.de>
7317 * configure.ac (HAVE_AS_REL16): Move test back to correct place.
7318 * configure: Regenerate.
7320 2007-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7322 * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
7323 flag_rounding_math, not flag_unsafe_math_optimizations.
7325 * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
7327 * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
7328 alpha_fold_vector_minmax): Likewise.
7329 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7330 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7332 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
7334 * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
7335 (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
7336 if the lhs has side-effects.
7337 <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
7339 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
7341 * config/i386/i386.h (TUNEMASK): Remove define.
7342 (ARCHMASK): Remove define.
7343 (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
7344 Use ix86_arch_mask variable instead of ARCHMASK.
7345 * config/i386/i386.c (override_options): Ditto.
7346 (standard_80387_constant_p): Ditto.
7348 2007-03-02 Ian Lance Taylor <iant@google.com>
7350 Used signed infinities in VRP.
7351 * tree-vrp.c (uses_overflow_infinity): New static function.
7352 (supports_overflow_infinity): New static function.
7353 (make_overflow_infinity): New static function.
7354 (negative_overflow_infinity): New static function.
7355 (positive_overflow_infinity): New static function.
7356 (is_negative_overflow_infinity): New static function.
7357 (is_positive_overflow_infinity): New static function.
7358 (is_overflow_infinity): New static function.
7359 (overflow_infinity_range_p): New static function.
7360 (compare_values_warnv): New function split out of compare_values.
7361 (compare_value): Call it.
7362 (set_value_range_to_nonnegative): Add overflow_infinity
7363 parameter. Change caller.
7364 (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
7366 (vrp_expr_computes_nonzero): Likewise.
7367 (compare_ranges, compare_range_with_value): Likewise.
7368 (compare_name_with_value, compare_names): Likewise.
7369 (vrp_evaluate_conditional): Likewise.
7370 (set_value_range): Handle infinity
7371 (vrp_operand_equal_p, operand_less_p): Likewise.
7372 (extract_range_from_assert): Likewise.
7373 (vrp_int_const_binop): Likewise.
7374 (extract_range_from_binary_expr): Likewise.
7375 (extract_range_from_unary_expr): Likewise.
7376 (extract_range_from_comparison): Likewise.
7377 (extract_range_from_expr): Likewise.
7378 (dump_value_range): Likewise.
7379 (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
7380 (test_for_singularity): Likewise.
7381 (vrp_int_const_binop): Remove inline qualifier.
7382 (adjust_range_with_scev): Add comment.
7383 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
7385 2007-03-02 Diego Novillo <dnovillo@redhat.com>
7387 * tree-ssa-structalias.c (could_have_pointers): Tidy.
7388 (get_constraint_for): Likewise.
7389 (do_structure_copy): Likewise.
7390 (find_func_aliases): Fix references to MODIFY_EXPR.
7391 (intra_create_variable_infos): Tidy.
7392 * tree-ssa-operands.c (add_virtual_operand): Add argument
7394 When adding members of alias sets, if IS_CALL_SITE is true and
7395 the symbol is not call-clobbered, skip it.
7398 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
7400 * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
7401 entry by means of emit_insn_at_entry.
7403 2007-03-02 Richard Henderson <rth@redhat.com>
7405 * expr.h (promoted_input_arg): Remove decl.
7406 * function.c (promoted_input_arg): Merge into ...
7407 * combine.c (setup_incoming_promotions): ... only caller.
7408 Rearrange to avoid double loop.
7410 2007-03-02 Ben Elliston <bje@au.ibm.com>
7411 Peter Bergner <bergner@vnet.ibm.com>
7412 Janis Johnson <janis187@us.ibm.com>
7414 * config/rs6000/dfp.md: New file.
7415 * config/rs6000/rs6000.md: Include dfp.md.
7416 (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
7417 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
7418 and TDmode decimal float modes in FP registers.
7419 (num_insns_constant): Likewise.
7420 (rs6000_legitimate_offset_address_p): Likewise.
7421 (rs6000_legitimize_address): Likewise.
7422 (rs6000_legitimize_reload_address): Likewise.
7423 (rs6000_legitimate_address): Likewise.
7424 (rs6000_emit_move): Likewise.
7425 (function_arg_boundary): Likewise.
7426 (function_arg_advance): Likewise.
7427 (rs6000_darwin64_record_arg_recurse): Likewise.
7428 (function_arg): Likewise.
7429 (rs6000_gimplify_va_arg): Likewise.
7430 (rs6000_split_multireg_move): Likewise.
7431 (rs6000_output_function_epilogue): Likewise.
7432 (rs6000_output_function_epilogue): Likewise.
7433 (rs6000_register_move_cost): Likewise.
7434 (rs6000_function_value): Likewise.
7435 (rs6000_libcall_value): Likewise.
7437 2007-03-02 Richard Sandiford <richard@codesourcery.com>
7439 * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
7441 2007-03-02 Richard Sandiford <richard@codesourcery.com>
7443 * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
7444 Use $MULTIDIR to choose between the kernel and RTP headers,
7445 and use $WIND_BASE and $WIND_USR to locate them.
7447 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
7449 * config/i386/i386.c (override_options): Put initialization of
7450 ix86_tune_mask and ix86_arch_mask to the correct place.
7452 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
7453 Michael Meissner <michael.meissner@amd.com>
7456 * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
7458 (TARGET_CMOVE): Use ARCHMASK.
7459 (TARGET_CMPXCHG): Ditto.
7460 (TARGET_CMPXCHG8B): Ditto.
7461 (TARGET_XADD): Ditto.
7462 (TARGET_BSWAP): Ditto.
7463 * config/i386/i386.c (ix86_tune_mask): New global variable.
7464 (ix86_arch_mask): Ditto.
7465 (override_options): Initialize ix86_tune_mask and
7466 ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
7469 2007-03-02 Ben Elliston <bje@au.ibm.com>
7472 * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
7474 2007-03-02 Joseph Myers <joseph@codesourcery.com>
7476 * target.h (init_dwarf_reg_sizes_extra): New target hook.
7477 * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
7478 * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
7479 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
7481 * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
7482 rs6000_init_dwarf_reg_sizes_extra): New.
7483 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
7484 SPE register high parts.
7486 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
7488 * Makefile.in: Add install-pdf target as
7489 copied from automake v1.10 rules.
7490 * configure.ac: Add install-pdf to target list.
7491 * configure: Regenerate.
7493 2007-03-01 Paul Brook <paul@codesourcery.com>
7495 * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
7496 modes to LDRD for DImode.
7497 (output_move_double): Fixup out of range ldrd/strd.
7498 (vfp_secondary_reload_class): Rename...
7499 (coproc_secondary_reload_class): ... to this. Add wb argument.
7500 * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
7501 coproc_secondary_reload_class for CLASS_IWMMXT.
7502 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
7503 * arm-protos.h (coproc_secondary_reload_class): Update prototype.
7505 2007-03-01 Zdenek Dvorak <dvorakz@suse.cz>
7507 * tree-ssa-loop-prefetch.c (determine_unroll_factor): Bound the unroll
7508 factor by the estimated number of iterations.
7509 (loop_prefetch_arrays): Do not prefetch in loops that iterate less than
7512 * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
7513 decode_caches_intel, detect_caches_intel): New functions.
7514 (host_detect_local_cpu): Use detect_caches_amd and
7515 detect_caches_intel.
7517 2007-03-01 Richard Henderson <rth@redhat.com>
7519 * expr.c (emit_move_complex_push): Export.
7520 (emit_move_complex_parts): Split out from ...
7521 (emit_move_complex): ... here.
7522 * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
7523 * config/i386/i386.md (movcdi): New.
7525 2007-03-01 Uros Bizjak <ubizjak@gmail.com>
7527 * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
7528 size of mode1 to check for tieable modes in MMX case.
7530 2007-03-01 Richard Sandiford <richard@codesourcery.com>
7532 * Makefile.in (rtlanal.o): Depend on tree.h.
7533 * rtl.h (offset_within_section_p, split_const): Declare.
7534 * rtlanal.c: Include tree.h.
7535 (offset_within_block_p): New function, taken from
7536 mips_offset_within_object_p.
7537 (split_const): New function, taken from mips_split_const.
7538 * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
7540 * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
7541 (CONSTANT_ADDRESS_P): Only accept legitimate constants.
7542 (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
7543 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
7544 (m68k_illegitimate_symbolic_constant_p): New function.
7545 * config/m68k/m68k.md (movsi): Remove misleading predicates.
7546 If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
7547 symbolic constant that might be outside the symbol's section,
7548 move the symbol first and then add the offset.
7549 * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
7551 * config/mips/mips.c (mips_split_const): Delete.
7552 (mips_offset_within_object_p): Delete.
7553 (mips_symbolic_constant_p): Use offset_within_section_p and
7554 split_const instead of mips_offset_within_object_p and
7556 (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
7557 (mips_legitimize_const_move, print_operand_reloc)
7558 (mips_dangerous_for_la25_p): Use split_const instead of
7561 2007-02-28 Eric Christopher <echristo@apple.com>
7563 * Makefile.in (install-include-dir): Don't rm -rf include.
7565 2007-02-28 Richard Guenther <rguenther@suse.de>
7568 * fold-const.c (fold_binary): Do not associate expressions
7569 with more than one variable for integer types that do not wrap.
7571 2007-02-28 Sandra Loosemore <sandra@codesourcery.com>
7573 * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
7574 Delete, and replace with...
7575 (fold_builtin_call_array): This. Update callers to use it.
7576 * fold-const.c (fold_build_call_list): Delete, and replace with...
7577 (fold_build_call_array): This.
7578 (fold_build_call_list_initializer): Delete, and replace with...
7579 (fold_build_call_array_initializer): This.
7580 * tree.h: Update declarations to reflect above changes.
7582 * c-typeck.c (build_function_call): Store converted arguments
7583 in a stack-allocated array instead of building a list.
7584 (convert_arguments): Store arguments in the array passed in as an
7585 argument, and return the actual number of arguments.
7586 * c-format.c: (check_function_format): Pass arguments in an
7587 array instead of a list.
7588 * c-common.c (check_function_nonnull): Likewise.
7589 (check_function_sentinel): Likewise.
7590 (check_function_arguments): Likewise.
7591 * c-common.h: Update declarations to reflect above changes.
7593 2007-02-28 Jan Hubicka <jh@suse.cz>
7595 * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
7596 PRED_NEGATIVE_RETURN): Update outcomes.
7598 2007-02-28 Bernd Schmidt <bernd.schmidt@analog.com>
7600 * calls.c (emit_library_call_value_1): Handle partial registers
7601 correctly when building up CALL_INSN_FUNCTION_USAGE.
7603 2007-02-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7605 * pa/predicates.md (move_src_operand): Allow zero for mode.
7606 * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
7609 2007-02-27 Uros Bizjak <ubizjak@gmail.com>
7612 * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
7613 *movv2df_internal): Enable pattern only for valid operand
7615 * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
7616 tie only 128bit modes. For MMX registers, tie only 64bit modes.
7618 2007-02-27 Mike Stump <mrs@apple.com>
7620 * config/darwin-crt3.c: Avoid compilation when compiling for a
7623 2007-02-27 Joseph Myers <joseph@codesourcery.com>
7625 * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
7627 (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
7628 for fixed headers and limits.h.
7629 (install-include-dir, install-headers-tar, install-headers-cpio,
7630 install-headers-cp, real-install-headers-tar,
7631 real-install-headers-cpio, real-install-headers-cp): Handle
7632 include-fixed as well as include.
7633 (install-mkheaders): Don't install files that go only in include
7635 * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
7636 from GCC_INCLUDE_DIR.
7637 * gcc.c (process_command): Remove special -BstageN/ handling.
7638 (do_spec_1): Add include-fixed directories.
7640 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
7642 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
7644 * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
7646 * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
7649 2007-02-27 Mark Mitchell <mark@codesourcery.com>
7651 * c-common.c (get_priority): Add check for
7652 SUPPORTS_INIT_PRIORITY.
7654 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
7656 * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
7658 * config/bfin/bfin.c: Include "cfglayout.h".
7659 (MAX_LSETUP_DISTANCE): New macro.
7660 (struct loop_info): New members incoming, incoming_src and
7661 incoming_dest. Delete member predecessor.
7662 (length_for_loop): New function.
7663 (bfin_optimize_loop): Handle more different loop structures.
7664 (bfin_discover_loop): Rework detection of predecessor blocks by
7665 examining incoming edges.
7666 (bfin_discover_loops, bfin_free_loops): New functions, broken out of
7668 (bfin_reorder_loops): New function.
7669 (bfin_reorg_loops): Use these three new functions.
7671 * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
7672 REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
7673 (CONSTRAINT_LEN): Add entry for 'q'.
7674 (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
7675 Add 'q' constraints.
7676 (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
7677 (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
7679 * config/bfin/bfin.md (add_with_carry): New pattern.
7680 (s_or_u, su_optab, su_modifier): New code macros/attrs.
7681 (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
7682 <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
7683 support unsigned multiplies too. Removed incorrect commutativity from
7684 operand 1 constraint where appropriate.
7685 (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
7687 (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
7688 <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
7690 (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
7691 usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
7692 usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
7693 usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
7694 usmulhisi_hh_huh): New patterns.
7696 * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
7697 lshifthi3): Fix output template to use half reg for operand 2.
7699 * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
7702 * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
7704 2007-02-27 Andreas Schwab <schwab@suse.de>
7706 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
7708 2007-02-27 Jan Hubicka <jh@suse.cz>
7710 * predict.c (last_basic_block_p): Remove.
7711 (tree_estimate_probability): Update return heuristic for commonized
7714 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
7716 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
7718 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
7720 * doc/include/gcc-common.texi (versionsubtitle): New macro.
7721 * doc/cpp.texi: Standardize title page.
7722 * doc/cppinternals.texi: Likewise.
7723 * doc/gcc.texi: Standardize title page, remove version number
7724 from copyright page.
7725 * doc/gccint.texi: Likewise.
7726 * doc/install.texi: Standardize title page, add table of
7729 2007-02-26 Jan Hubicka <jh@suse.cz>
7731 * predict.def: Set outcomes according to more recent results.
7732 (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
7733 Remove dead predictors.
7734 * predict.c (return_prediction): Fix pasto.
7736 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
7738 * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
7739 change; avoid a memory leak when returning early.
7741 2007-02-26 Mark Mitchell <mark@codesourcery.com>
7743 * c-decl.c (static_ctors): Move to c-common.c.
7744 (static_dtors): Likewise.
7745 (finish_function): Use c_record_cdtor_fn.
7746 (build_cdtor): Move to c-common.c.
7747 (c_write_global_declarations): Use c_build_cdtor_fns.
7748 * c-common.h (static_ctors): Declare.
7749 (static_dtors): Likewise.
7750 (c_record_cdtor_fn): Likewise.
7751 (c_build_cdtor_fns): Likewise.
7752 * c-common.c (static_ctors): New variable.
7753 (static_dtors): Likewise.
7754 (c_record_cdtor_fn): New function.
7755 (build_cdtor): Move from c-decl.c
7756 (c_build_cdtor_fns): New function.
7758 * output.h (assemble_addr_to_section): Declare.
7759 (get_cdtor_priority_section): Likewise.
7760 * varasm.c (assemble_addr_to_section): New function.
7761 (get_cdtor_priority_section): Likewise.
7762 (default_named_section_asm_out_destructor): Use them.
7763 (destor_dtor_section_asm_out_destructor): Likewise.
7764 (default_named_section_asm_out_constructor): Likewise.
7765 (default_ctor_section_asm_out_constructor): Likewise.
7766 * config.gcc (*-*-vxworks*): Include vxworks.o.
7767 * config/t-vxworks (vxworks.o): New target.
7768 * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
7769 (TARGET_ASM_CONSTRUCTOR): Define.
7770 (TARGET_ASM_DESTRUCTOR): Likewise.
7771 (vxworks_asm_out_constructor): Declare.
7772 (vxworks_asm_out_destructor): Likewise.
7774 * c-common.c (get_priority): Check that we have not just an
7775 INTEGER_CST, but an integer constant with integeral type.
7777 2007-02-25 Uros Bizjak <ubizjak@gmail.com>
7779 PR tree-optimization/30938
7780 * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
7781 use &dt[nargs-1] instead of &dt[nargs] in the call to
7782 vect_is_simple_use().
7784 2007-02-25 Ulrich Weigand <uweigand@de.ibm.com>
7786 * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
7787 from register elimination as PRE_MODIFY / POST_MODIFY increments.
7788 Do not attempt to handle MEM inside auto-inc expressions.
7789 * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
7790 of a register modified by an auto-inc expression. However, do handle
7791 elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
7792 (elimination_effects): Prohibit elimination of a register modified
7793 by an auto-inc expression. Disable register elimination rules whose
7794 target register is modified by an auto-inc expression with variable
7797 2007-02-25 Zdenek Dvorak <dvorakz@suse.cz>
7799 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
7801 (array_at_struct_end_p): New function.
7802 (idx_infer_loop_bounds): Use it.
7803 (estimate_numbers_of_iterations_loop): Export.
7804 * predict.c (predict_loops): Use estimated_loop_iterations_int.
7805 Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
7806 (tree_estimate_probability): Call record_loop_exits.
7807 * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
7808 (estimated_loop_iterations, estimated_loop_iterations_int,
7809 estimated_loop_iterations_tree): New functions.
7810 (analyze_siv_subscript_cst_affine,
7811 compute_overlap_steps_for_affine_1_2,
7812 analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
7813 (analyze_miv_subscript): Use estimated_loop_iterations_tree.
7814 * predict.def (PRED_LOOP_ITERATIONS): Update comment.
7815 (PRED_LOOP_ITERATIONS_GUESSED): New.
7816 * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
7817 * cfgloop.h (estimate_numbers_of_iterations_loop,
7818 estimated_loop_iterations_int): Declare.
7820 2007-02-25 Mark Mitchell <mark@codesourcery.com>
7822 * doc/extend.texi: Document optional priority argument to
7823 constructors and destructors.
7824 * tree.c (init_priority_for_decl): Adjust GTY markers.
7825 (init_ttree): Use priority-info hash functions for
7826 init_priority_for_decl.
7827 (tree_map_eq): Rename to ...
7828 (tree_map_base_eq): ... this.
7829 (tree_map_marked_p): Rename to ...
7830 (tree_map_base_marked_p): ... this.
7831 (tree_map_base_hash): New function.
7832 (decl_init_priority_lookup): Rework.
7833 (decl_fini_priority_lookup): New function.
7834 (decl_priority_info): New function.
7835 (decl_init_priority_insert): Use it.
7836 (decl_fini_priority_insert): Likewise.
7837 (decl_restrict_base_lookup): Adjust for refactoring of tree_map
7839 (decl_restrict_base_insert): Likewise.
7840 (decl_debug_expr_insert): Likewise.
7841 (decl_value_expr_lookup): Likewise.
7842 (decl_value_expr_insert): Likewise.
7843 * tree.h (priority_type): New type.
7844 (decl_init_priority_lookup): Use priority_type.
7845 (decl_fini_priority_lookup): New function.
7846 (decl_init_priority_insert): Use priority_type.
7847 (decl_fini_priority_insert): New function.
7848 (DECL_HAS_INIT_PRIORITY): Tweak comments.
7849 (DECL_INIT_PRIORITY): Likewise.
7850 (SET_DECL_INIT_PRIORITY): Add comment.
7851 (DECL_FINI_PRIORITY): New macro.
7852 (SET_DECL_FINI_PRIORITY): Likewise.
7853 (DEFAULT_INIT_PRIORITY): Document.
7854 (MAX_INIT_PRIORITY): Likewise.
7855 (MAX_RESERVED_INIT_PRIORITY): Likewise.
7856 (tree_map_base): New type.
7857 (tree_map_base_eq): New function.
7858 (tree_map_base_hash): Likewise.
7859 (tree_map_base_marked_p): Likewise.
7860 (tree_map): Inherit from tree_map_base.
7861 (tree_map_eq): Make it a macro.
7862 (tree_map_marked_p): Likewise.
7863 (tree_int_map): Inherit from tree_map_base.
7864 (tree_int_map_eq): Make it a macro.
7865 (tree_int_map_hash): Likewise.
7866 (tree_int_map_marked_p): Likewise.
7867 (tree_priority_map): New type.
7868 (tree_priority_map_eq): New macro.
7869 (tree_priority_map_hash): Likewise.
7870 (tree_priority_map_marked_p): Likewise.
7871 * varasm.c (emults_decl): Adjust for refactoring of tree_map
7873 (emutls_common_1): Likewise.
7874 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
7875 * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
7876 of tree_map hierarchy.
7877 * tree-cfg.c (move_stmt_r): Likewise.
7878 (new_label_mapper): Likewise.
7879 * c-tree.h (c_expand_body): Move to ...
7880 * c-common.h (c_expand_body): ... here.
7881 * c-decl.c (c_expand_body): Move to ...
7882 * c-common.c (c_expand_body): ... here.
7883 (c_common_attribute_table): Allow 1 argument for the constructor
7884 and destructor attributes.
7885 (get_priority): New function.
7886 (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
7887 (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
7889 2007-02-24 Jan Hubicka <jh@suse.cz>
7892 * tree-inline.c (copy_bb): Produce exact copy of EH info when copying for inlining.
7894 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
7895 Jan Hubicka <jh@suse.cz>
7898 * i386.c (counter_mode): New function.
7899 (expand_set_or_movmem_via_loop): Use it.
7900 (expand_movmem_epilogue): Likewise; fix pasto.
7901 (ix86_expand_movmem): Do emit guard even for constant counts.
7902 (ix86_expand_setmem): Likewise.
7904 2007-02-25 Nick Clifton <nickc@redhat.com>
7906 * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
7907 (JUMP_TABLES_IN_TEXT_SECTION): Define.
7909 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
7912 * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
7913 count argument with 0x10, not with 0x16.
7914 (expand_setmem_epilogue): Ditto.
7916 2007-02-24 Mike Stump <mrs@apple.com>
7918 * config/i386/i386.c (output_pic_addr_const): Stubify optimized
7921 2007-02-24 Richard Guenther <rguenther@suse.de>
7924 * fold-const.c (fold_binary): Fold x +- CST op x for
7925 EQ_EXPR and NE_EXPR.
7927 2007-02-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7929 * pa.md (muldi3): Force subregs to registers in 64-bit expander.
7931 2007-02-24 Jan Hubicka <jh@suse.cz>
7933 * cgraphunit.c (decide_is_function_needed): Honor
7934 -fkeep-inline-functions.
7936 2007-02-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7938 * builtins.c (fold_builtin_modf): New.
7939 (fold_builtin_2): Use it.
7941 2007-02-24 Bernd Schmidt <bernd.schmidt@analog.com>
7943 * loop-iv.c (implies_p): Detect additional cases where A implies B.
7944 (determine_max_iter): Take additional LOOP arg; all callers changed.
7945 Lose broken logic dealing with PLUS. Try to limit the upper bound by
7946 one using simplifications.
7947 (simplify_using_initial_values): Return if the expression becomes
7948 invalid due to altered regs.
7950 2007-02-23 DJ Delorie <dj@redhat.com>
7952 * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
7954 2007-02-23 Mike Stump <mrs@apple.com>
7956 * tlink.c (scan_linker_output): Parse linker messages from
7957 darwin9's linker better.
7959 2007-02-23 Steve Ellcey <sje@cup.hp.com>
7962 * varpool.c (varpool_assemble_pending_decls): Set
7963 varpool_last_needed_node to null.
7965 2007-02-23 DJ Delorie <dj@redhat.com>
7967 * config/i386/i386.c (ix86_data_alignment): Don't specify an
7968 alignment bigger than the object file can handle.
7970 2007-02-23 Uros Bizjak <ubizjak@gmail.com>
7973 * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
7974 zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
7975 (*movsf_1): Penalize MMX moves.
7977 2007-02-23 Bernd Schmidt <bernd.schmidt@analog.com>
7979 * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
7980 2^32-1 or more times unless flag_unsafe_loop_optimizations.
7982 * loop-iv.c (determine_max_iter): Moved in front of its sole user.
7984 2007-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7986 * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
7987 (fold_builtin_1): Use them.
7988 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
7989 BUILT_IN_SIGNIFICAND.
7991 2007-02-23 H.J. Lu <hongjiu.lu@intel.com>
7993 * config/i386/i386.c (bdesc_1arg): Initialize
7994 IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
7995 "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
7996 (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
7997 and IX86_BUILTIN_MOVSLDUP.
7999 2007-02-22 Paolo Bonzini <bonzini@gnu.org>
8001 PR rtl-optimization/30841
8002 * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
8004 2007-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8006 * builtins.c (fold_builtin_frexp): New.
8007 (fold_builtin_2): Use it.
8009 2007-02-22 Mark Mitchell <mark@codesourcery.com>
8011 * doc/invoke.texi (Spec Files): Document getenv spec function.
8013 * gcc.c (getenv_spec_function): New function.
8014 (static_spec_functions): Add it.
8015 * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
8016 (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
8019 2007-02-22 Michael Matz <matz@suse.de
8022 * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
8023 (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
8025 2007-02-22 Ian Lance Taylor <iant@google.com>
8028 * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
8029 (mem_loc_descriptor): Call it.
8031 2007-02-22 Zdenek Dvorak <dvorakz@suse.cz>
8032 Ira Rosen <irar@il.ibm.com>
8034 * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
8036 2007-02-22 Ira Rosen <irar@il.ibm.com>
8038 PR tree-optimization/30843
8039 * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
8040 stores only after all the group is vectorized.
8042 2007-02-22 Dorit Nuzman <dorit@il.ibm.com>
8044 PR tree-optimization/30858
8045 * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
8046 in the reduction cycle have a single use in the loop.
8047 * tree-vectorizer.h (relevant): Add documentation.
8049 2007-02-20 Mike Stump <mrs@apple.com>
8051 * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
8052 * configure: Regenerate.
8054 2007-02-21 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
8056 Change the defaults of some parameters and options.
8057 * config/spu/spu-protos.h (spu_optimization_options): Declare.
8058 * config/spu/spu.c (spu_optimization_options): Add.
8059 (spu_override_options): Change params in spu_optimization_options.
8060 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
8062 Register 127 is only 16 byte aligned when used as a frame pointer.
8063 * config/spu/spu-protos.h (spu_init_expanders): Declare.
8064 * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
8065 HARD_FRAME_POINTER_REGNUM.
8066 (spu_legitimate_address): Use regno_aligned_for_reload.
8067 (regno_aligned_for_load): HARD_FRAME_POINTER_REGNUM is only 16 byte
8068 aligned when frame_pointer_needed is true.
8069 (spu_init_expanders): New. Set alignment of HARD_FRAME_POINTER_REGNUM
8071 * config/spu/spu.h (INIT_EXPANDERS): Define.
8073 Make sure shift and rotate instructions have valid immediate operands.
8074 * config/spu/predicates.md (spu_shift_operand): Remove.
8075 * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
8076 * config/spu/constraints.md (W, O): Extend range.
8077 * config/spu/spu.md (umask, nmask): Define.
8078 (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
8079 lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
8080 rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
8081 rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
8082 spu_nonmem_operand instead of spu_shift_operands. Use new modifiers.
8083 (lshr<mode>3_reg): Fix rtl description.
8085 Make sure mulhisi immediate operands are valid.
8086 * config/spu/predicates.md (imm_K_operand): Add.
8087 * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
8089 Generate constants using fsmbi and andi.
8090 * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
8091 (print_operand, spu_split_immediate, classify_immediate,
8092 fsmbi_const_p): Handle IC_FSMBI2.
8094 Correctly handle a CONST_VECTOR containing symbols.
8095 * config/spu/spu.c (print_operand): Handle HIGH correctly.
8096 (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
8097 (immediate_load_p): Allow symbols that use 2 instructions to create.
8098 (classify_immediate, spu_builtin_splats): Don't accept a CONST_VECTOR
8099 with symbols when flag_pic is set.
8100 (const_vector_immediate_p): New.
8101 (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
8102 accept a CONST_VECTOR with symbols.
8103 (spu_legitimate_constant_p): Use const_vector_immediate_p. Don't
8104 accept a CONST_VECTOR with symbols when flag_pic is set. Handle HIGH
8106 * config/spu/spu.md (high, low): Delete.
8107 (low_<mode>): Define.
8109 Remove INTRmode and INTR_REGNUM, which didn't work.
8110 * config/spu/spu.c (spu_conditional_register_usage): Remove reference
8112 * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
8113 set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
8114 peephole2 pattern): Don't use INTR or 131.
8115 (movintrcc): Delete.
8116 * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
8117 CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
8118 * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
8119 (UNSPEC_SET_INTR): Add.
8120 * config/spu/spu-modes.def (INTR): Remove.
8122 More accurate warnings about run-time relocations.
8123 * config/spu/spu.c (reloc_diagnostic): Test in_section.
8125 Correctly warn about immediate arguments to specific intrinsics.
8126 * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
8127 (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
8128 the instruction predicate.
8130 Fix tree check errors with latest update.
8131 * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
8133 (spu_expand_builtin): Use CALL_EXPR_FN.
8135 Add missing specific intrinsics.
8136 * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
8138 * config/spu/spu_internals.h: Ditto.
8140 Fix incorrect operand modifiers.
8141 * config/spu/spu-builtins.md (spu_mpy, spu_mpyu): Remove use of %H.
8142 * config/spu/spu.md (xor<mode>3): Change %S to %J.
8144 Optimize one case of zero_extend of a vec_select.
8145 * config/spu/spu.md (_vec_extractv8hi_ze): Add.
8147 Accept any immediate for hbr.
8148 * config/spu/spu.md (hbr): Change s constraints to i.
8150 2007-02-21 Paul Brook <paul@codesourcery.com>
8152 * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
8153 condexec_count when skipping USE and CLOBBER.
8155 2007-02-21 Nick Clifton <nickc@redhat.com>
8157 * common.opt (Warray-bounds): Add Warning attribute.
8158 (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
8160 (fsized-zeroes): Add Optimization attribute.
8161 (fsplit-wide-types, ftree-scev-cprop): Likewise.
8162 * c.opt (Wc++0x-compat): Add Warning attribute.
8164 2007-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8167 * reload1.c (eliminate_regs_in_insn): In the single_set special
8168 case, attempt to re-recognize the insn before falling back to
8169 having reload fix it up.
8171 2007-02-20 Eric Christopher <echristo@gmail.com>
8173 * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
8174 Rewrite accordingly.
8175 (frv_read_iacc_argument): Ditto.
8176 (frv_expand_set_builtin): Take a call instead of arglist, update for
8178 (frv_expand_unop_builtin): Ditto.
8179 (frv_expand_binop_builtin): Ditto.
8180 (frv_expand_cut_builtin): Ditto.
8181 (frv_expand_binopimm_builtin): Ditto.
8182 (frv_expand_voidbinop_builtin): Ditto.
8183 (frv_expand_int_void2arg): Ditto.
8184 (frv_expand_prefetches): Ditto.
8185 (frv_expand_voidtriop_builtin): Ditto.
8186 (frv_expand_voidaccop_builtin): Ditto.
8187 (frv_expand_load_builtin): Ditto.
8188 (frv_expand_store_builtin): Ditto.
8189 (frv_expand_mdpackh_builtin): Ditto.
8190 (frv_expand_mclracc_builtin): Ditto.
8191 (frv_expand_mrdacc_builtin): Ditto.
8192 (frv_expand_mwtacc_builtin): Ditto.
8193 (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
8196 2007-02-20 Janis Johnson <janis187@us.ibm.com>
8198 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
8199 * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
8201 (HAVE_GAS_DFP): Check for assembler support of decimal floating
8203 * configure: Regenerate.
8204 * config.in: Regenerate.
8205 * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
8206 * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
8207 masks to power6 and power6x and to POWERPC_MASKS.
8208 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
8210 * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
8211 * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
8212 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
8213 Access PROTOTYPE as variable, not mask.
8215 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
8217 * rtl.h (remove_reg_equal_equiv_notes): New prototype.
8218 * rtlanal.c (remove_reg_equal_equiv_notes): New function.
8219 * combine.c (adjust_for_new_dest): Use it.
8220 * postreload.c (reload_combine): Likewise.
8222 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
8224 * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
8225 notes on an insn with multiple sets, even if single_set returns
8226 non-NULL for that insn.
8228 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8230 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
8233 2007-02-20 Geoffrey Keating <geoffk@apple.com>
8235 * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
8236 if user didn't pass it.
8237 * config/i386/darwin.h (CC1_SPEC): Likewise.
8238 * config/rs6000/darwin.h (CC1_SPEC): Likewise.
8239 (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
8240 -mmacosx-version-min.
8242 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8243 Uros Bizjak <ubizjak@gmail.com>
8245 * optabs.h (enum optab_index): Add new OTI_scalb.
8246 (scalb_optab): Define corresponding macro.
8247 * optabs.c (init_optabs): Initialize scalb_optab.
8248 * genopinit.c (optabs): Implement scalb_optab using scalb?f3
8250 * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
8251 BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
8252 (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
8253 and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
8254 flag_unsafe_math_optimizations is set.
8256 * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
8257 to implement scalbf, scalb and scalbl built-ins as inline x87
8260 2007-02-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8261 DJ Delorie <dj@redhat.com>
8264 * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
8265 (diagnostic_report_diagnostic): ... here, and turn them into real
8266 errors. If warnings are inhibited, no need to do anything.
8268 2007-02-20 Uros Bizjak <ubizjak@gmail.com>
8270 * config/i386/i386.md (expm1xf2): Reorder insn sequence for
8271 better code generation.
8273 2007-02-20 Ben Elliston <bje@au.ibm.com>
8275 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
8277 2007-02-20 Kazu Hirata <kazu@codesourcery.com>
8279 * config/alpha/alpha.c, config/alpha/alpha.md,
8280 config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
8281 config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
8282 config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
8283 config/arm/lib1funcs.asm: Follow spelling conventions.
8285 * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
8286 config/fr30/fr30.md, config/i386/i386.h,
8287 config/iq2000/iq2000.h, config/iq2000/predicates.md,
8288 config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
8289 config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
8290 config/pdp11/pdp11.c, config/pdp11/pdp11.h,
8291 config/rs6000/altivec.md, config/rs6000/rs6000.c,
8292 config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
8293 config/sparc/sparc.c, config/sparc/sparc.h,
8294 config/sparc/sparc.md, config/spu/constraints.md,
8295 config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
8298 2007-02-20 Alan Modra <amodra@bigpond.net.au>
8301 * varasm.c (use_blocks_for_decl_p): Return false for decls with
8304 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
8306 * doc/invoke.texi (-ftree-lrs): Remove.
8308 2007-02-19 Diego Novillo <dnovillo@redhat.com>
8310 * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
8313 2007-02-19 Lee Millward <lee.millward@codesourcery.com>
8315 * config/ia64/ia64.c (ia64_expand_builtin): Use the
8316 new CALL_EXPR_FN macro for retrieving the function
8317 declaration of the input expression.
8319 2007-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8321 * c.opt (Waddress): New.
8322 * common.opt (Walways-true): Delete.
8323 (Wstring-literal-comparison): Delete.
8324 * doc/invoke.texi (Warning Options): Delete -Walways-true and
8325 -Wstring-literal-comparison. Add -Waddress.
8327 (Walways-true): Delete.
8328 (Wstring-literal-comparison): Delete.
8329 * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
8330 consistently instead of -Walways-true in example.
8331 * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
8332 * c-typeck.c (parser_build_binary_op): Replace
8333 -Wstring-literal-comparison and -Walways-true with -Waddress.
8334 * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
8337 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
8339 * tree-cfg.c (dump_function_to_file): Be prepared for functions
8340 without DECL_STRUCT_FUNCTION initialized.
8342 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
8344 * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
8345 due to calls to functions taking pointers as parameters.
8347 2007-02-19 Richard Henderson <rth@redhat.com>
8350 * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
8353 2007-02-19 Andreas Krebbel <krebbel1@de.ibm.com>
8355 * config/s390/s390.c (s390_call_saved_register_used,
8356 s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
8357 accessed to the new scheme.
8359 2007-02-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8361 * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
8362 (cris_print_index, cris_print_operand, cris_print_operand_address)
8363 (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
8364 (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
8365 (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
8367 * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
8368 EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
8369 GO_IF_LEGITIMATE_ADDRESS): Ditto.
8370 * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
8371 (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
8372 (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
8373 (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
8374 (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
8375 (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
8376 (uminsi3, call, call_value): Ditto.
8377 (define_split: indir_to_reg_split, unnamed): Ditto.
8379 2007-02-19 Dorit Nuzman <dorit@il.ibm.com>
8381 PR tree-optimization/30975
8382 * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
8385 2007-02-18 Eric Christopher <echristo@gmail.com>
8387 * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
8388 Remove use of arglist.
8389 (mips_expand_builtin): Remove use of arglist, pass in expr.
8390 (mips_expand_builtin_direct): Rewrite handling for arglist removal.
8391 (mips_expand_builtin_movtf): Ditto.
8392 (mips_expand_builtin_compare): Ditto.
8394 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
8396 * tree-sra.c (sra_build_assignment): Replace assertion
8397 checking with a comment explaining why it can't be done.
8399 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
8402 * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
8403 during CALL_EXPR representation conversion.
8404 * tree-ssa-propagate.c (set_rhs): Likewise.
8406 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
8408 * tree-sra.c (sra_build_assignment): Disable assertion checking
8411 2007-02-18 Roger Sayle <roger@eyesopen.com>
8413 * function.c (gimplify_parameters): Call build_gimple_modify_stmt
8414 instead of calling build2 with a GIMPLE_MODIFY_STMT.
8415 * gimple-low.c (lower_function_body, lower_builtin_setjmp):
8417 * gimplify.c (build_stack_save_restore, gimplify_return_expr,
8418 gimplify_decl_expr, gimplify_self_mod_expr, gimplify_cond_expr,
8419 gimplify_init_ctor_eval_range, gimple_push_cleanup,
8420 gimplify_omp_for, gimplify_omp_atomic_pipeline,
8421 gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
8422 force_gimple_operand): Likewise.
8423 * ipa-cp.c (constant_val_insert): Likewise.
8424 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
8425 lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
8426 perfect_nestify): Likewise.
8427 * langhooks.c (lhd_omp_assignment): Likewise.
8428 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
8429 lower_copyprivate_clauses, lower_send_clauses,
8430 lower_send_shared_vars, expand_parallel_call,
8431 expand_omp_for_generic, expand_omp_for_static_nochunk,
8432 expand_omp_for_static_chunk, expand_omp_sections,
8433 lower_omp_single_copy, lower_omp_for_lastprivate,
8434 lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
8435 * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
8436 tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
8439 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
8441 * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
8442 config/sh/sh.md: Follow spelling conventions.
8444 * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
8445 config/frv/predicates.md: Follow spelling conventions.
8447 * config/m68k/linux-unwind.h: Fix a comment typo.
8448 * target.h: Follow spelling conventions.
8450 2007-02-18 Roger Sayle <roger@eyesopen.com>
8452 PR rtl-optimization/28173
8453 * simplify-rtx.c (simplify_binary_operation_1) <IOR>: Optimize
8454 (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
8455 Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
8456 Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
8457 <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
8459 2007-02-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8461 * builtins.c (fold_builtin_load_exponent): New.
8462 (fold_builtin_2): Use it.
8464 2007-02-18 Steven Bosscher <steven@gcc.gnu.org>
8466 PR rtl-optimization/30773
8467 * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
8468 if we fail to attach a REG_EQUIV note.
8470 2007-02-18 David Edelsohn <edelsohn@gnu.org>
8471 Roger Sayle <roger@eyesopen.com>
8473 * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
8475 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
8477 * calls.c (initialize_argument_information): Pass original EXP
8478 and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments. Move
8479 code to split complex arguments here, as part of initializing the
8481 (expand_call): Remove code that builds a list of arguments and
8482 inserts implicit arguments into it. Instead, just count how many
8483 implicit arguments there will be so we can determine the size of
8484 the ARGS array, and let initialize_argument_information do the work.
8485 (split_complex_values): Delete unused function.
8487 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
8489 * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
8491 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
8493 * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
8494 for arg pointer based indexed addressing.
8496 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
8498 * config/ia64/ia64.h, config/ia64/ia64.md,
8499 config/ia64/predicates.md, config/ia64/sysv4.h: Follow
8500 spelling conventions.
8502 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
8504 * config/m68k/m68k.c (split_di): New.
8505 * config/m68k/m68k-protos.h: Declare split_di.
8506 * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
8507 Improve predicate handling and split constant shifts.
8509 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
8511 * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
8512 parameter for register bitfield operations, general predicates
8515 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
8517 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
8518 * config/m68k/linux-unwind.h: New file.
8520 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
8522 * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
8523 config/i386/athlon.md, config/ia64/ia64.md,
8524 config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
8525 df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
8526 ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
8527 tree-ssa-loop-niter.c, tree-vect-analyze.c,
8528 tree-vect-transform.c: Fix comment typos.
8530 2007-02-17 Kazu Hirata <kazu@codesourcery.com>
8532 * sched-deps.c (find_insn_list): Remove.
8533 * sched-int.h: Remove the prototype for find_insn_list.
8535 2007-02-16 Geoffrey Keating <geoffk@apple.com>
8537 * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
8539 (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
8540 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
8541 darwin_rs6000_override_options.
8542 (C_COMMON_OVERRIDE_OPTIONS): Expect
8543 darwin_macosx_version_min to be non-NULL always.
8544 (TARGET_C99_FUNCTIONS): Likewise.
8545 (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
8546 (DARWIN_MINVERSION_SPEC): New.
8547 * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
8548 * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
8550 (DARWIN_MINVERSION_SPEC): New.
8551 * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
8553 * config/darwin-c.c (darwin_cpp_builtins): Expect
8554 darwin_macosx_version_min to be non-NULL always.
8556 * config/rs6000/rs6000.c: Clean up trailing whitespace.
8558 2007-02-16 Uros Bizjak <ubizjak@gmail.com>
8560 * config/i386/i386.h (x86_use_xchgb): New.
8561 (TARGET_USE_XCHGB): New macro.
8562 * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
8563 * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
8564 Split after reload into bswaphi for shifts of 8.
8565 (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
8566 (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
8567 or when optimizing for size.
8569 2007-02-16 Richard Guenther <rguenther@suse.de>
8570 Christian Bruel <christian.bruel@st.com>
8572 * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
8573 DECLs but prefer SSA_NAMEs over DECLs.
8575 2007-02-16 Richard Guenther <rguenther@suse.de>
8577 * tree-flow-inline.h (single_imm_use_p): Remove.
8578 (zero_imm_uses_p): Likewise.
8579 * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
8580 instead of single_imm_use_p.
8581 * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
8584 2007-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8587 * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
8588 nested double- and backquotes.
8590 2007-02-15 Roger Sayle <roger@eyesopen.com>
8593 * tree.c (expr_align): Handle MODIFY_EXPR. GIMPLE_MODIFY_STMT
8594 should be unreachable.
8595 (build2_stat): Allow construction of MODIFY_EXPR at any time.
8596 For the time being redirect GIMPLE_MODIFY_STMT to the new
8597 (renamed) build_gimple_modify_stmt_stat.
8598 (build2_gimple_stat): Rename to...
8599 (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
8600 Always build a GIMPLE_MODIFY_STMT node.
8601 * tree.h (build2_gimple, build2_gimple_stat): Delete.
8602 (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
8605 * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
8606 gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
8607 * tree-complex.c (set_component_ssa_name, expand_complex_move,
8608 expand_complex_div_wide): Likewise.
8609 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
8610 * tree-ssa-loop-im.c (schedule_sm): Likewise.
8611 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
8612 * tree-ssa-loop-manip.c (create_iv): Likewise.
8613 * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
8614 abs_replacement): Likewise.
8615 * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
8616 realify_fake_stores): Likewise.
8618 * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
8619 node rather than a GIMPLE_MODIFY_STMT node.
8620 (std_gimpify_va_arg_expr, expand_builtin_va_copy,
8621 fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
8623 (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
8624 * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
8627 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
8630 * fold-const.c (fold_comparison): Add back the
8631 folding of constant complex comparisions.
8633 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
8636 * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
8637 effects unknown to this function, return early.
8639 2007-02-15 Ian Lance Taylor <iant@google.com>
8641 * lower-subreg.c (move_eh_region_note): New static function.
8642 (resolve_simple_move): Call it.
8643 (decompose_multiword_subregs): Track blocks for which we resolve a
8644 simple move which is also a control flow insn. Pass them to
8645 find_many_sub_basic_blocks.
8646 (pass_lower_subreg): Add TODO_verify_flow.
8647 (pass_lower_subreg2): Likewise.
8649 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
8650 Brooks Moses <brooks.moses@codesourcery.com>
8651 Lee Millward <lee.millward@codesourcery.com>
8653 * tree.h (enum tree_code_class): Add tcc_vl_exp.
8654 (VL_EXP_CLASS_P): New.
8655 (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
8657 (TREE_OPERAND_CHECK_CODE): Likewise.
8658 (GIMPLE_STMT_OPERAND_CHECK): Likewise.
8659 (TREE_RTL_OPERAND_CHECK): Likewise.
8660 (tree_operand_check_failed): Make second parameter the whole tree
8661 instead of its code. Fixed callers.
8662 (VL_EXP_CHECK): New.
8663 (TREE_OPERAND_LENGTH): New.
8664 (VL_EXP_OPERAND_LENGTH): New.
8665 (CALL_EXPR_FN): New.
8666 (CALL_EXPR_STATIC_CHAIN): New.
8667 (CALL_EXPR_ARGS): New.
8668 (CALL_EXPR_ARG): New.
8669 (call_expr_nargs): New.
8670 (CALL_EXPR_ARGP): New.
8671 (build_nt_call_list): Declare.
8672 (build_vl_exp_stat): Declare.
8673 (build_vl_exp): New.
8674 (build_call_list): Declare.
8675 (build_call_nary): Declare.
8676 (build_call_valist): Declare.
8677 (build_call_array): Declare.
8678 (call_expr_arg): Declare.
8679 (call_expr_argp): Declare.
8680 (call_expr_arglist): Declare.
8681 (fold_build_call_list): Declare.
8682 (fold_build_call_list_initializer): Declare.
8683 (fold_call_expr): Declare to replace fold_builtin.
8684 (fold_builtin_fputs): Update to agree with modified definition.
8685 (fold_builtin_strcpy): Likewise.
8686 (fold_builtin_strncpy): Likewise.
8687 (fold_builtin_memory_chk): Likewise.
8688 (fold_builtin_stxcpy_chk): Likewise.
8689 (fold_builtin_strncpy_chk): Likewise.
8690 (fold_builtin_next_arg): Likewise.
8691 (fold_build_call_expr): Declare.
8692 (fold_builtin_call_list): Declare.
8693 (fold_builtin_call_valist): Declare.
8694 (build_call_expr): Declare.
8695 (validate_arglist): Update to agree with modified definition.
8696 (tree_operand_length): New.
8697 (call_expr_arg_iterator): New.
8698 (init_call_expr_arg_iterator): New.
8699 (next_call_expr_arg): New.
8700 (first_call_expr_arg): New.
8701 (more_call_expr_args_p): New.
8702 (FOR_EACH_CALL_EXPR_ARG): New.
8704 * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
8705 and tcc_gimple_stmt.
8706 (tree_code_size): Update documentation. Use sizeof (tree) rather
8707 than sizeof (char *).
8708 (tree_size): Likewise. Add case for tcc_vl_exp.
8709 (tree_node_structure): Add case for tcc_vl_exp.
8710 (contains_placeholder_p): Likewise.
8711 (substitute_in_expr): Likewise.
8712 (substitute_placeholder_in_expr): Likewise.
8713 (stabilize_reference_1): Likewise.
8714 (build3_stat): Remove logic for CALL_EXPRs. Replace with assertion
8715 to diagnose breakage of this interface for constructing CALL_EXPRs.
8716 (build_nt): Add similar assertion here.
8717 (build_nt_call_list): New.
8718 (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
8719 (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
8721 (get_callee_fndecl): Use new CALL_EXPR accessors.
8722 (tree_operand_check_failed): Change parameters to pass entire node
8723 instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
8724 (process_call_operands): New.
8725 (build_vl_exp_stat): New.
8726 (build_call_list): New.
8727 (build_call_nary): New.
8728 (build_call_valist): New.
8729 (build_call_array): New.
8730 (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
8731 (call_expr_arglist): New.
8733 * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
8734 tcc_vl_exp instead of a fixed-size tcc_expression.
8736 * doc/c-tree.texi (CALL_EXPR): Document new representation and
8737 accessors for CALL_EXPRs.
8738 (AGGR_INIT_EXPR): Likewise.
8740 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
8741 Brooks Moses <brooks.moses@codesourcery.com>
8742 Lee Millward <lee.millward@codesourcery.com>
8744 * builtins.c (c_strlen): Return NULL_TREE instead of 0.
8745 (expand_builtin_nonlocal_goto): Change parameter to be entire
8746 CALL_EXPR instead of an arglist. Use new CALL_EXPR accessors.
8747 (expand_builtin_prefetch): Likewise.
8748 (expand_builtin_classify_type): Likewise.
8749 (mathfn_built_in): Return NULL_TREE instead of 0.
8750 (expand_errno_check): Use new CALL_EXPR accessors.
8751 (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
8752 Return NULL_RTX instead of 0.
8753 (expand_builtin_mathfn_2): Likewise.
8754 (expand_builtin_mathfn_3): Likewise.
8755 (expand_builtin_interclass_mathfn): Likewise.
8756 (expand_builtin_sincos): Likewise.
8757 (expand_builtin_cexpi): Likewise.
8758 (expand_builtin_int_roundingfn): Likewise.
8759 (expand_builtin_int_roundingfn_2): Likewise.
8760 (expand_builtin_pow): Likewise.
8761 (expand_builtin_powi): Likewise.
8762 (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
8763 of arglist, fixing callers appropriately. Use new CALL_EXPR
8764 accessors and constructors. Return NULL_RTX instead of 0.
8765 (expand_builtin_strstr): Likewise.
8766 (expand_builtin_strchr): Likewise.
8767 (expand_builtin_strrchr): Likewise.
8768 (expand_builtin_strpbrk): Likewise.
8769 (expand_builtin_memcpy): Likewise.
8770 (expand_builtin_mempcpy): Likewise.
8771 (expand_builtin_mempcpy_args): New.
8772 (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
8773 (expand_builtin_memmove_args): New.
8774 (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
8775 (expand_movstr): Likewise.
8776 (expand_builtin_strcpy): Likewise.
8777 (expand_builtin_strcpy_args): New.
8778 (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
8779 (expand_builtin_strncpy): Likewise.
8780 (expand_builtin_memset): Likewise.
8781 (expand_builtin_memset_args): New.
8782 (expand_builtin_bzero): Similarly to expand_builtin_memset.
8783 (expand_builtin_memcmp): Likewise.
8784 (expand_builtin_strcmp): Likewise.
8785 (expand_builtin_strncmp): Likewise.
8786 (expand_builtin_strcat): Likewise.
8787 (expand_builtin_strncat): Likewise.
8788 (expand_builtin_strspn): Likewise.
8789 (expand_builtin_strcspn): Likewise.
8790 (expand_builtin_args_info): Likewise.
8791 (expand_builtin_va_start): Likewise.
8792 (gimplify_va_arg_expr): Likewise.
8793 (expand_builtin_va_end): Likewise.
8794 (expand_builtin_va_copy): Likewise.
8795 (expand_builtin_frame_address): Likewise.
8796 (expand_builtin_alloca): Likewise.
8797 (expand_builtin_bswap): Likewise.
8798 (expand_builtin_unop): Likewise.
8799 (expand_builtin_fputs): Likewise.
8800 (expand_builtin_expect): Likewise.
8801 (expand_builtin_fabs): Likewise.
8802 (expand_builtin_copysign): Likewise.
8803 (expand_builtin_printf): Likewise.
8804 (expand_builtin_fprintf): Likewise.
8805 (expand_builtin_sprintf): Likewise.
8806 (expand_builtin_init_trampoline): Likewise.
8807 (expand_builtin_signbit): Likewise.
8808 (expand_builtin_fork_or_exec): Likewise.
8809 (expand_builtin_sync_operation): Likewise.
8810 (expand_builtin_compare_and_swap): Likewise.
8811 (expand_builtin_lock_test_and_set): Likewise.
8812 (expand_builtin_lock_release): Likewise.
8813 (expand_builtin): Likewise.
8814 (builtin_mathfn_code): Likewise.
8816 (fold_builtin_constant_p): Pass call arguments individually instead
8817 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
8818 accessors and constructors. Return NULL_TREE instead of 0.
8819 (fold_builtin_expect): Likewise.
8820 (fold_builtin_classify_type): Likewise.
8821 (fold_builtin_strlen): Likewise.
8822 (fold_builtin_nan): Likewise.
8823 (integer_valued_real_p): Likewise.
8824 (fold_trunc_transparent_mathfn): Likewise.
8825 (fold_fixed_mathfn): Likewise.
8826 (fold_builtin_cabs): Likewise.
8827 (fold_builtin_sqrt): Likewise.
8828 (fold_builtin_cbrt): Likewise.
8829 (fold_builtin_cos): Likewise.
8830 (fold_builtin_cosh): Likewise.
8831 (fold_builtin_tan): Likewise.
8832 (fold_builtin_sincos): Likewise.
8833 (fold_builtin_cexp): Likewise.
8834 (fold_builtin_trunc): Likewise.
8835 (fold_builtin_floor): Likewise.
8836 (fold_builtin_ceil): Likewise.
8837 (fold_builtin_round): Likewise.
8838 (fold_builtin_int_roundingfn): Likewise.
8839 (fold_builtin_bitop): Likewise.
8840 (fold_builtin_bswap): Likewise.
8841 (fold_builtin_logarithm): Likewise.
8842 (fold_builtin_hypot): Likewise.
8843 (fold_builtin_pow): Likewise.
8844 (fold_builtin_powi): Likewise.
8845 (fold_builtin_exponent): Likewise.
8846 (fold_builtin_memset): Likewise.
8847 (fold_builtin_bzero): Likewise.
8848 (fold_builtin_memory_op): Likewise.
8849 (fold_builtin_bcopy): Deleted; call site changed to invoke
8850 fold_builtin_memory_op directly.
8851 (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
8852 (fold_builtin_strncpy): Likewise.
8853 (fold_builtin_memcmp): Likewise.
8854 (fold_builtin_strcmp): Likewise.
8855 (fold_builtin_strncmp): Likewise.
8856 (fold_builtin_signbit): Likewise.
8857 (fold_builtin_copysign): Likewise.
8858 (fold_builtin_isascii): Likewise.
8859 (fold_builtin_toascii): Likewise.
8860 (fold_builtin_isdigit): Likewise.
8861 (fold_builtin_fabs): Likewise.
8862 (fold_builtin_abs): Likewise.
8863 (fold_builtin_fmin_fmax): Likewise.
8864 (fold_builtin_carg): Likewise.
8865 (fold_builtin_classify): Likewise.
8866 (fold_builtin_unordered_cmp): Likewise.
8868 (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
8869 New functions split out from fold_builtin_1.
8870 (fold_builtin_n): New.
8871 (fold_builtin_varargs): New.
8872 (fold_builtin): Deleted. Most callers changed to use fold_call_expr
8874 (fold_call_expr): New.
8875 (build_function_call_expr): Rewrite to use new helper function.
8876 (fold_builtin_call_list): New.
8877 (build_call_expr): New.
8878 (fold_builtin_call_valist): New.
8879 (rewrite_call_expr): New.
8880 (validate_arg): New.
8881 (validate_arglist): Change parameter to be entire CALL_EXPR instead
8882 of an arglist. Change return type to bool. Use new CALL_EXPR
8885 (fold_builtin_strstr): Pass call arguments individually instead
8886 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
8887 accessors and constructors. Return NULL_TREE instead of 0.
8888 (fold_builtin_strchr): Likewise.
8889 (fold_builtin_strrchr): Likewise.
8890 (fold_builtin_strpbrk): Likewise.
8891 (fold_builtin_strcat): Likewise.
8892 (fold_builtin_strncat): Likewise.
8893 (fold_builtin_strspn): Likewise.
8894 (fold_builtin_strcspn): Likewise.
8895 (fold_builtin_fputs): Likewise.
8896 (fold_builtin_next_arg): Likewise.
8897 (fold_builtin_sprintf): Likewise.
8899 (expand_builtin_object_size): Use new CALL_EXPR accessors. Use
8900 NULL_RTX instead of 0.
8901 (expand_builtin_memory_chk): Likewise.
8902 (maybe_emit_chk_warning): Likewise.
8903 (maybe_emit_sprintf_chk_warning): Likewise.
8905 (fold_builtin_object_size): Pass call arguments individually instead
8906 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
8907 accessors and constructors. Return NULL_TREE instead of 0.
8908 (fold_builtin_memory_chk): Likewise.
8909 (fold_builtin_stxcpy_chk): Likewise.
8910 (fold_builtin_strncpy_chk): Likewise.
8911 (fold_builtin_strcat_chk): Likewise.
8912 (fold_builtin_strcat_chk): Likewise.
8913 (fold_builtin_strncat_chk): Likewise.
8914 (fold_builtin_sprintf_chk): Likewise.
8915 (fold_builtin_snprintf_chk): Likewise.
8916 (fold_builtin_printf): Likewise.
8917 (fold_builtin_vprintf): Likewise.
8919 * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
8921 (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
8922 (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
8923 (extract_muldiv_1): Add VL_EXP_CLASS_P case.
8924 (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
8925 (fold_unary): Likewise.
8926 (fold_binary): Likewise.
8927 (fold_ternary): Remove CALL_EXPR case, since they are no longer
8928 ternary expressions.
8929 (fold): Add logic for tcc_vl_exp.
8930 (fold_checksum_tree): Make it know about tcc_vl_exp. Use
8931 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
8932 (fold_build3_stat): Add assertion to flag broken interface for
8933 constructing CALL_EXPRs.
8934 (fold_build_call_list): New.
8935 (fold_build_call_list_initializer): New.
8936 (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
8938 (fold_strip_sign_ops): Likewise.
8940 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
8941 Brooks Moses <brooks.moses@codesourcery.com>
8942 Lee Millward <lee.millward@codesourcery.com>
8944 * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
8945 accessors and dump arguments explicitly.
8947 * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
8949 (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
8951 (print_call_name): Use new CALL_EXPR accessors.
8953 * print-tree.c (print_node): Add case tcc_vl_exp. Print
8954 CALL_EXPR arguments explicitly instead of as a list. Use
8955 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
8957 * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
8958 (vrp_visit_stmt): Likewise.
8960 * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Make it
8961 know about tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of
8963 (force_move_till_expr): Likewise.
8965 * targhooks.c (default_external_stack_protect_fail): Use
8966 build_call_expr instead of build_function_call_expr.
8967 (default_hidden_stack_protect_fail): Likewise.
8969 * tree-complex.c (expand_complex_libcall): Use build_call_expr to
8972 * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
8973 and walk arguments explicitly.
8975 * tree-ssa-loop-niter.c (simplify_replace_tree): Use
8976 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
8977 (expand_simple_operations): Likewise.
8978 (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
8980 * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
8981 of TREE_CODE_LENGTH.
8982 (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
8984 * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
8985 instead of TREE_CODE_LENGTH.
8987 * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
8988 (tree_ic_transform): Likewise.
8989 (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
8990 parameter instead of arglist. Fix callers.
8991 (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
8992 (tree_stringops_transform): Likewise.
8993 (tree_indirect_call_to_profile): Likewise.
8994 (tree_stringops_values_to_profile): Likewise.
8996 * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
8997 (eliminate_tail_call): Likewise.
8999 * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
9001 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
9002 Use TREE_OPERAND_LENGTH and generalize to handle any number of
9004 (instantiate_parameters_1): Can't handle tcc_vl_exp here.
9006 * omp-low.c (build_omp_barrier): Use build_call_expr.
9007 (lower_rec_input_clauses): Likewise.
9008 (lower_reduction_clauses): Likewise.
9009 (expand_parallel_call): Likewise.
9010 (maybe_catch_exception): Likewise.
9011 (expand_omp_for_generic): Likewise.
9012 (expand_omp_for_static_nochunk): Likewise.
9013 (expand_omp_sections): Likewise.
9014 (lower_omp_single_simple): Likewise.
9015 (lower_omp_single_copy): Likewise.
9016 (lower_omp_master): Likewise.
9017 (lower_omp_ordered): Likewise.
9018 (lower_omp_critical): Likewise.
9020 * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
9021 (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
9023 * tree-gimple.c (is_gimple_call_addr): Fix doc.
9024 (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
9025 TREE_CODE_LENGTH. Add tcc_vl_exp case.
9027 * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
9028 and generalize to handle any number of operands.
9029 (chrec_contains_undetermined): Likewise.
9030 (tree_contains_chrecs): Likewise.
9031 (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
9033 * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
9035 * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors. Use
9036 fold_call_expr instead of fold_builtin.
9037 (ccp_fold_builtin): Likewise. Update calls into builtins.c to
9038 match declarations there.
9039 (fold_stmt): Use new CALL_EXPR constructor and accessors. Doc
9042 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
9043 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
9045 * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
9046 (scan_function): Add case tcc_vl_exp for CALL_EXPR.
9048 * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
9051 * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
9052 (execute_cse_sincos): Use new CALL_EXPR accessors.
9054 * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
9056 * gimple-low.c (lower_function_body): Use build_call_expr.
9057 (lower_builtin_setjmp): Likewise.
9059 * expr.c (emit_block_move_via_libcall): Use build_call_expr.
9060 (set_storage_via_libcall): Likewise.
9061 (safe_from_p): Add tcc_vl_exp case. Use TREE_OPERAND_LENGTH
9062 instead of TREE_CODE_LENGTH.
9063 (expand_expr_real_1): Use new CALL_EXPR accessors.
9065 * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
9066 generalize to handle any number of operands.
9067 (TB_parent_eq): Likewise.
9069 * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
9070 (strip_builtin_expect): Likewise.
9072 * function.c (gimplify_parameters): Use build_call_expr.
9074 * tree-vectorizer.c (vect_is_simple_reduction): Use TREE_OPERAND_LENGTH
9075 instead of TREE_CODE_LENGTH.
9077 * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
9078 (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
9080 * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
9083 * gimplify.c (build_stack_save_restore): Use build_call_expr.
9084 (gimplify_decl_expr): Likewise.
9085 (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
9086 Use new CALL_EXPR iterators.
9087 (gimplify_modify_expr_to_memcpy): Use build_call_expr.
9088 (gimplify_modify_expr_to_memset): Likewise.
9089 (gimplify_variable_sized_compare): Likewise.
9090 (gimplify_omp_atomic_fetch_op): Likewise.
9091 (gimplify_omp_atomic_pipeline): Likewise.
9092 (gimplify_omp_atomic_mutex): Likewise.
9093 (gimplify_function_tree): Likewise.
9095 * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
9096 (call_expr_flags): Likewise.
9097 (expand_call): Likewise.
9099 * except.c (expand_builtin_eh_return_data_regno): Pass entire
9100 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
9103 * coverage.c (create_coverage): Use build_call_expr.
9105 * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
9106 (temp_call_expr_obstack): New.
9107 (pool_copy_list): Delete.
9108 (temp_copy_call_expr): New.
9109 (phi_translate): Add case tcc_vl_exp for CALL_EXPR. Use new
9110 CALL_EXPR accessors. Get rid of special goo for copying argument
9111 lists and use temp_copy_call_expr instead.
9112 (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR. Use new
9113 CALL_EXPR accessors.
9114 (create_expression_by_pieces): Likewise. Use build_call_array
9115 to construct the result instead of fold_build3.
9116 (create_value_expr_from): Add tcc_vl_exp. Delete special goo for
9117 dealing with argument lists.
9118 (init_pre): Remove references to expression_node_pool and
9119 list_node_pool. Init temp_call_expr_obstack instead.
9120 (fini_pre): Remove references to expression_node_pool and
9123 * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
9124 and walk arguments explicitly instead of as a list.
9126 * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
9127 (mx_register_decls): Likewise.
9128 (mudflap_register_call): Likewise.
9129 (mudflap_finish_file): Likewise.
9131 * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
9132 (ipa_callsite_compute_param): Likewise.
9134 * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
9135 accessors and constructor.
9137 * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
9138 accessors and constructor.
9139 (convert_tramp_reference): Likewise.
9140 (convert_call_expr): Likewise.
9141 (finalize_nesting_tree_1): Likewise.
9143 * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
9146 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
9148 * tree-inline.c (initialize_inlined_parameters): Pass entire
9149 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
9151 (estimate_num_insns_1): Use new CALL_EXPR accessors.
9152 (expand_call_inline): Tidy up call to initialize_inlined_parameters.
9154 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use
9155 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
9156 (vectorizable_reduction): Likewise.
9157 (vectorizable_call): Use new CALL_EXPR iterators.
9158 (vectorizable_conversion): Use build_call_expr.
9159 (vectorizable_operation): Use TREE_OPERAND_LENGTH.
9160 (vect_gen_widened_results_half): Use build_call_expr.
9161 (vect_setup_realignment): Likewise.
9162 (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
9164 * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
9165 (pass_through_call): Likewise.
9166 (compute_object_sizes): Likewise. Use fold_call_expr instead of
9169 * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
9170 (tree_gen_pow2_profiler): Likewise.
9171 (tree_gen_one_value_profiler): Likewise.
9172 (tree_gen_ic_func_profiler): Likewise.
9173 (tree_gen_average_profiler): Likewise.
9174 (tree_gen_ior_profiler): Likewise.
9176 * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
9177 (find_func_aliases): Use new CALL_EXPR accessors. Add case
9178 tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
9180 * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
9181 of TREE_CODE_LENGTH.
9183 * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
9184 of TREE_CODE_LENGTH.
9186 * convert.c (convert_to_real): Use new CALL_EXPR accessors and
9188 (convert_to_integer): Likewise.
9190 * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
9193 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
9194 Brooks Moses <brooks.moses@codesourcery.com>
9195 Lee Millward <lee.millward@codesourcery.com>
9197 * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
9199 * config/frv/frv.c (frv_expand_builtin): Likewise.
9200 * config/s390/s390.c (s390_expand_builtin): Likewise.
9202 * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
9203 (sparc_expand_builtin): Use new CALL_EXPR accessors.
9205 * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
9206 (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
9207 instead of arglist. Use new CALL_EXPR accessors on it. Fix callers.
9208 (ix86_expand_store_builtin): Likewise.
9209 (ix86_expand_unop_builtin): Likewise.
9210 (ix86_expand_unop1_builtin): Likewise.
9211 (ix86_expand_sse_compare): Likewise.
9212 (ix86_expand_sse_comi): Likewise.
9213 (ix86_expand_vec_init_builtin): Likewise.
9214 (ix86_expand_vec_ext_builtin): Likewise.
9215 (ix86_expand_vec_set_builtin): Likewise.
9216 (ix86_expand_builtin): Use new CALL_EXPR accessors.
9218 * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
9219 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
9221 * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
9222 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
9223 (iq2000_expand_builtin): Use new CALL_EXPR accessors.
9225 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
9227 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
9228 (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
9229 arglist. Use new CALL_EXPR accessors. Fix callers.
9230 (altivec_expand_abs_builtin): Likewise.
9231 (rs6000_expand_binop_builtin): Likewise.
9232 (altivec_expand_predicate_builtin): Likewise.
9233 (altivec_expand_lv_builtin): Likewise.
9234 (spe_expand_stv_builtin): Likewise.
9235 (altivec_expand_stv_builtin): Likewise.
9236 (rs6000_expand_ternop_builtin): Likewise.
9237 (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
9238 (altivec_expand_st_builtin): Likewise.
9239 (altivec_expand_dst_builtin): Likewise.
9240 (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
9241 arglist. Use new CALL_EXPR accessors. Fix callers.
9242 (altivec_expand_vec_set_builtin): Likewise.
9243 (altivec_expand_vec_ext_builtin): Likewise.
9244 (altivec_expand_builtin): Use new CALL_EXPR accessors.
9245 (spe_expand_builtin): Likewise.
9246 (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
9247 arglist. Use new CALL_EXPR accessors. Fix callers.
9248 (spe_expand_evsel_builtin): Likewise.
9249 (rs6000_expand_builtin): Use new CALL_EXPR accessors. VCFUX and
9250 FCFSX cases must construct whole new CALL_EXPR, not just arglist.
9252 * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
9253 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
9254 (arm_expand_unop_builtin): Likewise.
9255 (arm_expand_builtin): Use new CALL_EXPR accessors.
9257 * config/mips/mips.c (mips_expand_builtin): Use new CALL_EXPR
9260 * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire CALL_EXPR
9261 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
9262 (bfin_expand_unop_builtin): Likewise.
9263 (bfin_expand_builtin): Use new CALL_EXPR accessors.
9265 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
9266 Brooks Moses <brooks.moses@codesourcery.com>
9267 Lee Millward <lee.millward@codesourcery.com>
9269 * c-semantics.c (build_stmt): Add internal diagnostic check.
9271 * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
9272 accessors. Print arguments explicitly instead of as a list.
9274 * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
9276 * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
9277 (c_finish_omp_flish): Likewise.
9279 * c-common.c (verify_tree): Use new CALL_EXPR accessors. Traverse
9280 arguments explicitly instead of as a list. Use TREE_OPERAND_LENGTH
9281 instead of TREE_CODE_LENGTH.
9282 (check_function_arguments_recurse): Use new CALL_EXPR accessors.
9283 (c_warn_unused_result): Likewise.
9285 2007-02-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9288 * doc/invoke.texi (Warning Options): Remove
9289 -Werror-implicit-function-declaration.
9290 (Wimplicit-function-declaration): Update description.
9291 * opts.c (common_handle_option): Move handling of -Werror=* to...
9292 (enable_warning_as_error): ...here.
9293 * opts.h (enable_warning_as_error): Declare.
9294 * c-decl.c (implicit_decl_warning): Unless
9295 -Wno-implicit-function-declaration is given, emit a pedwarn if
9296 -std=c99 or emit a warning if -Wimplicit-function-declaration.
9297 * c.opt (Wimplicit-function-declaration): Replace
9298 mesg_implicit_function_declaration with
9299 warn_implicit_function_declaration.
9300 * c-opts.c (c_common_handle_option):
9301 -Werror-implicit-function-declaration is exactly equal as
9302 -Werror=implicit-function-declaration.
9303 (set_Wimplicit): Replace mesg_implicit_function_declaration with
9304 warn_implicit_function_declaration.
9305 (c_common_post_options): -Wimplict-function-declaration is enabled
9306 by default by -std=c99, otherwise is disabled by default.
9307 * c-objc-common.c (c_objc_common_init): Remove flawed logic.
9309 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
9311 * gimplify.c (gimplify_modify_expr): During gimplification, attach a
9312 DECL on the rhs to a DECL on the lhs for debug info purposes if the
9313 former is ignored but not the latter.
9315 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
9317 * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
9318 is made and the reference doesn't use the alias set of its type,
9319 do not create the temporary using that type.
9321 2007-02-15 Aldy Hernandez <aldyh@redhat.com>
9323 * jump.c: Remove prototypes for delete_computation and
9324 delete_prior_computation.
9326 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
9328 * jump.c (get_label_after): Delete.
9329 (get_label_before, delete_computation, delete_jump,
9330 delete_prior_computation, follow_jumps): Move...
9331 * reorg.c (delete_computation, delete_prior_computation): ... here...
9332 (get_label_before, delete_jump): ... making these static ...
9333 (follow_jumps): ... and simplifying this since it only runs after
9335 * rtl.h (get_label_after, get_label_before, delete_jump,
9336 follow_jumps): Delete prototypes.
9338 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
9340 * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
9342 2007-02-15 Nick Clifton <nickc@redhat.com>
9344 * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
9345 order to prevent it from being munged by the target.
9347 2007-02-15 Uros Bizjak <ubizjak@gmail.com>
9349 * config/i386/i386.md: Remove misleading comment.
9351 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
9353 * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
9354 reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
9357 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
9359 * tree-sra.c (instantiate_missing_elements): Canonicalize
9361 (sra_build_assignment): New.
9362 (generate_copy_inout, generate_element_copy,
9363 generate_element_zero, generate_one_element_init): Use it.
9365 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
9367 * tree-sra.c (instantiate_missing_elements): Canonicalize
9369 (sra_build_assignment): New.
9370 (generate_copy_inout, generate_element_copy,
9371 generate_element_zero, generate_one_element_init): Use it.
9373 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
9375 * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
9378 2007-02-14 Joseph Myers <joseph@codesourcery.com>
9380 * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
9381 types as aggregates not scalars.
9382 * function.c (assign_stack_temp_for_type): Likewise.
9384 2007-02-14 Roger Sayle <roger@eyesopen.com>
9385 Zdenek Dvorak <dvorakz@suse.cz>
9387 * tree-dump.c (dump_switch_p_1): Require exact match of the option
9390 2007-02-14 Zdenek Dvorak <dvorakz@suse.cz>
9392 * passes.c (next_pass_1): Clear the next field of the copied
9395 2007-02-14 Richard Henderson <rth@redhat.com>
9397 * tree-sra.c (early_sra): New.
9398 (decl_can_be_decomposed_p): Deny va_list if early_sra.
9399 (tree_sra_early, pass_sra_early): New.
9400 * tree-pass.h (pass_sra_early): Declare.
9401 * passes.c (init_optimization_passes): Use it.
9403 2007-02-14 Richard Guenther <rguenther@suse.de>
9405 * flags.h (issue_strict_overflow_warning): Convert to a macro.
9407 2007-02-14 Dorit Nuzman <dorit@il.ibm.com>
9409 PR tree-optimization/30771
9410 * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
9412 (vect_analyze_operations): Induction phis can now be marked as
9414 (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
9415 Update documentation accordingly.
9417 2007-02-14 Nick Clifton <nickc@redhat.com>
9419 * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
9420 most 3 arguments are supported.
9421 (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
9423 2007-02-13 Seongbae Park <seongbae.park@gmail.com>
9425 * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
9426 Ensure dst->current is valid.
9428 2007-02-13 Paul Brook <paul@codesourcery.com>
9430 * config.gcc: Add arm*-*-uclinux-*eabi.
9431 * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
9432 (SUBTARGET_EXTRA_LINK_SPEC): Define.
9433 (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
9434 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
9435 (LINK_SPEC): Define.
9437 * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
9439 * config/arm/uclinux-eabi.h: New file.
9440 * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
9441 * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
9444 2007-02-13 Ian Lance Taylor <iant@google.com>
9446 * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
9447 * flags.h (warn_strict_overflow): Declare.
9448 (enum warn_strict_overflow_code): Define.
9449 (issue_strict_overflow_warning): New static inline function.
9450 * opts.c (warn_strict_overflow): New variable.
9451 (common_handle_option): Handle OPT_Wstrict_overflow and
9452 OPT_Wstrict_overflow_.
9453 * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
9455 * fold-const.c: Include intl.h.
9456 (fold_deferring_overflow_warnings): New static variable.
9457 (fold_deferred_overflow_warning): New static variable.
9458 (fold_deferred_overflow_code): New static variable.
9459 (fold_defer_overflow_warnings): New function.
9460 (fold_undefer_overflow_warnings): New function.
9461 (fold_undefer_and_ignore_overflow_warnings): New function.
9462 (fold_deferring_overflow_warnings_p): New function.
9463 (fold_overflow_warning): New static function.
9464 (make_range): Add strict_overflow_p parameter. Change all
9466 (extract_muldiv, extract_muldiv_1): Likewise.
9467 (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
9468 tree_expr_nonnegative_p.
9469 (fold_negate_expr): Call fold_overflow_warning.
9470 (fold_range_test): Likewise.
9471 (fold_comparison): Likewise.
9472 (fold_binary): Likewise. Call tree_expr_nonnegative_warnv_p
9473 instead of tree_expr_nonnegative_p.
9474 (tree_expr_nonnegative_warnv_p): Rename from
9475 tree_expr_nonnegative_p, add strict_overflow_p parameter.
9476 (tree_expr_nonnegative_p): New function.
9477 (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
9478 strict_overflow_p parameter.
9479 (tree_expr_nonzero_p): New function.
9480 * passes.c (verify_interpass_invariants): New static function.
9481 (execute_one_pass): Call it.
9482 * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
9484 (number_of_iterations_exit, loop_niter_by_eval): Likewise.
9485 (estimate_numbers_of_iterations): Likewise.
9486 (scev_probably_wraps_p): Likewise.
9487 * tree-ssa-ccp.c: Include "toplev.h".
9488 (evaluate_stmt): Defer fold overflow warnings until we know we are
9490 (struct fold_stmt_r_data): Add stmt field.
9491 (fold_stmt_r): Defer fold overflow warnings until we know we
9493 (fold_stmt): Initialize stmt field of fold_stmt_r_data.
9494 (fold_stmt_inplace): Likewise.
9495 * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
9496 (cleanup_control_expr_graph): Defer fold overflow warnings until
9497 we know we are going to optimize.
9498 * tree-cfg.c (fold_cond_expr_cond): Likewise.
9499 * tree-ssa-threadedge.c (simplify_control_stmt_condition):
9501 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
9502 tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
9503 * tree-ssa-loop-manip.c (create_iv): Likewise.
9504 * c-typeck.c (build_conditional_expr): Likewise.
9505 (build_binary_op): Likewise.
9506 * tree-vrp.c (vrp_expr_computes_nonzero): Call
9507 tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
9508 (extract_range_from_unary_expr): Likewise.
9509 * simplify-rtx.c (simplify_const_relational_operation): Warn when
9510 assuming that signed overflow does not occur.
9511 * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
9512 * tree.h (tree_expr_nonnegative_warnv_p): Declare.
9513 (fold_defer_overflow_warnings): Declare.
9514 (fold_undefer_overflow_warnings): Declare.
9515 (fold_undefer_and_ignore_overflow_warnings): Declare.
9516 (fold_deferring_overflow_warnings_p): Declare.
9517 (tree_expr_nonzero_warnv_p): Declare.
9518 * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
9520 (Warning Options): Document -Wstrict-overflow.
9521 * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
9522 (tree-ssa-ccp.o): Likewise.
9523 (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
9524 (fold-const.o): Depend on intl.h.
9526 2007-02-13 Ian Lance Taylor <iant@google.com>
9529 * lower-subreg.c (resolve_simple_move): Decompose subregs in
9532 2007-02-13 Stuart Hastings <stuart@apple.com>
9534 * config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
9536 2007-02-13 Richard Henderson <rth@redhat.com>
9538 * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
9539 handled_component_p before looking for the indirect_ref.
9541 2007-02-13 Richard Henderson <rth@redhat.com>
9543 * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
9544 remove flags clobber.
9545 (bswapsi2): New expander, emit code for !TARGET_BSWAP.
9546 (bswaphi_lowpart): New.
9547 (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
9548 remove TARGET_BSWAP test. Delete expander of the same name.
9550 * optabs.c (widen_bswap, expand_doubleword_bswap): New.
9551 (expand_unop): Use them.
9553 2007-02-13 Uros Bizjak <ubizjak@gmail.com>
9555 * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
9556 *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
9557 *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
9558 *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
9559 *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
9560 *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
9561 *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
9562 assembler dialect choice from asm templates.
9564 2007-02-12 Richard Henderson <rth@redhat.com>
9566 * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
9567 (fixuns_trunc<SSEMODEF>si2): Use it.
9568 * config/i386/sse.md (vec_setv4sf_0): Export.
9569 * config/i386/i386.c (ix86_build_const_vector): Export.
9570 (ix86_split_convert_uns_si_sse): Rename from
9571 ix86_expand_convert_uns_si_sse and rewrite as a splitter.
9572 * config/i386/i386-protos.h: Update.
9574 2007-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9577 * c-typeck.c (c_finish_return): Improve warning message.
9579 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9581 * alias.c (find_symbolic_term): Delete unused function.
9583 2007-02-12 Uros Bizjak <ubizjak@gmail.com>
9585 * config/i386/i386.md (paritydi2, paritysi2): New expanders.
9586 (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
9587 (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
9589 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
9591 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
9592 * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
9593 the function, temporarily point the debug interface to the null one.
9595 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
9597 * dwarf2out.c (round_up_to_align): New static function.
9598 (field_byte_offset): Use it to round the offset.
9600 2007-02-12 Richard Henderson <rth@redhat.com>
9602 * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
9603 (inswl_const): Export.
9605 2007-02-12 Richard Henderson <rth@redhat.com>
9607 * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
9608 result mode of the libcall, convert back to outmode.
9610 2007-02-12 Roger Sayle <roger@eyesopen.com>
9612 * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
9613 (bswapdi2): New define_expand to implement 32-bit implementation.
9615 2007-02-12 Nick Clifton <nickc@redhat.com>
9617 * doc/invoke.texi (Overall Options): Document --help=.
9618 * gcc.c (target_help_flag): Rename to print_subprocess_flag.
9619 (cc1_options): Pass --help= on to cc1.
9620 (display_help): Add description of --help=.
9621 (process_command): Add code to handle --help=. Allow translated
9622 --help and --target-help switches to be passed on to compiler
9624 (main): Remove unused if statement.
9625 * opts.c (columns): Remove.
9626 (LEFT_COLUMN): Define.
9627 (wrap_help): Add columns argument.
9628 (print_filtered_help): Change parameters to be an include bitmask,
9629 an exclude bitmask, an any bitmask and the column width. Move the
9630 code to display the params list here. Add code to display the
9631 status of options rather than their descriptions if the quiet flag
9633 (print_specific_help): Change parameters to be an include bitmask,
9634 an exclude bitmask and an any bitmask. Move code to look up the
9635 column width here. Decide upon the title for an options listing.
9636 (common_handle_options): Add code to handle --help=. Adapt code
9637 for --help and --target-help to use the revised form of the
9638 print_specific_help function.
9639 (print_help): Delete.
9640 (print_param_help): Delete.
9641 (print_switch): Delete.
9642 * opts.h (cl_lang_count): Add prototype.
9643 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
9644 CL_MAX_OPTION_CLASS): New defines.
9645 * optc-gen.awk: Add construction of cl_lang_count.
9646 * c.opt: Add Warning attribute to warning options and Optimization
9647 attribute to optimization options.
9648 * common.opt: Likewise.
9650 Add -fhelp and -ftarget-help as aliases for the transformed --help
9651 and --target-help options.
9652 * opt-functions.awk: Add code to handle Warning and Optimization
9655 2007-02-12 Richard Henderson <rth@redhat.com>
9657 * config/alpha/constraints.md: New file.
9658 * config/alpha/alpha.c: Include tm-constrs.h.
9659 (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
9660 alpha_extra_constraint): Remove.
9661 (alpha_emit_conditional_branch): Use satisfies_constraint_*.
9662 * config/alpha/alpha-protos.h: Update.
9663 * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
9664 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
9665 (EXTRA_CONSTRAINT): Remove.
9666 * config/alpha/alpha.md: Include constraints.md.
9667 (adddi splitter): Use satisfies_constraint_*.
9668 * config/alpha/predicates.md (add_operand): Likewise.
9669 (sext_add_operand, addition_operation): Likewise.
9671 2007-02-12 Dorit Nuzman <dorit@il.ibm.com>
9673 PR tree-optimization/29145
9674 * tree-data-ref.c (base_addr_differ_p): Make us more conservative
9675 in our handling of restrict qualified pointers.
9677 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9680 * doc/invoke.texi (Wunused-value): Update description.
9681 (Wextra): Delete item.
9682 * opts.c (set_Wextra): Don't use the value of Wextra to set the
9683 value of Wunused-value.
9684 * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
9685 (c_finish_stmt_expr): Don't check extra_warnings.
9686 (emit_side_effect_warnings): The caller is responsible to check
9689 2007-02-11 Roger Sayle <roger@eyesopen.com>
9690 Matt Thomas <matt@3am-software.com>
9692 * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
9694 2007-02-11 Roger Sayle <roger@eyesopen.com>
9696 * simplify-rtx.c (simplify_relational_operation_1): Optimize
9697 comparisons of POPCOUNT against zero.
9698 (simplify_const_relational_operation): Likewise.
9700 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9702 * doc/invoke.texi (Wextra): Delete outdated paragraph.
9704 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9706 * dwarf2out.c (root_type): Delete unused function.
9708 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9710 * genattrtab.c (contained_in_p): Delete unused function.
9711 (write_expr_attr_cache): Likewise.
9713 2007-02-11 Jan Hubicka <jh@suse.cz>
9715 * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
9718 2007-02-11 Steven Bosscher <steven@gcc.gnu.org>
9720 * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
9721 to add the REG_EQ* note.
9722 * see.c (see_merge_one_use_extension): Likewise.
9723 * local-alloc.c (update_equiv_regs): Likewise. Also don't
9724 turn REG_EQUAL notes into REG_EQUIV notes if the target
9725 register may have more than one set.
9726 * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
9727 * gcse.c (try_replace_reg): Likewise.
9728 * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
9729 * calls.c (fixup_tail_calls): Likewise. Abort if there is
9730 more than one REG_EQUIV note.
9731 * reload1.c (gen_reload): Use set_unique_reg_note.
9733 2007-02-11 Uros Bizjak <ubizjak@gmail.com>
9735 * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
9736 (ix86_builtin_conversion): New function.
9738 2007-02-06 Mark Mitchell <mark@codesourcery.com>
9741 * tree.h (DECL_REPLACEABLE_P): New macro.
9742 * except.c (set_nothrow_function_flags): Likewise.
9744 2007-02-11 Tehila Meyzels <tehila@il.ibm.com>
9745 Ira Rosen <irar@il.ibm.com>
9746 Dorit Nuzman <dorit@il.ibm.com>
9748 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
9749 * targhooks.c (default_builtin_vectorized_conversion): New.
9750 * targhooks.h (default_builtin_vectorized_function): New declaration.
9751 * target.h (struct vectorize): Add builtin_conversion field.
9752 * tree-vectorizer.h (type_conversion_vec_info_type): New enum
9753 stmt_vec_info_type value.
9754 (vectorizable_conversion): New declaration.
9755 * tree-vect-analyze.c (vect_analyze_operations): Add
9756 vectorizable_conversion call.
9757 * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
9758 * tree-vect-transform.c (vectorizable_conversion): New function.
9759 (vect_transform_stmt): Add case for type_conversion_vec_info_type.
9760 * tree-vect-generic.c (expand_vector_operations_1): Consider correct
9762 * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
9763 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
9764 (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
9765 or ALTIVEC_BUILTIN_VCFSX.
9767 2007-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9770 * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
9771 CONST_DOUBLE and operand 0 is a hard register.
9772 (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
9773 memory. Fail if operand 1 is a non-zero CONST_INT and operand 0
9774 is a hard floating-point register.
9776 2007-02-10 Richard Henderson <rth@redhat.com>
9777 Jakub Jelinek <jakub@redhat.com>
9778 Alexandre Oliva <aoliva@redhat.com>
9780 * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
9781 * builtin-types.def (BT_WORD): Make unsigned.
9782 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
9783 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
9784 (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
9785 * c-decl.c (grokdeclarator): Don't error if !have_tls.
9786 * c-parser.c (c_parser_omp_threadprivate): Likewise.
9787 * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
9789 * expr.c (emutls_var_address): New.
9790 (expand_expr_real_1): Expand emulated tls.
9791 (expand_expr_addr_expr_1): Likewise.
9792 * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
9793 * output.h (emutls_finish): Declare.
9794 * toplev.c (compile_file): Call it.
9795 * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
9796 address before wrapping in CONST.
9797 * varasm.c (emutls_htab, emutls_object_type): New.
9798 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
9799 (get_emutls_object_name, get_emutls_object_type): New.
9800 (get_emutls_init_templ_addr, emutls_decl): New.
9801 (emutls_common_1, emutls_finish): New.
9802 (assemble_variable): When emulating tls, swap decls; generate
9803 constructor for the emutls objects.
9804 (do_assemble_alias): When emulating tls, swap decl and target name.
9805 (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
9807 * varpool.c (decide_is_variable_needed): Look at force_output.
9808 Recurse for emulated tls.
9809 (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
9810 with decide_is_variable_needed.
9811 * emutls.c: New file.
9812 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
9813 tls_object for real tls.
9815 2007-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
9817 PR rtl-optimization/29599
9818 * reload1.c (eliminate_regs_in_insn): Take the destination
9819 mode into account when computing the offset.
9821 2007-02-09 Stuart Hastings <stuart@apple.com>
9822 Richard Henderson <rth@redhat.com>
9824 * config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
9825 * config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
9826 * config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
9827 fixuns_truncdfhi2): New.
9828 (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
9829 (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
9830 (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
9831 (floatunssidf2): Allow nonimmediate source.
9832 * config/i386/sse.md (movdi_to_sse): New.
9833 (vec_concatv2di): Drop '*'.
9834 * config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
9835 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
9836 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
9838 * config/i386/i386.c (ix86_expand_convert_uns_si_sse,
9839 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
9840 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
9841 ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
9842 (ix86_build_signbit_mask): Fix decl of v, refactor to call
9843 ix86_build_const_vector.
9844 (x86_emit_floatuns): Rewrite.
9846 2007-02-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9848 * genautomata.c (longest_path_length): Delete unused function.
9849 (struct state): Delete unused longest_path_length.
9850 (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
9851 (get_free_state): Delete unused.
9853 2007-02-09 Jan Hubicka <jh@suse.cz>
9855 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
9856 * doc/invoke.texi (inline-unit-growth): Update default value.
9858 * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
9859 * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
9860 (rebuild_cgraph_edges): Likewise.
9861 * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
9862 (dump_cgraph_node): Dump frequencies.
9863 (cgraph_clone_edge): Add frequency scales.
9864 (cgraph_clone_node): Add freuqnecy.
9865 * cgraph.h (cgraph_edge): Add freuqnecy argument.
9866 (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
9867 (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
9868 * tree-pass.h (TODO_rebuild_frequencies): New constant.
9869 * cgraphunit.c (verify_cgraph_node): Verify frequencies.
9870 (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
9871 (save_inline_function_body): Likewise.
9872 * ipa-inline.c: inluce rtl.h
9873 (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
9874 (cgraph_edge_badness): Use frequencies.
9875 (cgraph_decide_recursive_inlining): Update clonning.
9876 (cgraph_decide_inlining_of_small_function): Dump frequency.
9877 * predict.c (estimate_bb_frequencies): Export.
9878 * predict.h (estimate_bb_frequencies): Declare.
9879 * tree-inline.c (copy_bb): Watch overflows.
9880 (expand_call_inline): Update call of cgraph_create_edge.
9881 (optimize_inline_calls): Use TODO flags to update frequnecies.
9882 * passes.h: Include predict.h
9883 (init_optimization_passes): Move profile ahead.
9884 (execute_function_todo): Handle TODO_rebuild_frequencies.
9886 2007-02-09 Roger Sayle <roger@eyesopen.com>
9888 * config/alpha/alpha.c (emit_insxl): Force the first operand of
9889 the insbl or inswl pattern into a register.
9891 2007-02-09 Roger Sayle <roger@eyesopen.com>
9893 * config/ia64/ia64.md (bswapdi2): New define_insn.
9895 2007-02-09 Richard Henderson <rth@redhat.com>
9897 * config/i386/constraints.md (Ym): New constraint.
9898 * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
9899 (movdi_1_rex64): Split sse and xmm general register moves from
9900 memory move alternatives. Use conditional register constraints.
9901 (movsf_1, movdf_integer): Likewise.
9902 (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
9903 (movdf_integer_rex64): New.
9904 (pushsf_rex64): Fix output constraints.
9905 * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
9906 (sse2_stored): Likewise.
9907 (sse2_storeq_rex64): New.
9908 * config/i386/i386.c (x86_inter_unit_moves): Enable for not
9909 amd and not generic.
9910 (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
9911 for optimize_size. Remove SF/DFmode hack.
9913 2007-02-09 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
9915 * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
9918 2007-02-09 Nathan Sidwell <nathan@codesourcery.com>
9919 Richard Sandiford <richard@codesourcery.com>
9921 * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
9922 (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
9923 (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
9924 m68k/t-mlib to tmake_file.
9925 (m68020-*-elf*, m68k-*-elf*): Likewise. Add t-m68kbare as well.
9926 (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
9927 (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
9928 Allow it to be cf or m68k. Set m68k_arch_family. If that
9929 variable is not empty, add t-$m68k_arch_family to tmake_file.
9930 Add t-mlibs to tmake_file.
9931 * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
9932 * config/m68k/t-cf: New file.
9933 * config/m68k/t-m68k: Likewise.
9934 * config/m68k/t-mlibs: Likewise.
9935 * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
9936 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
9937 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
9938 * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
9939 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
9941 * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
9942 (INSTALL_LIBGCC): Delete.
9943 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
9944 * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
9945 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
9946 (M68K_MLIB_CPU): Define.
9947 * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
9948 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
9949 (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
9951 2007-02-09 Zdenek Dvorak <dvorakz@suse.cz>
9952 Richard Guenther <rguenther@suse.de>
9955 * fold-const.c (fold_comparison): Handle obfuscated comparisons
9956 against INT_MIN/INT_MAX.
9957 * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
9958 file if a loop is removed.
9960 2007-02-09 Joseph Myers <joseph@codesourcery.com>
9962 * calls.c (store_one_arg): Pass correct alignment to
9963 emit_push_insn for non-BLKmode values.
9964 * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
9965 unaligned stack slot via a suitably aligned slot.
9967 2007-02-08 DJ Delorie <dj@redhat.com>
9969 * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
9971 (legal_subregs): Use unsigned char, make const.
9972 (m32c_illegal_subreg_p): Use ARRAY_SIZE. Delete unused variables.
9974 2007-02-08 Paul Brook <paul@codesourcery.com>
9976 * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
9977 special interworking needed.
9979 2007-02-08 Harsha Jagasia <harsha.jagasia@amd.com>
9981 * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
9982 conditional to __SSE2__.
9983 (Entries below should have been added to first ChangeLog
9984 entry for amdfam10 dated 2007-02-05)
9985 * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
9987 * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
9989 * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
9992 2007-02-08 DJ Delorie <dj@redhat.com>
9994 * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
9995 * config/m32c/m32c.c (legal_subregs): New.
9996 (m32c_illegal_subreg_p): New.
9997 * config/m32c/predicates.md (m32c_any_operand): Use it to reject
9998 unsupported subregs of hard regs.
10000 2007-02-08 Jan Hubicka <jh@suse.cz>
10002 * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
10003 the same one; always update histograms.
10005 2007-02-08 Diego Novillo <dnovillo@redhat.com>
10007 * passes.c (init_optimization_passes): Tidy comment.
10009 2007-02-08 Roger Sayle <roger@eyesopen.com>
10011 * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
10012 strip zero_extend, bswap and rotates from POCOUNT's argument.
10013 <PARITY>: Likewise, we can strip not, bswap, sign_extend,
10014 zero_extend and rotates from PARITY's argument.
10015 <BSWAP>: A byte-swap followed by a byte-swap is an identity.
10016 (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
10017 of an integer constant at compile-time.
10019 2007-02-08 Diego Novillo <dnovillo@redhat.com>
10022 * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
10024 * tree-ssa-alias.c (compute_is_aliased): Remove. Update all
10027 * tree-ssa-live.c (remove_unused_locals): Do not remove
10028 TREE_ADDRESSABLE variables.
10029 * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
10030 * tree-ssa-operands.c (add_virtual_operand): Remove argument
10031 FOR_CLOBBER. Update all users.
10032 If VAR has an associated alias set, add a virtual operand for
10033 it if no alias is found to conflict with the memory reference.
10035 2007-02-07 Jan Hubicka <jh@suse.cz>
10036 Robert Kidd <rkidd@crhc.uiuc.edu>
10038 * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
10040 2007-02-07 Ian Lance Taylor <iant@google.com>
10042 * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
10044 2007-02-07 Roger Sayle <roger@eyesopen.com>
10046 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
10047 parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
10048 tablejumpdi, movsi_to_cr_one): Remove constraints from
10049 define_expand's match_operands.
10051 2007-02-07 Roger Sayle <roger@eyesopen.com>
10053 * global.c (compute_regsets): Move declatation of "i" inside of
10054 #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
10056 2007-02-07 Jakub Jelinek <jakub@redhat.com>
10059 * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
10060 of INDIRECT_REF <RESULT_DECL>.
10062 * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
10064 2007-02-06 J"orn Rennecke <joern.rennecke@arc.com>
10065 Kaz Kojima <kkojima@gcc.gnu.org>
10068 * config/sh/sh.c (expand_cbranchdi4): Use scratch register
10070 (sh_initialize_trampoline): Add parentheses to avoid a warning.
10072 2007-02-06 Zdenek Dvorak <dvorakz@suse.cz>
10074 * doc/loop.texi: Document possibility not to perform disambiguation
10075 of loops with multiple latches.
10076 * cfgloopmanip.c (alp_enum_p): Removed.
10077 (add_loop): Handle subloops. Use get_loop_body_with_size.
10078 (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
10079 * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
10080 the new forwarder block.
10081 (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
10082 Handle the case latch is NULL.
10083 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg modifications
10084 when marking loop exits.
10085 * ifcvt.c (if_convert): Ditto. Mark loop exits even if cfg cannot
10087 * loop-init.c (loop_optimizer_init): Do not modify cfg. Call
10088 disambiguate_loops_with_multiple_latches.
10089 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
10090 before fix_loop_structure.
10091 * cfgloop.c: Include pointer-set.h and output.h.
10092 (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
10093 update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
10094 (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
10095 find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
10096 mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
10097 disambiguate_multiple_latches, get_loop_body_with_size,
10098 disambiguate_loops_with_multiple_latches): New functions.
10099 (flow_loop_dump): Dump multiple latch edges.
10100 (flow_loop_nodes_find): Handle loops with multiple latches.
10101 (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
10102 (glb_enum_p): Modified.
10103 (get_loop_body): Use get_loop_body_with_size.
10104 * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
10105 (AVOID_CFG_MODIFICATIONS): New constant.
10106 (disambiguate_loops_with_multiple_latches, add_loop,
10107 get_loop_body_with_size): Declare.
10108 * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
10110 2007-02-06 Seongbae Park <seongbae.park@gmail.com>
10112 PR inline-asm/28686
10113 * global.c (compute_regsets): New function.
10114 (global_alloc): Refactored ELIMINABLE_REGSET
10115 and NO_GLOBAL_ALLOC_REGS computation out.
10116 (rest_of_handle_global_alloc): Call compute_regsets()
10117 for non-optimizing case.
10119 2007-02-06 Richard Henderson <rth@redhat.com>
10121 * config/i386/constraints.md (Y2): Rename from Y.
10122 (Yi): New constraint.
10123 * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
10124 pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
10125 zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
10126 (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
10127 truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
10128 fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
10129 floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
10130 absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
10131 fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
10132 * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
10133 mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
10134 vec_extractv2si_1): Change Y constraints to Y2.
10135 * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
10136 vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
10137 Change Y constraints to Y2.
10138 (sse2_loadld): Change Y constraints to x.
10140 2007-02-06 Roger Sayle <roger@eyesopen.com>
10142 * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
10143 (parity<mode>2): New define_expand using rs6000_emit_parity.
10144 * config/rs6000/rs6000.c (rs6000_emit_popcount,
10145 rs6000_emit_parity): New functions.
10146 * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
10147 rs6000_emit_parity): Prototype here.
10149 2007-02-06 Ian Lance Taylor <iant@google.com>
10151 * lower-subreg.c (simple_move_operand): Reject CONST.
10152 (resolve_clobber): Call validate_change rather than directly
10153 assigning to XEXP (pat, 0).
10155 2006-02-06 Paolo Bonzini <bonzini@gnu.org>
10157 * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
10158 (tree-ssa-reassoc.o): Add pointer-set.h dependency.
10159 (tree-cfg.o): Remove hashtab.h dependency.
10161 * tree-ssa-loop-ivopts.c: Include pointer-set.h.
10162 (struct ivopts_data): Change niters to pointer_map_t.
10163 (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
10164 (niter_for_exit): Create pointer_map on demand. Change for
10166 (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
10167 (free_loop_data): Destroy data->niters if created and reset field.
10168 (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
10169 (tree_ssa_iv_optimize_loop): Check for presence of stale data.
10171 * tree-ssa-reassoc.c: Include pointer-set.h.
10172 (bb_rank): Change to long *.
10173 (operand_rank): Change to pointer_map_t.
10174 (find_operand_rank): Return long, -1 if not found. Declare as inline.
10175 (insert_operand_rank): Accept long.
10176 (operand_entry_hash, operand_entry_eq): Remove.
10177 (get_rank): Return long. Adjust for changes above.
10178 (init_reassoc): Change rank type to long. Adjust creation of bb_rank
10180 (fini_reassoc): Delete operand_rank with pointer_map_destroy.
10182 * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
10183 (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
10184 (insert_vi_for_tree): Rewrite for pointer_map API. Assert argument
10186 (lookup_vi_for_tree): Rewrite for pointer_map API. Return varinfo_t
10187 directly since it cannot be NULL.
10188 (get_vi_for_tree): Rewrite for pointer_map API.
10189 (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
10190 (init_alias_vars): Create vi_for_tree as pointer_map.
10191 (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
10193 * tree-cfg.c: Don't include hashtab.h.
10194 (edge_to_cases): Declare as pointer_map.
10195 (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
10197 (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
10198 (start_recording_case_labels): Create edge_to_cases as pointer_map.
10199 (end_recoding_case_labels): Cleanup edge_to_cases manually before
10201 (record_switch_edge): Delete.
10202 (get_cases_for_edge): Adjust for pointer_map API, inline
10203 record_switch_edge (rewritten for new API), remove goto.
10205 2006-02-06 Paolo Bonzini <bonzini@gnu.org>
10207 * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
10208 * tree-nested.c: Include pointer-set.h.
10209 (var_map_elt, var_map_eq, var_map_hash): Delete.
10210 (struct nesting_info): Remove GTY marker. Change the two htab_t's
10211 to pointer_map_t's.
10212 (nesting_info_bitmap_obstack): New.
10213 (lookup_field_for_decl): Adjust for pointer_map API.
10214 (lookup_tramp_for_decl): Adjust for pointer_map API.
10215 (get_nonlocal_debug_decl): Adjust for pointer_map API.
10216 (get_local_debug_decl): Adjust for pointer_map API.
10217 (convert_nl_goto_reference): Adjust for pointer_map API.
10218 (convert_nl_goto_receiver): Adjust for pointer_map API.
10219 (create_nesting_tree): Create outside GGC space. Create bitmap on
10220 the new obstack. Create field_map and var_map as pointer_maps.
10221 (free_nesting_tree): Adjust for changes to create_nesting_tree.
10223 (lower_nested_functions): Move root here, no need to NULL it.
10224 Initialize and release the obstack.
10226 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
10228 * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
10229 Remove prototypes and make them non-static.
10230 (struct tree_int_map): Remove.
10231 * tree.h (struct tree_int_map): Move here, turning TO into an
10233 (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
10235 * tree.h (TREE_COMPLEXITY): Remove.
10236 (struct tree_exp): Remove complexity field.
10237 * tree.c (build1_stat): Don't set it.
10239 2007-02-06 Dorit Nuzman <dorit@il.ibm.com>
10240 Victor Kaplansky <victork@il.ibm.com>
10242 * tree-vectorizer.c (vect_is_simple_use): Support induction.
10243 (vect_is_simple_reduction): Support reduction with induction as
10244 one of the operands.
10245 (vect_is_simple_iv_evolution): Fix formatting.
10246 * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
10247 formatting. Don't mark induction phis for vectorization.
10248 (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
10249 * tree-vect-transform.c (get_initial_def_for_induction): New function.
10250 (vect_get_vec_def_for_operand): Support induction.
10251 (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
10253 (vectorizable_reduction): Support reduction with induction as one of
10255 (vectorizable_type_demotion): Use def-type of stmt argument rather
10256 than dummy def-type.
10258 * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
10259 flag_tree_scev_cprop.
10260 * common.opt (tree-scev-cprop): New flag.
10262 * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
10263 call to vect_get_new_vect_var.
10265 2007-02-06 Ira Rosen <irar@il.ibm.com>
10267 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
10268 vectype is not NULL.
10269 (vect_pattern_recog_1): Likewise.
10271 2007-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10273 * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
10274 (fold_negate_expr): Likewise.
10276 2007-02-05 Alexandre Oliva <aoliva@redhat.com>
10279 * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
10280 even if cv-qualification is the same.
10282 2007-02-05 Geoffrey Keating <geoffk@apple.com>
10284 * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
10285 __enable_execute_stack on completion.
10287 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
10289 * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
10290 athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
10291 athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
10292 athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
10293 athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
10294 athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
10295 athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
10296 athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
10298 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
10300 * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
10301 cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
10302 swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
10303 fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
10304 x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
10305 floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
10306 floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
10307 mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
10308 umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
10309 umuldi3_highpart_rex64, umulsi3_highpart_insn,
10310 umulsi3_highpart_zext, smuldi3_highpart_rex64,
10311 smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
10312 x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
10313 sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
10314 sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
10315 sqrtextenddfxf2_i387): Added amdfam10_decode.
10317 * config/i386/athlon.md (athlon_idirect_amdfam10,
10318 athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
10319 athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
10320 athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
10321 athlon_ivector_store_amdfam10): New define_insn_reservation.
10322 (athlon_idirect_loadmov, athlon_idirect_movstore): Added
10325 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
10327 * config/i386/athlon.md (athlon_call_amdfam10,
10328 athlon_pop_amdfam10, athlon_lea_amdfam10): New
10329 define_insn_reservation.
10330 (athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
10331 athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
10332 athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
10334 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
10336 * config/i386/athlon.md (athlon_sseld_amdfam10,
10337 athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
10338 athlon_mmxssest_short_amdfam10): New define_insn_reservation.
10340 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
10342 * config/i386/athlon.md (athlon_sseins_amdfam10): New
10343 define_insn_reservation.
10344 * config/i386/i386.md (sseins): Added sseins to define_attr type
10345 and define_attr unit.
10346 * config/i386/sse.md: Set type attribute to sseins for insertq
10349 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
10351 * config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
10352 ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
10353 ssecomi_load_amdfam10, ssecomi_amdfam10,
10354 sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
10355 define_insn_reservation.
10356 (ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
10358 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
10360 * config/i386/athlon.md (cvtss2sd_load_amdfam10,
10361 cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
10362 cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
10363 cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
10364 cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
10365 cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New
10366 define_insn_reservation.
10368 * config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
10369 cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
10370 cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
10371 cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
10372 cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
10374 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
10376 * config/i386/athlon.md (athlon_ssedivvector_amdfam10,
10377 athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
10378 athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
10379 (athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
10380 athlon_ssemul_load_k8): Added amdfam10.
10382 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
10384 * config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
10385 (x86_sse_unaligned_move_optimal): New variable.
10387 * config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for
10389 (ix86_expand_vector_move_misalign): Add code to generate movupd/movups
10390 for unaligned vector SSE double/single precision loads for AMDFAM10.
10392 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
10394 * config/i386/i386.h (TARGET_AMDFAM10): New macro.
10395 (TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
10396 Define TARGET_CPU_DEFAULT_amdfam10.
10397 (TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
10398 (processor_type): Add PROCESSOR_AMDFAM10.
10400 * config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
10401 processor_type in config/i386/i386.h.
10402 Enable imul peepholes for TARGET_AMDFAM10.
10404 * config.gcc: Add support for --with-cpu option for amdfam10.
10406 * config/i386/i386.c (amdfam10_cost): New variable.
10407 (m_AMDFAM10): New macro.
10408 (m_ATHLON_K8_AMDFAM10): New macro.
10409 (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
10410 x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
10411 x86_promote_QImode, x86_integer_DFmode_moves,
10412 x86_partial_reg_dependency, x86_memory_mismatch_stall,
10413 x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
10414 x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
10415 x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
10416 x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
10417 Enable/disable for amdfam10.
10418 (override_options): Add amdfam10_cost to processor_target_table.
10419 Set up PROCESSOR_AMDFAM10 for amdfam10 entry in
10420 processor_alias_table.
10421 (ix86_issue_rate): Add PROCESSOR_AMDFAM10.
10422 (ix86_adjust_cost): Add code for amdfam10.
10424 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
10426 * config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
10427 instruction set feature flag. Add new (-mpopcnt) flag for popcnt
10428 instruction. Add new SSE4A (-msse4a) instruction set feature flag.
10429 * config/i386/i386.h: Add builtin definition for SSE4A.
10430 * config/i386/i386.md: Add support for ABM instructions
10431 (popcnt and lzcnt).
10432 * config/i386/sse.md: Add support for SSE4A instructions
10433 (movntss, movntsd, extrq, insertq).
10434 * config/i386/i386.c: Add support for ABM and SSE4A builtins.
10435 Add -march=amdfam10 flag.
10436 * config/i386/ammintrin.h: Add support for SSE4A intrinsics.
10437 * doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
10439 * doc/extend.texi: Add documentation for SSE4A builtins.
10441 2007-02-05 Bob Wilson <bob.wilson@acm.org>
10443 * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
10445 2007-02-05 Richard Guenther <rguenther@suse.de>
10447 * tree-vectorizer.h (vectorizable_function): Add argument type
10448 argument, change return type.
10449 * tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
10450 * tree-vect-transform.c (vectorizable_function): Handle extra
10451 argument, return vectorized function decl.
10452 (build_vectorized_function_call): Remove.
10453 (vectorizable_call): Handle calls with result and argument types
10454 differing. Handle loop vectorization factor correctly.
10455 * targhooks.c (default_builtin_vectorized_function): Adjust for
10457 * targhooks.h (default_builtin_vectorized_function): Likewise.
10458 * target.h (builtin_vectorized_function): Add argument type
10460 * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
10461 extra argument, allow vectorizing of lrintf.
10462 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
10463 documentation of target hook.
10465 2007-02-05 Hans-Peter Nilsson <hp@axis.com>
10468 * config/cris/cris.md ("*andsi_movu", "*andsi_clear", "*andhi_movu")
10469 ("*andhi_clear", andu (casesi+45)): For size-changed operand where
10470 memory is allowed, require !side_effects_p, not just !MEM_VOLATILE_P.
10472 2007-02-05 Roger Sayle <roger@eyesopen.com>
10474 * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
10475 BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
10476 <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
10477 * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
10478 before canonicalizing sincos to cexpi.
10479 (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.
10481 2007-02-05 Roger Sayle <roger@eyesopen.com>
10483 * config/alpha/alpha.c (alpha_add_builtins): New Helper function.
10484 Set TREE_READONLY and TREE_NOTHROW directly, not via attributes.
10485 (alpha_init_builtins): Use alpha_add_builtins to process tables.
10487 2007-02-05 Roger Sayle <roger@eyesopen.com>
10489 * mips-tfile.c (initialize_init_file): Correct endianness test.
10491 2007-02-05 Kazu Hirata <kazu@codesourcery.com>
10493 * config/m68k/m68k.md (pushdi-1, pushdi, movsi+1): Don't use
10494 the 'y' constraint.
10496 2007-02-05 Richard Sandiford <richard@codesourcery.com>
10498 * dwarf2out.c (dwarf2out_frame_debug_expr): Record the register
10499 saves in a PARALLEL before the register assignments.
10501 2007-02-05 Richard Sandiford <richard@codesourcery.com>
10503 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Do not require
10504 DWARF_FRAME_RETURN_COLUMN to be a general register.
10505 * dwarf2out.c (init_return_column_size): New function, split from...
10506 (expand_builtin_init_dwarf_reg_sizes): ...here. Allow both
10507 DWARF_FRAME_RETURN_COLUMN and DWARF_ALT_FRAME_RETURN_COLUMN
10508 to be nongeneral registers.
10509 * config/m68k/m68k.h (DWARF_FRAME_REGNUM): Only map FP and
10511 (DWARF_FRAME_REGISTERS, DWARF_FRAME_RETURN_COLUMN): Define.
10512 (DWARF_ALT_FRAME_RETURN_COLUMN): Define.
10514 2007-02-04 Zdenek Dvorak <dvorakz@suse.cz>
10516 * cfgcleanup.c (try_optimize_cfg): Avoid removing ENTRY_BLOCK_PTR.
10518 2007-02-04 Zdenek Dvorak <dvorakz@suse.cz>
10520 * cfgloopmanip.c (loop_delete_branch_edge): Removed.
10521 (remove_path): Use can_remove_branch_p and remove_branch instead
10522 of loop_delete_branch_edge.
10523 * tree-ssa-loop-manip.c (scale_dominated_blocks_in_loop): New function.
10524 (tree_transform_and_unroll_loop): Remove dead branches immediately.
10525 Update profile using scale_dominated_blocks_in_loop.
10526 * cfghooks.c (can_remove_branch_p, remove_branch): New functions.
10527 * cfghooks.h (struct cfg_hooks): Add can_remove_branch_p.
10528 (can_remove_branch_p, remove_branch): Declare.
10529 * tree-cfg.c (tree_can_remove_branch_p): New function.
10530 (tree_cfg_hooks): Add tree_can_remove_branch_p.
10531 * cfgrtl.c (rtl_can_remove_branch_p): New function.
10532 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add rtl_can_remove_branch_p.
10534 2007-02-05 Jan Hubicka <jh@suse.cz>
10536 PR middle-end/30696
10537 * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
10538 nodes in cgraph, don't remove offline copy of the function.
10540 2007-02-04 Jan Hubicka <jh@suse.cz>
10542 * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
10543 vectors might cause maybe_lookup_element_for_expr to be called
10544 on non-sra-candidate.
10546 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
10548 * config/bfin/bfin-modes.def, config/bfin/bfin.c,
10549 config/bfin/bfin.md, config/bfin/predicates.md: Follow
10550 spelling conventions.
10552 2007-02-04 Richard Guenther <rguenther@suse.de>
10554 PR middle-end/30636
10555 * fold-const.c (try_move_mult_to_index): Make sure to not
10556 overflow one dimension of a multi-dimensional array access.
10558 2007-02-04 Jan Hubicka <jh@suse.cz>
10560 * passes.c (init_optimization_passes): Reindent.
10562 2007-02-04 Jan Hubicka <jh@suse.cz>
10563 Eric Botcazou <ebotcazou@adacore.com>
10565 * tree-optimize.c (has_abnormal_outgoing_edge_p): Move to...
10566 (execute_fixup_cfg): Break out the abnormal goto code.
10567 * tree-inline.c (has_abnormal_outgoing_edge_p): ...here.
10568 (make_nonlocal_label_edges): Move here from execute_fixup_cfg.
10569 (optimize_inline_calls): Call make_nonlocal_label_edges.
10571 2007-02-04 Jan Hubicka <jh@suse.cz>
10573 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Return
10574 true when something was changed.
10575 (rename_ssa_copies): When something was changed, do
10576 TODO_remove_unused_locals.
10577 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
10578 add TODO_remove_unused_locals when instruction was removed.
10580 2007-02-04 Jan Hubicka <jh@suse.cz>
10582 * ipa-inline.c (try_inline): Improve debug output; work on already
10584 (cgraph_decide_inlining_incrementally): Indent; improve debug output;
10585 call try_inline for already inlined edges too when flattening;
10586 inline also functions that make callee growth but overall unit size
10589 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
10591 * config/m32c/bitops.md, config/m32c/jump.md,
10592 config/m32c/m32c.c, config/m32c/m32c.h, config/m32r/m32r.c,
10593 config/m32r/m32r.h, config/m32r/m32r.md,
10594 config/m32r/predicates.md, config/m68hc11/larith.asm,
10595 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
10596 config/m68k/m68k.h, config/mcore/mcore.md, config/mips/4k.md,
10597 config/mips/mips-protos.h, config/mips/mips.c,
10598 config/mips/mips.h, config/mips/mips.md, config/mips/mips16.S,
10599 config/mn10300/mn10300.h, config/mn10300/predicates.md,
10600 config/mt/mt.c, config/mt/mt.h, config/mt/mt.md: Follow
10601 spelling conventions.
10603 * config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
10604 Follow spelling conventions.
10606 2007-02-03 Douglas Gregor <doug.gregor@gmail.com>
10608 * c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
10609 warn about C++0x compatibility.
10611 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
10613 * config/h8300/h8300.c, config/h8300/h8300.h,
10614 config/h8300/h8300.md: Follow spelling conventions.
10616 2007-02-03 Uros Bizjak <ubizjak@gmail.com>
10618 PR middle-end/30667
10619 * combine.c (try_combine): Do not substitute source operand
10620 with constants wider than 2 * HOST_BITS_PER_WIDE_INT.
10622 2007-02-03 Jan Hubicka <jh@suse.cz>
10624 PR gcov-profile/30650
10625 * value-prof.c (stringop_block_profile): Fix handling of size counter;
10626 do not divide by zero for never executed counters.
10627 (tree_find_values_to_profile): Fix counters.
10628 * gcov-ui.h (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): Fix comments.
10630 2007-02-03 Ian Lance Taylor <iant@google.com>
10632 * lower-subreg.c (simple_move_operand): New static function,
10633 broken out of simple_move. Reject LABEL_REF, SYMBOL_REF, and HIGH
10635 (simple_move): Call simple_move_operand.
10636 (find_decomposable_subregs): Add special handling of MEMs.
10637 (can_decompose_p): Rename from cannot_decompose_p. Reverse
10638 meaning of return value. If we see a hard register, test whether
10639 it can store a word_mode value. Change all callers.
10641 2007-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10643 * pa.md (addvdi3, addvsi3, subvdi3, subvsi3, negvdi2, negvsi2): New
10644 ftrapv insns and expanders.
10645 (subdi3): Change define_expand operand 1 to arith11_operand, and
10646 operand 2 to reg_or_0_operand. Change constraints of 64-bit insn
10647 pattern to handle reg_or_0 operands. Revise 32-bit insn pattern to
10648 handle 11-bit constants and reg_or_0 operands in operands 1 and 2,
10651 PR middle-end/30174
10652 * varasm.c (notice_global_symbol): Treat global objects as weak when
10653 flag_shlib is true.
10655 2007-02-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10657 * emit-rtl.c (dconstpi): Delete.
10658 (dconstsqrt2): New.
10659 (init_emit_once): Delete dconstpi and init dconstsqrt2.
10660 * real.h (dconstpi): Delete.
10661 (dconstsqrt2): New.
10662 * builtins.c (fold_builtin_cabs): Use dconstsqrt2.
10663 (fold_builtin_hypot): Likewise.
10665 2007-02-03 Tom Tromey <tromey@redhat.com>
10668 * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
10669 -gcoff3, -gxcoff3, -gvms3 implies -dD.
10671 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
10673 * c-decl.c, config/avr/avr.c, config/avr/avr.h,
10674 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
10675 config/mn10300/mn10300.c, config/pdp11/pdp11.h,
10676 config/rs6000/cell.md, config/rs6000/darwin.h,
10677 config/sh/sh.md, config/sh/sh4-300.md, config/spu/spu.c,
10678 config/spu/spu.md, cselib.c, expr.c, haifa-sched.c, hwint.h,
10679 jump.c, reload.c, sched-deps.c, sched-int.h, tree-inline.c,
10680 tree-profile.c, tree-ssa-live.h, tree-vrp.c: Fix comment
10681 typos. Follow spelling conventions.
10682 * doc/invoke.texi: Follow spelling conventions.
10684 2007-02-03 Roger Sayle <roger@eyesopen.com>
10686 * simplify-rtx.c (simplify_relational_operation_1): Implement some
10687 canonicalization transformations that attempt to simplify integer
10688 constant comparisons to become comparisons against zero.
10690 2007-02-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10692 * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
10694 * fold-const.c (fold_binary): Fix comment typos. Fold complex
10695 (x,0)-(0,y) into (x,-y). Likewise (0,y)-(x,0) into (-x,y).
10697 2007-02-02 Mike Stump <mrs@apple.com>
10699 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Add.
10700 * config/rs6000/rs6000.c (DARWIN_GENERATE_ISLANDS): Add.
10701 (output_call): Use DARWIN_GENERATE_ISLANDS to decide when to
10702 generate a branch island.
10704 2007-02-02 Bob Wilson <bob.wilson@acm.org>
10706 * config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
10707 (xtensa_legitimate_address_p): New.
10708 (xtensa_legitimize_address): New.
10709 (xtensa_output_addr_const_extra): New.
10710 * config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
10712 (REG_OK_FOR_BASE_P): Use BASE_REG_P.
10713 (GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
10714 (LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
10715 (OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
10716 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
10717 (xtensa_legitimize_address): New.
10718 (xtensa_output_addr_const_extra): New.
10720 2007-02-02 Steve Ellcey <sje@cup.hp.com>
10722 * config/ia64/ia64.c (ia64_print_operand): Fix compare strings.
10724 2007-02-02 Ian Lance Taylor <iant@google.com>
10726 * expmed.c (expand_divmod): Add comment.
10728 2007-02-02 Kazu Hirata <kazu@codesourcery.com>
10730 * emit-rtl.c (renumber_insns): Remove.
10731 * flags.h: Remove the extern for flag_renumber_insns.
10732 * rtl.h: Remove the prototype for renumber_insns.
10733 * toplev.c (flag_renumber_insns): Remove.
10735 2007-02-02 Hui-May Chang <hm.chang@apple.com>
10737 Revert for x86 darwin:
10738 2005-06-19 Uros Bizjak <uros@kss-loka.si>
10740 * config/i386/i386.c (ix86_function_arg_regno_p): Put back the
10741 code before the following patch under TARGET_MACHO.
10742 (ix86_function_value_regno_p): Likewise.
10744 2007-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10746 * fold-const.c (negate_expr_p, fold_negate_expr): Handle
10749 2007-02-02 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
10752 * config/ia64/ia64.c (ia64_speculate_insn): Restrict to memory loads to
10753 general or fp registers. Add comments.
10754 * config/ia64/ia64.md (reg_pred_prefix): Add comment.
10756 2007-02-02 Paolo Bonzini <bonzini@gnu.org>
10758 * pointer-set.c (insert_aux): Only return insertion slot.
10759 (pointer_set_insert): Adjust.
10760 (pointer_set_traverse, struct pointer_map_t, pointer_map_create,
10761 pointer_map_destroy, pointer_map_insert, pointer_map_contains,
10762 pointer_map_traverse): New.
10763 * pointer-set.h (pointer_set_traverse, struct pointer_map_t,
10764 pointer_map_create, pointer_map_destroy, pointer_map_insert,
10765 pointer_map_contains, pointer_map_traverse): Declare.
10767 2007-02-02 Jakub Jelinek <jakub@redhat.com>
10769 PR middle-end/30473
10770 * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
10771 sprintf (str, "%s"). Do not optimize sprintf (str, "nopercent", p++).
10773 2007-02-02 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
10775 * sched-int.h (ds_to_dk, dk_to_ds): Declare functions.
10777 (struct _dep): New type.
10778 (dep_t): New typedef.
10779 (DEP_PRO, DEP_CON, DEP_KIND): New access macros.
10780 (DEP_STATUS): New access macro. The macro with the same name was
10781 renamed to DEP_LINK_STATUS.
10782 (dep_init): Declare function
10784 (struct _dep_link): New type.
10785 (dep_link_t): New typedef.
10786 (DEP_LINK_NODE, DEP_LINK_NEXT, DEP_LINK_PREV_NEXTP): New access macros.
10787 (DEP_LINK_DEP, DEP_LINK_PRO, DEP_LINK_CON, DEP_LINK_KIND): New macros.
10788 (DEP_LINK_STATUS): New macro.
10789 (debug_dep_links): New debug function.
10791 (struct _deps_list): New type.
10792 (deps_list_t): New typedef.
10793 (DEPS_LIST_FIRST): New access macro.
10794 (FOR_EACH_DEP_LINK): New cycle macro.
10795 (create_deps_list, free_deps_list, delete_deps_list): Declare
10797 (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
10798 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
10799 (copy_deps_list_change_con): Ditto.
10801 (move_dep_link): Declare function.
10803 (struct _dep_node): New type.
10804 (dep_node_t): New typedef.
10805 (DEP_NODE_BACK, DEP_NODE_DEP, DEP_NODE_FORW): New access macros.
10807 (struct haifa_insn_data.back_deps): New field to hold backward
10808 dependencies of the insn.
10809 (struct haifa_insn_data.depend): Rename to forw_deps. Change its type
10811 (struct haifa_insn_data.resolved_deps): Rename to resolved_back_deps.
10812 Change its type to deps_list_t.
10813 (INSN_BACK_DEPS): New access macro to use instead of LOG_LINKS.
10814 (INSN_DEPEND): Rename to INSN_FORW_DEPS.
10815 (RESOLVED_DEPS): Rename to INSN_RESOLVED_BACK_DEPS.
10817 (INSN_COST): Move to haifa-sched.c. Use insn_cost () instead.
10819 (DEP_STATUS): Rename to DEP_LINK_STATUS. Fix typo in the comment.
10821 (add_forw_dep, delete_back_forw_dep, insn_cost): Update declaration and
10823 (dep_cost): Declare.
10825 * sched-deps.c (CHECK): New macro to (en/dis)able sanity checks.
10826 (ds_to_dk, dk_to_ds): New functions.
10828 (init_dep_1): New static function.
10829 (init_dep): New function.
10830 (copy_dep): New static function.
10832 (dep_link_consistent_p, attach_dep_link, add_to_deps_list): New static
10834 (detach_dep_link): New static function.
10835 (move_dep_link): New function.
10837 (dep_links_consistent_p, dump_dep_links): New static functions.
10838 (debug_dep_links): New debugging function.
10840 (deps_obstack, dl_obstack, dn_obstack): New static variables.
10842 (alloc_deps_list, init_deps_list): New static functions.
10843 (create_deps_list): New function.
10844 (clear_deps_list): New static function.
10845 (free_deps_list, delete_deps_list, deps_list_empty_p): New functions.
10846 (deps_list_consistent_p, dump_deps_list): New static functions.
10847 (debug_deps_list): New function.
10848 (add_back_dep_to_deps_list, find_link_by_pro_in_deps_list): New
10850 (find_link_by_con_in_deps_list, copy_deps_list_change_con): Ditto.
10852 (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Update to
10853 use new scheduler dependencies lists.
10854 (add_back_dep, delete_all_dependences, fixup_sched_groups): Ditto.
10855 (sched_analyze): Ditto. Initialize dependencies lists.
10856 (add_forw_dep, compute_forward_dependences): Update to use new
10857 scheduler dependencies lists.
10859 (init_dependency_caches): Init deps_obstack.
10860 (free_dependency_caches): Free deps_obstack.
10862 (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Update to use
10863 new scheduler dependencies lists.
10864 (delete_forw_dep, add_or_update_back_forw_dep): Ditto.
10865 (add_back_forw_dep, delete_back_forw_dep): Ditto.
10867 * sched-rgn.c (set_spec_fed, find_conditional_protection, is_pfree):
10868 Update to use new scheduler dependencies lists.
10869 (is_conditionally_protected, is_prisky, add_branch_dependences): Ditto.
10870 (debug_dependencies): Ditto.
10871 (schedule_region): Update comments.
10873 * sched-ebb.c (earliest_block_with_similiar_load): Update to use new
10874 scheduler dependencies lists.
10875 (schedule_ebb): Update comments.
10877 * rtl.def (DEPS_LIST): Remove.
10879 * lists.c (unused_deps_list): Remove.
10880 (free_list): Update assertions.
10882 (alloc_DEPS_LIST, free_DEPS_LIST_list, free_DEPS_LIST_node): Remove.
10883 (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
10885 * rtl.h (free_DEPS_LIST_list, alloc_DEPS_LIST): Remove declarations.
10886 (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
10888 * haifa-sched.c (comments): Update.
10889 (insn_cost1): Remove. Inline the code into insn_cost ().
10890 (insn_cost): Update to use new scheduler dependencies lists. Move
10891 processing of the dependency cost to dep_cost ().
10892 (dep_cost): New function. Use it instead of insn_cost () when
10893 evaluating cost of the dependency. Use compatible interface to
10894 interact with the target.
10895 (priority): Update to use new scheduler dependencies lists.
10896 (rank_for_schedule): Ditto. Optimize heuristic that prefers the insn
10897 with greater number of insns that depend on the insn.
10898 (schedule_insn): Update to use new scheduler dependencies lists. Add
10899 code to free backward dependencies lists. Inline and optimize code
10900 from resolve_dep () - see PR28071.
10901 (ok_for_early_queue_removal): Update to use new scheduler dependencies
10902 lists. Update call to targetm.sched.is_costly_dependence hook.
10904 (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
10905 scheduler dependencies lists.
10907 (resolve_dep): Remove. Move the logic to schedule_insn ().
10908 (init_h_i_d): Initialize dependencies lists.
10910 (process_insn_depend_be_in_spec): Rename to
10911 process_insn_forw_deps_be_in_spec. Update to use new scheduler
10912 dependencies lists.
10913 (add_to_speculative_block, create_check_block_twin, fix_recovery_deps):
10914 Update to use new scheduler dependencies lists.
10915 (clear_priorities, calc_priorities, add_jump_dependencies): Ditto.
10917 * ddg.c (create_ddg_dependence, create_ddg_dep_no_link): Update to use
10918 new scheduler dependencies lists.
10919 (build_intra_loop_deps): Ditto.
10921 * target.h (struct _dep): Declare to use in
10922 gcc_target.sched.is_costly_dependence.
10923 (struct gcc_target.sched.adjust_cost): Fix typo.
10924 (struct gcc_target.sched.is_costly_dependence): Change signature to use
10925 single dep_t parameter instead of an equivalent triad.
10926 (struct gcc_target.sched.adjust_cost_2): Remove.
10928 * target-def.h (TARGET_SCHED_ADJUST_COST_2): Remove.
10930 * reg-notes.def (DEP_TRUE, DEP_OUTPUT, DEP_ANTI): Update comments.
10932 * doc/tm.texi (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Update
10934 (TARGET_SCHED_ADJUST_COST_2): Remove documentation.
10936 * doc/rtl.texi (LOG_LINKS): Remove part about instruction scheduler.
10937 (REG_DEP_TRUE): Document.
10939 * config/ia64/ia64.c (ia64_adjust_cost_2): Rename to ia64_adjust_cost.
10940 Change signature to correspond to the targetm.sched.adjust_cost hook.
10941 Update use in TARGET_SCHED_ADJUST_COST_2.
10942 (TARGET_SCHED_ADJUST_COST_2): Rename to TARGET_SCHED_ADJUST_COST.
10943 (ia64_dependencies_evaluation_hook, ia64_dfa_new_cycle): Update to use
10944 new scheduler dependencies lists.
10945 (ia64_gen_check): Ditto.
10947 * config/mips/mips.c (vr4130_swap_insns_p): Update to use new scheduler
10948 dependencies lists.
10950 * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Change
10951 signature to correspond to the targetm.sched.is_costly_dependence hook.
10952 (is_costly_group): Update to use new scheduler dependencies lists.
10954 * config/spu/spu.c (spu_sched_adjust_cost): Use insn_cost () function
10955 instead of INSN_COST () macro.
10957 2007-02-01 Ian Lance Taylor <iant@google.com>
10959 * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn.
10961 2007-02-01 Guy Martin <gmsoft@gentoo.org>
10963 * pa.md (tp_load): Correct mfctl instruction syntax.
10965 2007-02-01 Geoffrey Keating <geoffk@apple.com>
10967 * config/rs6000/rs6000.c (rs6000_stack_info): Correct
10968 altivec_padding_size calculation on AIX. Improve comment, add
10969 assert to verify that it's right.
10971 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Don't define for
10974 2007-2-01 Seongbae Park <seongbae.park@gmail.com>
10976 PR inline-asm/28686
10977 * global.c (global_alloc): Add mising initialization of
10980 2007-02-01 Roger Sayle <roger@eyesopen.com>
10982 * alias.c (init_alias_analysis): Correct whitespace.
10983 * bb-reorder.c (fix_edges_for_rarely_executed_code,
10984 partition_hot_cold_basic_blocks): Likewise.
10985 * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
10986 expand_builtin_sprintf, fold_builtin_carg, fold_builtin_sprintf,
10987 maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
10988 fold_builtin_snprintf_chk, fold_builtin_printf,
10989 fold_builtin_fprintf, do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_arg2,
10990 do_mpfr_arg3, do_mpfr_sincos): Likewise.
10991 * cfgcleanup.c (cleanup_cfg): Likewise.
10992 * cfgexpand.c (tree_expand_cfg): Likewise.
10993 * fold-const.c (fold_binary) <RDIV_EXPR>: Likewise.
10994 * function.c (get_next_funcdef_no): Likewise.
10995 * gengtype.c (main): Likewise.
10996 * genmodes.c (main): Likewise.
10997 * gcse.c (bypass_conditional_jumps, print_ldst_list): Likewise.
10998 * haifa-sched.c (schedule_block, extend_h_i_d): Likewise.
10999 * ifcvt.c (noce_emit_move_insn): Likewise.
11000 * modulo-sched.c (generate_prolog_epilog, sms_schedule_by_order):
11002 * stor-layout.c (get_best_mode): Likewise.
11003 * tree-ssa-loop-niter.c (get_val_for): Likewise.
11004 * tree-ssa-structalias.c (get_varinfo, get_varinfo_fc,
11005 scc_visit, do_ds_constraint, do_complex_constraint, label_visit,
11006 perform_var_substitution, solve_graph): Likewise.
11007 * tree-vrp.c (vrp_finalize): Likewise.
11009 2007-02-01 Ian Lance Taylor <iant@google.com>
11011 * lower-subreg.c (simplify_gen_subreg_concatn): If we ask for the
11012 high part of a paradoxical subreg, return a constant zero.
11014 2007-02-01 Zdenek Dvorak <dvorakz@suse.cz>
11016 * toplev.c (lang_dependent_init): Call init_set_costs.
11017 * loop-init.c (loop_optimizer_init): Do not call init_set_costs.
11019 2007-02-01 Richard Guenther <rguenther@suse.de>
11021 PR middle-end/30656
11022 * fold-const.c (fold_negate_expr): Allow negating a
11023 constant if overflow does not change.
11025 2007-02-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11027 * doc/c-tree.texi (Expression trees): Improve markup.
11028 * doc/tm.texi (Register Classes, Addressing Modes)
11029 (Floating Point): Fix spacing after abbreviations. Fix some
11032 2007-02-01 Ben Elliston <bje@au.ibm.com>
11034 * doc/invoke.texi: Replace "bugfix" with "bug fix" throughout.
11035 * doc/contrib.texi: Likewise.
11036 * doc/install.texi: Likewise.
11038 2007-01-31 Richard Henderson <rth@redhat.com>
11039 Ian Lance Taylor <iant@google.com>
11041 * lower-subreg.c: New file.
11042 * rtl.def (CONCATN): Define.
11043 * passes.c (init_optimization_passes): Add pass_lower_subreg and
11044 pass_lower_subreg2.
11045 * emit-rtl.c (update_reg_offset): New static function, broken out
11046 of gen_rtx_REG_offset.
11047 (gen_rtx_REG_offset): Call update_reg_offset.
11048 (gen_reg_rtx_offset): New function.
11049 * regclass.c: Revert patch of 2006-03-05, restoring
11051 (clear_reg_info_regno): New function.
11052 * dwarf2out.c (concatn_loc_descriptor): New static function.
11053 (loc_descriptor): Handle CONCATN.
11054 * common.opt (fsplit_wide_types): New option.
11055 * opts.c (decode_options): Set flag_split_wide_types when
11057 * timevar.def (TV_LOWER_SUBREG): Define.
11058 * rtl.h (gen_reg_rtx_offset): Declare.
11059 (reg_scan_update): Declare.
11060 * regs.h (clear_reg_info_regno): Declare.
11061 * tree-pass.h (pass_lower_subreg): Declare.
11062 (pass_lower_subreg2): Declare.
11063 * doc/invoke.texi (Option Summary): List -fno-split-wide-types.
11064 (Optimize Options): Add -fsplit-wide-types to -O1 list. Document
11065 -fsplit-wide-types.
11066 * doc/rtl.texi (Regs and Memory): Document concat and concatn.
11067 * Makefile.in (OBJS-common): Add lower-subreg.o.
11068 (lower-subreg.o): New target.
11070 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
11072 * config/sh/sh.h (HAVE_SECONDARY_RELOADS): Remove.
11074 2007-01-31 Anatoly Sokolov <aesok@post.ru>
11077 * config/avr/avr.c (DWARF2_ADDR_SIZE): Define.
11079 2007-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11081 PR middle-end/29335
11082 * builtins.c (fold_builtin_sqrt): Use MPFR for constant args.
11084 2007-01-31 Zdenek Dvorak <dvorakz@suse.cz>
11086 * cfgloop.h: Include vec-prim.h.
11087 (enum li_flags): Remove LI_ONLY_OLD.
11088 (loop_iterator): Changed.
11089 (fel_next, fel_init): Iterate over loop tree.
11090 (FOR_EACH_LOOP_BREAK): New macro.
11091 * loop-unswitch.c (unswitch_loops): Do not pass LI_ONLY_OLD to
11093 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Ditto.
11094 * modulo-sched.c (sms_schedule): Ditto.
11095 * tree-vectorizer.c (vectorize_loops): Ditto.
11096 * doc/loop.texi: Update information on loop numbering and behavior of
11097 FOR_EACH_LOOP wrto new loops.
11098 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
11099 add_to_evolution_1): Test nestedness of loops instead of comparing
11101 * tree-chrec.c (chrec_fold_plus_poly_poly,
11102 chrec_fold_multiply_poly_poly, chrec_evaluate,
11103 hide_evolution_in_other_loops_than_loop, chrec_component_in_loop_num,
11104 reset_evolution_in_loop): Ditto.
11105 * Makefile.in (CFGLOOP_H): Add vecprim.h dependency.
11107 2007-01-31 Dirk Mueller <dmueller@suse.de>
11109 * c-common.c (warn_about_parentheses): Separate warning about
11110 un-parenthized sequence of comparison operators from the one
11111 which is supposed to warn about x <= y <= z.
11113 2007-01-31 Uros Bizjak <ubizjak@gmail.com>
11115 * optabs.h (enum optab_index): Add new OTI_isinf.
11116 (isinf_optab): Define corresponding macro.
11117 * optabs.c (init_optabs): Initialize isinf_optab.
11118 * genopinit.c (optabs): Implement isinf_optab using isinf?f2
11120 * builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
11121 (expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
11123 (expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
11124 expand_builtin_interclass_mathfn.
11125 * reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
11126 * config/i386/i386.md (UNSPEC_FXAM): New constant.
11127 (fxam<mode>2_i387): New insn pattern.
11128 (isinf<mode>2) New expander to implement isinf, isinff and isinfl
11129 built-in functions as x87 inline asm.
11131 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
11133 * config/arm/unwind-arm.h (_sleb128_t, _uleb128_t): New.
11135 2007-01-30 Eric Christopher <echristo@apple.com>
11137 * config.gcc: Add geode.
11139 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
11141 * cgraphunit.c, config/arm/arm.c, config/m68k/m68k.c,
11142 ipa-inline.c, tree-profile.c, tree-ssa-live.c,
11143 tree-ssa-math-opts.c, tree-ssanames.c, tree-vect-analyze.c,
11144 value-prof.c: Fix comment typos.
11146 2007-01-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11149 * doc/invoke.texi (Wpointer-arith): Document warning.
11151 2007-01-30 Janis Johnson <janis187@us.ibm.com>
11153 * doc/extend.texi (Decimal Floating Types): Remove decfloat.h from
11154 the list of discrepancies from the draft TR.
11156 2007-01-30 Dirk Mueller <dmueller@suse.de>
11159 * doc/invoke.texi (-Wreturn-type): Update description to
11160 match new behavior.
11162 2007-01-30 Richard Sandiford <richard@codesourcery.com>
11164 * cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
11166 2007-01-30 Uros Bizjak <ubizjak@gmail.com>
11168 * builtins.c (expand_builtin_int_interclass_roundingfn): New function
11169 to handle optabs that operate on floating point input argument and
11170 output to integer output.
11171 (expand_builtin_mathfn) [BUILT_IN_ILOGB]: Move from here ...
11172 (expand_builtin_interclass_mathfn) [BUILT_IN_ILOGB]: ... to here.
11173 (expand_builtin): Expand BUILT_IN_ILOGB{,F,L} using
11174 expand_builtin_interclass_mathfn ().
11175 * config/i386/i386.md (fxtractxf3_i387): Rename from *fxtractxf3_i387.
11176 (ilogbsi2): Remove.
11177 (ilogbxf2, ilogb<mode>2): New expanders to implement ilogb, ilogbf and
11178 ilogbl built-in functions as x87 intrinsics.
11180 2007-01-30 Richard Guenther <rguenther@suse.de>
11182 PR middle-end/27657
11183 * dwarf2out.c (reference_to_unused): Query varpool if the
11184 variable was output.
11186 2007-01-30 Richard Guenther <rguenther@suse.de>
11188 PR middle-end/30313
11189 * passes.c (execute_one_pass): Reset in_gimple_form to not
11190 confuse non-unit-at-a-time mode.
11192 2007-01-29 Roger Sayle <roger@eyesopen.com>
11193 Richard Guenther <rguenther@suse.de>
11195 * fold-const.c (round_up): Make HIGH an unsigned HOST_WIDE_INT to
11196 avoid undefined behaviour on overflow. Use force_fit_type_double
11197 to construct the constant with the specified TREE_OVERFLOW.
11199 2007-01-29 Janis Johnson <janis187@us.ibm.com>
11201 * config/dfp-bit.c: Add parameterized support for fp exceptions.
11202 * config/dfp-bit.h: Ditto.
11204 2007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11206 * c-decl.c (pop_scope): Replace warnings with call to
11207 warn_for_unused_label.
11208 * c-common.h (warn_for_unused_label): Declare.
11209 * c-common.c (warn_for_unused_label): Define.
11211 2007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11213 * tree-optimize.c (update_inlined_to_pointers): Delete unused
11216 2007-01-29 Janis Johnson <janis187@us.ibm.com>
11218 * Makefile.in (USER_H): Remove decfloat.h.
11219 * ginclude/decfloat.h: Delete, moving contents to ...
11220 * ginclude/float.h: Add support for decimal floating point,
11221 guarded by __STDC_WANT_DEC_FP__.
11223 2007-01-29 Mike Stump <mrs@apple.com>
11225 * doc/gccint.texi (Top): Rename Loop Representation to Loop
11226 Analysis and Representation to resolve case insensitive conflict.
11227 * doc/loop.texi (Loop Analysis and Representation): Likewise.
11229 2007-01-28 Daniel Berlin <dberlin@dberlin.org>
11231 * tree.h (struct tree_memory_tag): Add aliases member.
11232 (MTAG_ALIASES): New macro.
11233 * tree-ssa-alias.c (alias_bitmap_obstack): New variable.
11234 (add_may_alias): Remove pointer-set. Update for may_aliases being
11236 (mark_aliases_call_clobbered): Update for may_aliases being a
11238 (compute_tag_properties): Ditto.
11239 (create_partition_for): Ditto.
11240 (compute_memory_partitions): Ditto.
11241 (dump_may_aliases_for): Ditto.
11242 (is_aliased_with): Ditto.
11243 (add_may_alias_for_new_tag): Ditto.
11244 (rewrite_alias_set_for): Rewrite for may_aliases being a bitmap.
11245 (compute_is_aliased): New function.
11246 (compute_may_aliases): Call compute_is_aliased).
11247 (init_alias_info): Initialize alias_bitmap_obstack.
11248 (union_alias_set_into): New function.
11249 (compute_flow_sensitive_aliasing): Use union_aliases_into.
11250 (have_common_aliases_p): Rewrite to take two bitmaps and use
11252 (compute_flow_insensitive_aliasing): Stop using pointer-sets.
11253 Update for bitmaps.
11254 (finalize_ref_all_pointers): Update for add_may_alias changes.
11255 (new_type_alias): Ditto.
11256 * tree-flow-inline.h (may_aliases): Return a bitmap.
11257 * tree-dfa.c (dump_variable): Check for MTAG_P'ness.
11258 * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
11259 may_aliases being a bitmap.
11260 * tree-flow.h (struct var_ann_d): Remove may_aliases member.
11261 may_aliases now returns a bitmap.
11262 * tree-ssa-structalias.c (merge_smts_into): Update for may_aliases
11264 * tree-ssa-operands.c (add_virtual_operand): Update for
11265 may_aliases being a bitmap.
11267 2007-01-29 Daniel Berlin <dberlin@dberlin.org>
11269 PR tree-optimization/30630
11270 * tree-ssa-structalias.c (do_complex_constraint): Mark correct
11271 variable as changed.
11273 2007-01-29 Simon Martin <simartin@users.sourceforge.net>
11276 * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
11277 expanded only once even if an error occurs.
11279 2007-01-29 Ben Elliston <bje@au.ibm.com>
11281 * gcov-io.h (__gcov_indirect_call_profiler): Declare.
11282 (__gcov_average_profiler): Likewise.
11283 (__gcov_ior_profiler): Likewise.
11284 (__gcov_merge_ior): Likewise.
11286 2007-01-28 Jan Hubicka <jh@suse.cz>
11288 * builtins.c (expand_builtin_memset): Fix typo in my last patch.
11289 * value-prof.c (stringop_block_profile): Likewise.
11291 2007-01-28 Jan Hubicka <jh@suse.cz>
11293 * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall): Add
11294 variant handling histograms; add wrapper.
11295 (clear_storage_via_libcall): Export.
11296 (emit_block_move_hints): Break out from ...; add histograms.
11297 (emit_block_move): ... this one.
11298 (clear_storage_hints): Break out from ...; add histograms.
11299 (clear_storage): ... this one.
11300 (set_storage_via_memset): Handle histogram.
11301 * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
11302 (clear_storage_hints, clear_storage_via_libcall): Declare.
11303 (set_storage_via_setmem): Update prototype.
11304 * doc/md.texi (movmem, setmem): Document new arguments.
11306 * value-prof.c (dump_histogram_value, tree_find_values_to_profile): Add
11308 (stringop_block_profile): New global function.
11309 (tree_stringops_values_to_profile): Profile block size and alignment.
11310 * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
11312 (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
11313 (stringop_block_profile): Declare.
11314 * builtins.c: Include value-prof.h.
11315 (expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
11316 * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
11317 (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
11318 (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
11319 * profile.c (instrument_values): Add new counters.
11320 * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
11322 * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
11323 (tree_init_edge_profiler): Build new profilers.
11324 (tree_gen_average_profiler, tree_gen_ior_profiler): New.
11325 (pass_tree_profile): Add dump.
11326 (tree_profile_hooks): Update.
11327 * Makefile.in (LIBGCOV): Add new constants.
11328 * libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
11329 __gcov_ior_profiler): New.
11330 * i386.md (movmem/setmem expanders): Add new optional arguments.
11332 2007-01-28 David Edelsohn <edelsohn@gnu.org>
11334 * doc/md.texi (Standard Pattern Names): Document blockage pattern.
11336 2007-01-28 Zdenek Dvorak <dvorakz@suse.cz>
11338 * tree-ssa-loop-unswitch.c: Include tree-inline.h.
11339 (tree_unswitch_single_loop): Pass eni_size_weights to
11340 tree_num_loop_insns.
11341 * tree-ssa-loop-manip.c: Include tree-inline.h.
11342 (can_unroll_loop_p): Pass eni_size_weights to
11343 tree_num_loop_insns.
11344 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
11345 Pass eni_size_weights to estimate_num_insns.
11346 * tree.h (init_inline_once): Export.
11347 * toplev.c (backend_init): Call init_inline_once.
11348 * cgraphunit.c (cgraph_process_new_functions,
11349 cgraph_analyze_function): Pass eni_inlining_weights to
11350 estimate_num_insns.
11351 * ipa-inline.c (compute_inline_parameters): Ditto.
11352 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
11353 to estimate_num_insns.
11354 (try_unroll_loop_completely): Pass eni_size_weights to
11355 tree_num_loop_insns.
11356 * tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
11357 ot estimate_num_insns.
11358 * tree-ssa-loop-prefetch.c: Include tree-inline.h.
11359 (loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
11360 * tree-inline.c (eni_inlining_weights, eni_size_weights,
11361 eni_time_weights): New variables.
11362 (init_inline_once): Initialize them.
11363 (struct eni_data): Mew.
11364 (estimate_num_insns_1, estimate_num_insns): Use weights.
11365 * tree-inline.h (struct eni_weights_d): New.
11366 (eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
11367 (estimate_num_insns): Declaration changed.
11368 * cfgloop.h (tree_num_loop_insns): Declaration changed.
11369 * Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
11370 tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
11372 2007-01-28 Zdenek Dvorak <dvorakz@suse.cz>
11374 * tree-data-ref.c (conflict_fn): Assert that the number of affine
11375 relations in the conflict function is valid.
11377 2007-01-27 Ian Lance Taylor <iant@google.com>
11379 * common.opt: Add fstrict-overflow.
11380 * opts.c (decode_options): Set flag_strict_overflow if -O2.
11381 * flags.h (TYPE_OVERFLOW_WRAPS): Define.
11382 (TYPE_OVERFLOW_UNDEFINED): Define.
11383 (TYPE_OVERFLOW_TRAPS): Define. This replaces TYPE_TRAP_SIGNED.
11385 * tree.h (TYPE_TRAP_SIGNED): Don't define.
11386 * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
11387 (fold_negate_expr): Likewise.
11388 (make_range): Likewise.
11389 (extract_muldiv_1): Likewise.
11390 (maybe_canonicalize_comparison): Likewise.
11391 (fold_comparison): Likewise.
11392 (fold_binary): Likewise.
11393 (tree_expr_nonnegative_p): Likewise.
11394 (tree_expr_nonzero_p): Likewise.
11395 * tree-vrp.c (compare_values): Likewise.
11396 (extract_range_from_binary_expr): Likewise.
11397 (extract_range_from_unary_expr): Likewise.
11398 * tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
11400 (nowrap_type_p): Likewise.
11401 * tree-scalar-evolution.c (simple_iv): Likewise.
11402 * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
11403 (build_range_check): Likewise.
11404 (extract_muldiv_1): Likewise.
11405 (fold_comparison): Likewise.
11406 * tree-vrp.c (vrp_int_const_binop): Likewise.
11407 (extract_range_from_unary_expr): Likewise.
11408 * convert.c (convert_to_integer): Likewise.
11409 * fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
11410 (fold_comparison): Likewise.
11411 (fold_binary): Likewise.
11412 * optabs.c (optab_for_tree_code): Likewise.
11413 * tree-vectorizer.c (vect_is_simple_reduction): Likewise.
11414 * simplify-rtx.c (simplify_const_relational_operation): Check
11415 flag_strict_overflow and flag_trapv.
11416 (simplify_const_relational_operation): Likewise.
11417 * doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
11418 (Optimize Options): Add -fstrict-overflow to -O2 list. Document
11421 2007-01-27 Roger Sayle <roger@eyesopen.com>
11423 * tree.c (tree_fold_gcd): Delete.
11424 * tree.h (tree_fold_gcd): Remove prototype.
11425 * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
11426 test whether one constant integer is a multiple of another. Instead
11427 call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
11428 * fold-const.c (multiple_of_p): We've determined both TOP and
11429 BOTTOM are integer constants so we can call int_const_binop directly
11430 instead of the more generic const_binop.
11432 2007-01-27 Roger Sayle <roger@eyesopen.com>
11434 * fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
11435 1*X check that the constant hasn't overflowed, to preserve the
11437 (round_up): Provide an efficient implementation when rouding-up an
11438 INTEGER_CST to a power-of-two.
11440 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11442 * doc/sourcebuild.texi: Add comma for clarity.
11443 * doc/extend.texi: Fix some typos.
11444 * doc/passes.texi: Likewise.
11445 * doc/cppinternals.texi: Likewise.
11446 * doc/c-tree.texi: Likewise.
11447 * doc/tree-ssa.texi: Likewise.
11448 * doc/install.texi: Likewise.
11450 2007-01-27 Jan Hubicka <jh@suse.cz>
11452 * tree-sra.c (sra_walk_function): Don't rely on aliases being build.
11453 (pass_sra): Do not require alias information.
11454 * passes.c (init_optimization_passes): Add SRA
11456 2007-01-27 Steven Bosscher <steven@gcc.gnu.org>
11458 * tracer.c (rest_of_handle_tracer): We already cleaned
11459 up the CFG in tracer() so don't do it here again.
11460 * cfgcleanup.c (rest_of_handle_jump2): Don't repeat
11461 cleanup_cfg here, either. And don't call renumber_insns.
11463 * cfgrtl.c (rtl_verify_flow_info_1): Don't verify that BB_END
11464 and BB_HEAD are in the insn stream here. Instead make sure
11465 that BB_INSN is valid on all insns. Also, do check here that
11466 there are no pending branch predictions...
11467 (rtl_verify_flow_info): ...instead of doing it here. Checks
11468 for BB_END and BB_HEAD moved from rtl_verify_flow_info_1 to
11471 2007-01-26 Roger Sayle <roger@eyesopen.com>
11473 * config/i386/i386.c (ix86_swap_binary_operands_p): New helper
11474 function to simplify/factorize operand order canonicalization.
11475 (ix86_fixup_binary_operands): Reorganize using the above function.
11476 (ix86_binary_operator_ok): Likewise.
11478 2007-01-27 Jakub Jelinek <jakub@redhat.com>
11480 * genattrtab.c (struct attr_value_list, insn_code_values): Move to
11481 file scope from optimize_attrs.
11482 (simplify_test_exp): If insn_code_values is not NULL, use it to speed
11484 (optimize_attrs): Clear insn_code_values after freeing it.
11486 2007-01-26 Zdenek Dvorak <dvorakz@suse.cz>
11488 * tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
11489 a parts.base assignment.
11491 2007-01-26 Zdenek Dvorak <dvorakz@suse.cz>
11493 * tree-data-ref.c (dump_subscript): Use dump_conflict_function.
11494 (compute_subscript_distance, initialize_data_dependence_relation,
11495 finalize_ddr_dependent, analyze_ziv_subscript,
11496 analyze_siv_subscript_cst_affine,
11497 compute_overlap_steps_for_affine_univar,
11498 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
11499 analyze_siv_subscript, analyze_miv_subscript,
11500 analyze_overlapping_iterations, subscript_dependence_tester_1,
11501 compute_self_dependence, free_dependence_relation): Work
11502 with affine_fn instead of chrecs.
11503 (dump_affine_function, dump_conflict_function, affine_function_equal_p,
11504 common_affine_function, affine_function_base,
11505 affine_function_constant_p, affine_fn_op, affine_fn_plus,
11506 affine_fn_minus, affine_fn_free, conflict_fn_not_known,
11507 conflict_fn_no_dependence, free_conflict_function, free_subscripts,
11508 conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
11509 (all_chrecs_equal_p): Removed.
11510 * tree-data-ref.h (affine_fn, conflict_function): New types.
11511 (struct subscript): Change type of conflicting_iterations_in_a
11512 and conflicting_iterations_in_b.
11514 2007-01-26 Steve Ellcey <sje@cup.hp.com>
11517 * config/pa/pa.h (TARGET_HPUX_11): New.
11518 * config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
11519 * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
11521 2007-01-26 Daniel Berlin <dberlin@dberlin.org>
11522 Richard Guenther <rguenther@suse.de>
11524 * tree-ssa-structalias.c (solve_graph): Handle case
11525 we merged the variable to another.
11527 2007-01-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11529 * builtins.c (fold_builtin_1): Treat ccos and ccosh as 'even'
11532 * fold-const.c (negate_mathfn_p): Treat casin, casinh, catan,
11533 catanh, cproj, csin, csinh, ctan and ctanh as 'odd' functions.
11535 2007-01-25 DJ Delorie <dj@redhat.com>
11537 * config/m32c/m32c.c (m32c_cannot_change_mode_class): We don't
11538 allow changes to modes which don't fit in those registers.
11540 * reload1.c (choose_reload_regs): Check for invalid subregs before
11541 computing their locations, not after.
11543 2007-01-25 Geoffrey Keating <geoffk@apple.com>
11546 * config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
11547 save Altivec registers in an eh_return function.
11548 (compute_vrsave_mask): Likewise.
11549 (rs6000_stack_info): Correct AIX/Darwin stack alignment computation
11550 for saving Altivec registers.
11551 (rs6000_emit_prologue): Don't allocate stack twice in
11552 eh_return function. Correct expected value of altivec_save_offset
11553 when using save_world. Describe save of R0 to stack when using
11554 save_world. Describe stack pointer adjustment when using
11555 save_world. Remove duplicated eh_return parameter register saving.
11556 Update sp_offset variable after save_world.
11557 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
11559 (LIB2FUNCS_EXTRA): Add darwin-world.asm.
11560 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
11563 2007-01-25 Steve Ellcey <sje@cup.hp.com>
11565 * config.gcc (ia64*-*-hpux*): Make posix threads the default.
11567 2007-01-25 Steve Ellcey <sje@cup.hp.com>
11570 * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines.
11571 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
11573 2007-01-25 Richard Guenther <rguenther@suse.de>
11575 * doc/invoke.texi (-Wcoverage-mismatch): Document.
11576 * common.opt (-Wcoverage-mismatch): New warning option.
11577 * coverage.c (get_coverage_counts): Ignore coverage mismatch
11578 if -Wcoverage-mismatch is given.
11580 2007-01-25 Razya Ladelsky <razya@il.ibm.com>
11582 * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
11583 (ipcp_driver): Change to static definition.
11584 Add dumping of the ifunctions.
11585 (constant_val_insert): Remove unused parameter. Support for SSA.
11586 (ipcp_propagate_const): Support for SSA.
11587 (ipcp_profile_bb_print): Print only analyzed nodes.
11588 (ipcp_replace_map_create): Remove support for Fortran constant
11590 * ipa-prop.c (ipa_method_modify_stmt,
11591 ipa_callsite_compute_param): Support for SSA.
11592 * ipa-prop.h (ipcp_driver): Remove declaration.
11593 (IS_VALID_TREE_MAP_INDEX): Add define.
11595 2007-01-24 Geoffrey Keating <geoffk@apple.com>
11597 * unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
11599 2007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11601 PR middle-end/30447
11602 * builtins.c (fold_builtin_cabs): Use MPFR to evaluate a
11603 constant argument to cabs and do it without checking for
11604 -funsafe-math-optimizations.
11606 2007-01-24 Douglas Gregor <dgregor@osl.iu.edu>
11608 * c-common.h (RID_FIRST_CXX0X): New.
11609 (RID_LAST_CXX0X): New.
11610 * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
11612 * c.opt (Wc++0x-compat): New.
11613 * doc/invoke.texi (-Wc++0x-compat): Document.
11615 2007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11617 * builtins.c (fold_builtin_carg): New.
11618 (fold_builtin_1): Use it.
11620 2007-01-24 Jan Hubicka <jh@suse.cz>
11622 * ipa-inline.c (cgraph_decide_inlining): Initialize initial_insns.
11624 * ipa-inline.c (initial_insns, max_insns): Delete.
11625 (compute_max_insns): New function.
11626 (cgraph_decide_inlining_of_small_function): Use it; take minimal amount
11627 of insns as base for code growth.
11628 (cgraph_decide_inlining): Make initial_insns local; do not compute
11630 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 60.
11631 * doc/invoke.texi (inline-unit-growth): Update docs.
11633 2007-01-24 Jakub Jelinek <jakub@redhat.com>
11635 * config/i386/i386.h (x86_cmpxchg16b): Remove const.
11636 (TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
11637 * config/i386/i386.c (x86_cmpxchg16b): Remove const.
11638 (override_options): Add PTA_CX16 flag. Set x86_cmpxchg16b
11639 for CPUs that have PTA_CX16 set.
11641 PR middle-end/27416
11642 * gimplify.c (omp_check_private): New function.
11643 (gimplify_scan_omp_clauses): Use it for
11644 firstprivate/lastprivate/reduction.
11646 PR middle-end/30494
11647 * gimplify.c (omp_add_variable): Don't call omp_notice_variable
11648 on TYPE_SIZE_UNIT for GOVD_LOCAL VLAs.
11650 PR middle-end/30421
11651 * omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
11652 If lower_lastprivate_clauses emits some statements, append them
11653 to dlist rather than body_p and to body_p append an initializer.
11654 (lower_omp_for): Adjust caller.
11656 2007-01-24 Steve Ellcey <sje@cup.hp.com>
11658 * target.h (globalize_decl_name): New.
11659 * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
11660 * output.h (default_globalize_decl_name): New.
11661 * varasm.c (asm_output_bss): Use globalize_decl_name instead of
11663 (globalize_decl): Ditto.
11664 (default_globalize_decl_name): New.
11665 * config/ia64/ia64.c (ia64_globalize_decl_name): New.
11666 (ia64_handle_version_id_attribute): New.
11667 (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
11668 (ia64_asm_output_external): Use globalize_decl_name instead
11669 of globalize_label.
11670 * doc/extend.texi (version_id): New pragma.
11671 * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook.
11673 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
11675 * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with
11676 _uleb128_t and _Unwind_SWord with _sleb128_t.
11677 * unwind-dw2.c (extract_cie_info, execute_stack_op, execute_cfa_program,
11678 uw_frame_state_for, uw_update_context_1): Likewise.
11679 * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise.
11680 * unwind-pe.h (read_uleb128, read_sleb128,
11681 read_encoded_value_with_base): Likewise.
11682 * unwind-generic.h: Define _sleb128_t and _uleb128_t types.
11684 2007-01-24 Richard Guenther <rguenther@suse.de>
11686 * builtins.c (expand_builtin_cexpi): Get the fndecl
11687 for cexp in the correct way.
11689 2007-01-24 Jan Hubicka <jh@suse.cz>
11691 * tree-ssa-dce.c (eliminate_unnecesary_stmts): Remove dead LHS of calls.
11693 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
11695 * c-cppbuiltin.c (builtin_define_type_sizeof): New function.
11696 (c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
11697 __SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
11698 __SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
11699 __SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
11700 __SIZEOF_PTRDIFF_T__.
11701 * doc/cpp.texi: Documentation for the new builtin macros added.
11703 2007-01-24 Uros Bizjak <ubizjak@gmail.com>
11705 * config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
11706 log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
11707 instead of operands[2] to avoid access past the end of array.
11709 2007-01-24 Richard Sandiford <richard@codesourcery.com>
11711 * reload1.c (emit_reload_insns): Pass the reload register
11712 for a non-spill output reload through forget_old_reloads_1.
11714 2007-01-23 Joseph Myers <joseph@codesourcery.com>
11716 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
11717 _SOFT_DOUBLE if doubles use software floating-point.
11718 * config/rs6000/libgcc-ppc-glibc.ver: Export additional long
11719 double functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
11720 * config/rs6000/darwin-ldouble.c: Also compile functions for
11721 hard-float without FPRs. Use fmsub function for all __NO_FPRS__
11722 cases. Compile extra functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
11723 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove
11724 commented-out long double override.
11725 (CPP_LONGDOUBLE_DEFAULT_SPEC): Likewise.
11726 * config/rs6000/eabispe.h: Likewise.
11727 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
11728 long double for non-SPE.
11729 (rs6000_handle_option): Likewise.
11730 (invalid_e500_subreg): Disallow more subregs involding DImode,
11731 DFmode, TImode or TFmode.
11732 (rs6000_legitimate_offset_address_p): Check TFmode offsets for
11734 (legitimate_lo_sum_address_p): Also check for TFmode for E500
11736 (rs6000_legitimize_address): Also handle TFmode for E500 double.
11737 (rs6000_legitimize_reload_address): Also handle TFmode for E500
11739 (rs6000_legitimate_address): Also check for TFmode for E500
11741 (rs6000_emit_move): Use DFmode subregs of TFmode for E500 double.
11742 (spe_build_register_parallel): Handle TFmode and TCmode.
11743 (rs6000_spe_function_arg): Handle TFmode and TCmode for E500
11745 (function_arg): Handle TFmode and TCmode for E500 double.
11746 (rs6000_init_libfuncs): Initialize extra libfuncs for soft double
11748 (print_operand): Handle TFmode and TImode for %y.
11749 (rs6000_generate_compare): Handle TFmode comparisons for E500
11751 (spe_func_has_64bit_regs_p): Check for TFmode for E500 double.
11752 (rs6000_function_value): Handle TFmode and TCmode for E500 double.
11753 (rs6000_libcall_value): Handle TFmode and TCmode for E500 double.
11754 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Check for
11755 TFmode for E500 double.
11756 * config/rs6000/rs6000.md (FP): Allow TF for E500 double.
11757 (floatsidf2): Enable for E500 double.
11758 (movtf_softfloat): Use rs6000_nonimmediate_operand.
11759 (extenddftf2): Change to extenddftf2_fprs.
11760 (extenddftf2): Call gen_spe_extenddftf2 or gen_extenddftf2_fprs
11761 depending on TARGET_E500_DOUBLE.
11762 (extendsftf2): Enable for E500 double.
11763 (trunctfdf2): Enable for E500 double.
11764 (trunctfsf2): Change to trunctfsf2_fprs.
11765 (trunctfsf2): Call gen_spe_trunctfsf2 or gen_trunctfsf2_fprs
11766 depending on TARGET_E500_DOUBLE.
11767 (floatsitf2): Enable for E500 double.
11768 (fix_trunctfsi2): Change to fix_trunctfsi2_fprs.
11769 (fix_trunctfsi2): Call gen_spe_fix_trunctfsi2 or
11770 gen_fix_trunctfsi2_fprs depending on TARGET_E500_DOUBLE.
11771 (negtf2): Change to negtf2_internal.
11772 (negtf2): New expander.
11773 (abstf2): Enable for E500 double. Call gen_spe_abstf2_tst,
11774 gen_spe_abstf2_cmp or gen_abstf2_internal depending on
11775 TARGET_E500_DOUBLE and flag_unsafe_math_optimizations.
11776 (movdi_internal32): Use rs6000_nonimmediate_operand.
11777 (unnamed splitter): Likewise.
11778 * config/rs6000/spe.md (CMPTFEQ_GPR, TSTTFEQ_GPR, CMPTFGT_GPR,
11779 TSTTFGT_GPR, CMPTFLT_GPR, TSTTFLT_GPR): New unspecs.
11780 (SPE64TF, DITI): New mode macros.
11781 (frob_df_di): Change to frob_<SPE64:mode>_<DITI:mode>; allow more
11784 (frob_<mode>_di_2): New.
11785 (frob_tf_di_8_2): New.
11786 (frob_di_df): Change to frob_di_<mode>; allow more modes.
11788 (frob_di_df_2): Change to frob_<DITI:mode>_<SPE64:mode>_2; allow
11790 (frob_ti_<mode>_8_2): New.
11791 (frob_ti_tf_2): New.
11792 (mov_si<mode>_e500_subreg0, mov_si<mode>_e500_subreg0_2,
11793 mov_si<mode>_e500_subreg4, mov_si<mode>_e500_subreg4_2): Allow
11795 (mov_sitf_e500_subreg8, mov_sitf_e500_subreg8_2,
11796 mov_sitf_e500_subreg12, mov_sitf_e500_subreg12_2): New.
11797 (spe_trunctfdf2_internal1, spe_trunctfsf2, spe_extenddftf2,
11798 spe_fix_trunctfsi2, spe_fix_trunctfsi2_internal,
11799 spe_negtf2_internal, spe_abstf2_cmp, spe_abstf2_tst): New.
11800 (cmptfeq_gpr, tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr,
11803 2007-01-23 Ian Lance Taylor <iant@google.com>
11805 * Makefile.in (OBJS-common): Reformat, alphabetize, but put
11807 (OBJS-archive): Reformat, alphabetize.
11808 (OBJS): Change out_object_file to OBJS-md.
11810 2007-01-23 Uros Bizjak <ubizjak@gmail.com>
11812 * config/i386/i386.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
11813 JUMP_P and CALL_P predicates where applicable.
11814 * config/i386/i386.c: Ditto.
11815 * config/i386/i386.md: Ditto.
11816 * config/i386/mmx.md: Ditto.
11817 * config/i386/predicates.md: Ditto.
11819 2007-01-22 Andreas Schwab <schwab@suse.de>
11821 * config/m68k/m68k.h: Fix comment.
11823 2007-01-22 Jan Hubicka <jh@suse.cz>
11825 * passes.c (init_optimization_passes): Do not rerun
11826 pass_early_warn_uninitialized.
11828 2007-01-22 Richard Guenther <rguenther@suse.de>
11830 PR tree-optimization/30038
11831 * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
11833 (execute_cse_sincos_1): Likewise.
11834 (execute_cse_sincos): Likewise.
11835 (gate_cse_sincos): Likewise.
11836 (pass_cse_sincos): New pass CSEing sin() and cos() calls using
11837 the cexpi() canonicalization of sincos().
11838 * tree-pass.h (pass_cse_sincos): Declare.
11839 * passes.c (init_optimization_passes): New pass pas_cse_sincos.
11841 2007-01-21 Eric Botcazou <ebotcazou@libertysurf.fr>
11843 PR rtl-optimization/29329
11844 * combine.c (replaced_rhs_insn): Rename to i2mod.
11845 (replaced_rhs_value): Rename to i2mod_new_rhs.
11846 (i2mod_old_rhs): New global variable.
11847 (combine_instructions): Adjust for above change. Save a copy of
11848 the old RHS into i2mod_old_rhs when the contents of a REG_EQUAL
11849 note are substituted in the second instruction.
11850 (distribute_notes) <REG_DEAD>: Adjust for above change. Do not
11851 ditch the note if it pertains to the second eliminated register
11852 and this register is mentioned in i2mod_old_rhs.
11855 2006-09-12 Eric Botcazou <ebotcazou@libertysurf.fr>
11857 * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
11858 the insn to which the note was originally attached.
11860 2007-01-21 Jan Hubicka <jh@suse.cz>
11862 * ipa-inline.c (inlining_mode): Comment, move up.
11863 (cgraph_decide_inlining_incrementally): Do not perform inlining
11864 itself; fix handling of flattening of self recursive functions.
11865 (cgraph_find_cycles): Remove.
11866 (cgraph_flatten_node): Remove.
11867 (cgraph_decide_inlining): Use incremental inliner to handle flattening.
11868 (try_inline): New function.
11869 (cgraph_early_inlining): Update call of
11870 cgraph_decide_inlining_incrementally. Apply inlining here.
11871 (apply_inline): Update call of cgraph_decide_inlining_incrementally.
11873 2007-01-21 Dirk Mueller <dmueller@suse.de>
11876 * tree-vrp.c (check_array_bounds): do not warn
11877 about ADDR_EXPR's of ARRAY_REF's which are immediately
11878 used in binary expressions.
11880 2007-01-21 Ira Rosen <irar@il.ibm.com>
11882 * tree-vectorizer.h (struct _stmt_vec_info): Add new field
11883 read_write_dep and macros for its access.
11884 * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
11885 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Remove
11886 argument, call vect_check_interleaving for every independent pair of
11887 data-refs. Mark loads that access the same memory location as a store
11889 (vect_check_dependences): Remove.
11890 (vect_analyze_data_ref_dependences): Remove vect_check_dependences
11891 call, fix the call to vect_analyze_data_ref_dependence.
11892 (vect_analyze_data_ref_access): For statements that access the same
11893 data-ref, check that they are not stores; for loads, check that there
11894 is no store that access the same location.
11896 2007-01-20 Roger Sayle <roger@eyesopen.com>
11897 Joseph Myers <joseph@codesourcery.com>
11899 * doc/invoke.texi (-fdump-rtl-combine): Fix under/overfull hbox.
11900 (-fdump-rtl-stack): Likewise.
11901 (-fno-signed-zeros): Use @minus{} for a minus sign. Correct typo.
11902 (-mcheck-zero-division, -mcpu): Fix under/overfull hbox.
11903 (-mpt-fixed): Use @minus{} for minus sign.
11904 (Using Precompiled Headers): Fix under/overfull hbox.
11906 2007-01-20 Jan Hubicka <jh@suse.cz>
11908 * tree-flow.h (struct stmt_ann_d): Move references_memory to proper
11909 place within annotation.
11911 2007-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11913 * pa.c (output_move_double): Change array size of xoperands to 4.
11915 2007-01-20 Jan Hubicka <jh@suse.cz>
11917 * tree-tailcall.c (adjust_return_value): Do not use RESULT_DECL
11920 2007-01-19 Ian Lance Taylor <iant@google.com>
11922 * expmed.c (expand_divmod) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]: Cast
11923 constant to unsigned HOST_WIDE_INT before negating.
11925 2007-01-19 Ian Lance Taylor <iant@google.com>
11927 * tree-ssa-operands.h (struct vuse_vec_d): Change num_vuse field
11929 (VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Use unsigned comparison.
11930 (VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
11931 (SET_VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Likewise.
11932 (SET_VUSE_ELEMENT_VAR) [ENABLE_CHECKING]: Likewise.
11933 (SET_VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
11934 (realloc_vdef, realloc_vuse): Change second parameter to
11936 (ssa_operand_iterator_d): Change vuse_index and mayuse_index
11937 fields to unsigned.
11938 * tree-ssa-operands.c (realloc_vop): Change num_elem parameter to
11939 unsigned. Change x and lim locals to unsigned.
11940 (realloc_vdef, realloc_vuse): Change num_elem parameter to
11942 (finalize_ssa_vuse_ops): Change old_i local to unsigned.
11943 (copy_virtual_operands): Change i and n locals to unsigned.
11945 2007-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11947 PR middle-end/29335
11948 * builtins.c (fold_builtin_1): Handle builtin fdim.
11950 2007-01-20 Jan Hubicka <jh@suse.cz>
11952 * tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
11953 * tree-ssa-structalias.c (compute_points_to_sets): Do call
11954 init_alias_heapvars.
11955 (init_alias_heapvars): Initialize only when not already initialized.
11956 (delete_alias_heapvars): Set heapvar_for_stmt to NULL.
11958 2007-01-19 Roger Sayle <roger@eyesopen.com>
11960 * common.opt (fsigned-zeros): New command line option.
11961 * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead
11962 of flag_unsafe_math_optimizations.
11963 * opts.c (set_fast_math_flags): The -ffast-math command line option
11964 implies -fno-signed-zeros.
11965 (fast_math_flags_set_p): Likewise.
11967 * doc/invoke.texi: Document new -fno-signed-zeros option, and update
11968 the documentation of -ffast-math appropriately. Wrap long lines.
11970 2007-01-19 Steve Ellcey <sje@cup.hp.com>
11972 * system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
11973 * varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.
11975 2007-01-19 Tomas Bily <tbily@suse.cz>
11977 * cgraphunit.c (cgraph_finalize_function): Updating of pid
11979 (tree_init_ic_make_global_vars): New function
11980 (tree_init_edge_profiler): call of tree_init_ic_make_global_vars
11981 (tree_gen_ic_profiler): New function
11982 (tree_gen_ic_func_profiler): New function
11983 (tree_profiling): Added calling of tree_gen_ic_func_profiler
11984 (tree_profile_hooks): Added hook for indirec/virtual calls
11985 * value-prof.c (tree_find_values_to_profile): New case for
11987 (tree_values_to_profile): Call for determining indirect/virtual
11989 (tree_indirect_call_to_profile): New function
11990 (tree_ic_transform): New function
11991 (tree_ic): New function
11992 (find_func_by_pid): New function
11993 (init_pid_map): New function
11994 (tree_value_profile_transformations): Added check for
11995 indirect/virtual call transformation
11996 * value-prof.h (enum hist_type): New counter type for
11997 indirect/virtual calls
11998 (profile_hooks): Added new hook for profiling indirect/virtual
12000 * profile.c (instrument_values): New case for indirect/virtual
12002 * gcov-io.h (GCOV_LAST_VALUE_COUNTER): Changed to 6
12003 (GCOV_COUNTER_V_INDIR): New counter type
12004 (GCOV_COUNTER_NAMES): New name of counter "indirect" added
12005 (GCOV_MERGE_FUNCTIONS): New merge function for indirect/virtual
12007 * cgraph.c: Definition of cgraph_max_pid
12008 (cgraph_create_node): Default init of pid attribute
12009 * cgraph.h: Declaration of cgraph_max_pid
12010 (struct cgraph_node): Added pid attribute
12011 * libgcov.c (__gcov_indirect_call_profiler): New function
12012 (__gcov_one_value_profiler_body): New function
12013 (__gcov_one_value_profiler): Body was moved to
12014 __gcov_one_value_profiler_body and calls it
12016 2007-01-19 Basile Starynkevitch <basile@starynkevitch.net>
12018 * doc/gty.texi (Options): Document the mark_hook option to GTY.
12019 * gengtype.c (write_types_data, write_func_for_structure,
12020 write_types, ggc_wtd, pch_wtd): Add skip_hooks to
12021 write_types_data, ggc_wtd, pch_wtd for processing mark_hook.
12022 (walk_type, write_func_for_structure): Generate the mark_hook if
12025 2007-01-19 Jan Hubicka <jh@suse.cz>
12027 * ipa-inline.c (cgraph_decide_inlining_incrementally): Instead of
12028 'early' argument take inlining mode argument specifying whether to
12029 inline for size/speeed or all functions; add support for flattening;
12031 (cgraph_early_inlining): Update call of decide_inlining_incrementally.
12033 2007-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12036 * toplev.c (warn_deprecated_use): Use %qD instead of %qs to print
12037 the name of the declared identifier.
12039 2007-01-19 Dirk Mueller <dmueller@suse.de>
12041 * config/i386.h (CONDITIONAL_REGISTER_USAGE): Store
12042 result of PIC_OFFSET_TABLE_REGNUM in temporary variable to avoid
12043 duplicate evaluation.
12045 2007-01-19 Uros Bizjak <ubizjak@gmail.com>
12047 * config/i386/i386.md (acos<mode>2): Rename from acossf2 and acosdf2.
12048 Macroize expander using X87MODEF12 mode macro. Extend operand 1
12049 to XFMode, use acosxf2 and truncate result to requested mode.
12050 Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
12051 (asin<mode>2): Similarly, with asin expanders.
12052 (*fscalexf4_i387): Rename from *fscalexf4.
12053 (expNcorexf3): New expander.
12054 (expxf2, exp10xf2, exp2xf2): Use expNcorexf3 expander.
12055 (exp<mode>2): Rename from expsf2 and expdf2. Macroize expander using
12056 X87MODEF12 mode macro. Extend operand 1 to XFMode, use expxf2 and
12057 truncate result to requested mode. Use SSE_FLOAT_MODE_P to disable
12058 patterns for SSE math.
12059 (exp10<mode>2): Similarly, with exp10 expanders.
12060 (exp2<mode>2): Similarly, with exp2 expanders.
12061 (expm1<mode>2): Similarly, with expm1 expanders.
12062 (ldexp<mode>3): Similarly, with ldexp expanders.
12063 (log<mode>2, log10<mode>2, log2<mode>2, log1p<mode>2, logb<mode>2):
12064 Use gen_truncxf<mode>2_i387_noop to truncate result.
12066 2007-01-19 Richard Sandiford <richard@codesourcery.com>
12068 * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
12069 for ColdFire targets.
12071 2007-01-19 Nathan Sidwell <nathan@codesourcery.com>
12072 Richard Sandiford <richard@codesourcery.com>
12074 * config/m68k/m68k.h (M68K_STATIC_CHAIN_REG_NAME): New macro.
12075 (INITIALIZE_TRAMPOLINE): Use STATIC_CHAIN_REGNUM.
12076 (__transfer_from_trampoline): Use M68K_STATIC_CHAIN_REG_NAME.
12077 * config/m68k/m68kelf.h (STATIC_CHAIN_REGNUM): Override.
12078 (M68K_STATIC_CHAIN_REG_NAME): Likewise.
12079 * config/m68k/netbsd-elf.h (M68K_STATIC_CHAIN_REG_NAME): Likewise.
12081 2007-01-19 Richard Sandiford <richard@codesourcery.com>
12083 * config/m68k/m68k.md (adddi_dilshr32): Rename to...
12084 (*adddi_dilshr32): ...this. Fix formatting. Remove commented-out
12085 non-canonical pattern. Restrict to !TARGET_COLDFIRE.
12086 (*adddi_dilshr32_cf): New pattern.
12087 (adddi3, subdi3): Remove first alternatives.
12089 2007-01-19 Richard Sandiford <richard@codesourcery.com>
12091 * config/m68k/m68k.c (notice_update_cc): If an SFmode move is
12092 implemented using move.l, do not use its cc result for floating-point
12095 2007-01-19 Richard Sandiford <richard@codesourcery.com>
12097 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Stop the 'T' constraint
12098 from accepting 's' constraints if flag_pic.
12100 2007-01-19 Richard Sandiford <richard@codesourcery.com>
12102 * config/m68k/m68k.md (bordered, bunordered, buneq, bunge, bungt)
12103 (bunle, bunlt, bltgt, bordered_rev, bunordered_rev, buneq_rev)
12104 (bunge_rev, bungt_rev, bunle_rev, bunlt_rev, bltgt_rev): Change
12105 condition from TARGET_68881 to TARGET_HARD_FLOAT.
12107 2007-01-19 Sandra Loosemore <sandra@codesourcery.com>
12109 * longlong.h (count_leading_zeros, COUNT_LEADING_ZEROS_0): Add
12110 ColdFire alternatives.
12111 * config/m68k/m68k.h (CLZ_DEFINED_VALUE_AT_ZERO): New macro.
12112 * config/m68k/m68k.md (clzsi2): Define for ColdFire
12113 architectures that support ff1 instruction.
12115 2007-01-19 Richard Sandiford <richard@codesourcery.com>
12116 Julian Brown <julian@codesourcery.com>
12118 * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Add an 'R' case.
12119 * config/m68k/m68k.md (*movsi_cfv4): Fold into...
12120 (*movsi_cf): ...here. Remove unnecessary 'R' from 'Rg'.
12123 2007-01-19 Richard Sandiford <richard@codesourcery.com>
12125 * config/m68k/m68k-protos.h (valid_mov3q_const): Take a HOST_WIDE_INT
12127 (output_move_const_into_data_reg, output_move_simode_const): Delete.
12128 * config/m68k/m68k.c (const_method, const_int_cost): Take a
12129 HOST_WIDE_INT instead of an rtx.
12130 (m68k_rtx_costs): Update call accordingly.
12131 (output_move_const_into_data_reg): Likewise. Fix formatting.
12132 (valid_mov3q_const): Take a HOST_WIDE_INT instead of an rtx.
12134 (output_move_simode_const): Update calls after above changes.
12135 Rework to use automatic variables and predicates like MEM_P.
12136 * config/m68k/m68k.md (pushexthisi_const): Update call to
12139 2007-01-19 Dirk Mueller <dmueller@suse.de>
12141 * tree-ssa-alias.c (perform_var_substitution): Fix typo
12142 in dump_flags test.
12144 2007-01-19 Richard Guenther <rguenther@suse.de>
12146 * builtins.c (expand_builtin_cexpi): Fall back to expanding
12147 via cexp in case sincos is not available.
12149 2007-01-19 Richard Guenther <rguenther@suse.de>
12151 * doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
12152 * defaults.h (TARGET_HAS_SINCOS): Default to off.
12153 * config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
12154 * config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
12155 * config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
12156 * config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
12157 * config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
12158 * config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
12160 2007-01-19 Uros Bizjak <ubizjak@gmail.com>
12162 * config/i386/i386.md (*fpatanxf3_i387, fpatan_extend<mode>xf3_i387):
12164 (atan2sf3_1, atan2df3_1, atan2xf3_1): Remove insn patterns.
12165 (atan2xf3): Directly generate RTL pattern.
12166 (atan2<mode>3): Rename from atan2sf3 and atan2df3 and macroize insn
12167 patterns using X87MODEF12 mode macro. Use fpatan_extend<mode>xf3_i387
12168 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
12169 disable patterns for SSE math.
12170 (atan<mode>2): Rename from atansf2 and atandf2 and macroize insn
12171 patterns using X87MODEF12 mode macro. Use fpatan_extend<mode>xf3_i387
12172 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
12173 disable patterns for SSE math.
12175 2007-01-19 Alexandre Oliva <aoliva@redhat.com>
12177 * libgcc-std.ver: Fix typo in %inherit for GCC_4.3.0.
12179 2007-01-18 Roger Sayle <roger@eyesopen.com>
12181 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a
12182 VIEW_CONVERT_EXPR to the same type as it's operand.
12184 2007-01-18 David Edelsohn <edelsohn@gnu.org>
12186 * config/rs6000/darwin-ldouble.c: Only build _SOFT_FLOAT if
12187 configured for long double 128.
12189 2007-01-18 Mike Stump <mrs@apple.com>
12191 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Fix build
12194 2007-01-18 Michael Meissner <michael.meissner@amd.com>
12196 * i386.c (ix86_compute_frame_layout): Make fprintf's in #if 0 code
12199 2007-01-18 Jan Hubicka <jh@suse.cz>
12201 * tree-ssa-operands.c (vop_free_bucket_size): Never return value
12202 greater than NUM_VOP_FREE_BUCKETS.
12204 2007-01-18 Daniel Berlin <dberlin@dberlin.org>
12206 * tree-ssa-structalias.c: Update comments.
12207 (ptabitmap_obstack): Removed.
12208 (pta_obstack): New.
12209 (oldpta_obstack): Ditto.
12210 (stats): Add a few members.
12211 (struct variable_info): Remove node, complex, address_taken, and
12212 indirect_target members. Add oldsolution member.
12213 (new_var_info): Do not initialize removed members.
12214 (constraint_expr_type): Remove INCLUDES.
12215 (constraint_graph): Add size, implicit_preds, rep,
12216 indirect_cycles, eq_rep, label, direct_nodes, and complex members.
12217 (FIRST_REF_NODE): New macro.
12218 (LAST_REF_NODE): Ditto.
12219 (FIRST_ADDR_NODE): Ditto.
12220 (find): New function.
12222 (dump_constraint): Do not handle INCLUDES.
12223 (insert_into_complex): Do not insert duplicate constraints.
12224 (condense_varmap_nodes): Renamed and rewritten into ...
12225 (merge_node_constraints): This. Also fix bug in handling of
12226 offseted copy constraints.
12227 (clear_edges_for_node): No longer need to deal with preds at all,
12228 or removing associated preds/succs.
12229 (merge_graph_nodes): Deal with indirect_cycles.
12230 Don't deal with predecessors.
12231 (add_implicit_graph_edge): New function.
12232 (add_pred_graph_edge): Ditto.
12233 (add_graph_edge): Don't deal with predecessors.
12234 (build_constraint_graph): Removed.
12235 (build_pred_graph): New function.
12236 (build_succ_graph): Ditto.
12237 (struct scc_info): Removed in_component. Added roots, dfs, and
12238 node_mapping. Remove visited_index, unification_queue.
12239 (scc_visit): Deal with union-find we do now.
12240 Deal with cycles with REF nodes.
12241 (collapse_nodes): Renamed and rewritten to ...
12242 (unify_nodes): This.
12243 (process_unification_queue): Removed.
12244 (topo_visit): Cleanup
12245 (do_da_constraint): Use find.
12246 (do_sd_constraint): Ditto.
12247 (do_ds_constraint): Ditto.
12248 (do_complex_constraint): Ditto.
12249 (init_scc_info): Update for removed and added members.
12250 (find_and_collapse_graph_cycles): Renamed and rewritten into ...
12251 (find_indirect_cycles): This.
12252 (equivalence_class): New variable.
12253 (label_visit): New function.
12254 (perform_variable_substitution): Rewritten.
12255 (free_var_substitution_info): New function.
12256 (find_equivalent_node): Ditto.
12257 (move_complex_constraints): Ditto.
12258 (eliminate_indirect_cycles): Ditto.
12259 (solve_graph): Only propagate changed bits.
12260 Use indirect cycle elimination.
12262 (tree_id_t): Rename to tree_vi_t, delete id member, add vi member.
12263 (tree_id_eq): Renamed to ...
12264 (tree_vi_eq): This. Update for member change
12265 (insert_id_for_tree): Renamed and rewritten to ...
12266 (insert_vi_for_tree): This.
12267 (lookup_id_for_tree): Renamed and rewritten to ...
12268 (lookup_vi_for_tree): This.
12269 (get_id_for_tree): Renamed and rewritten to ...
12270 (get_vi_for_tree): Ditto.
12271 (get_constraint_exp_from_ssa_var): Update to use get_vi_for_tree.
12272 (process_constraint): Don't handle INCLUDES.
12273 Remove special ADDRESSOF case.
12274 (find_func_aliases): Rewrite to use vi functions instead of id
12276 (create_function_info_for): Ditto.
12277 (create_variable_info_for): Ditto.
12278 (intra_create_variable_infos): Ditto.
12279 (merge_smts_into): Ditto.
12280 (find_what_p_points_to): Ditto.
12281 (init_base_vars): Ditto.
12282 (init_alias_vars): Ditto.
12283 (remove_preds_and_fake_succs): New function.
12284 (dump_sa_points_to_info): Dump new stats.
12285 (dump_solution_for_var): Use find.
12286 (set_used_smts): Fix formatting.
12287 (compute_points_to_sets): Updated for new functions.
12288 (ipa_pta_execute): Ditto.
12290 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
12291 Richard Sandiford <richard@codesourcery.com>
12293 * doc/tm.texi (TARGET_FUNCTION_VALUE): Expand documentation of
12295 * calls.c (expand_call): If the return value is a PARALLEL,
12296 extract its first member.
12297 * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Remove.
12298 * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
12299 use FUNCTION_EXTRA_EPILOGUE.
12300 (m68k_function_value): Return a PARALLEL if the return value
12301 is of a pointer type.
12302 * config/m68k/netbsd-elf.h (current_function_returns_pointer)
12303 (FUNCTION_EXTRA_EPILOGUE): Remove.
12304 * config/m68k/m68k.md (D0_REG): New constant.
12306 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
12308 * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
12309 output a NOP for empty epilogues.
12311 2007-01-18 Richard Sandiford <richard@codesourcery.com>
12313 * config/m68k/m68k.c (m68k_use_return_insn): Update comments
12314 before function. Extend register save check to include all
12315 registers, not just integer ones.
12317 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
12319 * config/m68k/m68k-protos.h (use_return_insn): Rename to...
12320 (m68k_use_return_insn): ...this.
12321 * config/m68k/m68k.h (USE_RETURN_INSN): Delete.
12322 * config/m68k/m68k.c (use_return_insn): Rename to...
12323 (m68k_use_return_insn): ...this.
12324 * config/m68k/m68k.md (return): Use m68k_use_return_insn instead
12325 of USE_RETURN_INSN.
12327 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
12329 * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
12330 nearest even, fix denormal rounding overflow.
12332 2007-01-18 Richard Sandiford <richard@codesourcery.com>
12334 * config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
12335 f%$smove and f%$move.
12336 (movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
12337 (extendsfdf2_cf): Use fdmove instead of f%&move.
12338 (truncdfsf2_cf): Use fsmove instead of f%$smove.
12339 (add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.
12341 2007-01-18 Richard Sandiford <richard@codesourcery.com>
12343 * config/m68k/m68k.md (movdf_cf_hard): Use output_move_double for
12346 2007-01-18 Richard Sandiford <richard@codesourcery.com>
12348 * real.h (real_format): Add a canonical_nan_lsbs_set field.
12349 (coldfire_single_format): Declare.
12350 (coldfire_double_format): Likewise.
12351 * real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
12352 of qnan_msb_set to determine the lower bits of a canonical
12354 (encode_ieee_double): Likewise.
12355 (encode_ieee_quad): Likewise.
12356 (ieee_single_format): Initialize canonical_nan_lsbs_set.
12357 (mips_single_format): Likewise.
12358 (ieee_double_format): Likewise.
12359 (mips_double_format): Likewise.
12360 (ieee_extended_motorola_format): Likewise.
12361 (ieee_extended_intel_96_format): Likewise.
12362 (ieee_extended_intel_128_format): Likewise.
12363 (ieee_extended_intel_96_round_53_format): Likewise.
12364 (ibm_extended_format): Likewise.
12365 (mips_extended_format): Likewise.
12366 (ieee_quad_format): Likewise.
12367 (mips_quad_format): Likewise.
12368 (vax_f_format): Likewise.
12369 (vax_d_format): Likewise.
12370 (vax_g_format): Likewise.
12371 (i370_single_format): Likewise.
12372 (i370_double_format): Likewise.
12373 (decimal_single_format): Likewise.
12374 (decimal_double_format): Likewise.
12375 (decimal_quad_format): Likewise.
12376 (c4x_single_format): Likewise.
12377 (c4x_extended_format): Likewise.
12378 (real_internal_format): Likewise.
12379 (coldfire_single_format): New real_format.
12380 (coldfire_double_format): Likewise.
12381 * config/pdp11/pdp11.c (pdp11_f_format): Initialize
12382 canonical_nan_lsbs_set.
12383 (pdp11_d_format): Likewise.
12384 * config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
12385 if TARGET_COLDFIRE_CPU.
12387 2007-01-18 Richard Sandiford <richard@codesourcery.com>
12389 * config/m68k/m68k-protos.h (m68k_output_pic_call): Delete.
12390 (output_call, m68k_legitimize_call_address): Declare.
12391 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Remove unnecessary
12392 parenthesees. Add support for a 'W' constraint.
12393 (LEGITIMATE_PIC_OPERAND_P): Remove SYMBOL_REF_FLAG handling.
12394 (PRINT_OPERAND_PUNCT_VALID_P): Remove comment about 'o'.
12395 (m68k_symbolic_call, m68k_symbolic_jump): Declare.
12396 * config/m68k/m68k.c (m68k_symbolic_call, m68k_symbolic_jump): New
12398 (override_options): Initialize them. Do not set flag_no_function_cse
12399 for TARGET_ID_SHARED_LIBRARY.
12400 (m68k_output_pic_call): Delete.
12401 (m68k_legitimize_call_address): New function.
12402 (print_operand): Remove the %o prefix. Handle the %p prefix.
12403 (output_call): New function.
12404 (m68k_output_mi_thunk): Use m68k_symbolic_jump. Always load the
12405 target address from the GOT if symbolic jumps are not allowed.
12406 * config/m68k/m68k.md (call, general_operand): Do not set
12407 SYMBOL_REF_FLAG. Use m68k_legitimize_call_address instead.
12408 Merge separate flag_pic and !flag_pic define_insns into...
12409 (*call, *call_value): ...these new patterns. Match the address
12410 rather than the containing MEM and require it to be a call_operand.
12411 Use output_call to generate the asm template.
12412 * config/m68k/predicates.md (const_call_operand): New predicate.
12413 (call_operand): Likewise.
12415 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
12417 * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
12418 (STACK_GROWS_DOWNWARD): Define to 1.
12419 (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
12420 comments, emphasizing that these values are only defaults.
12421 * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
12422 * config/m68k/m68k.c (const_method): Remove trailing whitespace.
12424 2007-01-18 Richard Sandiford <richard@codesourcery.com>
12426 * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
12428 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
12429 Richard Sandiford <richard@codesourcery.com>
12431 * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
12432 (FP_REGNO_P): New macros.
12433 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
12434 (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
12435 (EH_RETURN_STACKADJ_RTX): Use A0_REG.
12436 * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
12438 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
12440 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
12441 (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-rtems*): Add t-floatlib
12443 * config/m68k/t-floatlib: New file, extracting common code from...
12444 * config/m68k/t-m68kbare, config/m68k/t-m68kelf,
12445 * config/m68k/t-uclinux: Here.
12446 * config/m68k/fpgnulib.c: Do not compile extendeed precision
12447 routines on ColdFire targets.
12449 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
12451 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
12452 (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*)
12453 (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-linux*)
12454 (m68k-*-rtems*): Use tm_file rather than m68k/m68k.h and
12455 explicitly set MOTOROLA to 1.
12456 * config/m68k/m68k.h (MOTOROLA): Simplify definition accordingly.
12458 2007-01-18 Richard Sandiford <richard@codesourcery.com>
12459 Nathan Sidwell <nathan@codesourcery.com>
12461 * config/m68k/m68k.h (PCC_STATIC_STRUCT_RETURN): Delete.
12462 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add MOTOROLA cases.
12463 * config/m68k/coff.h (REGISTER_PREFIX_MD): Delete.
12464 * config/m68k/m68020-elf.h (LIB_SPEC): Delete.
12465 * config/m68k/m68k-none.h (CC1_SPEC, CPP_SUBTARGET_SPEC): Delete.
12466 * config/m68k/m68kelf.h (IMMEDIATE_PREFIX, REGISTER_PREFIX_MD)
12467 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
12468 (NO_DOLLAR_IN_LABEL, PCC_STATIC_STRUCT_RETURN): Don't undefine.
12469 (BSS_ASM_OP, ASM_OUTPUT_SKIP, ASM_OUTPUT_ASCII): Delete.
12470 * config/m68k/m68kemb.h (PCC_STATIC_STRUCT_RETURN): Don't undefine.
12471 * config/m68k/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE)
12472 (WCHAR_TYPE_SIZE, TARGET_OBJFMT_CPP_BUILTINS): Delete.
12473 (TARGET_OS_CPP_BUILTINS): Don't define mc68000 and mc68020 here.
12474 (DBX_REGISTER_NUMBER): Delete.
12475 * config/m68k/netbsd-elf.h (IMMEDIATE_PREFIX): Delete.
12476 (PCC_STATIC_STRUCT_RETURN): Don't undefine.
12477 * config/m68k/openbsd.h (PCC_STATIC_STRUCT_RETURN): Define.
12479 2007-01-18 Richard Sandiford <richard@codesourcery.com>
12481 * config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
12482 * config/flat.h: New file.
12483 * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
12484 OBJECT_FORMAT_FLAT.
12485 * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
12486 indirect references for -msep-data or -mid-shared-library.
12487 Do not use PC-relative code addresses either.
12488 * config/m68k/m68k.c (override_options): Restrict -fPIC error
12490 * config/m68k/uclinux.h (STARTFILE_SPEC): Define. Use Scrt1.o
12491 for shared libraries and crt1.o for executables. Use crti.o and
12493 (ENDFILE_SPEC): Use crtend.o and crtn.o.
12494 (LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
12495 Do not add -elf2flt or -shared-lib-id options here.
12496 (LINK_SPEC): Define. Pass -elf2flt if no -elf2flt option is given.
12497 Pass -shared-lib-id if -mid-shared-library, taking the library
12498 identifier from -mshared-library-id if given, otherwise
12500 (EH_FRAME_IN_DATA_SECTION): Do not undefine.
12501 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
12502 (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
12503 and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
12504 (DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
12505 * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
12507 * config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
12508 jump sequence for ISA A and ISA A+.
12509 (PICJUMP): Likewise.
12511 2007-01-18 Richard Sandiford <richard@codesourcery.com>
12513 * config.gcc (m68k-*-uclinux*): Base the port on the common
12514 and m68k GNU/Linux files rather than on the generic ELF ones.
12515 * config/m68k/uclinux.h (TARGET_VERSION): Override.
12516 (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
12518 2007-01-18 Julian Brown <julian@codesourcery.com>
12519 Richard Sandiford <richard@codesourcery.com>
12521 * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Make 64-bit on ColdFire.
12522 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
12523 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Undefine
12525 * config/m68k/uclinux-oldabi.h (LONG_DOUBLE_TYPE_SIZE): Redefine to
12526 80 unconditionally.
12527 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
12529 2007-01-18 Richard Sandiford <richard@codesourcery.com>
12531 * doc/install.texi: Document m68k-uclinuxoldabi.
12532 * config.gcc (m68k-*-uclinuxoldabi): New configuration.
12533 * config/m68k/uclinux-oldabi.h: New file, copied from
12534 config/m68k/uclinux.h.
12536 2007-01-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
12538 * config/m32r/m32r-protos.h (m32r_expand_epilogue): Declare it.
12539 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Use gen_frame_mem.
12540 (m32r_compute_frame_size): Use unsigned for regno.
12541 (m32r_reload_lr): Use gen_frame_mem.
12543 (m32r_output_function_epilogue): Don't output the function epilogue
12545 (m32r_expand_epilogue): New.
12546 (direct_return): Return false if the function has the interrupt
12548 (m32r_hard_regno_rename_ok): Remove code for the textual epilogue.
12549 * config/m32r/m32r.md (epilogue): New expander.
12550 (return_lr, return_rte): New insns.
12551 (return): Make it expander.
12552 (return_normal): New expander.
12554 2007-01-18 Josh Conner <jconner@apple.com>
12557 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
12558 support for UNLE, UNLT, UNGE, and UNGT.
12560 2007-01-18 Jan Hubicka <jh@suse.cz>
12562 * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand.
12563 * tree-tailcall (add_virtual_phis): Likewise.
12564 (optimize_tail_call): Return TODOs.
12565 (execute_tail_calls): Return TODOs.
12566 * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO.
12567 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something
12569 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
12570 Cleanup cfg using TODO.
12571 * tree-flow.h (cleanup_tree_cfg_loop): Update prototype.
12572 * passes.c (execute_function_todo): When cleanup did something, remove
12574 * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO.
12575 (make_edges): Don't cleanup_cfg.
12577 2007-01-18 Uros Bizjak <ubizjak@gmail.com>
12579 * reg-stack.c (subst_stack_regs_pat) [UNSPEC_SINCOS_COS,
12580 UNSPEC_XTRACT_FRACT]: Use generic code for instructions that
12581 operate on the top of stack.
12582 [UNSPEC_SINCOS_SIN, UNSPEC_XTRACT_EXP, UNSPEC_TAN]: Rewrite
12583 register handling of instructions that output to the second
12585 [UNSPEC_TAN_ONE, UNSPEC_TAN_TAN]: Remove.
12586 (move_for_stack_reg): Special-case check for dead destination
12587 stack slot for constant load of 1.0 inside UNSPEC_TAN.
12589 * config/i386/i386.md (UNSPEC_TAN): New constant.
12590 (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): Remove.
12591 (fptanxf4_i387, fptan_extend<mode>xf4_i387): New patterns
12592 to correctly model move of constant 1.0 to top stack slot.
12593 (*tandf3_1, *tansf3_1, *tanxf3_1): Remove insn patterns.
12594 (unnamed peephole2 pattern): Remove corresponding peephole2
12595 pattern that optimizes tan insn and loading of constant 1.0.
12596 (tanxf2): Use fptanxf4_i387.
12597 (tan<mode>2): Rename from tansf2 and tandf2 and macroize insn
12598 patterns using X87MODEF12 mode macro. Use fptan_extend<mode>xf4_i387
12599 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
12600 disable patterns for SSE math.
12601 (sincos<mode>3): Use truncxf<mode>2_i387_noop for truncation.
12602 (fyl2x_extend<mode>xf3_i387): Use X87MODEF12 for operand 1.
12604 2007-01-18 Dirk Mueller <dmueller@suse.de>
12605 Richard Guenther <rguenther@suse.de>
12608 * doc/invoke.texi (Warray-bounds): Document -Warray-bounds.
12609 * common.opt (Warray-bounds): Add new warning option.
12610 * c-opts.c (c_common_handle_option): Define -Warray-bounds
12612 * Makefile.in: make tree-vrp.o depend on toplev.h
12613 * tree-vrp.c (vrp_finalize): Call check_array_refs if -Warray-bounds
12615 (check_array_refs, check_array_bounds, check_array_ref): New.
12617 2007-01-18 Jan Hubicka <jh@suse.cz>
12619 * tree-ssa-ccp.c (ccp_finalize): Return if something changed.
12620 (execute_ssa_ccp): Return flags conditionally.
12621 * tree-ssa-propagate.c (substitue_and_fold): Return if something was
12623 * tree-ssa-propagate.h (substitute_and_fold): Update prototype.
12625 2007-01-18 Steven Bosscher <steven@gcc.gnu.org>
12627 * cfgcleanup.c (cleanup_cfg): Detect cfglayout mode and set
12628 the CLEANUP_CFGLAYOUT flag when in cfglayout mode.
12630 * Makefile.c (GTFILES): Add cfglayout.h.
12631 * gengtype.c (open_base_files): Likewise.
12632 * cfglayout.c (cfg_layout_function_footer,
12633 cfg_layout_function_header) Reindent to make gengtype happy.
12634 * cfglayout.h (cfg_layout_function_footer,
12635 cfg_layout_function_header): Add GTY(()) marker.
12637 * ifcvt.c (noce_try_sign_mask): Make sure INSN_B is non-null.
12639 2007-01-18 Ben Elliston <bje@au.ibm.com>
12641 * genautomata.c (write_automata): Include xstrerror output in the
12642 error message if writing the DFA description file fails.
12644 2007-01-17 H.J. Lu <hongjiu.lu@intel.com>
12646 * config/mips/mips-protos.h (mips_output_external): Make it
12648 * config/mips/iris.h (TARGET_ASM_EXTERNAL_LIBCALL): Removed.
12649 * config/mips/mips.c (irix_output_external_libcall): Likewise.
12650 (extern_list): Likewise.
12651 (extern_head): Likewise.
12652 (TARGET_ASM_FILE_END): Likewise.
12653 (mips_file_end): Likewise.
12654 (mips_output_external): Rewritten.
12656 2007-01-18 Ben Elliston <bje@au.ibm.com>
12658 * genpreds.c (write_insn_preds_c): Only write out the function
12659 body for regclass_for_constraint if we have register constraints.
12661 2007-01-17 Tom Tromey <tromey@redhat.com>
12663 * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org.
12664 * doc/install.texi (Testing): Use sourceware.org.
12665 (Binaries): Likewise.
12666 (Specific): Likewise.
12667 * doc/contrib.texi (Contributors): Use sourceware.org.
12669 2007-01-17 Anatoly Sokolov <aesok@post.ru>
12671 * config/avr/avr.h (AVR_HAVE_LPMX): New macro.
12672 (AVR_ENHANCED): Rename to ...
12673 (AVR_HAVE_MUL): ... new.
12674 (avr_enhanced_p): Rename to ...
12675 (avr_have_mul_p): ... new.
12676 (TARGET_CPU_CPP_BUILTINS): Use 'avr_have_mul_p' instead of
12677 'avr_enhanced_p' for "__AVR_ENHANCED__". Define "__AVR_HAVE_MUL__".
12678 * config/avr/avr.c (avr_enhanced_p): Rename to ...
12679 (avr_have_mul_p): ... new.
12680 (base_arch_s): Rename 'enhanced' to 'have_mul'.
12681 (avr_override_options): Use 'avr_have_mul_p' and 'have_mul' instead of
12682 'avr_enhanced_p' and 'enhanced'.
12683 (ashlhi3_out, ashrhi3_out, lshrhi3_out, avr_rtx_costs): Use
12684 AVR_HAVE_MUL instead of AVR_ENHANCED.
12685 * avr.md (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
12686 (mulqi3, *mulqi3_enh, *mulqi3_call, mulqihi3, umulqihi3, mulhi3,
12687 *mulhi3_enh, *mulhi3_call, mulsi3, *mulsi3_call): Use AVR_HAVE_MUL
12688 instead of AVR_ENHANCED.
12689 (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
12690 * libgcc.S: Use __AVR_HAVE_MUL__ instead of __AVR_ENHANCED__.
12691 (__tablejump__): Use __AVR_HAVE_LPMX__ instead of __AVR_ENHANCED__.
12693 2007-01-17 Ian Lance Taylor <iant@google.com>
12695 * vec.h (VEC_reserve_exact): Define.
12696 (vec_gc_p_reserve_exact): Declare.
12697 (vec_gc_o_reserve_exact): Declare.
12698 (vec_heap_p_reserve_exact): Declare.
12699 (vec_heap_o_reserve_exact): Declare.
12700 (VEC_OP (T,A,reserve_exact)): New static inline function, three
12702 (VEC_OP (T,A,reserve)) [all versions]: Remove handling of
12703 negative parameter.
12704 (VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
12705 (VEC_OP (T,A,copy)) [all versions]: Likewise.
12706 (VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
12707 * vec.c (calculate_allocation): Add exact parameter. Change all
12709 (vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
12710 (vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
12711 (vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
12712 (vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
12713 (vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
12714 (vec_heap_p_reserve_exact): New function.
12715 (vec_heap_o_reserve_exact): New function.
12717 2007-01-17 Jan Hubicka <jh@suse.cz>
12719 * ipa-type-escape.c (look_for_casts): Revamp using handled_component_p.
12721 2007-01-17 Eric Christopher <echristo@apple.com>
12723 * config.gcc: Support core2 processor.
12725 2007-01-16 Jan Hubicka <jh@suse.cz>
12727 * tree-ssanames.c (release_dead_ssa_names): Instead of ggc_freeing
12728 the names, just unlink the chain so we don't crash on dangling pointers
12731 2007-01-16 Jan Hubicka <jh@suse.cz>
12733 * cgraph.h (cgraph_decide_inlining_incrementally): Kill.
12734 * tree-pass.h: Reorder to make IPA passes appear toegher.
12735 (pass_early_inline, pass_inline_parameters, pass_apply_inline): Declare.
12736 * cgraphunit.c (cgraph_finalize_function): Do not compute inling
12737 parameters, do not call early inliner.
12738 * ipa-inline.c: Update comments. Include tree-flow.h
12739 (cgraph_decide_inlining): Do not compute inlining parameters.
12740 (cgraph_decide_inlining_incrementally): Return TODOs; assume to
12741 be called with function context set up.
12742 (pass_ipa_inline): Remove unreachable functions before pass.
12743 (cgraph_early_inlining): Simplify assuming to be called from the
12745 (pass_early_inline): New pass.
12746 (cgraph_gate_ipa_early_inlining): New gate.
12747 (pass_ipa_early_inline): Turn into simple wrapper.
12748 (compute_inline_parameters): New function.
12749 (gate_inline_passes): New gate.
12750 (pass_inline_parameters): New pass.
12751 (apply_inline): Move here from tree-optimize.c
12752 (pass_apply_inline): New pass.
12753 * ipa.c (cgraph_remove_unreachable_nodes): Verify cgraph after
12755 * tree-inline.c (optimize_inline_calls): Return TODOs rather than
12756 doing them by hand.
12757 (tree_function_versioning): Do not allocate dummy struct function.
12758 * tree-inline.h (optimize_inline_calls): Update prototype.
12759 * tree-optimize.c (execute_fixup_cfg): Export.
12760 (pass_fixup_cfg): Remove
12761 (tree_rest_of_compilation): Do not apply inlines.
12762 * tree-flow.h (execute_fixup_cfg): Declare.
12763 * Makefile.in (gt-passes.c): New.
12764 * passes.c: Include gt-passes.h
12765 (init_optimization_passes): New passes.
12766 (nnodes, order): New static vars.
12767 (do_per_function_toporder): New function.
12768 (execute_one_pass): Dump current pass here.
12769 (execute_ipa_pass_list): Don't dump current pass here.
12771 2007-01-16 Janis Johnson <janis187@us.ibm.com>
12773 * config/dfp-bit.c (dfp_compare_op): Return separate value for NaN.
12774 (DFP_NE, DFP_LE, DFP_GE): Return false for NaN.
12776 2007-01-16 David Edelsohn <edelsohn@gnu.org>
12778 * config/rs6000/darwin-ldouble.c: Build file for SOFT_FLOAT.
12779 (strong_alias): Define.
12780 (__gcc_qmul): Provide non-FMA for soft-float.
12781 (__gcc_qdiv): Same.
12786 (__gcc_qunord): New.
12796 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Initialize
12797 soft-float functions.
12798 * config/rs6000/libgcc-ppc-glibc.ver: Version soft-float symbols.
12799 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn
12800 about long double soft float.
12802 2007-01-16 Dorit Nuzman <dorit@il.ibm.com>
12803 Tehila Meyzels <tehila@il.ibm.com>
12805 * tree-vectorizer.h (is_pattern_stmt_p): New.
12806 * tree-vect-analyze.c (vect_determine_vectorization_factor): Fix
12807 formatting (tabs instead of spaces). Cleanup and clarify setting
12808 of STMT_VINFO_VECTYPE. Call is_pattern_stmt_p.
12809 * tree-vect-transform.c (vect_get_vec_def_for_operand): Fix typo.
12810 (vectorizable_type_demotion): Check that types are integral.
12811 (vectorizable_type_promotion): Likewise.
12812 (vectorizable_store): Fix typo. Eliminate new-line at end of
12815 2007-01-16 Jan Hubicka <jh@suse.cz>
12817 * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
12820 2007-01-15 Eric Christopher <echristo@apple.com>
12822 * ifcvt.c: Include vec.h, vecprim.h.
12823 (check_cond_move_block): New argument regs.
12824 Reorganize. Add registers used to regs.
12825 (cond_move_process_if_block): Use regs set above as
12828 2007-01-15 Eric Christopher <echristo@apple.com>
12830 * config/darwin.h: Update copyright.
12831 (TARGET_OPTION_TRANSLATE_TABLE): Add umbrella.
12832 (LINK_COMMAND_SPEC): Add -u.
12833 (LINK_SPEC): Fix umbrella for above.
12835 2007-01-15 Joseph S. Myers <joseph@codesourcery.com>
12837 * config/soft-fp/op-common.h, config/soft-fp/op-4.h: Update from
12840 2007-01-15 Tom Tromey <tromey@redhat.com>
12842 * doc/sourcebuild.texi (libgcj Tests): Don't mention jacks.
12843 * doc/install.texi (Testing): Don't mention jacks.
12844 (Configuration): Document --enable-java-maintainer-mode. Move
12845 --with-java-home to libgcj-specific section. Document
12847 (Prerequisites): Mention --enable-java-maintainer-mode, ecj1.
12849 2007-01-15 Jan Hubicka <jh@suse.cz>
12851 * tree-ssa-dce.c (DCE_TODOs): New.
12852 (propagate_necessity): Return if something changed.
12853 (eliminate_unnecessary_stmts): Likewise.
12854 (perform_tree_ssa_dce): Return TODO flags when needed.
12855 (pass_dce, pass_dce_loop, pass_cd_dce): Remove TODO flags.
12857 2007-01-15 Uros Bizjak <ubizjak@gmail.com>
12859 * config/i386/i386.md (fyl2xxf3_i387): Rename from fyl2x_xf3.
12860 (fyl2x_extend<mode>xf3_i387): New insn pattern.
12861 (log<mode>2): Rename from logsf2 and logdf2 and macroize insn
12862 patterns using X87MODEF12 mode macro. Extend operand 1
12863 to XFmode. Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
12864 (log10<mode>2): Ditto.
12865 (log2<mode>2): Ditto.
12866 (log1p<mode>2): Ditto.
12867 (logb<mode>2): Ditto.
12868 (fyl2xp1xf3_i387): Rename from fyl2xp1_xf3.
12869 (fyl2xp1_extend<mode>xf3_i387): New insn pattern.
12870 (*fxtractxf3_i387): Rename from *fxtractxf3.
12871 (fxtract_extend<mode>xf3_i387): New insn pattern.
12872 (ilogbsi2): Use match_dup 3, not match_operand:XF 3.
12873 * config/i386/i386.c (ix86_emit_i387_log1p): Use gen_fyl2xp1xf3_i387()
12874 and gen_fyl2xxf3_i387().
12876 2007-01-14 Zdenek Dvorak <dvorakz@suse.cz>
12878 * loop-unswitch.c (unswitch_loop): Do not call fix_loop_placement.
12879 * cfgloopmanip.c (fix_loop_placement): Made static. Use
12880 get_loop_exit_edges. Changed return type to bool.
12881 * cfgloop.h (fix_loop_placement): Declaration removed.
12883 2007-01-14 Dorit Nuzman <dorit@il.ibm.com>
12885 * param.h (MIN_VECT_LOOP_BOUND): New.
12886 * params.def (MIN_VECT_LOOP_BOUND): New.
12887 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Takes another
12888 argument - minimum threshold for number of iterations.
12889 * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge): Add another
12890 argument to declaration.
12891 * tree-vect-analyze.c (vect_analyze_operations): Check value of
12892 MIN_VECT_LOOP_BOUND.
12893 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Call
12894 slpeel_tree_peel_loop_to_edge with additional argument.
12895 (vect_do_peeling_for_alignment): Likewise.
12896 * doc/invoke.texi (min-vect-loop-bound): Document new param option.
12898 2007-01-14 Uros Bizjak <ubizjak@gmail.com>
12901 * config/i386/i386.c (print_operand) ['z']: Output 'b' for
12902 operands of size 1.
12904 2007-01-14 Jan Hubicka <jh@suse.cz>
12906 * tree-dfa.c (remove_referenced_var): New function.
12907 * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
12908 prune referenced vars list too.
12909 * tree-flow.h (remove_referenced_var): Declare.
12911 2007-01-14 Jan Hubicka <jh@suse.cz>
12913 * tree-eh.c (add_stmt_to_eh_region_fn): Do not add call_exprs
12915 (remove_stmt_from_eh_region_fn): Do not remove call_exprs.
12916 (verify_eh_throw_stmt_node, verify_eh_throw_table_statements): Kill.
12917 * except.h (verify_eh_throw_table_statements): Kill prototype.
12918 * cfgexpand.c (expand_gimple_basic_block): Propagate Eh regions
12919 into call exrepssions.
12920 * tree-optimize.c (execute_free_cfg_annotatiosn): Do not call
12922 * tree-cfg.c: Include pointer-set.h.
12923 (verify_node_sharing): Work on pointer set.
12924 (verify_eh_throw_stmt_node): New.
12925 (verify_stmts): Use pointers sets, verify throw_stmt.
12927 2007-01-13 Zdenek Dvorak <dvorakz@suse.cz>
12929 * ipa-reference.c (analyze_function): Consider also addresses taken
12932 2007-01-12 Roger Sayle <roger@eyesopen.com>
12934 * c-typeck.c (null_pointer_constant_p): Replace use of
12935 TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
12936 (build_c_cast): Likewise.
12938 2007-01-12 Roger Sayle <roger@eyesopen.com>
12940 * tree.h (force_fit_type_double): Remove unused final argument.
12941 * c-common.c (constant_expression_warning): Replace use of
12942 TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
12943 (convert_and_check): Likewise.
12944 (shorten_compare): Update call to force_fit_type_double.
12945 (c_common_truthvalue_conversion) <INTEGER_CST>: Use integer_zerop.
12946 * convert.c (convert_to_pointer): Update call to
12947 force_fit_type_double.
12948 * fold-const.c (force_fit_type_double): Remove overflowed_const
12950 (int_const_binop, fold_convert_const_int_from_int,
12951 fold_convert_const_int_from_real, fold_div_compare,
12952 fold_sign_changed_comparison, fold_unary, fold_negate_const,
12953 fold_abs_const, fold_not_const): Remove the final argument from
12954 calls to force_fit_type_double.
12956 2007-01-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
12958 * configure.ac: Set insn to "nop" for spu-*-* also.
12959 * configure: Regenerate.
12961 2007-01-12 Olga Golovanevsky <olga@il.ibm.com>
12963 * builtins.def : Add BUILT_IN_FREE.
12965 2007-01-12 Jan Hubicka <jh@suse.cz>
12967 PR tree-optimization/30443
12968 * tree-inline.c (tree_function_versioning): Do not optimize when
12969 cloning for inlining.
12971 2007-01-12 Zdenek Dvorak <dvorakz@suse.cz>
12973 * doc/loop.texi: Document recording of loop exits.
12974 * cfgloopmanip.c (loopify, duplicate_loop): Use alloc_loop.
12975 (update_single_exits_after_duplication,
12976 update_single_exit_for_duplicated_loop,
12977 update_single_exit_for_duplicated_loops): Removed.
12978 (duplicate_loop_to_header_edge): Do not call
12979 update_single_exits_after_duplication and
12980 update_single_exit_for_duplicated_loops.
12981 (loop_version): Do not update single_exit information.
12982 (fix_loop_structure): Use record_loop_exits instead of
12983 mark_single_exit_loops.
12984 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update
12985 the lists of loop exits.
12986 * cfghooks.c (redirect_edge_and_branch, redirect_edge_and_branch_force,
12987 split_edge, merge_blocks): Update the lists of loop exits.
12988 * modulo-sched.c (sms_schedule): Pass LOOPS_HAVE_RECORDED_EXITS to
12989 loop_optimizer_init.
12990 * loop-init.c (loop_optimizer_init): Call record_loop_exits instead
12991 of mark_single_exit_loops.
12992 (loop_optimizer_finalize): Call release_recorded_exits.
12993 * tree-ssa-loop.c (tree_loop_optimizer_init): Pass
12994 LOOPS_HAVE_RECORDED_EXITS to loop_optimizer_init.
12995 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Do not
12996 update single exit information.
12997 * lambda-code.c (perfect_nestify): Ditto.
12998 * cfgloop.c (flow_loop_free): Destroy the list of exits of the loop.
12999 (mark_single_exit_loops): Removed.
13000 (alloc_loop, loop_exit_hash, loop_exit_eq, loop_exit_free,
13001 get_exit_descriptions, rescan_loop_exit, record_loop_exits,
13002 dump_recorded_exit, dump_recorded_exits, release_recorded_exits): New
13004 (get_loop_exit_edges, single_exit): Use recorded exit lists.
13005 (add_bb_to_loop, remove_bb_from_loops): Update the lists of loop exits.
13006 (verify_loop_structure): Verify consistency of the exit lists.
13007 (flow_loops_find): Use alloc_loop. Initialize exits hash.
13008 (set_single_exit): Removed.
13009 * cfgloop.h (struct loop_exit): New function.
13010 (struct loop): single_exit_ field replaced by exits field.
13011 (LOOPS_HAVE_MARKED_SINGLE_EXITS): Replaced by LOOPS_HAVE_RECORDED_EXITS.
13012 (struct loops): Added exits hash.
13013 (mark_single_exit_loops, set_single_exit): Declaration removed.
13014 (release_recorded_exits, record_loop_exits, rescan_loop_exit): Declare.
13016 2007-01-12 Richard Sandiford <richard@codesourcery.com>
13018 * doc/invoke.texi: Avoid use of @headitem.
13020 2007-01-12 Richard Sandiford <richard@codesourcery.com>
13022 * cse.c (cse_insn): Move HAVE_CC0 code after declarations.
13024 2007-01-12 Richard Sandiford <richard@codesourcery.com>
13026 * doc/install.texi: Fix m68k-*-* anchor and add m68k-*-* to the
13029 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
13030 Richard Sandiford <richard@codesourcery.com>
13032 * doc/invoke.texi: Document -mno-bitfield, -mno-rtd and -mno-short.
13033 * config/m68k/m68k.opt: Resort options.
13034 (mbitfield, mrtd, mshort): Remove RejectNegative properties.
13036 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
13037 Richard Sandiford <richard@codesourcery.com>
13039 * doc/invoke.texi: Document the macros that are defined by
13040 m68k's -mtune and -mhard-float options.
13041 * config/m68k/m68k-protos.h (m68k_cpp_cpu_ident) Declare.
13042 (m68k_cpp_cpu_family): Likewise.
13043 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add a full set
13044 of __ucfv*__ macros. Define __mcffpu__ if generating code for
13045 ColdFire FPUs. Define __mcf_cpu_* and __mcf_family_* macros.
13046 * config/m68k/m68k.c (m68k_cpp_cpu_ident): New function.
13047 (m68k_cpp_cpu_family): Likewise.
13049 2007-01-12 Richard Sandiford <richard@codesourcery.com>
13051 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Treat all mc68*
13052 macros besides mc68000 as tuning macros. Use a switch statement
13053 to set them and mcpu32.
13055 2007-01-12 Julian Brown <julian@codesourcery.com>
13057 * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
13058 (TARGET_68040_ONLY): Rename to...
13059 (TARGET_68040): ...this.
13060 * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
13061 * config/m68k/m68k.md: Likewise.
13063 2007-01-12 Julian Brown <julian@codesourcery.com>
13064 Nathan Sidwell <nathan@codesourcery.com>
13065 Richard Sandiford <richard@codesourcery.com>
13067 * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
13068 the -mcpu= argument associated with the --with-cpu setting.
13069 Define M68K_DEFAULT_TUNE to the default -mtune= option,
13070 if different from the one implied by the -mcpu setting.
13071 Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
13072 using mcpu=FOO as the default CPU option. Set target_cpu_default2.
13073 * doc/invoke.texi: Mention ColdFire in the introduction to the
13074 m68k options. Document the new -march, -mcpu, -mtune, -mdiv,
13075 -mno-div and -mhard-float options. Make -m68881 a synonym for
13076 -mhard-float. Document the previously-undocumented -m5206e,
13077 -m528x, -m5307 and -m5407 options. Tweak the existing option
13078 documentation for consistency.
13079 * doc/install.texi: Mention new --with-cpu arguments.
13080 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
13081 default CPU if neither -mcpu nor -march are specified.
13082 (ASM_CPU_SPEC): Pass down -mcpu and -march options.
13083 (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
13084 TARGET_ISA*. Set the legacy __mcf*__ cpu macros in the same way,
13085 using m68k_tune to decide between families that implement the
13086 same ISA. Use m68k_tune to set __mcfv4e__.
13087 (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
13088 (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
13089 (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
13090 (FL_ISA_C, FL_ISA_MMU): New macros.
13091 (MASK_COLDFIRE): Delete.
13092 (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
13093 (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
13094 (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
13095 (TARGET_HARD_FLOAT): Do not define here.
13096 (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
13097 (TUNE_68000): New macro.
13098 (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
13099 (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
13100 (TUNE_CFV2): Redefine in terms of m68k_tune.
13101 (uarch_type, target_device, fpu_type): New enums.
13102 (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
13103 * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
13104 (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
13105 (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
13106 (FL_FOR_isa_c): New macros.
13107 (m68k_isa): New enum.
13108 (m68k_target_selection): New structure.
13109 (all_devices, all_isas, all_microarchs): New tables.
13110 (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
13111 (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
13112 (MASK_ALL_CPU_BITS): Delete.
13113 (m68k_find_selection): New function.
13114 (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
13115 Map the legacy target options to a combination of the new ones.
13116 (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
13117 m68k_cpu_flags. Handle M68K_DEFAULT_TUNE. Use m68k_cpu_flags
13118 to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
13120 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
13121 (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
13123 (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
13124 (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
13125 * config/m68k/m68k-devices.def: New file.
13127 2007-01-12 Richard Sandiford <richard@codesourcery.com>
13128 Nathan Sidwell <nathan@codesourcery.com>
13130 * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
13131 (SUBTARGET_EXTRA_SPECS): New macros.
13132 * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
13133 use %(asm_cpu_spec) instead.
13134 * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
13135 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
13136 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
13137 (EXTRA_SPECS): Rename to...
13138 (SUBTARGET_EXTRA_SPECS): ...this.
13140 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
13141 Richard Sandiford <richard@codesourcery.com>
13142 Julian Brown <julian@codesourcery.com>
13144 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
13145 (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
13146 to the configuration's default CPU.
13147 (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
13148 Remove default masks.
13149 (m680[012]0-*-*): Set the default with_cpu to the first part of
13151 (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
13152 (m68k*-*-linux): Extend the --with-cpu handling to...
13153 (m680[012]0-*-*, m68k*-*-*): ...these configurations. Allow m68000
13154 and m68010. Don't set target_cpu_default2.
13155 * doc/install.texi: Document --with-cpu for m68k.
13156 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
13157 * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
13158 (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
13159 (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
13160 (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
13161 (ASM_SPEC): Remove use of %(asm_cpu_default).
13162 (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
13163 * config/m68k/linux.h (TARGET_DEFAULT): Delete.
13164 (CPP_SPEC): Merge definitions. Do not handle __HAVE_68881__ here.
13165 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
13166 __HAVE_FPU__ if TARGET_HARD_FLOAT.
13167 (TARGET_DEFAULT): Delete.
13168 (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
13169 cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
13170 (CPP_CPU_SPEC): Delete.
13171 (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
13172 the appropriate string.
13173 (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
13174 (CPP_SPEC): Define to NETBSD_CPP_SPEC.
13175 (ASM_SPEC): Don't use %(asm_default_spec).
13176 * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
13177 TARGET_DEFAULT and add MASK_68881.
13178 * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
13180 2007-01-12 Richard Sandiford <richard@codesourcery.com>
13182 * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
13183 (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
13184 MASK_68010 alongside MASK_68020.
13185 * doc/invoke.texi: Document -m68010.
13186 * config/m68k/m68k.opt (m68010): New.
13187 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
13189 (TUNE_68010): New macro.
13190 * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
13191 (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
13192 (M68K_CPU_m68332): Add MASK_68010.
13193 * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
13194 fallback definition.
13195 * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
13197 * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
13198 (m68k_handle_option): Handle OPT_m68010. Add MASK_68010
13199 to all entries that use MASK_68020.
13200 (output_move_simode_const, output_move_himode, output_move_qimode)
13201 (output_move_stricthi, output_move_strictqi): Use TARGET_68010
13202 instead of TARGET_68020 to select clr behavior. Remove comment
13203 about there being no TARGET_68010.
13204 * config/m68k/m68k.md: Likewise throughout.
13206 2007-01-12 Julian Brown <julian@codesourcery.com>
13208 * config/m68k/m68k.h (TARGET_ISAB): New macro.
13209 * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
13210 * config/m68k/m68k.md: Likewise.
13212 2007-01-12 Julian Brown <julian@codesourcery.com>
13214 * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
13215 TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
13217 2007-01-12 Julian Brown <julian@codesourcery.com>
13219 * config/m68k/m68k.h (TUNE_68040_60): New macro.
13220 * config/m68k/m68k.c (standard_68881_constant_p): Use it.
13221 * config/m68k/m68k.md: Likewise.
13223 2007-01-12 Julian Brown <julian@codesourcery.com>
13224 Richard Sandiford <richard@codesourcery.com>
13226 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
13227 instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
13228 TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
13230 (TARGET_CPU32): Rename to...
13231 (TUNE_CPU32): ...this.
13232 (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
13233 (TUNE_CFV2): New macros.
13234 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
13235 remove conditions that are implied by TARGET_68020.
13236 * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
13237 instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
13238 (m68k_output_function_epilogue): Likewise.
13239 (m68k_rtx_costs): Likewise. Use TUNE_68060 instead of TARGET_68060
13240 and TUNE_CFV2 instead of TARGET_5200. Use TUNE_68000_10 instead of
13241 "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
13242 non-68000 timings. Refactor multiplication and division costs.
13243 (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
13244 TUNE_CPU32 instead of TARGET_CPU32.
13245 (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
13246 and TUNE_68060 instead of TARGET_68060.
13247 * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
13248 TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
13250 (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
13251 && !TARGET_COLDFIRE" to choose between moveq and clr.
13252 Likewise in the unnamed movsf pattern.
13253 (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
13254 "!TARGET_68020 && !TARGET_COLDFIRE". Likewise the unnamed
13257 2007-01-12 Richard Sandiford <richard@codesourcery.com>
13259 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
13260 of tabbing before backslashes.
13262 2007-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13264 * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
13265 * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
13266 (ASM_OUTPUT_INTERNAL_LABEL): Define.
13268 2007-01-11 Zdenek Dvorak <dvorakz@suse.cz>
13270 * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
13271 find_interesting_uses_cond.
13272 (find_interesting_uses_cond): Use extract_cond_operands.
13273 (rewrite_use_compare): Use extract_cond_operands and
13274 force_gimple_operand_bsi. Do not call update_stmt.
13275 (determine_use_iv_cost_condition): Use extract_cond_operands.
13276 Return cheaper of using original bound and changing the exit bound.
13278 2007-01-11 Zdenek Dvorak <dvorakz@suse.cz>
13280 PR tree-optimization/29516
13281 * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
13282 most_expensive_mult_to_index, addr_to_parts,
13283 create_mem_ref, maybe_fold_tmr): Make the type of
13284 fields of TARGET_MEM_REF sizetype.
13285 (move_fixed_address_to_symbol, move_pointer_to_base):
13287 * tree.def (TARGET_MEM_REF): Add comment on types of
13290 2007-01-11 Joseph Myers <joseph@codesourcery.com>
13292 * c-common.c (vector_types_convertible_p): Treat opaque types as
13293 always convertible if they have the same size, but not otherwise.
13295 2007-01-11 Steven Bosscher <steven@gcc.gnu.org>
13297 * ifcvt.c (struct noce_if_info): Add comments to the fields.
13298 Remove the b_unconditional field.
13299 (noce_try_sign_mask): Do not look at b_unconditional.
13300 (noce_process_if_block): Do not use merge_if_blocks. Update
13301 the CFG here. Do not set b_unconditional.
13302 (cond_move_process_if_block): Likewise.
13303 (find_cond_trap): Likewise.
13304 (check_cond_move_block): Require simple jump insns at the end
13305 of the basic block.
13307 2007-01-11 Jan Hubicka <jh@suse.cz>
13309 PR tree-optimization/1046
13310 * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
13311 when alias info is not ready.
13312 (pass_tail_recursion): Do not require aliasing.
13313 * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
13314 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
13315 * tree-ssa-copy.c (pass_copy_prop): Likewise.
13316 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
13317 * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
13318 * passes.c (init_optimization_passes): Execute rename_ssa_copies,
13319 ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
13321 * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
13322 When aliasing is not build, mark statement as volatile.
13324 2007-01-11 Tom Tromey <tromey@redhat.com>
13326 PR preprocessor/15185, PR preprocessor/20989:
13327 * doc/cppopts.texi <-MT>: Update description of algorithm for
13328 computing default target.
13329 <-M, -MD>: Reword "basename" text.
13331 2007-01-11 Roger Sayle <roger@eyesopen.com>
13333 * builtins.c (expand_builtin_pow, expand_builtin_powi,
13334 fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
13335 fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
13336 fold_builtin_int_int_roundingfn, fold_builtin_bitop,
13337 fold_builtin_bswap, real_constp, fold_builtin_pow,
13338 fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
13339 do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
13340 uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
13341 * convert.c (convert_to_pointer): Likewise.
13342 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
13343 * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
13344 const_binop, fold_convert_const_int_from_int,
13345 fold_convert_const_int_from_real,
13346 fold_convert_const_real_from_real, sign_bit_p,
13347 optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
13348 fold_sign_changed_comparison, fold_unary, fold_comparison,
13349 fold_binary, multiple_of_p, tree_Expr_non_zero_p,
13350 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
13351 * print-tree.c (print_node_brief, print_node): Likewise.
13352 * stor-layout.c (place_field, layout_type): Likewise.
13353 * tree-chrec.c (keep_cast): Likewise.
13354 * tree.c (build_vector, build_real, build_real_from_int_cst,
13355 build_complex): Likewise.
13357 2007-01-11 Roger Sayle <roger@eyesopen.com>
13359 * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete. For the time being,
13360 treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
13362 2007-01-11 Paolo Bonzini <bonzini@gnu.org>
13364 * configure.ac (strict1_warn): Rename to strict_warn.
13365 (WERROR, --enable-werror, symlink hacks, stage1_cflags,
13366 cc_set_by_configure, quoted_cc_set_by_configure,
13367 stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
13368 all_boot_languages, all_stagestuff): Remove.
13369 (target_list): Remove bootstrap targets.
13370 * Makefile.in (quickstrap): Unconditionally make a synonym of all.
13371 (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
13372 REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
13373 SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
13374 VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
13375 STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
13376 stage1_copy, stage2_build, stage2_copy, stageprofile_build,
13377 stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
13378 stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
13379 bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
13380 bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
13381 unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
13382 restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
13383 cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
13384 *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
13385 stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
13386 stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
13387 risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
13388 (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
13389 (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
13390 (mostlyclean): Adjust.
13391 (clean, distclean): Don't mention bootstrap stuff.
13392 * configure: Regenerate.
13393 * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
13394 java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
13395 treelang/config-lang.in (stagestuff): Remove.
13396 * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
13397 stageprofile, stagefeedback, stagestuff): Remove mention.
13399 2007-01-11 Nick Clifton <nickc@redhat.com>
13401 * config/mcore/predicates.md (mcore_general_movesrc_operand):
13403 (mcore_general_movdst_operand): Do not accept CONST_INTs.
13404 (mcore_arith_K_S_operand): Run the test for the S constraint not
13405 the test for the M constraint.
13406 (mcore_addsub_operand): Do not accept integer values that are
13407 larger than 32 bits.
13408 * config/mcore/mcore.md: Remove unused constraints from split.
13409 (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
13410 (addsi3): Likewise.
13411 (allocate_stack): Likewise.
13412 * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
13413 operands to 32 bits.
13414 (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
13416 (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
13417 mcore_const_ok_for_inline, mcore_const_trick_uses_not,
13418 try_constant_tricks, mcore_num_ones, mcore_num_zeros,
13419 mcore_output_bclri, mcore_output_andn, output_inline_const,
13420 mcore_output_move, mcore_output_movedouble): Likewise.
13421 (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
13422 (output_inline_const): Likewise.
13423 (output_inline_const): Fix format strings used in sprintf
13425 * config/mcore/mcore-protos.h: Update prototypes for changed
13426 functions in mcore.c.
13427 * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
13428 HOST_WIDE_INT and not int.
13429 (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
13430 CONST_OK_FOR_N): Likewise.
13431 (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
13432 (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
13435 2007-01-10 Jan Hubicka <jh@suse.cz>
13437 * tree-vrp.c (remove_range_assertions): Release defs.
13438 * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
13439 * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
13441 2007-01-10 Paul Brook <paul@codesourcery.com>
13443 * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
13444 * config/arm/arm.md (mulsi3subsi): New insn.
13446 2007-01-10 Zdenek Dvorak <dvorakz@suse.cz>
13448 * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
13449 (tree_transform_and_unroll_loop): New.
13450 * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
13453 2007-01-10 Robert Kennedy <jimbob@google.com>
13455 * fold-const.c (fold_comparison): Fold comparisons like (x *
13456 1000 < 0) to (x < 0).
13458 2007-01-10 Ian Lance Taylor <iant@google.com>
13460 * tree-pretty-print.c (dump_generic_node): Print parentheses when
13461 operands have the same priority.
13463 2007-01-10 Tom Tromey <tromey@redhat.com>
13465 * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
13466 (fold_binary): Likewise.
13467 * langhooks.c (lhd_can_use_bit_fields_p): Removed.
13468 * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
13469 (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
13470 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
13471 * langhooks.h (struct lang_hooks): Removed field
13472 'can_use_bit_fields_p'.
13474 2007-01-10 Ralf Corsépius <ralf.corsepius@rtems.org>
13476 * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
13478 2007-01-10 Razya Ladelsky <razya@il.ibm.com>
13480 * function.c (get_last_funcdef_no): New function.
13481 * function.h (get_last_funcdef_no): Declare.
13482 * tree-inline.c (initialize_cfun): Add initialization.
13483 (tree_function_versioning): Cleanup.
13485 2007-01-10 Jan Hubicka <jh@suse.cz>
13487 * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
13490 2007-01-10 Sa Liu <saliu@de.ibm.com>
13491 Ben Elliston <bje@au.ibm.com>
13493 * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
13494 for SAVE_NONLOCAL and Pmode for any other save level.
13495 * spu-protos.h (spu_restore_stack_block): Declare.
13496 * spu.md (save_stack_block): Remove.
13497 (restore_stack_block): Call spu_restore_stack_block.
13498 * spu.c (spu_restore_stack_block): New function.
13499 (spu_expand_epilogue): Remove old comment.
13501 2007-01-09 Zdenek Dvorak <dvorakz@suse.cz>
13503 PR tree-optimization/30322
13504 * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
13505 (cand_value_at): Return the value as aff_tree.
13506 (may_eliminate_iv): Convert the bound from aff_tree to tree.
13507 * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
13508 aff_combination_mult): New functions.
13509 (aff_combination_add): Use aff_combination_add_cst.
13510 (aff_combination_convert): Allow conversions to a wider type.
13511 (tree_to_aff_combination): Handle BIT_NOT_EXPR.
13512 * tree-affine.h (aff_combination_mult): Declare.
13514 2007-01-09 Carlos O'Donell <carlos@codesourcery.com>
13516 * doc/tm.texi: Update documentation to reflect reality of exec
13517 and start file search behaviours. Update copyright year.
13518 * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
13519 header file directories.
13521 2007-01-09 Uros Bizjak <ubizjak@gmail.com>
13523 * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
13524 (*cosxf2): Rename to cosxf2_i387.
13525 (*sindf2, *sinsf2): Extend operand 1 to XFmode. Macroize patterns
13526 using X87MODEF12 mode macro. Rename patterns to
13527 *sin_extend<mode>xf2_i387. Use SSE_FLOAT_MODE_P to disable patterns
13529 (*cosdf2, *cossf2): Ditto.
13530 (sincosdf3, sincossf3): Ditto. Rewrite corresponding splitters
13531 to match extended input operands.
13532 (sincos<mode>3): New expander.
13533 (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
13534 insn patterns and corresponding splitters.
13536 2007-01-09 Kaz Kojima <kkojima@gcc.gnu.org>
13538 * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
13539 (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
13541 2007-01-09 Nicolas Pitre <nico@cam.org>
13544 * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
13546 2007-01-08 Geoffrey Keating <geoffk@apple.com>
13548 * target.h (struct gcc_target): New field library_rtti_comdat.
13549 * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
13550 (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
13551 * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
13552 * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
13554 2007-01-08 Geoffrey Keating <geoffk@apple.com>
13556 * doc/invoke.texi (Optimize Options): Correct description of -O0.
13558 2007-01-08 Richard Guenther <rguenther@suse.de>
13560 * tree.h (force_fit_type_double): Export.
13561 (force_fit_type): Remove.
13562 * fold-const.c (force_fit_type_double): New function.
13563 (force_fit_type): Remove.
13564 (int_const_binop): Use it.
13565 (fold_convert_const_int_from_int): Likewise.
13566 (fold_convert_const_int_from_real): Likewise.
13567 (fold_div_compare): Likewise.
13568 (fold_sign_changed_comparison): Likewise.
13569 (fold_unary): Likewise.
13570 (fold_negate_const): Likewise.
13571 (fold_abs_const): Likewise.
13572 (fold_not_const): Likewise.
13573 * c-common.c (shorten_compare): Use force_fit_type_double.
13574 * convert.c (convert_to_pointer): Likewise.
13576 2007-01-08 Richard Guenther <rguenther@suse.de>
13578 * tree.h (build_int_cst_wide_type): Export.
13579 * tree.c (build_int_cst_wide_type): New function.
13580 (build_int_cst_wide): Fix comment.
13581 * builtins.c (fold_builtin_object_size): Use build_int_cst
13582 to build -1 or 0 of the correct type. Use fit_double_type
13583 to check for overflow.
13584 * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
13586 (decode_field_reference): Likewise.
13587 (all_ones_mask_p): Likewise.
13588 (native_interpret_int): Use build_int_cst_wide_type.
13589 (fold_binary): Use build_int_cst_type to build an all-ones
13591 * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
13593 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
13595 * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
13597 2007-01-09 Ben Elliston <bje@au.ibm.com>
13599 * genautomata.c (STATS_OPTION): New option.
13600 (stats_flag): New flag.
13601 (gen_automata_option): Handle it.
13602 (initiate_automaton_gen): Ditto.
13603 (write_automata): Output statistics only if stats_flag is
13604 set. Likewise, output time statistics only if time_flag is set.
13605 * doc/md.texi (Processor pipeline description): Document new flag.
13607 2007-01-08 Richard Guenther <rguenther@suse.de>
13609 * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
13610 * tree.c (build_int_cst_type): Likewise.
13611 (size_in_bytes): Don't call force_fit_type on the result.
13612 (int_fits_type_p): Use fit_double_type.
13613 * fold-const.c (fit_double_type): New function.
13614 (force_fit_type): Use it.
13615 * tree.h (fit_double_type): Export.
13617 2007-01-08 Jan Hubicka <jh@suse.cz>
13619 * tree-vectorizer.c (gate_increase_alignment): Fix return type.
13620 * ipa.c (function_and_variable_visibility): Fix return type.
13622 2007-01-08 Richard Guenther <rguenther@suse.de>
13624 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
13625 of offset to build the index.
13626 * tree-pretty-print.c (dump_generic_node): Don't build negated
13627 const just for printing.
13628 * c-pretty-print.c (pp_c_integer_constant): Likewise.
13629 * builtins.c (fold_builtin_int_roundingfn): Check if result
13630 fits the type by using force_fit_type and comparing the result.
13631 * predict.c (predict_loops): Use compare_tree_int for comparison.
13632 * tree.c (build_int_cst): Fall back to integer_type_node for
13634 (build_int_cst_wide): Assert type is non-null.
13636 2007-01-08 Roberto Costa <roberto.costa@st.com>
13638 * tree-vrp.c (extract_range_from_cond_expr): New.
13639 (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
13640 * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
13642 (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
13643 * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
13644 tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
13645 used as expressions.
13646 * tree-object-size.c (cond_expr_object_size): New.
13647 (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
13649 2007-01-08 Jan Hubicka <jh@suse.cz>
13651 * tree-ssa-forwprop.c (forward_propagate_into_cond,
13652 tree_ssa_forward_propagate_single_use_va): Release defs of propagated
13655 2007-01-08 Richard Guenther <rguenther@suse.de>
13657 PR tree-optimization/23603
13658 * tree-vrp.c (set_value_range_to_truthvalue): New function.
13659 (extract_range_from_binary): Fall back to truthvalue instead of
13660 varying for TRUTH_*_EXPR.
13661 (extract_range_from_comparison): Fall back to truthvalue instead of
13663 (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
13664 if all visited PHI values were constant.
13666 2007-01-08 Jan Hubicka <jh@suse.cz>
13668 * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
13669 (cgraph_analyze_function): break out from ...
13670 (cgraph_finalize_compilation_unit): ... here.
13671 (cgraph_expand_function): Remove forgoten commented out line.
13672 (cgraph_optimize): Analyze functions.
13674 2007-01-08 Jan Hubicka <jh@suse.cz>
13676 * tree-pas.h (TODO_remove_function): New flag.
13677 (TODO_update*): Renumber.
13678 (pass_ipa_increase_alignment,
13679 pass_ipa_function_and_variable_visibility): New passes.
13680 * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
13681 (cgraph_function_and_variable_visibility): Move to ipa.c
13682 (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
13683 cgraph_increase_alignment.
13684 * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
13685 (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
13686 calling tree-inline.
13687 (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
13688 (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
13689 * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
13690 (gate_increase_alignment): New function.
13691 (pass_ipa_increase_alignment): New pass.
13692 * ipa.c: Inline tree-pass.h and timevar.h
13693 (function_and_variable_visibility): Move here from cgraphunit.c
13694 * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
13695 * passes.c (init_optimization_passes): Add the two new passes.
13696 (execute_todo): Handle cgraph_remove_functions.
13698 2007-01-08 Nick Clifton <nickc@redhat.com>
13700 * config/frv/predicates.md (reg_or_0_operand): Accept
13703 2007-01-08 Ralf Corsépius <ralf.corsepius@rtems.org>
13705 * config/bfin/rtems.h, config/bfin/t-rtems: New.
13706 * config.gcc: Add bfin*-rtems*.
13708 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
13710 * c.opt: Add -flax-vector-conversions.
13711 * c-typeck.c (convert_for_assignment): Pass flag to
13712 vector_types_convertible_p to allow emission of note.
13713 (digest_init): Likewise.
13714 * c-opts.c: Handle -flax-vector-conversions.
13715 * c-common.c (flag_lax_vector_conversions): New.
13716 (vector_types_convertible_p): Unless -flax-vector conversions
13717 has been passed, disallow conversions between vectors with
13718 differing numbers of subparts and/or element types. If such
13719 a conversion is disallowed, possibly emit a note on the first
13720 occasion only to inform the user of -flax-vector-conversions.
13721 The new last argument specifies this.
13722 * c-common.h (flag_lax_vector_conversions): New.
13723 (vector_types_convertible_p): Add extra argument.
13724 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
13725 char_type_node for V*QI type vectors.
13726 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
13727 Update to satisfy new typechecking rules.
13728 * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
13729 C and C++ variants.
13730 * doc/invoke.texi (C Dialect Options): Document
13731 -flax-vector-conversions.
13733 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
13735 PR tree-optimization/29877
13736 * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
13737 a register variable on the RHS to not be replaceable.
13739 2007-01-08 Chen Liqin <liqin@sunnorth.com.cn>
13740 * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
13741 * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
13742 const_simm15, const_pow2, const_npow2): Added.
13743 * config/score/misc.md (insv, extv, extzv, movmemsi,
13744 move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
13745 * config/score/score.c (score_address_cost, score_select_cc_mode):
13747 Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
13748 Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
13749 Update score_print_operand.
13750 * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
13751 Adjust register allocate order and update some macro define.
13752 * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
13753 mdx_block_move_straight, mdx_block_move_loop_head,
13754 mdx_block_move_loop_body, mdx_block_move_loop_foot, mdx_block_move_loop,
13755 mdx_block_move): Added.
13756 (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
13757 mdp_limm): Updated and fix some bug and typo.
13758 * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
13759 (movsf, movdf, doloop_end): Added.
13761 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
13763 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
13764 config/arm/thumb2.md: Fix comment typos.
13765 * doc/extend.texi: Fix a typo.
13767 2007-01-07 Eric Christopher <echristo@apple.com>
13769 * configure.ac: Check for __stack_chk_fail for darwin.
13770 * configure: Regenerate.
13772 2007-01-07 Richard Guenther <rguenther@suse.de>
13774 * tree-vrp.c (extract_range_from_assert): CSE calls to
13775 compare_values where possible.
13776 (extract_range_from_unary_expr): Likewise.
13778 2007-01-07 Anatoly Sokolov <aesok@post.ru>
13780 * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
13781 * config/avr/avr.c (call_insn_operand): Delete function.
13782 * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
13783 instead of register number. Use predicates.
13784 * config/avr/predicates.md (const0_operand, reg_or_0_operand,
13785 call_insn_operand): Add.
13787 2007-01-06 Jan Hubicka <jh@suse.cz>
13789 * tree-pass.h (pass_build_cgraph_edges): Declare.
13790 * cgraphunit.c (record_refernece): Move to cgraphbuild.c
13791 (visited_nodes): Remove.
13792 (cgraph_create_edges): Move to cgraphbuild.c; rename to
13793 build_cgrpah_edges; make visited_nodes local.
13794 (cgraph_process_new_functions): DO not call initialize_inline_failed.
13795 (record_references_in_initializer): Move to cgraphbuild.c
13796 (initialize_inline_failed, rebuild_cgraph_edges,
13797 pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
13798 (verify_cgraph_node): Make visited_nodes local.
13799 (cgraph_analyze_function): Do not call cgraph_create_edges and
13800 initialize_inline_failed.
13801 (cgraph_expand_function): Do not call cgraph_lower_function;
13802 assert that function is already lowered.
13803 * Makefile.in (cgraphbuild.o): New.
13804 * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
13805 at the end of lowering passes.
13807 2007-01-06 Steven Bosscher <steven@gcc.gnu.org>
13809 * ifcvt.c (cond_move_convert_if_block): New function, code
13810 factored out from...
13811 (cond_move_process_if_block): ...here. Call the new function
13812 on the THEN and ELSE blocks.
13813 (merge_if_block): Do not copy global_live_at_end, merge_blocks
13814 already takes care of this.
13816 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13819 * tree.h (TREE_OVERFLOW_P): New.
13820 * c-typeck.c (parser_build_unary_op): Warn only if result
13821 overflowed and operands did not.
13822 (parser_build_binary_op): Likewise.
13823 (convert_for_assignment): Remove redundant overflow_warning.
13824 * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
13826 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13828 * c-typeck.c (store_init_value): Split over two lines to follow
13829 the GNU coding style.
13831 2007-01-05 Benjamin Kosnik <bkoz@redhat.com>
13833 * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
13834 __GXX_EXPERIMENTAL_CXX0X__.
13835 * doc/cpp.texi: Same.
13837 2007-01-05 Richard Guenther <rguenther@suse.de>
13839 PR middle-end/27826
13840 * tree.c (get_narrower): Do not construct COMPONENT_REFs
13841 with mismatched types. Instead explicitly build a
13842 conversion NOP_EXPR.
13844 2007-01-05 Ian Lance Taylor <iant@google.com>
13846 * c-common.c (decl_with_nonnull_addr_p): New function.
13847 (c_common_truthvalue_conversion): Call it.
13848 * c-typeck.c (build_binary_op): Likewise.
13849 * c-common.h (decl_with_nonnull_addr_p): Declare.
13851 2007-01-05 Jakub Jelinek <jakub@redhat.com>
13854 * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
13857 2007-01-05 Joel Brobecker <brobecker@adacore.com>
13859 * doc/install.texi (Final install): Document the fact that
13860 the GNAT runtime should not be stripped.
13862 2007-01-04 Jan Hubicka <jh@suse.cz>
13864 * tree-inline.c (fold_marked_statements): Update operand caches
13865 and EH after folding
13867 2007-01-04 Ian Lance Taylor <iant@google.com>
13869 * c-common.c (check_function_nonnull): Whitespace fix.
13871 2007-01-04 Jan Hubicka <jh@suse.cz>
13873 * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
13874 comitted older version of patch.
13875 (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
13876 function, celanup cfg and collect garbage.
13878 2007-01-04 Mike Stump <mrs@apple.com>
13880 * Makefile.in (mostlyclean): Don't remove libgcc anymore.
13883 2007-01-04 Eric Christopher <echristo@apple.com>
13885 * libgcc2.c (__bswapsi2): Use SItype.
13886 (__bswapdi2): Use DItype.
13887 * libgcc2.h: Update for above.
13889 2007-01-04 Paul Brook <paul@codesourcery.com>
13891 * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
13892 mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
13893 mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
13894 umulsidi3, umulsidi3adddi, smulsi3_highpart,
13895 umulsi3_highpart): Make conditional on !arm_arch6.
13896 (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
13897 mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
13898 mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
13899 umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
13900 umulsi3_highpart_v6): New insns.
13902 2007-01-04 Roger Sayle <roger@eyesopen.com>
13904 * fold-const.c (fold_convert): When casting an expression to void,
13905 fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
13906 have a type. Instead of attempting to build a NOP_EXPR, return
13907 these "special" trees directly.
13909 2007-01-04 Joseph Myers <joseph@codesourcery.com>
13911 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
13912 MULT inside MINUS as either argument. Use rs6000_cost->dmul -
13913 rs6000_cost->fp not 0 as adjustment for outer NEG.
13915 2007-01-04 Jan Hubicka <jh@suse.cz>
13917 * cgraph.c (cgraph_release_function_body): New function.
13918 (cgraph_remove_node): Use it.
13919 * cgraph.h (cgraph_release_function_body): Declare.
13920 * cgraphunit.c (cgraph_expand_function): Use it.
13921 * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
13922 * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
13923 is initialized and while compilation of other function is running.
13924 * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
13925 statement CFG annotations from here to ...
13926 * tree-cfg.c (delete_tree_cfg_annotations): ... here.
13928 2007-01-04 Zdenek Dvorak <dvorakz@suse.cz>
13930 * cfgloop.h (enum li_flags): Make the constants powers of two.
13932 2007-01-04 Jan Hubicka <jh@suse.cz>
13934 * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
13936 (fold_marked_statements): New function.
13937 (optimize_inline_calls, tree_function_versioning): Fold new statements.
13938 * tree-inline.h (copy_body_data): Add statements_to_fold.
13940 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
13942 * config.gcc: Mention libgcc/config.host.
13943 * Makefile.in: Update comments mentioning libgcc.
13944 (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
13945 (all.cross, start.encap, rest.encap, rest.cross): Update
13946 dependencies for libgcc move.
13947 (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
13948 (clean-target, clean-target-libgcc): Delete.
13949 (srcdirify, GCC_EXTRA_PARTS): New macros.
13950 (libgcc-support, libgcc.mvars): New rules.
13951 (distclean): Remove mention of mklibgcc.
13952 (install): Don't reference INSTALL_LIBGCC.
13953 (install-common): Don't reference EXTRA_PARTS.
13954 (install-libgcc, install-multilib): Delete rules.
13955 * mklibgcc.in: Delete file.
13956 * doc/configfiles.texi: Don't mention mklibgcc.
13958 * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
13959 * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
13960 * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
13961 * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
13962 (mklibgcc, ldblspecs): Likewise.
13964 * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
13965 (posixpre.def): Use $(T).
13966 (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
13967 (SHLIB_SRC, SHLIB_INSTALL): Delete.
13968 (SHLIB_LINK): Make dummy.
13969 * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
13971 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
13973 * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
13974 * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
13975 config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
13976 config/rs6000/t-newas, config/sparc/t-elf: Likewise.
13978 * configure.ac (all_outputs): Remove mklibgcc.
13979 * configure: Regenerated.
13981 2007-01-03 Josh Conner <jconner@apple.com>
13983 PR middle-end/29683
13984 * calls.c (compute_argument_addresses): Set stack and stack_slot
13985 for partial args, too.
13986 (store_one_arg): Use locate.size.constant for the size when
13987 generating a save_area.
13989 2007-01-03 Robert Kennedy <jimbob@google.com>
13991 * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
13992 whose definitions are deleted due to basic block merging.
13994 2007-01-03 Paul Brook <paul@codesourcery.com>
13997 * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
13999 (use_return_insn): Return 0 for Thumb interrupt functions.
14000 (print_multi_reg): Add rfe argument for IRQ returns.
14001 (arm_output_epilogue): Pop interrupt return address directly into PC.
14002 (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
14004 2007-01-03 Paul Brook <paul@codesourcery.com>
14006 Merge from sourcerygxx-4_1.
14007 * config/arm/thumb2.md: New file.
14008 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
14010 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
14011 * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
14012 (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
14013 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
14015 (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
14016 * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
14018 * config/arm/ieee754-sf.S: Ditto.
14019 * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
14020 (thumb1_base_register_rtx_p): ... to this.
14021 (thumb_index_register_rtx_p): Rename...
14022 (thumb1_index_register_rtx_p): ... to this.
14023 (thumb_output_function_prologue): Rename...
14024 (thumb1_output_function_prologue): ... to this.
14025 (thumb_legitimate_address_p): Rename...
14026 (thumb1_legitimate_address_p): ... to this.
14027 (thumb_rtx_costs): Rename...
14028 (thumb1_rtx_costs): ... to this.
14029 (thumb_compute_save_reg_mask): Rename...
14030 (thumb1_compute_save_reg_mask): ... to this.
14031 (thumb_final_prescan_insn): Rename...
14032 (thumb1_final_prescan_insn): ... to this.
14033 (thumb_expand_epilogue): Rename...
14034 (thumb1_expand_epilogue): ... to this.
14035 (arm_unwind_emit_stm): Rename...
14036 (arm_unwind_emit_sequence): ... to this.
14037 (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
14038 thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
14039 thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
14040 arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
14041 thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
14042 thumb2_output_casesi): New functions.
14043 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
14044 (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
14045 FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
14046 THUMB2_WORK_REGS): Define.
14047 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
14048 arm_condexec_mask, arm_condexec_masklen)): New variables.
14049 (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
14050 (arm_override_options): Check new CPU capabilities.
14051 Set new architecture flag variables.
14052 (arm_isr_value): Handle v7m interrupt functions.
14053 (user_return_insn): Return 0 for v7m interrupt functions. Handle
14055 (const_ok_for_arm): Handle Thumb-2 constants.
14056 (arm_gen_constant): Ditto. Use movw when available.
14057 (arm_function_ok_for_sibcall): Return false for v7m interrupt
14059 (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
14060 (thumb_find_work_register, arm_load_pic_register,
14061 legitimize_tls_address, arm_address_cost, load_multiple_sequence,
14062 emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
14063 print_multi_reg, output_mov_long_double_fpa_from_arm,
14064 output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
14065 output_mov_double_fpa_from_arm, output_move_double,
14066 arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
14067 output_return_instruction, arm_output_function_prologue,
14068 arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
14069 arm_output_mi_thunk, thumb_set_return_address): Ditto.
14070 (arm_expand_prologue): Handle Thumb-2. Use arm_save_coproc_regs.
14071 (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
14072 (arithmetic_instr, shift_op): Use arm_shift_nmem.
14073 (arm_print_operand): Use arm_print_condition. Handle '(', ')', '.',
14075 (arm_final_prescan_insn): Use extract_constrain_insn_cached.
14076 (thumb_expand_prologue): Use thumb_set_frame_pointer.
14077 (arm_file_start): Output directive for unified syntax.
14078 (arm_unwind_emit_set): Handle stack alignment instruction.
14079 * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
14080 Add v6t2, v7, v7a, v7r and v7m.
14081 (RETLDM): Add Thumb-2 code.
14082 (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
14083 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
14084 (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
14085 TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
14086 THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
14087 ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
14088 THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
14089 CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
14090 ADJUST_INSN_LENGTH): Define.
14091 (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
14092 STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
14093 BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
14094 PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
14095 SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
14096 TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
14097 HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
14098 HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
14099 REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
14100 REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
14101 LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
14102 GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
14103 ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
14104 FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
14105 PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
14106 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
14107 * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
14109 * config/arm/arm-tune.md: Regenerate.
14110 * config/arm/arm-protos.h: Update prototypes.
14111 * config/arm/vfp.md: Enable patterns for Thumb-2.
14112 (arm_movsi_vfp): Add movw alternative. Use output_move_vfp.
14113 (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
14114 (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
14115 thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
14116 * config/arm/libunwind.S: Add Thumb-2 code.
14117 * config/arm/constraints.md: Update include Thumb-2.
14118 * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
14119 * config/arm/ieee754-df.S: Ditto.
14120 * config/arm/bpabi.S: Ditto.
14121 * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
14122 * config/arm/predicates.md (low_register_operand,
14123 low_reg_or_int_operand, thumb_16bit_operator): New.
14124 (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
14125 (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
14126 * config/arm/t-arm-elf: Add armv7 multilib.
14127 * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
14129 (UNSPEC_STACK_ALIGN, ce_count): New.
14130 (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
14131 arm_zero_extendsidi2, arm_zero_extendqidi2): New
14133 * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
14134 (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
14135 thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
14136 * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
14137 (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
14138 thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
14140 * doc/extend.texi: Document ARMv7-M interrupt functions.
14141 * doc/invoke.texi: Document Thumb-2 new cores+architectures.
14143 2007-01-03 Jakub Jelinek <jakub@redhat.com>
14145 * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
14146 (struct _Unwind_Context): Rename args_size to flags, remove
14147 signal_frame field, add a new args_size field and version field.
14148 (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
14149 _Unwind_IsExtendedContext): New inline functions.
14150 (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
14151 Assume by_value array is only present if _Unwind_IsExtendedContext.
14152 (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
14153 _Unwind_IsSignalFrame.
14154 (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
14155 (uw_update_context_1): Use _Unwind_SetSignalFrame.
14156 (uw_init_context_1): Initialize context->flags to
14157 EXTENDED_CONTEXT_BIT.
14158 * config/rs6000/linux-unwind.h (frob_update_context): Use
14159 _Unwind_SetSignalFrame.
14161 2007-01-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
14163 PR middle-end/30353
14164 * gimplify.c (gimplify_modify_expr_complex_part): Move below
14165 tree_to_gimple_tuple. Call tree_to_gimple_tuple when we need
14168 2007-01-03 Kazu Hirata <kazu@codesourcery.com>
14170 * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
14171 REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
14172 RET, AT_SP): Remove.
14173 * config/i386/i386.md (*sse_prologue_save_insn): Use return
14176 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
14177 * cfgbuild.c (find_basic_blocks): Likewise.
14178 * cfgrtl.c (rtl_create_basic_block): Likewise.
14179 * function.c (temp_slots_at_level): Likewise.
14180 * reg-stack.c (stack_regs_mentioned): Likewise.
14181 * regclass.c (allocate_reg_info): Likewise.
14182 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
14183 set_bb_for_stmt, move_block_to_fn): Likewise.
14184 * tree-complex.c (tree_lower_complex): Likewise.
14185 * vec.h (VEC_safe_grow_cleared): New.
14187 * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
14189 2007-01-03 Zdenek Dvorak <dvorakz@suse.cz>
14191 * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
14192 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
14194 * cfgloopmanip.c (scale_loop_frequencies): Export.
14195 (loopify): Scale the frequencies by prescribed coefficients.
14196 (set_zero_probability): New function.
14197 (duplicate_loop_to_header_edge): Improve updating of frequencies.
14198 (lv_adjust_loop_entry_edge, loop_version): Set probabilities
14199 and frequencies according to arguments.
14200 * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
14202 * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
14203 * modulo-sched.c (sms_schedule): Set probabilities for entering
14204 versioned loop correctly.
14205 * tree-vect-transform.c (vect_transform_loop): Ditto.
14206 * cfgloop.h (loopify, loop_version): Declaration changed.
14207 (scale_loop_frequencies): Declared.
14209 2007-01-02 Jan Hubicka <jh@suse.cz>
14211 * cgraph.c: Include tree-flow.h
14212 (cgraph_add_new-function): Handle IPA_SSA mode; execute
14213 early_local_passes.
14214 * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
14215 * tree-pass.h (pass_all_early_optimizations): Declare.
14216 * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
14217 early_local_passes.
14218 (cgraph_analyze_function): Do early_local_passes.
14219 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
14220 Do not add referenced vars.
14221 * tree-optimize.c (gate_all_optimizations): Do not execute when not in
14223 (gate_all_early_local_passes): New gate.
14224 (pass_early_local_passes): Use new gate.
14225 (execute_early_local_optimizations): New functions.
14226 (gate_all_early_optimizations): New gate.
14227 (pass_all_early_optimizations): New pass.
14228 (execute_free_datastructures): Free SSA only when initialized.
14229 (gate_init_datastructures): Init only when optimizing.
14230 (tree_lowering_passes): Do early local passes when called late.
14231 * tree-profile.c (do_tree_profiling): Don't profile functions added
14233 (do_early_tree_profiling, pass_early_tree_profile): Kill.
14234 * tree-cfg.c (update_modified_stmts): Do not update when operands are
14236 * passes.c (init_optimizations_passes): Reorder so we go into SSA
14237 during early_local_passes.
14238 * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
14241 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
14243 * Makefile.in: Update copyright year.
14245 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
14247 * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
14248 in $(lang_checks) and check-consistency targets.
14250 2007-01-02 Jan Hubicka <jh@suse.cz>
14252 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
14253 Do not add referenced vars.
14254 * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
14256 * passes.c (init_optimization_passes): Put mudflap_2 after
14257 free_datastructures.
14259 2007-01-02 Jan Hubicka <jh@suse.cz>
14261 * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
14262 Set NOTHROW flag on call statements proved to be nothrow.
14263 Update statement of local calls so new pure/const functions are
14264 updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
14266 (tree_rest_of_compilation): Register hooks and initialize bitmap
14267 early. Do not set after_inlining flag.
14269 2007-01-02 Steve Ellcey <sje@cup.hp.com>
14271 * sbitmap.c (HOST_BITS_PER_LONG_LONG): Change to
14272 HOST_BITS_PER_LONGLONG
14274 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14277 * c-typeck.c (store_init_value): Don't emit pedantic overflow
14278 warning for non-static initializers.
14280 2007-01-02 Steven Bosscher <steven@gcc.gnu.org>
14282 * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
14283 m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
14284 rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
14285 Always use set_unique_reg_note to add REG_EQUAL notes.
14287 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
14290 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
14292 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
14293 * cfgbuild.c (find_basic_blocks): Likewise.
14294 * cfgrtl.c (rtl_create_basic_block): Likewise.
14295 * function.c (temp_slots_at_level): Likewise.
14296 * reg-stack.c (stack_regs_mentioned): Likewise.
14297 * regclass.c (allocate_reg_info): Likewise.
14298 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
14299 set_bb_for_stmt, move_block_to_fn): Likewise.
14300 * tree-complex.c (tree_lower_complex): Likewise.
14301 * vec.h (VEC_safe_grow_cleared): New.
14303 2007-01-02 Ian Lance Taylor <iant@google.com>
14305 * c-common.c (c_common_truthvalue_conversion): When warning about
14306 using an assignment as a truth value, set TREE_NO_WARNING.
14308 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14311 * c.opt (Wold-style-declaration): New.
14312 * doc/invoke.texi (C-only Warning Options): New.
14313 (Wold-style-declaration): Document it.
14314 (Wextra): Enabled by -Wextra.
14315 * c-opts.c (c_common_post_options): Enabled by -Wextra.
14316 * c-decl.c (declspecs_add_scspec): Replace -Wextra with
14317 -Wold-style-declaration.
14319 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
14321 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
14322 * cfgbuild.c (find_basic_blocks): Likewise.
14323 * cfgrtl.c (rtl_create_basic_block): Likewise.
14324 * function.c (temp_slots_at_level): Likewise.
14325 * reg-stack.c (stack_regs_mentioned): Likewise.
14326 * regclass.c (allocate_reg_info): Likewise.
14327 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
14328 set_bb_for_stmt, move_block_to_fn): Likewise.
14329 * tree-complex.c (tree_lower_complex): Likewise.
14330 * vec.h (VEC_safe_grow_cleared): New.
14332 2007-01-02 Douglas Gregor <doug.gregor@gmail.com>
14334 * c-common.c (c_common_nodes_and_builtins): Since variants of
14335 void_type_node get built before it is given a name, we need to
14336 give those variants the name, too.
14337 (complete_array_type): We need to work with the canonical main
14338 type of the array, from which we will build the qualified version.
14339 * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
14340 * print-tree.c (print_node): Display canonical type information
14342 * stor-layout.c (layout_type): When we don't know the
14343 alignment of a type for which we're building an array, we end up
14344 guessing wrong, so make the type require structural equality.
14345 * tree.c (make_node_stat): When we build a new type, it is its
14346 own canonical type.
14347 (build_type_attribute_qual_variant): When building an attribute
14348 variant, its canonical type is the non-attribute variant. However,
14349 if the attributes are target-dependent and they differ, we need to
14350 use structural equality checks for this type.
14351 (build_qualified_type): A qualified type is not equivalent to its
14352 unqualified variant; set the canonical type appropriately.
14353 (build_distinct_type_copy): When building a distinct type from
14354 another type, the new type is its own canonical type.
14355 (build_variant_type_copy): When building a new type variant, we
14356 assume that it is equivalent to the original type.
14357 (build_pointer_type_for_mode): When building a pointer type, also
14358 build a canonical type pointer.
14359 (build_reference_type_for_mode): When building a reference type,
14360 also build a canonical type reference.
14361 (build_index_type): When we can't hash an index type (e.g.,
14362 because its maximum value is negative), the index type requires
14363 structural equality tests.
14364 (build_array_type): Build the canonical form of an array type.
14365 (build_function_type): Function types require structural equality,
14366 because they contain default arguments, attributes, etc.
14367 (build_method_type_directly): Ditto for method types.
14368 (build_offset_type): Build the canonical offset type.
14369 (build_complex_type): Build the canonical vector type.
14370 (make_vector_type): Build the canonical vector type.
14371 * tree.h (TYPE_CANONICAL): New.
14372 (TYPE_STRUCTURAL_EQUALITY_P): New.
14373 (SET_TYPE_STRUCTURAL_EQUALITY): New.
14374 (struct tree_type): Added "canonical" field.
14375 * params.h (VERIFY_CANONICAL_TYPES): New.
14376 * doc/c-tree.texi (TYPE_CANONICAL): Document.
14377 (TYPE_STRUCTURAL_EQUALITY_P): Document.
14378 (SET_TYPE_STRUCTURAL_EQUALITY): Document.
14379 * doc/invoke.texi (verify-canonical-types): Document --param
14380 parameter for verifying canonical types.
14382 2007-01-02 Joseph Myers <joseph@codesourcery.com>
14384 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
14385 powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
14386 powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
14387 powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
14389 * config/rs6000/e500.h: New.
14390 * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
14391 TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
14393 * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
14394 TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
14395 TARGET_E500_DOUBLE): Remove.
14396 * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
14397 TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
14398 * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
14399 * config/rs6000/rs6000.c (rs6000_override_options): Use
14400 CHECK_E500_OPTIONS.
14402 2007-01-02 Joseph Myers <joseph@codesourcery.com>
14404 * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
14405 TARGET_E500_DOUBLE), not TARGET_E500, for %y.
14406 (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
14407 rs6000_emit_cmove): Don't check TARGET_E500.
14408 * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
14409 sordered): Don't check TARGET_E500.
14411 2007-01-01 Eric Christopher <echristo@apple.com>
14413 * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
14414 HARD_REGISTER_NUM_P.
14416 2007-01-01 Roger Sayle <roger@eyesopen.com>
14418 * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
14419 "X eq/ne (C1^C2)". Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
14420 has no side-effects. Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
14423 2007-01-01 Mike Stump <mrs@apple.com>
14425 * configure.ac: Remove support for building with Apple's gcc-3.1.
14427 2007-01-02 Joseph Myers <joseph@codesourcery.com>
14429 PR middle-end/30311
14430 * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
14431 REG is a hard register. Do not modify REG before calling
14433 * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
14434 multiple of the size of YMODE for certain lowpart cases.
14436 2007-01-01 Andrew Pinski <pinskia@gmail.com>
14438 PR middle-end/30253
14439 * gimplify (voidify_wrapper_expr): Update for
14440 GIMPLE_MODIFY_STMT.
14442 2007-01-01 Andreas Schwab <schwab@suse.de>
14445 * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
14446 save of BR0 in extra_spill_size instead of spill_size.
14447 (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
14449 (ia64_expand_epilogue): Restore BR0 from its new location.
14451 2007-01-01 Andrew Pinski <pinskia@gmail.com>
14453 * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
14454 Use a temporary variable if the left hand side is not a gimple
14457 2007-01-01 Andrew Pinski <pinskia@gmail.com>
14459 * gimplify.c (gimplify_return_expr): Make the temporary variable
14460 for the return expression, a gimple register variable.
14462 2007-01-01 Jan Hubicka <jh@suse.cz>
14464 * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
14467 2007-01-01 Mike Stump <mrs@apple.com>
14469 * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
14471 * config/darwin.c (machopic_select_rtx_section): Use
14472 HAVE_GAS_LITERAL16.
14473 (darwin_mergeable_constant_section): Likewise.
14474 * configure: Regenerate.
14475 * config.in: Regenerate.
14477 2007-01-01 Jan Hubicka <jh@suse.cz>
14478 Andrew Pinski <pinskia@gmail.com>
14480 * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
14481 before starting IPA passes.