1 2007-04-13 Bob Wilson <bob.wilson@acm.org>
3 * config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
5 2007-04-13 Mike Stump <mrs@apple.com>
7 * config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
9 * config/darwin.opt (fapple-kext): Make C++ only.
10 * config/darwin.c (darwin_override_options): Remove code to ensure
11 -fapple-kext is given for C++ only.
13 2007-04-13 Richard Sandiford <richard@codesourcery.com>
15 * config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
16 * config/mips/mips.c (override_options): Call
17 SUBTARGET_OVERRIDE_OPTIONS, if defined.
19 2007-04-13 H.J. Lu <hongjiu.lu@intel.com>
21 * config/i386/i386.opt (msvr3-shlib): Removed.
23 * doc/invoke.texi: Remove -msvr3-shlib.
25 2007-04-13 H.J. Lu <hongjiu.lu@intel.com>
27 * config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
28 with "popcnt" instruction.
30 2007-04-13 Richard Guenther <rguenther@suse.de>
32 PR tree-optimization/21258
33 * tree-vrp.c (compare_case_labels): New helper.
34 (find_switch_asserts): New function.
35 (find_assert_locations): Call it for SWITCH_EXPRs.
37 2007-04-13 Uros Bizjak <ubizjak@gmail.com>
39 * config/i386/i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
40 * config/i386/i386.md (*cmpfp0): Remove check for TARGET_80387, this
41 check is now implied in X87_FLOAT_MODE_P.
42 (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
43 (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
44 (fix_trunc<mode>_i386_fisttp): Ditto.
45 (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
46 (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
47 (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
48 (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
49 (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
50 (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
51 (unnamed_splitters): Ditto.
52 * config/i386/i386.c (function_value_32): Generate FIRST_FLOAT_REG
53 for X87_FLOAT_MODE_P mode. Override FIRST_FLOAT_REG with
54 FIRST_SSE_REG for local functions when SSE math is enabled or
55 for functions with sseregparm attribute.
56 (standard_80387_constant_p): Return -1 if mode is not
58 (ix86_cc_mode): Assert that scalar mode is not DECIMAL_FLOAT_MODE_P.
59 (ix86_expand_compare): Ditto.
60 (ix86_expand_carry_flag_compare): Ditto.
61 (ix86_expand_int_movcc): Check for SCALAR_FLOAT_MODE_P instead
62 of FLOAT_MODE_P for cmp_mode and assert that cmp_mode is not
64 (ix86_preferred_output_reload_class): Use X87_FLOAT_MODE_P instead
65 of SCALAR_FLOAT_MODE_P.
66 (ix86_rtx_costs) [PLUS] Remove FLOAT_MODE_P and fall through to ...
67 [MINUS]: ... here. Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P
68 checks before FLOAT_MODE_P.
69 [MULT]: Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P checks
75 [FLOAT_EXTEND]: Use SSE_FLOAT_MODE_P.
77 2007-04-12 Paolo Bonzini <bonzini@gnu.org>
78 Charles Wilson <libtool@cwilson.fastmail.fm>
80 * Makefile.in (stamp-as, stamp-collect-ld, stamp-nm): Remove.
81 (libgcc.mvars): Don't depend on them.
82 * configure.ac (as, collect-ld, nm): Create from exec-tool.in.
85 2007-04-12 Brooks Moses <brooks.moses@codesourcery.com>
87 * doc/invoke.text (--help): Document --help=common.
89 2007-04-12 Thomas Neumann <tneumann@users.sourceforge.net>
91 * stub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.
93 2007-04-12 Richard Sandiford <richard@codesourcery.com>
95 * Makefile.in (insn-emit.o): Depend on $(INTEGRATE_H).
96 * genemit.c (main): Emit #include "integrate.h".
97 * config/mips/mips-protos.h (SYMBOL_HALF): New mips_symbol_type.
98 (LOADGP_RTP): New mips_loadgp_style.
99 * config/mips/mips.h: Include config/vxworks-dummy.h.
100 (TARGET_RTP_PIC): New macro.
101 (TARGET_USE_GOT): Return true for TARGET_RTP_PIC.
102 (TARGET_USE_PIC_FN_ADDR_REG): Return true for TARGET_VXWORKS_RTP.
103 (ASM_OUTPUT_ADDR_DIFF_ELT): Emit function-relative case tables
105 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Define. Pass down
106 -mvxworks-pic when using -mrtp and a PIC option.
107 * config/mips/mips.c (mips_classify_symbol): Return SYMBOL_GOT_DISP
109 (mips_symbolic_constant_p, mips_symbolic_address_p)
110 (mips_symbol_insns): Handle SYMBOL_HALF.
111 (override_options): Warn about -G and -mrtp being used together.
112 Initialize mips_lo_relocs[SYMBOL_HALF].
113 (mips_current_loadgp_style): Return LOADGP_RTP for RTP PIC.
114 (mips_emit_loadgp): Handle LOADGP_RTP.
115 (mips_in_small_data_p): Return false for TARGET_VXWORKS_RTP.
116 * config/mips/mips.md (loadgp_rtp): New insn and splitter.
117 (tablejump): Handle function-relative case table entries if
119 * config/mips/predicates.md (symbol_ref_operand): New predicate.
121 2007-04-12 Richard Sandiford <richard@codesourcery.com>
123 * config/mips/mips.md (load_call<mode>): Allow any general register.
125 (sibcall_value_internal, sibcall_value_multiple_internal)
126 (call_value_internal, call_value_split, call_value_multiple_internal)
127 (call_value_multiple_split): Remove constraints from operand 0.
129 2007-04-12 Richard Sandiford <richard@codesourcery.com>
131 * config/mips/mips-protos.h: In comments, refer to loadgp_absolute
132 rather than loadgp_noshared.
133 * config/mips/mips.c (mips_emit_loadgp): Use gen_loadgp_absolute
134 instead of gen_loadgp_noshared. Use gen_loadgp_newabi instead of
136 * config/mips/mips.md (loadgp): Rename to...
137 (loadgp_newabi): ...this.
138 (loadgp_noshared): Rename to...
139 (loadgp_absolute): ...this.
141 2007-04-12 Richard Sandiford <richard@codesourcery.com>
143 * config/mips/mips.c (mips_ok_for_lazy_binding_p): Always return
144 false for locally-binding symbols.
145 (mips_dangerous_for_la25_p): Check mips_global_symbol_p.
147 2007-04-12 Richard Sandiford <richard@codesourcery.com>
149 * config/mips/mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
150 (SYMBOL_GOT_PAGE_OFST): ...this.
151 (SYMBOL_GOT_GLOBAL): Rename to...
152 (SYMBOL_GOT_DISP): ...this.
153 (SYMBOL_GOTOFF_GLOBAL): Rename to...
154 (SYMBOL_GOTOFF_DISP): ...this. Update comments accordingly.
155 * config/mips/mips.c (mips_global_symbol_p): New function.
156 (mips_symbol_binds_local_p): Likewise.
157 (mips_classify_symbol): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP
158 and SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST. Use mips_global_symbol_p
159 and mips_symbol_binds_local_p.
160 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
161 (override_options): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP,
162 SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST and SYMBOL_GOTOFF_GLOBAL to
164 (mips_ok_for_lazy_binding_p): New function.
165 (mips_load_call_address, mips_expand_call): Use it.
166 (mips_dangerous_for_la25_p): Likewise.
167 * config/mips/mips.md (*xgot_hi<mode>, *xgot_lo<mode>)
168 (*got_disp<mode>): Use got_disp_operand instead of
169 global_got_operand. Use SYMBOL_GOTOFF_DISP instead of
170 SYMBOL_GOTOFF_GLOBAL.
171 (*got_page<mode>): Use got_page_ofst_operand instead of
173 * config/mips/predicates.md (const_call_insn_operand): Use
174 SYMBOL_GOT_DISP instead of SYMBOL_GOT_GLOBAL.
175 (global_got_operand): Rename to...
176 (got_disp_operand): ...this and use SYMBOL_GOT_DISP instead of
178 (local_got_operand): Rename to...
179 (got_page_ofst_operand): ...this and use SYMBOL_GOT_PAGE_OFST instead
182 2007-04-12 Richard Sandiford <richard@codesourcery.com>
184 * config/mips/mips.h (TARGET_SPLIT_CALLS): Check
185 TARGET_CALL_CLOBBERED_GP.
186 (TARGET_SIBCALLS): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
187 (TARGET_USE_GOT, TARGET_CALL_CLOBBERED_GP): New macros.
188 (TARGET_CALL_SAVED_GP, TARGET_USE_PIC_FN_ADDR_REG): Likewise.
189 (STARTING_FRAME_OFFSET): Check TARGET_CALL_CLOBBERED_GP instead
190 of TARGET_ABICALLS && !TARGET_NEWABI.
191 (MIPS_CALL): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
192 * config/mips/mips.c (mips_load_call_address): Check
193 TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
194 (mips_global_pointer): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
195 Check TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
196 (mips_save_reg_p): Check TARGET_CALL_SAVED_GP instead of
197 TARGET_ABICALLS && TARGET_NEWABI.
198 (mips_current_loadgp_style): Check TARGET_USE_GOT instead of
200 (mips_expand_prologue): Check TARGET_OLDABI instead of !TARGET_NEWABI.
201 (mips_expand_epilogue): Check TARGET_CALL_SAVED_GP instead of
202 TARGET_ABICALLS && TARGET_NEWABI.
203 (mips_output_mi_thunk): Check TARGET_USE_GOT instead of
204 TARGET_ABICALLS. Check TARGET_CALL_SAVED_GP instead of
205 TARGET_NEWABI. Use TARGET_USE_PIC_FN_ADDR_REG to decide
206 whether indirect calls must use $25.
207 (mips_extra_live_on_entry): Check TARGET_GOT instead of
209 * config/mips/mips.md (jal_macro): Check flag_pic and
210 TARGET_CALL_CLOBBERED_GP instead of TARGET_ABICALLS and TARGET_NEWABI.
211 (builtin_setjmp_setup, builtin_longjmp): Check TARGET_USE_GOT
212 instead of TARGET_ABICALLS.
213 (exception_receiver): Check TARGET_CALL_CLOBBERED_GP instead of
214 TARGET_ABICALLS && TARGET_OLDABI.
215 (load_call<mode>): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
216 (sibcall): In the comment above the define_insn, mention
217 TARGET_USE_PIC_FN_ADDR_REG instead of TARGET_ABICALLS.
218 * config/mips/constraints.md (c): Check TARGET_USE_PIC_FN_ADDR_REG
219 instead of TARGET_ABICALLS.
221 2007-04-12 Bernd Schmidt <bernd.schmidt@analog.com>
223 * doc/md.texi (Blackfin family constraints): Document PA and PB.
224 * config/bfin/bfin.h (CONST_OK_FOR_P): Handle PA and PB.
225 (MACFLAGS_MATCH_P): New macro.
226 * config/bfin/bfin.c (print_operand): Handle MACFLAG_IS_M.
227 (bfin_secondary_reload): Treat EVEN_AREGS and ODD_AREGS like AREGS.
228 * config/bfin/bfin.md (MACFLAG_IS_M): New constant. Renumber some of
229 the other MACFLAG constants.
230 (sum_of_accumulators, lshrpdi3, ashrpdi3): New patterns.
231 (flag_machi): Tighten constraints. Renumber some of the operands.
232 (flag_machi_acconly): Tighten constraints. Correct operand numbers in
234 (flag_machi_parts_acconly): New pattern.
235 (flag_macinithi): Tighten constraints. Allow any accumulator to be
237 (flag_macinit1hi): Tighten constraints.
238 (flag_mul_macv2hi_parts_acconly): New pattern.
240 * config/bfin/lib1funcs.asm (___umulsi3_highpart, __smulsi3_highpart):
241 Use a more efficient implementation.
242 * config/bfin/bfin.md (umulsi3_highpart, smulsi3_highpart): Emit
243 inline sequences when not optimizing for size.
245 * config/bfin/bfin.md (movhi_low2high, movhi_high2high, movhi_low2low,
246 movhi_high2low): Delete, merge functionality into...
247 (packv2hi): ... this pattern.
249 2007-02-11 Jie Zhang <jie.zhang@analog.com>
250 * config/bfin/bfin.opt (msim): New option.
252 * config/bfin/bfin-protos.h (enum bfin_cpu): New.
253 (bfin_cpu_t): Typedef of enum bfin_cpu.
254 (bfin_cpu_type): New declaration.
255 * config/bfin/elf.h (STARTFILE_SPEC): Add support for
256 -msim and -mcpu= options.
257 (LIB_SPEC): Likewise.
258 * config/bfin/bfin.c (bfin_cpu_type): Define.
259 (bfin_handle_option): Handle -mcpu= option.
260 * config/bfin/bfin.h (DEFAULT_CPU_TYPE): Define as BFIN_CPU_BF532.
261 (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF531__, __ADSPBF532__,
262 __ADSPBF533__ or __ADSPBF537__ according to the cpu type.
264 2007-04-12 Richard Sandiford <richard@codesourcery.com>
266 * config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.
267 (arm-wrs-vxworks, mips-wrs-vxworks, powerpc-wrs-vxworks)
268 (powerpc-wrs-vxworksae): Use ${tm_file}.
269 (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add svr4.h
270 after elfos.h. Remove i386/sysv4.h and add i386/vx-common.h.
271 * config/i386/vx-common.h: New file.
273 2007-04-12 Richard Sandiford <richard@codesourcery.com>
275 * config/vxworks.h (VXWORKS_STARTFILE_SPEC): Use -l:crt0.o instead
278 2007-04-12 Andreas Krebbel <krebbel1@de.ibm.com>
280 * config/s390/s390.md ("trunctddd2"): Use TDmode for the target of
283 2007-04-12 Douglas Gregor <doug.gregor@gmail.com>
287 * c-common.c (c_build_qualified_type): Set canonical type
290 2007-04-12 Richard Guenther <rguenther@suse.de>
292 * tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
293 lower bound and element size if lower bound is not zero
294 or either of the ARRAY_REF operands is set.
296 2007-04-12 Richard Guenther <rguenther@suse.de>
298 PR tree-optimization/24689
299 PR tree-optimization/31307
300 * fold-const.c (operand_equal_p): Compare INTEGER_CST array
302 * gimplify.c (canonicalize_addr_expr): To be consistent with
303 gimplify_compound_lval only set operands two and three of
304 ARRAY_REFs if they are not gimple_min_invariant. This makes
305 it never at this place.
306 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
308 2007-04-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
310 * pa.c (pa_som_asm_init_sections): Ensure that cfun->machine is not
311 null before emitting a .nsubspa directive.
313 2007-04-11 Diego Novillo <dnovillo@redhat.com>
315 * tree-ssa-alias.c (dump_mem_ref_stats): Do not call
316 need_to_partition_p if there are no memory statements in the
319 2007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
321 * tree-data-ref.c (chrec_steps_divide_constant_p): Removed.
322 (gcd_of_steps_may_divide_p): New function.
323 (analyze_miv_subscript): Use gcd_of_steps_may_divide_p.
325 2007-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
327 * reload.c (find_reloads_toplev, find_reloads_address,
328 find_reloads_address_1, find_reloads_subreg_address): Use rtx_equal_p,
329 not a pointer equality test, to decide if we need to call
330 push_reg_equiv_alt_mem.
332 2007-04-11 Sebastian Pop <sebastian.pop@inria.fr>
334 * tree-data-ref.c (affine_function_zero_p, constant_access_functions,
335 insert_innermost_unit_dist_vector, add_distance_for_zero_overlaps): New.
336 (build_classic_dist_vector): Call add_distance_for_zero_overlaps.
338 2007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
340 * tree-data-ref.c (add_multivariate_self_dist): Force the distance
341 vector to be positive.
343 2007-04-11 Diego Novillo <dnovillo@redhat.com>
347 * doc/invoke.texi: Document --params max-aliased-vops and
349 * tree-ssa-operands.h (get_mpt_for, dump_memory_partitions,
350 debug_memory_partitions): Move to tree-flow.h
351 * params.h (AVG_ALIASED_VOPS): Define.
352 * tree-ssa-alias.c (struct mp_info_def): Remove. Update all
354 (mp_info_t): Likewise.
355 (get_mem_sym_stats_for): New.
356 (set_memory_partition): Move from tree-flow-inline.h.
357 (mark_non_addressable): Only clear the set of symbols for the
358 partition if it exists.
359 (dump_memory_partitions): Move from tree-ssa-operands.c
360 (debug_memory_partitions): Likewise.
361 (need_to_partition_p): New.
362 (dump_mem_ref_stats): New.
363 (debug_mem_ref_stats): New.
364 (dump_mem_sym_stats): New.
365 (debug_mem_sym_stats): New.
366 (update_mem_sym_stats_from_stmt): New.
367 (compare_mp_info_entries): New.
368 (mp_info_cmp): Call it.
369 (sort_mp_info): Change argument to a list of mem_sym_stats_t
371 (get_mpt_for): Move from tree-ssa-operands.c.
372 (find_partition_for): New.
373 (create_partition_for): Remove.
374 (estimate_vop_reduction): New.
375 (update_reference_counts): New.
376 (build_mp_info): New.
377 (compute_memory_partitions): Refactor.
378 Document new heuristic.
379 Call build_mp_info, update_reference_counts,
380 find_partition_for and estimate_vop_reduction.
381 (compute_may_aliases): Populate virtual operands before
382 calling debugging dumps.
383 (delete_mem_sym_stats): New.
384 (delete_mem_ref_stats): New.
385 (init_mem_ref_stats): New.
386 (init_alias_info): Call it.
387 (maybe_create_global_var): Remove alias_info argument.
388 Get number of call sites and number of pure/const call sites
389 from gimple_mem_ref_stats().
390 (dump_alias_info): Call dump_memory_partitions first.
391 (dump_points_to_info_for): Show how many times a pointer has
393 * opts.c (decode_options): For -O2 set --param
394 max-aliased-vops to 500.
395 For -O3 set --param max-aliased-vops to 1000 and --param
396 avg-aliased-vops to 3.
397 * fortran/options.c (gfc_init_options): Remove assignment to
399 * tree-flow-inline.h (gimple_mem_ref_stats): New.
400 * tree-dfa.c (dump_variable): Dump memory reference
402 Dump NO_ALIAS* settings.
403 (referenced_var_lookup): Tidy.
404 (mem_sym_stats): New.
405 * tree-ssa-copy.c (may_propagate_copy): Return true if DEST
406 and ORIG are different SSA names for a memory partition.
407 * tree-ssa.c (delete_tree_ssa): Call delete_mem_ref_stats.
408 * tree-flow.h (struct mem_sym_stats_d): Define.
409 (mem_sym_stats_t): Define.
410 (struct mem_ref_stats_d): Define.
411 (struct gimple_df): Add field mem_ref_stats.
412 (enum noalias_state): Define.
413 (struct var_ann_d): Add bitfield noalias_state.
414 (mem_sym_stats, delete_mem_ref_stats, dump_mem_ref_stats,
415 debug_mem_ref_stats, debug_memory_partitions,
416 debug_mem_sym_stats): Declare.
417 * tree-ssa-structalias.c (update_alias_info): Update call
418 sites, pure/const call sites and asm sites in structure
419 returned by gimple_mem_ref_stats.
420 Remove local variable IS_POTENTIAL_DEREF.
421 Increase NUM_DEREFS if the memory expression is a potential
423 Call update_mem_sym_stats_from_stmt.
424 If the memory references memory, call
425 update_mem_sym_stats_from_stmt for all the direct memory
426 symbol references found.
427 (intra_create_variable_infos): Set noalias_state field for
428 pointer arguments according to the value of
429 flag_argument_noalias.
430 * tree-ssa-structalias.h (struct alias_info): Remove fields
431 num_calls_found and num_pure_const_calls_found.
432 (update_mem_sym_stats_from_stmt): Declare.
433 * params.def (PARAM_MAX_ALIASED_VOPS): Change description.
434 Set default value to 100.
435 (PARAM_AVG_ALIASED_VOPS): Define.
437 2007-04-11 Richard Guenther <rguenther@suse.de>
440 * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
441 a * -b + c as c - a * b if we honor sign dependent rounding.
443 2007-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
445 * config/bfin/bfin-protos.h (bfin_expand_movmem): Renamed from
447 * config/bfin/bfin.c (bfin_expand_prologue, bfin_delegitimize_address,
448 bfin_function_ok_for_sibcall, split_load_immediate): Remove unused
450 (initialize_trampoline): Don't use old-style function definition.
451 (bfin_secondary_reload): Mark IN_P argument as unused.
453 2007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
455 PR tree-optimization/31343
456 * tree-chrec.h (chrec_zerop): Moved before build_polynomial_chrec.
457 (build_polynomial_chrec): Return a scalar when the evolution is zero.
458 * testsuite/gcc.dg/vect/pr31343.c: New.
460 2007-04-10 Eric Christopher <echristo@apple.com>
462 * config/i386/i386.h (X87_FLOAT_MODE_P): New.
463 * config/i386/i386.md (*cmpfp0): Use.
464 (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
465 (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
466 (fix_trunc<mode>_i386_fisttp): Ditto.
467 (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
468 (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
469 (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
470 (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
471 (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
472 (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
473 (unnamed_splitters): Ditto.
474 * config/i386/i386.c (output_fix_trunc): Assert that
475 we're not being passed a TFmode operand.
477 2007-04-10 Zdenek Dvorak <dvorakz@suse.cz>
479 PR tree-optimization/31526
480 * tree-inline.c (copy_cfg_body): Use last_basic_block instead of
481 n_basic_blocks to find newly added blocks.
483 2007-04-10 Uros Bizjak <ubizjak@gmail.com>
485 * config/i386/i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm"
487 (fix_trunc<mode>si_sse): Ditto.
488 (*floatsisf2_mixed, *floatsisf2_sse): Ditto.
489 (*floatsidf2_mixed, *floatsidf2_sse): Ditto.
490 (*floatdisf2_mixed, *floatdisf2_sse): Ditto.
491 (*floatdidf2_mixed, *floatdidf2_sse): Ditto.
492 (floathi<mode>2): Rename from floathisf2 and floathidf2. Macroize
493 expander using SSEMODEF mode macro.
494 (floatsi<mode>2): Rename from floatsisf2 and floashidf2. Macroize
495 expander using SSEMODEF mode macro.
496 (*floathi<mode>2_i387): Rename from *floathisf2_i387 and
497 *floathidf2_i387. Macroize insn using X87MODEF12 mode macro.
498 (*floatsi<mode>2_i387): Rename from *floatsisf2_i387 and
499 *floatsidf2_i387. Macroize insn using X87MODEF12 mode macro.
500 (*floatdi<mode>2_i387): Rename from *floatdisf2_i387 and
501 *floatdidf2_i387. Macroize insn using X87MODEF12 mode macro.
502 (float<mode>xf2): Rename from floathixf2, floatsixf2 and floatdixf2.
503 Macroize insn using X87MODEF mode macro.
505 2007-04-09 H.J. Lu <hongjiu.lu@intel.com>
507 * config/i386/sse.md (sse2_pinsrw): Removed.
508 (sse2_pextrw): Renamed to ...
509 (*sse2_pextrw): This.
511 2007-04-09 Jan Hubicka <jh@suse.cz>
515 (sse_vmaddv4sf3, sse_vmmulv4sf3): Remove '%' modifier.
516 (sse_vmsmaxv4sf3_finite, sse_vmsminv4sf3_finite): Remove.
517 (sse2_vmaddv2df3, sse2_vmmulv2df3): Remove '%' modifier.
518 (sse2_vmsmaxv2df3_finite, sse2_vmsminv2df3_finite): Remove.
520 2007-04-09 Jan Hubicka <jh@suse.cz>
522 * tree-ssa-ccp (maybe_fold_offset_to_component_ref): Recurse into
523 multiple fields of union.
525 2007-04-09 Zdenek Dvorak <dvorakz@suse.cz>
527 * cfgloopmanip.c (create_preheader): Do not use loop_preheader_edge.
528 (create_preheaders): Check that loops are available.
529 (fix_loop_structure): Clean up, improve comments.
530 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa):
531 Check that loops are available. Set LOOP_CLOSED_SSA to the loops
533 * tree-scalar-evolution.c (scev_finalize): Clear scalar_evolution_info.
534 * predict.c (tree_estimate_probability): Do not call
535 calculate_dominance_info. Call create_preheaders.
536 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Only call
537 rewrite_into_loop_closed_ssa if LOOP_CLOSED_SSA is set in loops state
539 * cfgloop.c (loop_preheader_edge): Assert that loops have preheaders.
540 * cfgloop.h (LOOP_CLOSED_SSA): New constant.
541 * tree-cfg.c (tree_split_edge): Make an assert more precise.
542 * tree-ssa-threadedge.c (thread_across_edge): Comment the function
545 2007-04-08 Jan Hubicka <jh@suse.cz>
547 * tree.h (maybe_fold_offset_to_component_ref): Declare.
548 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Export.
549 * fold-const.c (fold_unary): Use it.
551 2007-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
553 * varasm.c (assemble_variable): Remove call to
554 lang_hooks.decls.prepare_assemble_variable.
555 * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Kill.
556 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE.
557 * langhooks.h (lang_hooks_for_decls): Remove
558 prepare_assemble_variable.
560 2007-04-08 Mike Stump <mrs@apple.com>
562 * config/i386/i386.c: Use inc/dec on Core2.
564 2007-04-08 Steven Bosscher <steven@gcc.gnu.org>
566 * langhooks.c (lhd_tree_inlining_add_pending_fn_decls,
567 lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
568 lhd_tree_inlining_end_inlining): Remove.
569 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove then
570 add_pending_fn_decls, anon_aggr_type_p, start_inlining, and
572 * langhooks-def.h (lhd_tree_inlining_add_pending_fn_decls,
573 lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
574 lhd_tree_inlining_end_inlining): Remove prototypes.
575 (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS,
576 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
577 LANG_HOOKS_TREE_INLINING_START_INLINING,
578 LANG_HOOKS_TREE_INLINING_END_INLINING): Remove.
580 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do
583 2007-04-08 Anatoly Sokolov <aesok@post.ru>
586 * config/avr/predicates.md (io_address_operand): Delete predicate.
587 (low_io_address_operand): Don't use 'mode' argument.
588 (higth_io_address_operand): Rename ...
589 (high_io_address_operand): ... to this. Don't use 'mode' argument.
590 * config/avr/avr.md (*sbix_branch_tmp, *sbix_branch_tmp_bit7): Adjust
593 2007-04-07 Daniel Berlin <dberlin@dberlin.org>
595 Revert change removing staticp.
597 2007-04-07 Anatoly Sokolov <aesok@post.ru>
600 * config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as
603 2007-04-07 Bruce Korb <bkorb@gnu.org>
605 * c.opt: Add -Wformat-contains-nul.
606 * c-format.c (set_Wformat): Set warn_format_contains_nul to the
608 (check_format_info_main): Check OPT_Wformat_contains_nul before emitting
609 the NUL byte warning.
611 2007-04-07 H.J. Lu <hongjiu.lu@intel.com>
613 * config/i386/i386.c (ix86_handle_option): Handle SSSE3.
615 2007-04-06 Daniel Berlin <dberlin@dberlin.org>
617 * tree.c (staticp): No longer use staticp langhook.
618 * langhooks.c (lhd_staticp): Removed.
619 * langhooks.h (struct lang_hooks): Remove staticp.
620 * c-common.c (c_staticp): Remove.
621 * c-common.h (c_staticp): Ditto.
622 * langhooks-defs.h (lhd_staticp): Ditto.
623 (LHD_HOOKS_STATICP): Ditto
624 * tree.h (gcc_assert_lowered): New macro.
626 2007-04-06 Zdenek Dvorak <dvorakz@suse.cz>
628 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Add and use
630 (infer_loop_bounds_from_ref, infer_loop_bounds_from_array):
631 Add argument "reliable". Propagate it through calls.
632 (infer_loop_bounds_from_undefined): Derive number of iterations
633 estimates from references in blocks that do not dominate loop latch.
634 (gcov_type_to_double_int): New function.
635 (estimate_numbers_of_iterations_loop): Use gcov_type_to_double_int
636 and expected_loop_iterations_unbounded.
637 * cfgloopanal.c (expected_loop_iterations_unbounded): New function.
638 (expected_loop_iterations): Use expected_loop_iterations_unbounded.
639 * tree-data-ref.c (estimated_loop_iterations): Export.
640 (get_references_in_stmt): Fix -- do not return addresses of local
642 * cfgloop.h (expected_loop_iterations_unbounded,
643 estimated_loop_iterations): Declare.
645 2007-04-06 Andreas Tobler <a.tobler@schweiz.org>
647 * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
649 2007-04-06 Uros Bizjak <ubizjak@gmail.com>
651 * config/i386/i386.md (extend<mode>xf2): Rename from extendsfxf2
652 and extenddfxf2. Macroize expander using X87MODEF12 mode macro.
653 (*truncdfsf_mixed, *truncdfsf_i387, *truncdfsf2_i387_1):
654 Use output_387_reg_move().
655 (*truncxf<mode>2): Rename from *truncxfsf2 and truncxfdf2. Macroize
656 expander using X87MODEF12 mode macro.
657 (*truncxfsf2_mixed): Combine alternatives, ignore "r" alternative when
658 choosing register preferences. Use output_387_reg_move().
659 (*truncxfdf2_mixed): Combine alternatives, use "r" alternative
660 instead of "x". Use output_387_reg_move().
661 (*truncxf<mode>2_i387_noop): Rename from *truncxfsf2_i387_noop and
662 *truncxfdf2_i387_noop. Macroize insn using X87MODEF12 mode macro.
663 (*truncxf<mode>2_i387): Rename from *truncxfsf2_i387 and
664 *truncxfdf2_i387. Macroize insn using X87MODEF12 mode macro.
665 Use output_387_reg_move().
666 (*truncxf?f_mixed splitter): Macroize splitter using X87MODEF12
668 (*truncxf?f_i387 splitter): Ditto.
670 2007-04-06 Daniel Berlin <dberlin@dberlin.org>
672 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
673 LANG_HOOKS_SAFE_FROM_P.
674 * expr.c (safe_from_p): Remove langhook call.
675 * langhooks.h (lang_hooks): Remove safe_from_p.
676 (lhd_safe_from_p): Remove prototype.
677 * langhooks.c (lhd_safe_from_p): Remove.
679 2007-04-06 Jan Hubicka <jh@suse.cz>
681 * cgraphunit.c (decide_is_function_needed): Do not keep always_inline
684 2007-04-06 Uros Bizjak <ubizjak@gmail.com>
686 * config/i386/i386.c (output_387_reg_move): Handle memory operand[0].
687 * config/i386/i386.md (*movsf_1, *movdf_nointeger,
688 *movdf_integer_rex64, *movdf_integer, *movxf_nointeger,
689 *movxf_integer): Use output_387_reg_move() for x87 reg->mem
691 (*extendsfdf2_mixed, *extendsfdf2_i387, *extendsfxf2_i387,
692 *extenddfxf2_i387, *truncdfsf_fast_mixed): Ditto.
694 2007-04-05 Richard Henderson <rth@redhat.com>
696 * config/alpha/alpha.c (print_operand) [+]: Remove.
697 (alpha_end_function): Print nop if call at end of function.
698 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Remove +.
699 * config/alpha/alpha.md (UNSPEC_LDGP1): New.
700 (call_osf_1_er_noreturn, call_value_osf_1_er_noreturn): New.
701 (call_osf_2_er_nogp, call_value_osf_2_er_nogp): New.
702 (call_osf_2_er, call_value_osf_2_er): Merge the ldgp highpart into
703 the call pattern. Update peepholes to match.
705 2007-04-05 Janis Johnson <janis187@us.ibm.com>
707 * doc/extend.texi (Other Builtins): Add decimal float variants
709 * builtins.def: Ditto.
710 * builtins.c (expand_builtin): Ditto.
712 2007-04-05 Uros Bizjak <ubizjak@gmail.com>
713 H.J. Lu <hongjiu.lu@intel.com>
716 * config/i386/sse.md (sse2_umulv2siv2di3): Use V4SImode instead
717 of V8HImode when calling ix86_binary_operator_ok.
718 (sse2_pmaddwd): Call ix86_binary_operator_ok.
719 (sdot_prodv8hi): Operands 1 and 2 must be register.
721 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
723 * tree-sra.c (try_instantiate_multiple_fields): Needlessly
724 initialize align to silence bogus warning.
726 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
729 * tree-sra.c (struct sra_elt): Add in_bitfld_block. Remove
731 (struct sra_walk_fns): Remove use_all parameter from use.
732 (sra_hash_tree): Handle BIT_FIELD_REFs.
733 (sra_elt_hash): Don't hash bitfld blocks.
734 (sra_elt_eq): Skip them in parent compares as well. Handle
736 (sra_walk_expr): Don't maintain or pass down use_all_p.
737 (scan_use): Remove use_all parameter.
738 (scalarize_use): Likewise. Re-expand assignment to
739 BIT_FIELD_REF of gimple_reg. De-scalarize before input or
740 output, and re-scalarize after output. Don't mark anything
742 (scalarize_ldst): Adjust.
743 (scalarize_walk_gimple_modify_statement): Likewise.
744 (build_element_name_1): Handle BIT_FIELD_REFs.
745 (instantiate_element): Don't warn for any element whose parent
747 (instantiate_missing_elements_1): Return the sra_elt.
748 (canon_type_for_field): New.
749 (try_instantiate_multiple_fields): New.
750 (instantiate_missing_elemnts): Use them.
751 (mark_no_warning): Removed.
752 (generate_one_element_ref): Handle BIT_FIELD_REFs.
753 (REPLDUP, sra_build_elt_assignment): New.
754 (generate_copy_inout): Use them.
755 (generate_element_copy): Likewise. Handle bitfld differences.
756 (generate_element_zero): Don't recurse for blocks. Use
757 sra_build_elt_assignment.
758 (generate_one_element_int): Take elt instead of var. Use
759 sra_build_elt_assignment.
760 (generate_element_init_1): Adjust.
761 (scalarize_use, scalarize_copy): Use REPLDUP.
762 (scalarize_ldst): Move assert before dereference.
763 (dump_sra_elt_name): Handle BIT_FIELD_REFs.
765 2007-04-05 Steven Bosscher <steven@gcc.gnu.org>
767 * regmove.c: Fix unused variable warnings due to previous commit.
769 2007-04-05 Steven Bosscher <steven@gcc.gnu.org>
771 * regmove.c (STACK_GROWS_DOWNWARD): Don't boolean-ize.
772 (regmove_bb_head): Remove.
773 (copy_src_to_dest): Don't update regmove_bb_head and BB_HEAD.
774 (regmove_optimize): Don't do unnecessary CFG fixes for non-existing
775 problems with fixup_match_1.
776 Don't initialize/free regmove_bb_head.
778 (reg_is_remote_constant_p): If an insn is in the same basic block
779 but not before INSN, consider it remote, too.
781 2007-04-05 Anatoly Sokolov <aesok@post.ru>
784 * config/avr/avr.c (avr_handle_fndecl_attribute): Use the
785 DECL_ASSEMBLER_NAME, not the DECL_NAME.
787 2007-04-05 H.J. Lu <hongjiu.lu@intel.com>
789 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat.
790 (CONDITIONAL_REGISTER_USAGE): Likewise.
792 2007-04-04 Richard Henderson <rth@redhat.com>
794 * config/alpha/lib1funcs.asm: Remove unused file.
796 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
799 * opts.c (print_specific_help): Fix --help=<language>
801 (common_handle_option): Support --help=common.
803 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
806 * gcc.c (main): Do not run the linker if
807 print_subprocess_help indicates that it shouldn't be
810 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
813 * doc/invoke.texi (--help=): Document <languages> value, fix
814 formatting in tables of values.
816 2007-04-04 Danny Smith <dannysmith.users.sourceforge.net>
818 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore
819 dllimport attribute of virtual methods.
821 2007-04-04 Chen Liqin <liqin@sunnorth.com.cn>
823 * config/score/crti.asm: Change _bss_start to __bss_start.
824 * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Added.
825 (OUTGOING_REG_PARM_STACK_SPACE) update.
826 * config/score/score.opt: add options to make backend support
827 score5, score5u, score7 and score7d.
828 * config/score/score.md: Likewise.
829 * config/score/misc.md: Likewise.
830 * config/score/mac.md: Likewise.
831 * doc/invoke.texi: Likewise.
832 * doc/md.texi: update constraints define.
834 2007-04-03 Richard Henderson <rth@redhat.com>
836 * expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield
837 an appropriate type, use the mode instead.
839 2007-04-03 Richard Sandiford <richard@codesourcery.com>
841 * config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file.
842 Set the default --with-arch setting to mips2.
843 * config/mips/t-vxworks (MULTILIB_OPTIONS, MULTILIB_MATCHES)
844 (MULTILIB_EXCEPTIONS): Redefine with new multilibs.
845 (MULTILIB_OSDIRNAMES): Delete.
846 (MULTILIB_DIRNAMES): Define.
847 * config/mips/vxworks.h (LINK_SPEC): Add VXWORKS_LINK_SPEC.
848 (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Define.
849 (TARGET_OS_CPP_BUILTINS): Incorporate old SUBTARGET_CPP_SPEC
850 definitions, except for _WRS_R3K_EXC_SUPPORT. Call
851 VXWORKS_OS_CPP_BUILTINS.
852 (SUBTARGET_CPP_SPEC): Redefine to VXWORKS_ADDITIONAL_CPP_SPEC.
853 (MIPS_DEBUGGING_INFO): Undefine.
854 (FUNCTION_PROFILER): Define to VXWORKS_FUNCTION_PROFILER.
856 2007-04-03 Jakub Jelinek <jakub@redhat.com>
859 * fold-const.c (native_encode_real): Encode real.c provided longs
860 as a series of 32-bit native integers.
861 (native_interpret_real): Interpret buffer as a series of 32-bit
864 2007-04-03 Richard Guenther <rguenther@suse.de>
866 * genpreds.c (write_insn_constraint_len): Write function
867 optimized for CONSTRAINT_LEN implementation.
868 (write_tm_preds_h): Output insn_constraint_len inline and
869 use it for CONSTRAINT_LEN.
870 (write_insn_preds_c): Don't output insn_constraint_len.
871 * doc/md.texi (define_register_constraint): Document multi-letter
872 constraints shall have the same length if they start with the same
875 2007-04-03 Uros Bizjak <ubizjak@gmail.com>
878 * config/i386/i386.md (isinf<mode>2): Expand only when
879 TARGET_C99_FUNCTIONS is set.
881 2007-04-03 Uros Bizjak <ubizjak@gmail.com>
883 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.
884 (x86_64-*-linux*): Ditto.
885 * config/i386/i386.opt (mpc): New option.
886 * config/i386/i386.c (overrride_options): Handle
887 ix87_precision_string.
888 * config/i386/crtprec.c: New file.
889 * config/i386/t-crtpc: Ditto.
890 * config/i386/linux.h (ENDFILE_SPEC): Add handling of -mpc32, -mpc64
892 * config/i386/linux64.h (ENDFILE_SPEC): Ditto.
893 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
894 crtprec32.o, crtprec64.o and crtprec80.o.
896 * doc/invoke.texi (Machine Dependent Options): Add -mpc32, -mpc64
898 (i386 and x86-64 Options): Document -mpc32, -mpc64 and -mpc80 options.
900 2007-04-02 Eric Christopher <echristo@apple.com>
902 * doc/invoke.texi (i386 and x86-64 Options): Document -m64
903 limitations on darwin.
905 2007-04-02 Anatoly Sokolov <aesok@post.ru>
908 * config/avr/avr.c (avr_rtx_costs): Add missing 'break' statements.
910 2007-04-02 Dave Korn <dave.korn@artimi.com>
912 * doc/tm.texi (FUNCTION_MODE): Update and extend documentation.
914 2007-04-02 Dave Korn <dave.korn@artimi.com>
916 * libgcc2.h (exception_descriptor): Don't forward-declare.
917 (__get_eh_table_language, __get_eh_table_version): Delete
918 prototypes of long-dead functions.
920 2007-04-01 Daniel Berlin <dberlin@dberlin.org>
922 * ebitmap.h: New file
923 * ebitmap.c: New file
924 * Makefile.in (ebitmap.o): New target.
926 2007-04-01 Jan Hubicka <jh@suse.cz>
928 * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
929 before very first instruction.
931 2007-04-01 Jan Hubicka <jh@suse.cz>
933 * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
934 waring on 64bit hosts.
935 * bitmap.h: Fix typo in bitmap_head_def.
937 2007-04-01 Steven Bosscher <steven@gcc.gnu.org>
939 PR rtl-optimization/31391
940 * cfgcleanup.c (try_optimize_cfg): If a removed label is turned
941 into a DELETED_LABEL note, and the label is in an empty basic
942 block, update BB_END as well as BB_HEAD.
944 2007-04-01 Richard Henderson <rth@redhat.com>
946 PR tree-optimization/31169
947 * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop
948 to varying if the range is outside [0, prec-1].
950 2007-04-01 Richard Sandiford <richard@codesourcery.com>
953 * config/mips/mips.md (load_const_gp): New insn.
954 * config/mips/mips.c (mips_split_symbol): Avoid using or creating
955 the MIPS16 GP pseudo register if no_new_pseudos.
956 (mips16_gp_pseudo_reg): Use gen_load_const_gp.
958 2007-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
961 * config/rs6000/rs6000.md (call): Convert to LR hard reg for
963 (call_value): Likewise.
965 2007-03-31 Wolfgang Bangerth <bangerth@dealii.org>
966 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
969 * doc/invoke.texi: (optimization options): Reword description
970 of -ffast-math. Document its primary purpose.
972 2007-03-31 Richard Guenther <rguenther@suse.de>
974 * omp-low.c (splay-tree.h): Include.
975 (lookup_decl): Replace splay-tree usage by pointer-map.
976 (maybe_lookup_decl): Likewise.
977 (new_omp_context): Likewise.
978 (delete_omp_context): Likewise.
979 * gimplify.c (splay-tree.h): Include.
980 * tree-inline.c (insert_decl_map): Replace splay-tree usage by
982 (remap_ssa_name): Likewise.
983 (remap_decl): Likewise.
984 (remap_type_1): Likewise.
985 (remap_type): Likewise.
986 (copy_body_r): Likewise.
987 (expand_call_inline): Likewise.
988 (clone_body): Likewise.
989 (copy_tree_r): Likewise.
990 (remap_save_expr): Likewise.
991 (unsave_r): Likewise.
992 (unsave_expr_now): Likewise.
993 (tree_function_versioning): Likewise.
994 (build_duplicate_type): Likewise.
995 * tree-inline.h (pointer-set.h): Include instead of splay-tree.h.
996 (struct copy_body_data): Replace splay-tree by pointer-map.
997 * Makefile.in (TREE_INLINE_H): Depend on pointer-map.h,
999 (gimplify.o): Depend on $(SPLAY_TREE_H).
1000 (omp-low.p): Likewise.
1002 2007-03-31 Anatoly Sokolov <aesok@post.ru>
1004 * config/avr/predicates.md (even_register_operand,
1005 odd_register_operand): New predicates.
1006 * config/avr/avr.md (movw peephole2): New.
1007 (movw_r peephole2): New.
1009 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
1011 * tree.h (get_signed_or_unsigned_type): New.
1012 * fold-const.c (operand_equal_for_comparison_p): Use
1013 get_signed_or_unsigned_type instead of
1014 lang_hooks.types.signed_or_unsigned_type.
1015 * expr.c (store_expr): Ditto.
1016 * langhooks.c (get_signed_or_unsigned_type): New.
1017 (lhd_signed_or_unsigned_type): New.
1018 * langhooks.h (lhd_signed_or_unsigned_type): New.
1019 * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
1021 2007-03-30 Richard Henderson <rth@redhat.com>
1023 * tree-ssa-loop-ivopts.c: Include target.h.
1024 (produce_memory_decl_rtl): Pass the rtx through encode_section_info.
1025 (get_address_cost): Force SYMBOL_FLAG_LOCAL set.
1026 (force_expr_to_var_cost): Use produce_memory_decl_rtl.
1027 * Makefile.in (tree-ssa-loop-ivopts.o): Depend on TARGET_H.
1029 2007-03-30 Richard Henderson <rth@redhat.com>
1030 Kai Tietz <kai.tietz@onevision.com>
1032 * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by
1034 (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit.
1035 (TARGET_64BIT_MS_ABI): New.
1036 (DBX_REGISTER_NUMBER): Handle 64-bit.
1037 (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit.
1038 (LONG_TYPE_SIZE): Force to 32.
1039 (REG_PARM_STACK_SPACE): New.
1040 (OUTGOING_REG_PARM_STACK_SPACE): New.
1041 (REGPARM_MAX, SSE_REGPARM_MAX): New.
1042 (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
1043 (STACK_BOUNDARY): Use 128 for 64-bit.
1044 * config/i386/cygwin.asm: Use push/ret to preserve call stack.
1045 Add 64-bit implementation.
1046 * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor
1048 * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New.
1049 (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI.
1050 Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm
1051 for 64-bit; use TARGET_SUBTARGET64_DEFAULT.
1052 (ix86_handle_cconv_attribute): Don't warn when ignoring if
1053 TARGET_64BIT_MS_ABI.
1054 (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI.
1055 (ix86_pass_by_reference): Likewise.
1056 (ix86_function_value_regno_p): Likewise.
1057 (ix86_build_builtin_va_list): Likewise.
1058 (ix86_va_start, ix86_gimplify_va_arg): Likewise.
1059 (function_arg_advance_ms_64): New.
1060 (function_arg_advance): Call it.
1061 (function_arg_ms_64): New.
1062 (function_arg): Call it.
1063 (function_value_ms_64): New.
1064 (ix86_function_value_1): Call it.
1065 (return_in_memory_ms_64): New.
1066 (ix86_return_in_memory): Call it.
1067 (setup_incoming_varargs_ms_64): New.
1068 (ix86_setup_incoming_varargs): Call it.
1069 (ix86_expand_prologue): Handle 64-bit stack probing.
1070 (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI.
1071 (output_pic_addr_const): Likewise.
1072 (x86_this_parameter): Likewise.
1073 (x86_output_mi_thunk): Likewise.
1074 (x86_function_profiler): Likewise.
1075 (TARGET_STRICT_ARGUMENT_NAMING): New.
1076 * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New.
1077 (TARGET_64BIT_MS_ABI): New.
1078 (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI.
1079 * config/i386/i386.md (allocate_stack_worker): Remove.
1080 (allocate_stack_worker_32): Rename from allocate_stack_worker_1;
1081 describe the clobber of eax without a match_scratch.
1082 (allocate_stack_worker_postreload): Remove.
1083 (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64;
1084 describe the clobbers of rax, r10, r11 properly; use __chkstk symbol.
1085 (allocate_stack_worker_rex64_postreload): Remove.
1086 (allocate_stack): Handle 64-bit.
1087 * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove.
1088 * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit.
1089 (EXTRA_OS_CPP_BUILTINS): Handle 64-bit.
1090 (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT.
1091 (STANDARD_STARTFILE_PREFIX_1): Likewise.
1092 * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New.
1093 * config.build (x86_64-*-mingw*): New host.
1094 * config.host (x86_64-*-mingw*): New host.
1095 * config.gcc (x86_64-*-mingw*): New target.
1096 * gthr-win32.h (__gthread_key_create): Mark dtor unused.
1098 2007-03-30 Richard Henderson <rth@redhat.com>
1099 Kai Tietz <kai.tietz@onevision.com>
1101 * c-pragma.c (struct def_pragma_macro_value): New.
1102 (struct def_pragma_macro): New.
1103 (pushed_macro_table): New.
1104 (dpm_hash, dpm_eq): New.
1105 (handle_pragma_push_macro, handle_pragma_pop_macro): New.
1106 (init_pragma): Install them.
1107 * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
1109 2007-03-30 Anatoly Sokolov <aesok@post.ru>
1111 * config/avr/avr.c (avr_override_options): Clear
1112 'flag_delete_null_pointer_checks'.
1114 2007-03-30 Paolo Carlini <pcarlini@suse.de>
1117 * c-common.h (enum rid): Add RID_HAS_NOTHROW_ASSIGN,
1118 RID_HAS_NOTHROW_CONSTRUCTOR, RID_HAS_NOTHROW_COPY,
1119 RID_HAS_TRIVIAL_ASSIGN, RID_HAS_TRIVIAL_CONSTRUCTOR,
1120 RID_HAS_TRIVIAL_COPY, RID_HAS_TRIVIAL_DESTRUCTOR,
1121 RID_HAS_VIRTUAL_DESTRUCTOR, RID_IS_ABSTRACT, RID_IS_BASE_OF,
1122 RID_IS_CONVERTIBLE_TO, RID_IS_CLASS, RID_IS_EMPTY, RID_IS_ENUM,
1123 RID_IS_POD, RID_IS_POLYMORPHIC, RID_IS_UNION, as
1125 * doc/extend.texi (Extensions to the C++ Language): Add Type Traits.
1127 2007-03-30 Steven Bosscher <steven@gcc.gnu.org>
1129 * regmove.c: Move all of pass_stack_adjustments from here...
1130 * combine-stack-adj.c: ...to this new file.
1131 * Makefile.in: Add rules for combine-stack-adj.o.
1133 2007-03-30 Zdenek Dvorak <dvorakz@suse.cz>
1135 PR tree-optimization/31383
1136 * tree-data-ref.c (affine_function_equal_p): Do not require the vectors
1137 to have the same length.
1139 2007-03-30 Jan Hubicka <jh@suse.cz>
1142 * dwarf2out.c (reference_to_unused): Ask cgraph for functions
1143 availablility; add more sanity checking; ask varpool only about
1146 2007-03-29 Richard Henderson <rth@redhat.com>
1148 * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
1149 to decide, but __SIZEOF_LONG_LONG__.
1151 2007-03-29 Richard Henderson <rth@redhat.com>
1153 * emutls.c (struct __emutls_array): New.
1154 (emutls_destroy): Use it instead of casting element 0 from void*.
1155 (__emutls_get_address): Likewise.
1157 2007-03-29 Richard Henderson <rth@redhat.com>
1159 * varasm.c (initializer_constant_valid_p): Don't deny
1160 DECL_DLLIMPORT_P on functions.
1162 * config/i386/cygming.h: Remove function declarations.
1163 (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
1164 (ASM_OUTPUT_LABELREF): Remove.
1165 (COMMON_ASM_OP): Remove.
1166 (ASM_OUTPUT_COMMON): Remove.
1167 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
1168 (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
1169 (ASM_DECLARE_FUNCTION_NAME): Likewise.
1170 * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
1171 Rename from TARGET_ENCODE_SECTION_INFO.
1172 * config/i386/netware.h: Likewise.
1173 * config/i386/i386-protos.h: Update.
1174 * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
1175 of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
1176 (legitimate_constant_p): Reject dllimports.
1177 (dllimport_map, get_dllimport_decl): New.
1178 (legitimize_dllimport_symbol): New.
1179 (legitimize_address, ix86_expand_move): Use it.
1180 (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
1181 * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
1182 (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
1183 (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
1184 * config/i386/predicates.md (constant_call_address_operand): Only
1185 accept symbols; reject dllimport_p symbols.
1186 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
1187 i386_pe_maybe_record_exported_symbol.
1188 * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
1189 (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
1190 (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
1191 trust the setting of DECL_DLLIMPORT_P.
1192 (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
1193 (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
1194 (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
1195 tidy the argument scanning loop.
1196 (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
1197 SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
1198 (i386_pe_strip_name_encoding): Remove.
1199 (i386_pe_binds_local_p): New.
1200 (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
1201 (i386_pe_output_labelref): Remove.
1202 (i386_pe_asm_output_aligned_decl_common): New.
1203 (i386_pe_maybe_record_exported_symbol): Rename from
1204 i386_pe_record_exported_symbol; check for dllexported symbols.
1206 2007-03-29 Zack Weinberg <zack@mrtock.ucsd.edu>
1208 * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
1209 add comment explaining why vsnprintf cannot be used.
1211 2007-03-29 Douglas Gregor <doug.gregor@gmail.com>
1213 PR tree-optimization/30666
1214 * tree.c (build_complex_type): When creating type names for DWARF2
1215 debug info, create TYPE_DECLs for TYPE_NAME instead of
1217 (build_common_tree_nodes_2): Use build_complex_type when building
1218 predefined complex types, to preserve canonical types.
1220 2007-03-29 Steven Bosscher <steven@gcc.gnu.org>
1222 * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
1223 (noce_get_alt_condition): Look at it to determine whether to
1224 reverse the condition or not.
1225 (noce_get_condition): Substitute the truth for lies.
1226 (noce_find_if_block): Set the then_else_reversed field.
1228 2007-03-29 Lars Poeschel <larsi@wh2.tu-dresden.de>
1230 * config/fr30/fr30.md (movdi): Do not accept immediates as the
1231 destination of this insn.
1232 * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
1233 than calling gen_rtx_SET directly. Use r0 to hold the value of
1234 'address + 4' rather than a stack based temporary which can be
1237 2007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
1239 * config/s390/s390.c (s390_secondary_input_reload_class,
1240 s390_secondary_output_reload_class): Functions removed.
1241 (s390_secondary_reload): New function.
1242 (TARGET_SECONDARY_RELOAD): Target macro defined.
1243 * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
1244 SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
1245 * config/s390/s390.md ("reload_outti", "reload_outdi",
1246 "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
1247 "reload_out<mode>"): Expanders removed.
1248 ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
1249 "reload<mode>_nonoffmem_out"): Expanders added.
1251 2007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
1253 * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair action if
1254 SRC->DEST replacement failed anyway.
1256 2007-03-28 Mike Stump <mrs@apple.com>
1258 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
1259 * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
1260 * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
1262 2007-03-28 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
1264 * config.gcc: Accept barcelona as a variant of amdfam10.
1265 * config/i386/i386.c (override_options): Likewise.
1266 * doc/invoke.texi: Likewise.
1268 2007-03-28 Eric Botcazou <ebotcazou@adacore.com>
1270 * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
1271 offsets for BIT_FIELD_REF and COMPONENT_REF.
1273 2007-03-28 Richard Guenther <rguenther@suse.de>
1275 * tree.c (is_global_var): Move ...
1276 * tree-flow-inline.h (is_global_var): ... here.
1277 * tree.h (is_global_var): Remove declaration.
1279 2007-03-28 Uros Bizjak <ubizjak@gmail.com>
1281 * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
1283 (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
1284 * config/i386/i386.c (ix86_tune_features): Initialize new
1286 * config/i386/predicates.md (promotable_binary_operator): Use
1287 TARGET_TUNE_PROMOTE_HIMODE_IMUL.
1289 2007-03-28 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
1292 * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
1294 2007-03-28 Lars Poeschel <larsi@wh2.tu-dresden.de>
1296 * config/fr30/fr30.md (movsi_internal): Change destination
1297 constraint from m to V and add m to the end.
1299 2007-03-28 Christian Bruel <christian.bruel@st.com>
1301 * config/sh/sh.md (movsi_i): Fix type attribute.
1303 2007-03-28 Christian Bruel <christian.bruel@st.com>
1305 * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
1306 (movsf_ie): Likewise.
1308 2007-03-28 Christian Bruel <christian.bruel@st.com>
1310 * config.gcc: Add sh4-300 to multilib.
1311 * config/sh/t-mlib-sh4-300: New file.
1313 2007-03-28 Andreas Krebbel <krebbel1@de.ibm.com>
1315 * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
1316 ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
1318 ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use
1319 fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
1320 ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
1321 "fixuns_trunctddi2"): Whitespace fix.
1323 2007-03-28 Kaz Kojima <kkojima@gcc.gnu.org>
1325 * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
1326 the definition of struct sh_args.
1327 (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
1328 CALL_COOKIE_INT_REG_GET): Likewise.
1330 2007-03-28 Steven Bosscher <steven@gcc.gnu.org>
1332 * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
1333 transformations are applied successfully.
1335 2007-03-27 Douglas Gregor <doug.gregor@gmail.com>
1337 * tree.c (tree_contains_struct): Permit 512 tree codes.
1338 * tree.h (tree_contains_struct): Ditto.
1339 (MAX_TREE_CODES): Ditto.
1340 (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
1341 SPARE member to store remaining padding bits.
1343 2007-03-27 Anatoly Sokolov <aesok@post.ru>
1345 * config/avr/avr.c (avr_mcu_types): Move at90usb82 device to 'avr4'
1348 2007-03-27 Janis Johnson <janis187@us.ibm.com>
1350 * configure.ac: Fix assembler test for powerpc*-linux decimal float.
1351 * configure: Regenerate.
1353 * configure: Regenerate using the correct version of autoconf.
1355 2007-03-27 Anatoly Sokolov <aesok@post.ru>
1357 * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
1359 * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
1360 regs to "__SP_L__" and "__SP_H__".
1362 2007-03-27 Richard Guenther <rguenther@suse.de>
1364 * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
1365 computations with it with a HOST_WIDE_INT variable.
1367 2007-03-26 Mike Stump <mrs@apple.com>
1369 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Add
1370 objective-c-header, objective-c++-header and objc++-cpp-output
1372 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
1374 2007-03-26 Richard Henderson <rth@redhat.com>
1377 * config/i386/i386.c (IX86_BUILTIN_PSLLDQ128, IX86_BUILTIN_PSLLW128,
1378 IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128, IX86_BUILTIN_PSRAW128,
1379 IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128, IX86_BUILTIN_PSRLD128,
1380 IX86_BUILTIN_PSRLQ128): New.
1381 (ix86_init_mmx_sse_builtins): Add them.
1382 (ix86_expand_builtin): Expand them.
1383 * config/i386/sse.md (ashr<mode>3, lshr<mode>3, ashl<mode>3): Make
1384 operand 2 be TImode.
1385 * config/i386/emmintrin.h (_mm_slli_epi64, _mm_srai_epi16,
1386 _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
1387 _mm_srli_epi64): Mark __B const.
1388 (_mm_srli_si128, _mm_srli_si128): Fix disabled inline versions.
1389 (_mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64, _mm_sra_epi16,
1390 _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32, _mm_srl_epi64): Use
1391 new two-vector shift builtins.
1393 2007-03-26 Ian Lance Taylor <iant@google.com>
1395 PR tree-optimization/31345
1396 * tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
1397 [+INF, +INF(OVF)] into VARYING.
1399 2007-03-26 Zack Weinberg <zackw@panix.com>
1401 * gengtype-parse.c: New file.
1402 * gengtype-yacc.y: Delete.
1403 * gengtype-lex.l: Don't include gengtype-yacc.h.
1404 Define YY_DECL and yyterminate appropriately for recursive
1405 descent parser. yylval is now a string out-parameter to yylex.
1406 (HWS, EOID): New shorthand.
1407 (IWORD): Add a couple more types.
1408 (yylex): Add a setup stanza. Remove the complex rules for
1409 detecting GTY'ed types and typedefs; replace with simple
1410 keyword detectors. Adjust everything for the changed
1411 definition of yylval. Ignore all pp-directives, not just #define.
1413 (parse_file): Rename yybegin; do not call yyparse.
1415 * gengtype.c (xasprintf): Export again.
1416 (this_file): New. Use everywhere __FILE__ was being used.
1417 (get_lang_bitmap): Special case types defined in gengtype.c.
1418 (do_typedef, new_structure): Suppress definition of certain types.
1419 (new_structure): Improve diagnostics of duplicate definitions.
1420 Make sure location_s is associated with input.h.
1421 (nreverse_pairs, define_location_structures): New functions.
1422 (main): Improve tagging of kludge types. Remove old kludges
1423 for input.h types; use define_location_structures.
1424 * gengtype.h: Update prototypes. Define token codes here.
1425 * Makefile.in: Remove all references to gengtype-yacc.
1426 Add rules for gengtype-parse.o. Adjust rules for gengtype-lex.o
1428 * bitmap.h (struct bitmap_head_def): Coalesce definitions,
1429 add GTY((skip)) to the field that's only conditionally there.
1430 * doc/install.texi: Document that Bison is no longer required
1431 unless building treelang.
1433 * gengtype.c: Don't include gtyp-gen.h.
1434 (srcdir): Declare here.
1435 (base_files, lang_dir_names): Allocate dynamically.
1436 (gt_files, num_gt_files, num_lang_dirs): New globals.
1437 (measure_input_list, read_input_line, read_input_list)
1438 (set_lang_bitmap): New functions.
1439 (get_base_file_bitmap): Rename get_lang_bitmap and drastically
1440 simplify, relying on read_input_list to set up the bitmaps.
1441 (main): Arguments are no longer unused. Check for correct number
1442 of command line arguments, set srcdir and srcdir_len, then call
1443 read_input_list, before doing anything else. No need to worry
1444 about duplicates in main loop.
1445 * configure.ac: Simplify the calculation of all_gtfiles.
1446 Put language tags in there. Don't set or substitute
1447 all_gtfiles_files_langs or all_gtfiles_files_frags.
1448 * Makefile.in: Revamp the way gengtype is invoked, now that it
1449 takes a file on its command line with a much simpler format.
1450 Remove or replace with gtyp-input.list all references to gtyp-gen.h.
1451 (GTFILES): Remove duplicates and C source files.
1452 * c-config-lang.in, cp/config-lang.in, objc/config-lang.in
1453 * objcp/config-lang.in: Add c-pragma.h to gtfiles.
1454 * configure: Regenerate.
1456 * gengtype.h: Remove all type definitions to gengtype.c; leave
1457 only definitions of options_p, type_p, and pair_p as opaque
1458 pointers. Update prototypes.
1459 * gengtype.c: Many type definitions moved here from gengtype.h.
1460 Consolidate type definitions at the top of the file.
1461 (xvasprintf): Delete.
1462 (xasprintf): Make static.
1463 (create_nested_pointer_option): Add 'next' parameter.
1464 (create_field_all, create_field_at): New functions.
1465 (create_field): Now a thin wrapper around create_field_all.
1466 (create_optional_field): Rename create_optional_field_ and add
1467 line argument. Original name is now a macro which supplies
1469 (oprintf): Use vsnprintf directly.
1470 (close_output_files): Use fatal rather than perror/exit.
1471 (note_def_vec, note_def_vec_alloc): Use create_field_at.
1472 (main): Set progname. Don't use exit.
1473 * gengtype-yacc.y (struct_fields): Use create_field_at.
1474 (option, optionseqopt): Delete.
1475 (optionseq): Consolidate productions from option here so we
1476 can use the first argument to create_option.
1478 * gengtype-lex.l: Distinguish unions from structures in the
1479 token type. Don't call find_structure; return the tag as a string.
1480 * gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and ENT_UNION.
1481 Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is string.
1482 Reorganize typedef_struct production accordingly.
1483 Use create_nested_ptr_option.
1484 * gengtype.c (create_nested_ptr_option): New function.
1485 * gengtype.h: Declare it.
1487 * gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
1488 (string_type): Don't declare.
1489 (do_scalar_typedef): Declare.
1490 (create_scalar_type): Update prototype.
1491 * gengtype.c (string_type): Make static.
1492 (scalar_nonchar, scalar_char): New.
1493 (do_scalar_typedef): Export. Always use scalar_nonchar for the type.
1494 (resolve_typedef): Use scalar_nonchar for error recovery.
1495 (create_scalar_type): Remove name_len field. Return scalar_char
1496 or scalar_nonchar as appropriate.
1497 (adjust_field_type): Look at scalar_is_char boolean to decide whether
1499 (throughout): Use scalar_nonchar instead of calling create_scalar_type,
1501 (main): Initialize scalar_char and scalar_nonchar before calling
1503 * gengtype-lex.l: Adjust for removal of second argument to
1504 create_scalar_type. Use yylval.s instead of yylval.t when
1506 * gengtype-yacc.y: Type of SCALAR is string. Call
1507 create_scalar_type from type:SCALAR rule. Adjust for removal of
1508 second argument to create_scalar_type.
1510 * vec.h: Remove all #if IN_GENGTYPE blocks.
1511 Add comment saying that changes may require adjustments to gengtype.
1512 * gengtype.c: Don't include coretypes.h or tm.h.
1513 Add comment to inclusion of errors.h.
1514 (note_def_vec, note_def_vec_alloc): New functions.
1515 * gengtype.h: Declare new functions.
1516 * gengtype-lex.l: Don't include coretypes.h.
1517 (YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
1519 (update_lineno): Remove unnecessary prototype.
1520 (DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
1521 (VEC rule): Just return VEC_TOKEN.
1522 * gengtype-yacc.y (VEC_TOKEN): New token type.
1523 (type): Add a production for VEC(a,b).
1524 * Makefile.in: Update dependencies.
1526 * gengtype-lex.l: Remove rules for parsing pointer-to-function
1527 typedefs that use the old PARAMS macro.
1529 * gengtype-lex.l: Remove all rules and states relating to yacc
1531 * gengtype-yacc.y: Similarly.
1532 * gengtype.c (note_yacc_type): Delete function.
1533 * gengtype.h: Update prototypes.
1535 2007-03-26 Joseph Myers <joseph@codesourcery.com>
1537 * tree-pretty-print.c (dump_generic_node): Report precision of
1538 unnamed integer types.
1540 2007-03-26 Steven Bosscher <steven@gcc.gnu.org>
1542 * ifcvt.c (noce_try_store_flag_constants): Don't check
1543 no_new_pseudos here.
1544 (noce_try_store_flag_constants): Don't check no_new_pseudos.
1545 (noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
1546 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
1547 noce_try_sign_mask): Likewise.
1548 (if_convert): Check no_new_pseudos here.
1550 (cond_exec_process_if_block, noce_process_if_block, find_if_block):
1552 (struct noce_if_info): Add then_bb, else_bb, join_bb members.
1553 (noce_get_condition): Handle new then_else_reversed argument.
1554 (noce_init_if_info): Remove, fold into noce_find_if_block.
1555 (noce_process_if_block): Take a struct noce_if_info as the
1556 argument. Don't set up one based on ce_if_info. Update pointer
1557 references accordingly.
1558 (cond_move_process_if_block): Likewise.
1559 (process_if_block): Removed.
1560 (find_if_block): Removed. Move functionality two new functions,
1561 noce_find_if_block and cond_exec_find_if_block.
1562 (noce_find_if_block): New function. Be aware of IF-THEN-JOIN
1563 blocks and the symmetric IF-ELSE-JOIN case.
1564 (cond_exec_find_if_block): Also new function mostly based on old
1565 find_if_block and process_if_block.
1566 (find_if_header): Replace find_if_block call with separately
1567 guarded calls to noce_find_if_block and cond_exec_find_if_block.
1568 (find_cond_trap): Update noce_get_condition call.
1569 (dead_or_predicable): Likewise.
1571 2007-03-26 Jakub Jelinek <jakub@redhat.com>
1573 * config/i386/i386.c (IX86_BUILTIN_CMPNEPD, IX86_BUILTIN_CMPNESD):
1575 (IX86_BUILTIN_PSLLW128, IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128,
1576 IX86_BUILTIN_PSRAW128, IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128,
1577 IX86_BUILTIN_PSRLD128, IX86_BUILTIN_PSRLQ128): Remove.
1578 (ix86_init_mmx_sse_builtins): Remove v8hi_ftype_v8hi_v2di and
1579 v4si_ftype_v4si_v2di. Remove __builtin_ia32_psllw128,
1580 __builtin_ia32_pslld128, __builtin_ia32_psllq128,
1581 __builtin_ia32_psrlw128, __builtin_ia32_psrld128,
1582 __builtin_ia32_psrlq128, __builtin_ia32_psraw128 and
1583 __builtin_ia32_psrad128 builtins.
1585 2007-03-26 Uros Bizjak <ubizjak@gmail.com>
1587 * reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
1588 * config/i386/constraints.md
1589 (define_constraint "I"): Use IN_RANGE macro.
1590 (define_constraint "J"): Ditto.
1591 (define_constraint "K"): Ditto.
1592 (define_constraint "M"): Ditto.
1593 (define_constraint "N"): Ditto.
1594 (define_constraint "O"): Ditto.
1595 * config/i386/predicates.md
1596 (define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
1597 (define_predicate "const_0_to_3_operand"): Ditto.
1598 (define_predicate "const_0_to_7_operand"): Ditto.
1599 (define_predicate "const_0_to_15_operand"): Ditto.
1600 (define_predicate "const_0_to_63_operand"): Ditto.
1601 (define_predicate "const_0_to_255_operand"): Ditto.
1602 (define_predicate "const_1_to_31_operand"): Ditto.
1603 (define_predicate "const_2_to_3_operand"): Ditto.
1604 (define_predicate "const_4_to_7_operand"): Ditto.
1606 2007-03-25 David Edelsohn <edelsohn@gnu.org>
1608 * config/rs6000/rs6000.c (rs6000_emit_prologue): Always clobber LR
1609 in SImode for save_world.
1610 * config/rs6000/altivec.md (save_world, restore_world): Convert to
1613 2007-03-25 Dorit Nuzman <dorit@il.ibm.com>
1615 PR tree-optimization/30784
1616 * fold-const.c (fold_ternary): Handle CONSTRUCTOR in case
1619 2007-03-25 Revital Eres <eres@il.ibm.com>
1621 * tree-if-conv.c (if_convertible_gimple_modify_stmt_p):
1622 Fold movement_possibility function into it.
1624 2007-03-25 David Edelsohn <edelsohn@gnu.org>
1626 * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
1627 (load_macho_picbase_{si,di}): Convert to LR hard reg.
1628 (call_indirect_nonlocal_darwin64): Same.
1629 (call_nonlocal_darwin64): Same.
1630 (call_value_indirect_nonlocal_darwin64): Same.
1631 (call_value_nonlocal_darwin64): Same.
1632 (sibcall_nonlocal_darwin64): Same.
1633 (sibcall_value_nonlocal_darwin64): Same.
1634 (sibcall_symbolic_64): Same.
1635 (sibcall_value_symbolic_64): Same.
1636 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
1638 (rs6000_emit_load_toc_table): Same.
1639 * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
1640 * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
1646 (load_toc_v4_pic_si): Same
1647 (load_toc_v4_PIC_1): Same.
1648 (load_toc_v4_PIC_1b): Same.
1649 (call_indirect_aix{32,64}): Same.
1650 (call_value_indirect_aix{32,64}): Same.
1653 (call_local{32,64}): Same.
1654 (call_value_local{32,64}): Same.
1655 (call_indirect_nonlocal_aix{32,64}): Same.
1656 (call_nonlocal_aix{32,64}): Same.
1657 (call_value_indirect_nonlocal_aix{32,64}): Same.
1658 (call_value_nonlocal_aix{32,64}): Same.
1659 (call_indirect_nonlocal_sysv<mode>): Same.
1660 (call_nonlocal_sysv<mode>): Same.
1661 (call_value_indirect_nonlocal_sysv<mode>): Same.
1662 (call_value_nonlocal_sysv<mode>): Same.
1664 (sibcall_local{32,64}): Same.
1665 (sibcall_value_local{32,64}): Same.
1666 (sibcall_nonlocal_aix{32,64}): Same.
1667 (sibcall_value_nonlocal_aix{32,64}): Same.
1668 (sibcall_nonlocal_sysv<mode>): Same.
1669 (sibcall_value): Same.
1670 (sibcall_value_nonlocal_sysv<mode>): Same.
1672 2007-03-24 Paul Brook <paul@codesourcery.com>
1674 * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
1675 * config/arm/linux-eabi.h: Remove legacy syscall hack.
1677 2007-03-24 Richard Henderson <rth@redhat.com>
1679 * config/ia64/constraints.md: New file.
1680 * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
1681 satisfies_constraint_?.
1682 * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
1683 ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
1684 ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
1685 ia64_output_mi_thunk): Likewise.
1686 (ia64_const_ok_for_letter_p): Remove.
1687 (ia64_const_double_ok_for_letter_p): Remove.
1688 (ia64_extra_constraint): Remove.
1689 * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
1690 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
1691 CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
1692 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
1693 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
1694 EXTRA_MEMORY_CONSTRAINT): Remove.
1695 * config/ia64/ia64.md: Include constriants.md. Replace
1696 CONST_OK_FOR_? with satisfies_constraint_?.
1698 2007-03-23 Michael Meissner <michael.meissner@amd.com>
1699 H.J. Lu <hongjiu.lu@intel.com>
1701 * config/dfp-bit.h (DPD_BID_NAME): New macro to give either the
1703 (name macros): Use DPD_BID_NAME to convert names properly.
1705 * optabs.c (DECIMAL_PREFIX): Prefix string to use for the current
1706 decimal floating point format.
1707 (init_floating_libfuncs): Change decimal functions so that they
1708 have a "bid_" prefix if the decimal system uses the BID format,
1709 and "dpd_" prefix if the decimal system uses the DPD format.
1710 (init_interclass_conv_libfuncs): Ditto.
1711 (init_intraclass_conv_libfuncs): Ditto.
1713 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
1714 using the BID format.
1716 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
1717 whether we are using the BID decimal format.
1718 * configure: Regenerate.
1720 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
1721 the compiler has decimal floating point enabled. Define
1722 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
1725 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
1726 using the BID format.
1728 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
1729 whether we are using the BID decimal format.
1730 * configure: Regenerate.
1732 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
1733 the compiler has decimal floating point enabled. Define
1734 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
1737 * doc/install.texi (--enable-decimal-float): Document BID and DPD
1738 options, and that it is enabled for i386/x86_64 systems.
1740 * Makefile.in (enable_decimal_float): New.
1742 (DECNUMINC): Add -I$(DECNUMFMT).
1743 (DECNUM_H): Mov decimal32.h, decimal64.h and decimal128.h
1744 to $(DECNUMFMT) from $(DECNUM).
1746 * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
1747 Substitute enable_decimal_float.
1748 * configure: Regenerated.
1751 * config/dfp-bit.c (__dec_byte_swap): Use uint32_t instead of
1754 * configure.ac: Enable decimal float for x86_64-*-linux*.
1755 * configure: Regenerated.
1758 * dfp.c (decimal_real_arithmetic): Use decimal128FlipSign and
1759 decimal128ClearSign to flip and clear the sign bit in decimal128.
1760 (decimal_real_maxval): Set decimal128SetSign to set the sign
1763 2007-03-23 Ian Lance Taylor <iant@google.com>
1765 * fold-const.c (fold_binary): Correct warning for X - c >= X.
1767 2007-03-23 Ian Lance Taylor <iant@google.com>
1769 * tree-dump.c (dump_files): Correct comment.
1771 2007-03-23 Ian Lance Taylor <iant@google.com>
1773 * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
1775 2007-03-23 Steven Bosscher <steven@gcc.gnu.org>
1777 * tracer.c (tracer): Don't take FLAGS argument. Assert we are
1778 in cfglayout mode. Don't go into and out of cfglayout mode.
1779 Link the blocks in the order of the constructed traces.
1780 (rest_of_handle_tracer): Adjust call to tracer.
1781 * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
1782 Don't go into cfglayout mode.
1783 (rtl_loop_done): Don't go out of cfglayout mode.
1784 * cfglayout.c (relink_block_chain): New function, split out from...
1785 (fixup_reorder_chain): ...here. Remove redundant checking.
1786 (cfg_layout_finalize): Don't clear the header, footer, and aux
1787 fields here, move the code to do so to relink_block_chain. Likewise
1788 for free_original_copy_tables.
1789 * rtl.h (tracer): Update prototype.
1790 * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
1791 Assert we are in cfglayout mode. Don't go into and out of cfglayout
1792 mode. Use relink_block_chain to serialize the CFG according to the
1793 new basic block order. Move targetm.cannot_modify_jumps_p check from
1795 (gate_handle_reorder_blocks): ...to here.
1796 (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
1798 (gate_duplicate_computed_gotos): ...to here.
1799 (rest_of_handle_reorder_blocks): Don't see if anything has changed,
1800 something always changes when going into and out of cfglayout mode.
1801 Perform an expensive cfg cleanup while going into cfglayout mode.
1802 Always update liveness information on HAVE_conditional_execution
1803 targets. Reserialize the basic blocks and go out of cfglayout mode.
1804 * reg-stack.c: Include cfglayout.h.
1805 (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
1806 the call to reorder_basic_blocks.
1807 * basic-block.h (reorder_basic_blocks): Update prototype.
1808 (relink_block_chain): New prototype.
1809 * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
1811 2007-03-23 Joseph Myers <joseph@codesourcery.com>
1813 * config/mips/mips.md (type, hazard, *movdi_32bit,
1814 *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
1815 *movhi_internal, *movqi_internal, *movsf_hardfloat,
1816 *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
1817 movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
1818 mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
1820 (movcc): Change first xfer to multi.
1821 * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
1822 config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
1823 config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
1824 config/mips/generic.md: Change reservations using "xfer" to use
1826 * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
1827 using match_operand.
1828 (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
1829 * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
1831 (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
1833 2007-03-22 Richard Henderson <rth@redhat.com>
1835 * config/i386/i386.c: Remove unnecessary function declarations.
1836 Move targetm definition, and all related macros, to the end of
1837 the file. Resort some functions to put definitions before uses.
1838 (ix86_attribute_table): Make static. Move to end of file.
1839 (ix86_gimplify_va_arg): Make static.
1841 2007-03-22 Richard Henderson <rth@redhat.com>
1843 * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
1844 don't increase local_regparm with force_align_arg_pointer check.
1845 (ix86_function_sseregparm): Assert 32-bit.
1846 (type_has_variadic_args_p): New.
1847 (ix86_return_pops_args): Early exit for 64-bit. Reindent; use
1848 type_has_variadic_args_p.
1849 (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
1850 (init_cumulative_args): Remove TARGET_DEBUG_ARG. Remove zero_cum;
1851 use memset instead. Do maybe_vaarg check first; skip attribute
1852 tests if true; skip attribute tests for 64-bit.
1853 (construct_container): Remove TARGET_DEBUG_ARG.
1854 (function_arg_advance_32, function_arg_advance_64): Split out ...
1855 (function_arg_advance): ... from here.
1856 (function_arg_32, function_arg_64): Split out ...
1857 (function_arg): ... from here.
1858 (ix86_pass_by_reference): Tidy.
1859 (ix86_function_value_regno_p): Rearrange w/ switch on regno.
1860 (function_value_32): New, from parts of ix86_function_value
1861 and ix86_value_regno.
1862 (function_value_64): New, from parts of ix86_function_value
1863 and ix86_libcall_value.
1864 (ix86_function_value_1): New.
1865 (ix86_function_value, ix86_libcall_value): Use it.
1866 (return_in_memory_32, return_in_memory_64): Split out ...
1867 (ix86_return_in_memory): ... from here.
1868 (ix86_struct_value_rtx): Skip for 64-bit.
1869 (ix86_libcall_value, ix86_value_regno): Remove.
1870 (setup_incoming_varargs_64): Split out ...
1871 (ix86_setup_incoming_varargs): ... from here.
1872 (ix86_va_start): Remove TARGET_DEBUG_ARG.
1873 (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
1874 * config/i386/i386-protos.h (ix86_function_value): Remove.
1875 * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
1877 2007-03-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1880 * c-lex.c (interpret_float): On overflow, emit pedantic warning if
1881 infinities not supported, otherwise emit warning if -Woverflow. On
1882 underflow, emit warning if -Woverflow.
1883 * real.c (real_from_string): Return -1 if underflow, +1 if overflow
1885 * real.h (real_from_string): Update declaration
1887 2007-03-22 Kai Tietz <kai.tietz@onevision.com>
1888 Richard Henderson <rth@redhat.com>
1890 * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
1891 * calls.c (compute_argument_block_size, expand_call,
1892 emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
1893 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1894 * function.c (STACK_DYNAMIC_OFFSET): Likewise.
1895 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
1896 * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
1897 config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
1898 config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
1899 config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
1902 2007-03-22 Joseph Myers <joseph@codesourcery.com>
1904 * c-incpath.c (add_sysroot_to_chain): New.
1905 (merge_include_chains): Add sysroot argument. Call
1906 add_sysroot_to_chain if sysrooted.
1907 (register_include_chains): Update call to merge_include_chains.
1908 * doc/cppopts.texi: Document use of '=' in include directory
1911 2007-03-22 Uros Bizjak <ubizjak@gmail.com>
1913 * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
1914 Macroize expander using SSEMODEF mode macro. Use SSE_FLOAT_MODE_P.
1915 (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
1916 insn pattern using X87MODEF12 mode macro.
1918 2007-03-21 Seongbae Park <seongbae.park@gmail.com>
1920 * regmove.c (regmove_optimize): Use reg_mentioned_p
1921 instead of reg_overlap_mentioned_p for DST.
1923 2007-03-21 Mike Stump <mrs@apple.com>
1925 * c.opt: Fixup for Objective-C/C++.
1927 2007-03-21 Steve Ellcey <sje@cup.hp.com>
1929 * explow.c (convert_memory_address): Fold memory reference when
1930 POINTERS_EXTEND_UNSIGNED < 0
1932 2007-03-21 Richard Henderson <rth@redhat.com>
1935 * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
1936 * config/i386/mmintrin.h (__m64): Likewise.
1937 * config/i386/xmmintrin.h (__m128): Likewise.
1939 2007-03-21 Richard Sandiford <richard@codesourcery.com>
1941 * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
1942 (VXWORKS_OS_CPP_BUILTINS): Define.
1943 * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
1944 (TARGET_OS_CPP_BUILTINS): ...here. Use VXWORKS_OS_CPP_BUILTINS.
1946 2007-03-21 Richard Sandiford <richard@codesourcery.com>
1948 * rtl.h (constant_pool_reference_p): Delete.
1949 (find_constant_src): Declare.
1950 * rtlanal.c (find_constant_src): New function.
1951 * simplify-rtx.c (constant_pool_reference_p): Delete.
1952 * config/i386/i386.md: Use find_constant_src instead of
1953 constant_pool_reference_p/avoid_constant_pool_reference pairs.
1955 2007-03-21 Richard Sandiford <richard@codesourcery.com>
1957 * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
1958 * c-cppbuiltin.c (c_cpp_builtins): Define them.
1960 2007-03-20 Mark Mitchell <mark@codesourcery.com>
1962 * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
1963 * config/arm/arm.c (arm_elf_asm_cdtor): New function.
1964 (arm_elf_asm_constructor): Use it.
1965 (arm_elf_asm_destructor): New function.
1967 2007-03-20 Bernd Schmidt <bernd.schmidt@analog.com>
1969 * jump.c (mark_jump_label): Treat SEQUENCE specially.
1971 2007-03-20 Nathan Sidwell <nathan@codesourcery.com>
1973 * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
1975 2007-03-19 Andrew Haley <aph@redhat.com>
1977 PR tree-optimization/31264
1978 * tree-vrp.c (register_edge_assert_for_1): Don't look though
1981 2007-03-19 Paolo Bonzini <bonzini@gnu.org>
1983 PR rtl-optimization/30907
1984 * fwprop.c (forward_propagate_into): Never propagate inside a loop.
1985 (fwprop_init): Always call loop_optimizer_initialize.
1986 (fwprop_done): Always call loop_optimizer_finalize.
1987 (fwprop): We always have loop info now.
1988 (gate_fwprop_addr): Remove.
1989 (pass_fwprop_addr): Use gate_fwprop as gate.
1991 PR rtl-optimization/30841
1992 * df-problems.c (df_ru_local_compute, df_rd_local_compute,
1993 df_chain_alloc): Call df_reorganize_refs unconditionally.
1994 * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
1995 refs_organized to refs_organized_size.
1996 (df_ref_create_structure): Use refs_organized_size instead of
1997 bitmap_size if refs had been organized, and keep refs_organized_size
1999 * df.h (struct df_ref_info): Change refs_organized to
2000 refs_organized_size.
2001 (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
2004 2007-03-19 Mark Mitchell <mark@codesourcery.com>
2006 * except.c (output_function_exception_table): Do not reference the
2007 EH personality routine for functions that do not require an
2010 2007-03-20 Jakub Jelinek <jakub@redhat.com>
2013 * c-typeck.c (convert_for_assignment): Call comptypes for
2014 RECORD_TYPE or UNION_TYPE.
2017 * reload1.c (reload): Do invalid ASM checking after
2018 cleanup_subreg_operands.
2020 2007-03-19 Jeff Law <law@redhat.com>
2022 * tree-cfg.c (find_taken_edge): Tighten conditions for
2023 optimizing computed gotos.
2025 2007-03-19 Michael Matz <matz@suse.de>
2027 * builtins.c (expand_builtin_sync_operation,
2028 expand_builtin_compare_and_swap,
2029 expand_builtin_lock_test_and_set): Care for extending CONST_INTs
2032 * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
2033 sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
2036 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
2038 * doc/tm.texi: Add brackets around the return type of
2039 TARGET_SECONDARY_RELOAD.
2041 2007-03-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
2042 Richard Guenther <rguenther@suse.de>
2044 PR tree-optimization/31254
2045 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
2046 Use handled_component_p () where appropriate. Continue
2047 propagating into the rhs if we propagated into an INDIRECT_REF
2050 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
2052 * config/s390/s390.md (op_type attribute): RRR instruction type added.
2053 (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
2054 (xde, xdee): Mode attributes adjusted to support DFP modes.
2055 (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
2056 ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
2057 DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
2058 "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
2059 "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
2060 "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
2061 "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
2063 ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
2064 "movsf"): Insn definitions removed.
2065 ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
2066 "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
2067 "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
2069 ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
2070 "reload_in<mode>", "reload_out<mode>"): Expander added.
2071 ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
2074 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
2076 * config/s390/s390.md: Only non-functional changes. Renamed
2077 FPR mode macro to BFP all over the file.
2079 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
2081 * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
2082 (op_type attribute): RRF instruction type added.
2083 (fT0): New mode attribute.
2084 ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
2085 "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
2086 * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new instruction
2087 no secondary memory is needed when moving DFmode values between GPRs
2090 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
2092 * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
2093 inverted and documentation adjusted.
2094 ("mhard-dfp", "msoft-dfp"): New options.
2095 * config/s390/s390.c (s390_handle_arch_option): New architecture
2097 (override_options): Sanity checks for the new options added.
2098 * config.gcc: New architecture switch: z9-ec.
2099 * config/s390/s390.h (processor_flags): PF_DFP added.
2100 (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
2101 (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
2102 when the bit is NOT set so remove it from the defaults.
2104 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
2106 * genemit.c (main): Print include statement for dfp.h.
2107 * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
2110 2007-03-19 Hans-Peter Nilsson <hp@axis.com>
2112 * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
2114 2007-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
2117 * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
2120 2007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2122 * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
2123 attr_length_call, output_call, output_indirect_call): Cleanup
2124 formatting of targetm calls.
2126 2007-03-19 Hans-Peter Nilsson <hp@axis.com>
2128 * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
2130 2007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2132 * pa.md: Add fpstore_load and store_fpload instruction types. Provide
2133 reservation, bypass and anti-bypass descriptions for these instructions.
2134 Update move patterns.
2135 * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
2138 2007-03-18 Dorit Nuzman <dorit@il.ibm.com>
2140 * tree-vect-transform.c (get_initial_def_for_induction): Replace
2141 GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
2142 (get_initial_def_for_reduction): Likewise.
2144 2007-03-16 Daniel Berlin <dberlin@dberlin.org>
2146 Fix PR tree-optimization/29922
2147 * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
2148 (get_representative): Removed.
2149 (value_dies_in_block_x): Update for rvuse removal.
2150 (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
2151 (compute_antic_aux): Handle when PHI nodes appear in
2152 non-single-successors.
2153 (dump_bitmap_of_names): Removed.
2154 (compute_antic_safe): Renamed and removed rvuse calculation.
2155 Calculate only antic safe.
2156 (insert_into_preds_of_block): Remove assert.
2157 (execute_pre): Update for renamed functions.
2158 (defer_or_phi_translate_block): New function.
2160 2007-03-17 Kazu Hirata <kazu@codesourcery.com>
2162 * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
2163 config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
2165 * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
2166 Follow spelling conventions.
2168 * tree-data-ref.h: Remove the prototype for analyze_array.
2170 2007-03-17 Dorit Nuzman <dorit@il.ibm.com>
2172 PR tree-optimization/31041
2173 * tree-vect-transform.c (get_initial_def_for_induction): Call
2174 force_gimple_operand.
2176 2007-03-17 Olga Golovanevsky <olga@il.ibm.com>
2178 * ipa-type-escape.c (look_for_casts) : Revert code to use
2179 handled_component_p due to ada test a-numaux.adb.
2181 2007-03-17 Kazu Hirata <kazu@codesourcery.com>
2183 * final.c (final_scan_insn): Alter the condition of a
2184 conditional trap if we have nonstandard CC.
2186 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
2188 * configure.ac: Remove excess quoting from asm line 0 test.
2189 * configure: Rebuilt.
2191 2007-03-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2193 * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
2194 * c-common.c (convert_and_check): Move warning logic to...
2195 (warnings_for_convert_and_check): ...here. Define.
2196 * c-common.h (warnings_for_convert_and_check): Declare.
2198 2007-03-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2200 * pa.c (attr_length_call): Partially revert change of 2007-03-09.
2201 (output_call): Likewise.
2203 2007-03-16 Richard Sandiford <richard@codesourcery.com>
2205 * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
2207 2007-03-16 Richard Sandiford <richard@codesourcery.com>
2209 * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
2211 2007-03-16 Uros Bizjak <ubizjak@gmail.com>
2213 * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
2214 opteron, athlon-64 and athlon-fx processor_alias_table entries.
2216 2007-03-16 Sebastian Pop <sebastian.pop@inria.fr>
2218 PR tree-optimization/31183
2219 * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
2220 Use double_int instead of unsigned int for representing access_strides.
2221 * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
2223 2007-03-16 Richard Guenther <rguenther@suse.de>
2225 PR tree-optimization/31146
2226 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
2227 to allow recursion of forward_propagate_addr_expr.
2228 (forward_propagate_addr_into_variable_array_index): Likewise.
2229 (forward_propagate_addr_expr): Likewise.
2230 (tree_ssa_forward_propagate_single_use_vars): Likewise.
2231 (forward_propagate_addr_expr_1): Recurse on simple copies
2232 instead of propagating into them. Do so for useless conversions
2234 (forward_propagate_addr_expr): Clean up unused statements after
2237 2007-03-16 Richard Guenther <rguenther@suse.de>
2239 * builtins.c (expand_builtin_cexpi): Use the right argument
2240 for the expansion via cexp.
2242 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
2244 * configure.ac: Don't require ELF binutils to tolerate # 0 "".
2245 * configure: Rebuilt.
2247 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
2250 * dwarf2out.c (force_type_die): Adjust comment.
2251 (dwarf2out_imported_module_or_decl): Handle base AT_import types.
2253 2007-03-15 DJ Delorie <dj@redhat.com>
2255 * config/frv/predicates.md (minmax_operator): Don't check operands
2258 2007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
2260 * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
2261 Update constant estimates of number of iterations.
2262 (record_nonwrapping_iv): Add "upper" argument. "data_size_bounds_p"
2263 argument renamed to "realistic".
2264 (compute_estimated_nb_iterations): Removed.
2265 (record_niter_bound): New function.
2266 (idx_infer_loop_bounds): For possible but unlikely tail arrays,
2267 call record_nonwrapping_iv with upper = false.
2268 (infer_loop_bounds_from_signedness): Pass upper argument to
2269 record_nonwrapping_iv.
2270 (estimate_numbers_of_iterations_loop): Do not call
2271 compute_estimated_nb_iterations. Record estimate based on profile
2272 information. Initialize the constant estimates of number of
2274 * tree-data-ref.c (estimated_loop_iterations): Return the recorded
2276 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
2277 number of iterations is too small.
2278 * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
2279 (EST_NOT_AVAILABLE): Removed.
2280 (struct loop): Replace estimated_nb_iterations by any_upper_bound,
2281 nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
2284 2007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
2286 * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
2287 Handle NE_EXPR guards.
2289 2007-03-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2292 * c-opts.c (c_common_post_options): Handle C++ post-processing here.
2293 Set also -pedantic-errors by default for the preprocessor unless
2294 -fpermissive is given.
2296 2007-03-15 Richard Guenther <rguenther@suse.de>
2300 * builtins.c (expand_builtin_cexpi): As a fallback if we
2301 don't have builtins for sincos or cexp create a function
2302 declaration for cexp and expand to a call to that.
2303 (expand_builtin_int_roundingfn): Always fall
2304 back to floor/ceil and its variants even if they may be
2307 2007-03-15 Steven Bosscher <steven@gcc.gnu.org>
2310 * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
2311 jump tables, move the call to delete_dead_jumptables from here...
2312 (cfg_layout_finalize): ...to here. But rebuild jump labels first.
2313 * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
2314 don't allow merging of blocks that try_redirect_by_replacing_jump
2315 also does not handle when not optimizing.
2317 2007-03-15 Uros Bizjak <ubizjak@gmail.com>
2318 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2320 * config/i386/i386.md (x86_sahf_1): Correctly handle
2323 2007-03-15 Uros Bizjak <ubizjak@gmail.com>
2326 * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
2327 x86_64_general_operand as operand[2] predicate. Remove "iF"
2328 from operand constraints and use "e" constraint instead.
2329 (*subti3_1, *subti3_1 splitter): Ditto.
2330 (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
2331 operand[1] predicate.
2333 2007-03-14 Sebastian Pop <sebastian.pop@inria.fr>
2335 * tree-loop-linear.c (gather_interchange_stats): For multidimensional
2336 arrays, multiply the access strides by the size of the sub-array.
2337 * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
2339 2007-03-14 Uros Bizjak <ubizjak@gmail.com>
2341 * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
2342 the configured assembler supports the sahf mnemonic.
2343 * configure: Regenerate.
2344 * config.in: Regenerate.
2346 * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
2347 emit "sahf" or ".byte\t0x9e" as asm template.
2349 2007-03-14 Michael Meissner <michael.meissner@amd.com>
2352 * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
2353 option to replace hard coded TARGET_xxx in md file.
2354 (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
2355 (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
2356 (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
2357 (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
2358 (X86_TUNE_NOT_UNPAIRABLE): Ditto.
2359 (X86_TUNE_NOT_VECTORMODE): Ditto.
2360 (TUNE_SHORTEN_X87_SSE): Use new tuning option.
2361 (TUNE_AVOID_VECTOR_DECODE): Ditto.
2362 (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
2363 (TUNE_SLOW_IMUL_IMM8): Ditto.
2364 (TUNE_MOVE_M1_VIA_OR): Ditto.
2365 (TUNE_NOT_UNPAIRABLE): Ditto.
2366 (TUNE_NOT_VECTORMODE): Ditto.
2368 * config/i386/i386.c (ix86_tune_features): Fill in new tuning
2371 * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
2372 tuning options instead of hard coded TARGET_xxx.
2373 (fix ssemode peephole2's): Ditto.
2374 (imul peephole2's): Ditto.
2376 (movdi_or_rex64): Ditto.
2377 (move peephole2): Ditto.
2378 (not peephole2's): Ditto.
2380 2007-03-14 Dirk Mueller <dmueller@suse.de>
2382 * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
2383 * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
2384 * c-parser.c (c_parser_if_body): Always add an empty statement in case
2386 * c-parser.c (c_parser_do_statement): Warn about empty body in
2388 * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
2389 * doc/invoke.texi (-Wempty-body): Update documentation.
2391 2007-03-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2394 * c-common.h (warn_for_div_by_zero): Declare.
2395 * c-common.c (warn_for_div_by_zero): Define.
2396 * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
2399 2007-03-14 Richard Sandiford <richard@codesourcery.com>
2401 * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
2402 to PREFIX and STANDARD_PREFIX.
2404 2007-03-14 Richard Sandiford <richard@codesourcery.com>
2405 Phil Edwards <phil@codesourcery.com>
2407 * gthr-vxworks.h: Add an extern "C" wrapper for C++.
2408 (__gthread_once_t): Remove busy field for RTPs.
2409 (__GTHREAD_ONCE_INIT): Update accordingly.
2411 2007-03-14 Richard Sandiford <richard@codesourcery.com>
2413 * doc/invoke.texi: Document VxWorks options.
2415 2007-03-14 Uros Bizjak <ubizjak@gmail.com>
2417 * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
2419 2007-03-13 Seongbae Park <seongbae.park@gmail.com>
2421 PR tree-optimization/30590
2422 * tree-nrv.c (tree_nrv): Check for the partial update of the
2425 2007-03-13 Alexandre Oliva <aoliva@redhat.com>
2427 * flags.h (flag_random_seed): Remove declaration, in favor of...
2428 * toplev.h (get_random_seed, set_random_seed): ... these.
2429 * tree.c (get_file_function_name): Use the former.
2430 * opts.c (common_handle_option): Use the latter.
2433 2007-03-13 Steven Bosscher <steven@gcc.gnu.org>
2436 * cse.c (cse_find_path): Do not bail out if a basic block that
2437 we already visited now becomes part of a path that starts at a
2438 different basic block. Just disallow this, to make sure we
2439 visit each basic block at most once.
2441 2007-03-13 Jan Hubicka <jh@suse.cz>
2443 * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold attributes,
2444 when profile esitmate is present, calls with very low frequency are
2447 2007-03-13 Zdenek Dvorak <dvorakz@suse.cz>
2449 PR tree-optimization/30730
2450 PR tree-optimization/26900
2451 * tree-ssa-loop-niter.c: Include gmp.h.
2453 (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
2454 split_to_var_and_offset, determine_value_range,
2455 bound_difference_of_offsetted_base, refine_bounds_using_guard,
2456 bound_difference, bounds_add, bounds_negate,
2457 number_of_iterations_ne_max, dump_affine_iv): New functions.
2458 (number_of_iterations_ne, number_of_iterations_lt_to_ne,
2459 assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
2460 difference of initial and final value of control iv to validate
2462 (number_of_iterations_cond): Add loop parameter. Determine bounds
2463 on the difference of the extremes of the control iv. Add dumps.
2464 (expand_simple_operations): Handle phi nodes.
2465 (simplify_using_initial_conditions): Do not record used conditions.
2466 (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
2467 Do not set additional_info.
2468 (implies_nonnegative_p, implies_ge_p): Removed.
2469 (derive_constant_upper_bound): Do not use parameter `additional'.
2470 (record_estimate): Parameter `additional' removed. Parameter
2471 `i_bound' added. Do not call derive_constant_upper_bound.
2472 (record_nonwrapping_iv): Use derive_constant_upper_bound to
2473 bound the number of iterations estimate.
2474 (estimate_numbers_of_iterations_loop): Pass the estimate from
2475 the number of iterations analysis to record_estimate.
2476 * tree.h (multiple_of_p): Declare.
2477 * tree-scalar-evolution.c (expression_expensive_p): Removed.
2478 (scev_const_prop): Do not check expression_expensive_p.
2479 * fold-const.c (multiple_of_p): Exported.
2480 * double-int.c (double_int_mask): Exported.
2481 * double-int.h (double_int_mask): Declare.
2482 * tree-flow.h (struct tree_niter_desc): Removed additional_info
2483 field. Added max field.
2485 2007-03-13 David Taylor <taylor@candd.org>
2488 * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
2491 2007-03-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2494 * pa.md (vdepi_ior): Don't allow zero length deposit. Likewise for
2495 two unamed patterns.
2497 2007-03-13 Uros Bizjak <ubizjak@gmail.com>
2499 * config/i386/i386.opt (mcx16, msahf): New options.
2500 * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
2501 (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
2503 * config/i386/driver-i386.c (bit_LAHF_LM): New define.
2504 (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
2505 Output -mcx16 and -msahf options when corresponding bit is set.
2507 * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
2510 2007-03-13 Alexandre Oliva <aoliva@redhat.com>
2512 * configure.ac: Test for assembler tolerance to # 0 "".
2513 * configure, config.in: Rebuilt.
2514 * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
2516 2007-03-13 Geoffrey Keating <geoffk@apple.com>
2518 * doc/invoke.texi (Spec Files): Update for '%{,' spec.
2520 * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
2521 (handle_syscall): Handle direct system calls.
2522 * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
2524 2007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
2526 * doc/invoke.texi: Fix cpp.info cross-reference.
2527 * doc/passes.texi: Fix gcc.info cross-reference.
2529 2007-03-12 Zdenek Dvorak <dvorakz@suse.cz>
2531 PR tree-optimization/30835
2532 * lambda-code.c (can_convert_to_perfect_nest): Check whether
2533 bb_for_stmt is not NULL before accessing it.
2535 2007-03-12 Joseph Myers <joseph@codesourcery.com>
2537 * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
2540 2007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
2543 * doc/install.texi: Document --enable-stage1-languages
2545 2007-03-12 Steven Bosscher <steven@gcc.gnu.org>
2547 * tree-pass.h (pass_into_cfg_layout_mode,
2548 pass_outof_cfg_layout_mode): Declare.
2549 * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
2550 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
2551 * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
2552 (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
2554 2007-03-12 Seongbae Park <seongbae.park@gmail.com>
2556 * c-decl.c (warn_variable_length_array): New function.
2557 Refactored from grokdeclarator to handle warn_vla
2558 and handle unnamed array case.
2559 (grokdeclarator): Refactored VLA warning case.
2560 * c.opt (Wvla): New flag.
2561 * doc/invoke.texi (Wvla): New warning.
2563 2007-03-12 Richard Henderson <rth@redhat.com>
2565 * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
2566 (TARGET_SECTION_TYPE_FLAGS): New.
2568 2007-03-12 Richard Henderson <rth@redhat.com>
2570 * config/darwin.c (machopic_reloc_rw_mask): New.
2571 * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
2572 * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
2574 2007-03-12 Mark Mitchell <mark@codesourcery.com>
2576 * cppdefault.c (cpp_EXEC_PREFIX): New variable.
2577 * cppdefault.h (cpp_PREFIX): Document.
2578 (cpp_PREFIX_len): Likewise.
2579 (cpp_EXEC_PREFIX): New variable.
2580 * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
2581 * c-incpath.c (add_standard_paths): Correct logic for relocating
2582 paths within prefix.
2584 2007-03-12 Uros Bizjak <ubizjak@gmail.com>
2586 * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
2587 fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
2589 (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
2590 fix_truncdfdi_sse using SSEMODEF mode macro.
2591 (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
2592 fix_truncdfsi_sse using SSEMODEF mode macro.
2593 (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
2594 (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
2596 2007-03-12 Richard Sandiford <richard@codesourcery.com>
2598 * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
2601 2007-03-12 Olga Golovanevsky <olga@il.ibm.com>
2603 * tree.h : Add multiple_of_p declaration.
2604 * fold-const.c (multiple_of_p): Make multiple_of_p public.
2605 * ipa-type-escape.c (results_of_malloc): Redundant.
2606 (visited_stmts): New. Visited stmt for walk_use_def_chains.
2607 (cast_type): Extended with new members.
2608 (check_cast): Returns cast_type.
2609 (cast): New structure for data of walk_use_def_chains.
2610 (is_malloc_result, is_cast_from_non_pointer_1,
2611 is_cast_from_non_pointer,
2612 is_array_access_through_pointer_and_index): New functions.
2613 (look_for_casts): Returns cast types.
2614 (check_call): Returns void.
2615 (okay_pointer_operation): Use support of pointer plus index,
2616 pointer plus constant and allow all multiplications.
2618 2007-03-11 Richard Guenther <rguenther@suse.de>
2620 PR tree-optimization/31115
2621 * tree-vrp.c (extract_range_from_binary_expr): Make sure
2622 the shift count is positive and non-anti-range for RSHIFT_EXPR.
2623 A shift count of zero is not special as with *_DIV_EXPR.
2624 (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
2627 2007-03-11 Ian Lance Taylor <iant@google.com>
2629 * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
2630 the *_DIV_EXPR codes correctly with overflow infinities.
2632 2007-03-11 Ira Rosen <irar@il.ibm.com>
2634 * tree-data-ref.c (analyze_offset): Add a return value (bool) to
2635 indicate success/failure of the analysis. Add negation to subtrahend
2636 in case of subtraction. Fail if both operands contain constants.
2637 (create_data_ref): Fail if analyze_offset fails.
2639 2007-03-11 Uros Bizjak <ubizjak@gmail.com>
2641 * config/i386/i386.md (frndintxf2): Rename to ...
2642 (rintxf2): ... this. Remove expander having same name.
2643 (rintsf2, rintdf2): Implement using SSEMODEF macro.
2644 (roundsf2, rounddf2): Ditto.
2645 (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
2646 (lround<mode>di2, lround<mode>si2): Ditto.
2648 2007-03-11 Steven Bosscher <steven@gcc.gnu.org>
2650 * lower-subreg.c: Include except.h.
2651 (decompose_multiword_subregs): Verify that the only control flow
2652 insns we can split are loads to multi-words pseudos.
2653 Handle breaking such blocks after splitting, instead of calling
2654 find_many_sub_basic_blocks.
2656 * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
2657 on the new basic block. Add a lengthy comment explaining why we
2658 thought this was necessary.
2659 * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
2661 2007-03-10 Mark Mitchell <mark@codesourcery.com>
2664 * tree.c (walk_type_fields): Recurse into the element type of
2665 ARRAY_TYPEs if there is a pointer set.
2667 2007-03-10 Dirk Mueller <dmueller@suse.de>
2669 * c-common.c (warn_logical_operator): Fix condition.
2671 2007-03-10 Tobias Schlüter <tobi@gcc.gnu.org>
2673 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
2675 * config/darwin.c (machopic_select_section): Remove superfluous
2676 argument in call to categorize_decl_for_section. Remove unused
2679 2007-03-10 Joseph Myers <joseph@codesourcery.com>
2681 * configure.ac (glibc_header_dir): Set using with_build_sysroot if
2683 * configure: Regenerate.
2685 2007-03-10 Uros Bizjak <ubizjak@gmail.com>
2688 * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
2689 (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
2690 (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
2691 Add LABEL_NUSES to emitted label.
2692 * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
2693 branch probability value to emitted jump insn.
2694 * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
2695 Do not check life information and do not re-arrange input operands
2696 for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
2698 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
2700 * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
2701 the change of decode_asm_operands.
2703 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
2705 * mode-switching.c (create_pre_exit): Skip blockage insn.
2707 2007-03-09 Diego Novillo <dnovillo@redhat.com>
2709 * tree-pass.h (TODO_update_smt_usage): Remove.
2711 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
2715 2007-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2717 * pa.c (attr_length_call): Revise condition for long pc-relative branch.
2718 (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long local
2719 calls on the SOM target. Don't use "LONG_PIC_PCREL" call sequence on
2722 2007-03-09 Geoffrey Keating <geoffk@apple.com>
2724 * gcc.c: Document %{, in big comment at top.
2725 (input_suffix_matches): Remove special handling for .s and
2727 (input_spec_matches): New.
2728 (handle_braces): Handle %{,.
2729 (validate_switches): ',' indicates a value which is not a switch.
2730 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
2731 to detect assembler input.
2732 * config/i386/sol2.h (CPP_SPEC): Likewise.
2733 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
2734 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
2735 * config/rs6000/lynx.h (ASM_SPEC): Likewise.
2736 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
2737 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
2738 -m64 causes deployment target to default to 10.5.
2739 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
2741 2007-03-09 Richard Henderson <rth@redhat.com>
2744 * target.h (targetm.asm.out.reloc_rw_mask): New.
2745 * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
2746 (TARGET_ASM_OUT): Use it.
2747 * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
2748 * varasm.c (categorize_decl_for_section): Remove shlib argument;
2749 use the new reloc_rw_mask target hook instead.
2750 (default_section_type_flags_1): Merge into...
2751 (default_section_type_flags): ... here.
2752 (decl_readonly_section_1): Merge into...
2753 (decl_readonly_section): ... here.
2754 (default_elf_select_section_1): Merge into...
2755 (default_elf_select_section): ... here.
2756 (default_unique_section_1): Merge into...
2757 (default_unique_section): ... here.
2758 (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
2759 (default_select_rtx_section): Use it.
2760 (default_elf_select_rtx_section): Likewise.
2761 * output.h: Update to match.
2762 * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
2763 * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
2764 (TARGET_ASM_RELOC_RW_MASK): New.
2765 * config/i386/i386.c (x86_64_elf_select_section): Adjust call
2766 to categorize_decl_for_section.
2767 (x86_64_elf_unique_section): Likewise.
2768 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
2769 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
2770 (TARGET_ASM_RELOC_RW_MASK): New.
2771 * config/ia64/ia64.c (ia64_rwreloc_select_section,
2772 ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
2773 (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
2774 (TARGET_RWRELOC): Remove.
2775 (ia64_section_type_flags): Adjust call to default_section_type_flags.
2776 * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
2777 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
2778 (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
2779 (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
2780 (rs6000_xcoff_select_section): Use decl_readonly_section.
2781 (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
2782 * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
2783 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
2784 (TARGET_SECTION_TYPE_FLAGS): Remove.
2785 * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
2787 2007-03-09 Roger Sayle <roger@eyesopen.com>
2789 * fold-const.c (fold_comparison): Remove compile-time evaluation of
2790 complex constant equality/inequality comparisons for here.
2791 (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
2792 known at compile-time or can be simplified to a scalar comparison.
2793 (fold_relational_const): Move compile-time evaluation of complex
2794 constant equality/inequality comparisons to here.
2796 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
2798 PR rtl-optimization/30643
2799 * cse.c (cse_insn): Recompute dest_hash after insert_regs for
2801 (fold_rtx): Recurse, like before 2006-11-03.
2803 2007-03-09 DJ Delorie <dj@redhat.com>
2805 * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
2808 2007-03-09 Aldy Hernandez <aldyh@redhat.com>
2810 PR tree-optimization/30375
2811 * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
2812 LHS of statements is not the same.
2813 * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
2815 2007-03-09 Chao-ying Fu <fu@mips.com>
2817 * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
2819 * doc/invoke.texi (-mdspr2): Document new option.
2820 * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
2821 New unspec for DSP REV 2.
2822 (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
2823 these instructions are extended in DSP REV 2.
2824 (mips-dspr2.md): Include.
2825 * config/mips/mips.opt (mdspr2): New option.
2826 * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
2827 MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
2828 MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
2829 (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
2830 (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
2831 (dsp_bdesc): Add DSP REV 2 builtins. Remove 32-bit only DSP builtins.
2832 (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
2834 (bdesc_map): Add one field of unsupported_target_flags.
2835 (bdesc_arrays): Update entries to have extra fields. Add
2837 (mips_init_builtins): Initialize new function types.
2838 Check unsupported_target_fileds to filter out builtins.
2839 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
2841 (ASM_SPEC): Pass mdspr2 to the assembler.
2842 * config/mips/mips-dspr2.md: New file.
2844 2007-03-09 Sa Liu <saliu@de.ibm.com>
2846 * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
2848 2007-03-09 Ian Lance Taylor <iant@google.com>
2850 * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
2851 argument) like -Wstrict-overflow=2.
2852 * doc/invoke.texi (Warning Options): Update documentation.
2854 2007-03-09 Dirk Mueller <dmueller@suse.de>
2857 * doc/invoke.texi (-Wlogical-op): Document.
2858 * common.opt (-Wlogical-op): New.
2859 * c-common.h (warn_logical_operator): Declare.
2860 * c-common.c (warn_logical_operator): Define.
2861 * c-typeck.c (parser_build_binary_op): Call
2862 warn_logical_operator.
2864 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
2866 * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
2867 * final.c (final_scan_insn): Test for non-"" file name.
2869 2007-03-09 Sebastian Pop <sebastian.pop@inria.fr>
2871 * doc/loop.texi: Document the Omega linear constraints solver.
2872 * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
2873 omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
2874 omega-hash-table-size, omega-max-keys, and
2875 omega-eliminate-redundant-constraints.
2876 * tree-pass.h (pass_check_data_deps): Declared.
2879 * timevar.def (TV_CHECK_DATA_DEPS): Declared.
2880 * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
2881 pass_check_data_deps): New.
2882 * tree-data-ref.c (init_data_ref): Remove declaration.
2883 (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
2884 (analyze_array): Renamed init_array_ref, move up initializations.
2885 (init_data_ref): Renamed init_pointer_ref. Moved before its call.
2886 Removed arguments that are set to NULL.
2887 (analyze_indirect_ref): Correct indentation, correct call to
2889 (object_analysis): Call init_array_ref instead of analyze_array.
2890 (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
2891 (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
2892 of DR_ACCESS_FNS_ADDR.
2893 (init_omega_eq_with_af, omega_extract_distance_vectors,
2894 omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
2895 ddr_consistent_p): New.
2896 (compute_affine_dependence): Check consistency of ddrs when
2897 flag_check_data_deps is passed.
2898 (analyze_all_data_dependences): Uncomment.
2899 (tree_check_data_deps): New.
2900 * tree-data-ref.h: Include omega.h.
2901 (DR_ACCESS_FNS_ADDR): Removed.
2902 (data_dependence_relation): Add inner_loop.
2903 (DDR_INNER_LOOP): New.
2904 * common.opt (fcheck-data-deps): New.
2905 * tree-flow.h (tree_check_data_deps): Declare.
2906 * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
2907 (OBJS-common): Depend on omega.o.
2909 * passes.c (pass_check_data_deps): Scheduled.
2910 * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
2911 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
2912 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
2913 PARAM_VECT_MAX_VERSION_CHECKS,
2914 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
2916 2007-03-09 Richard Guenther <rguenther@suse.de>
2918 PR tree-optimization/30904
2920 * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
2921 the same way as *_DIV_EXPR.
2923 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
2925 * recog.c (decode_asm_operands): No mixed declarations and code.
2927 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
2929 * rtl.def (ASM_INPUT): Add location.
2930 * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
2931 (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
2932 (decode_asm_operands): Add loc operand.
2933 (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
2934 * stmt.c (expand_asm): Rename to...
2935 (expand_asm_loc): ... this. Add locus argument. Pass it on to
2936 gen_rtx_ASM_INPUT_loc.
2937 (expand_asm_expr): Adjust.
2938 * recog.c (decode_asm_operands): Add loc operand.
2939 (check_asm_operands, extract_insn): Adjust.
2940 * reload1.c (maybe_fix_stack_asms): Likewise.
2941 * final.c (asm_insn_count): Likewise.
2942 (final_scan_insn): Output # line before and after asm.
2944 2007-03-09 Daniel Berlin <dberlin@dberlin.org>
2946 * tree-ssa-structalias.c (variable_info): Remove
2948 (new_var_info): Ditto.
2949 (shared_bitmap_info_t): New structure.
2950 (shared_bitmap_table): New variable.
2951 (shared_bitmap_hash): New function.
2952 (shared_bitmap_eq): Ditto
2953 (shared_bitmap_lookup): Ditto.
2954 (shared_bitmap_add): Ditto.
2955 (merge_smts_into): Change to take bitmap directly.
2956 (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
2957 (init_alias_vars): Init shared bitmap hashtable.
2958 (delete_points_to_sets): Delete shared bitmap hashtable.
2959 * tree-ssa-operands.c (add_virtual_operand): Partially revert the
2960 is_aliased removal as a change that was still necessary was
2963 2007-03-09 Uros Bizjak <ubizjak@gmail.com>
2965 * config/i386/i386.h (override_options): Conditionally disable
2966 x86_sahf for 64bit targets only.
2968 2007-03-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
2971 * c-decl.c (merge_decls): Don't call make_var_volatile.
2972 * varasm.c (make_var_volatile): Remove.
2973 * output.h (make_var_volatile): Remove.
2975 2007-03-08 Zdenek Dvorak <dvorakz@suse.cz>
2977 PR tree-optimization/31085
2978 * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
2980 2007-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2982 * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
2983 llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
2984 ATTR_CONST_NOTHROW_LIST.
2986 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
2989 2007-03-08 Diego Novillo <dnovillo@redhat.com>
2991 * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
2993 2007-03-08 Geoffrey Keating <geoffk@apple.com>
2996 * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
2998 * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
2999 passed, use shared libgcc.
3001 2007-03-08 Roger Sayle <roger@eyesopen.com>
3003 * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
3004 instead of calling build2 with a GIMPLE_MODIFY_STMT.
3005 (honor_protect_cleanup_actions, lower_try_finally_switch):
3007 * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
3008 ifc_temp_var): Likewise.
3009 * tree-inline.c (setup_one_parameter): Likewise.
3010 * tree-mudflap.c (mf_decl_cache_locals,
3011 mf_build_check_statement_for): Likewise.
3012 * tree-nested.c (init_tmp_var, save_tmp_var,
3013 finalize_nesting_tree_1): Likewise.
3014 * tree-outof-ssa.c (insert_copy_on_edge,
3015 insert_backedge_copies): Likewise.
3016 * tree-profile.c (tree_gen_edge_profiler,
3017 tree_gen_ic_profiler): Likewise.
3018 * tree-scalar-evolution.c (scev_const_prop): Likewise.
3019 * tree-sra.c (sra_build_assignment): Likewise.
3020 * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
3021 * tree-ssa-math-opts.c (insert_reciprocals,
3022 execute_cse_sincos_1): Likewise.
3023 * tree-tailcall.c (adjust_accumulator_values,
3024 adjust_return_value): Likewise.
3025 * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
3026 * tree-vect-transform.c (vect_create_data_ref_ptr,
3027 bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
3028 vect_create_epilog_for_reduction, vectorizable_reduction,
3029 vectorizable_call, vectorizable_conversion,
3030 vectorizable_assignment, vectorizable_operation,
3031 vectorizable_type_demotion, vect_gen_widened_results_half,
3032 vect_permute_store_chain, vectorizable_store,
3033 vect_setup_realignment, vect_permute_load_chain,
3034 vectorizable_load, vectorizable_condition,
3035 vect_create_cond_for_align_checks): Likewise.
3036 * tree-vrp.c (build_assert_expr_for): Likewise.
3038 2007-03-08 Ian Lance Taylor <iant@google.com>
3040 * tree-vrp.c: Include "intl.h".
3041 (usable_range_p): New static function.
3042 (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
3043 overflowed values, juts set *strict_overflow_p.
3044 (compare_values): Only return -2 if one of the operands is not a
3046 (compare_ranges): Call usable_range_p.
3047 (compare_range_with_value): Likewise.
3048 (vrp_evaluate_conditional_warnv): Rename from
3049 vrp_evaluate_conditional. Make static. Change all callers.
3050 (vrp_evaluate_conditional): New function.
3051 (simplify_div_or_mod_using_ranges): Issue warning about reliance
3053 (simplify_abs_using_ranges): Likewise.
3054 (simplify_stmt_for_jump_threading): Add within_stmt parameter.
3055 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
3056 within_stmt parameter.
3057 * tree-ssa-propagate.c (fold_predicate_in): Update call to
3058 vrp_evaluate_conditional.
3059 * tree-ssa-threadedge.c
3060 (record_temporary_equivalences_from_stmts_at_dest): Change
3061 simplify parameter to take a second tree parameter.
3062 (simplify_control_stmt_condition): Likewise.
3063 (thread_across_edge): Likewise.
3064 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
3065 (thread_across_edge): Likewise.
3066 * gcc/Makefile.in (tree-vrp.o): Depend upon intl.h.
3068 2007-03-08 Uros Bizjak <ubizjak@gmail.com>
3070 * config/i386/i386.h (TARGET_SAHF): New define.
3071 * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
3072 Also enable for m_K8, m_AMDFAM10 and m_CORE2.
3073 (x86_sahf): New global variable.
3074 (override_options): Add PTA_NO_SAHF to pta_flags enum. Recode
3075 pta_flags masks using shifts. Add PTA_NO_SAHF to x86_64 and
3076 nocona processor flags. Set x86_sahf when PTA_NO_SAHF is not set
3077 in processor flags. Do not unconditionally disable TARGET_USE_SAHF
3079 (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
3080 (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
3081 when expanding fcomi/sahf based tests.
3082 (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
3083 expanding sahf based alternative. Emit sahf based sequence when
3084 optimizing for code size.
3085 * config/i386/i386.md (x86_sahf_1): Do not disable for
3086 TARGET_64BIT, enable for TARGET_SAHF.
3088 2007-03-08 Martin Michlmayr <tbm@cyrius.com>
3090 * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
3091 spurious whitespace from error message.
3093 2007-03-08 Volker Reichelt <reichelt@netcologne.de>
3096 * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
3098 2007-03-08 Alexandre Oliva <aoliva@redhat.com>
3100 * c-decl.c (grokdeclarator): Disable warnings for anonymous
3102 * tree-sra.c (instantiate_element): Propagate disabled warnings
3103 from the element itself to the created variable.
3105 2007-03-07 Richard Henderson <rth@redhat.com>
3108 * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
3109 silently fix up the stack in the case of a missing register.
3111 2007-03-07 Paul Brook <paul@codesourcery.com>
3113 * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
3115 2007-03-07 Joseph Myers <joseph@codesourcery.com>
3117 * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
3119 (phase1_vrs): Use them.
3120 (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
3121 (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
3122 __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
3123 (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
3124 __gnu_Unwind_Restore_WMMXC if required.
3125 (_Unwind_VRS_Pop): Implement iWMMXt support.
3126 * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
3127 gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
3128 gnu_Unwind_Save_WMMXC): Define.
3130 2007-03-07 Richard Sandiford <richard@codesourcery.com>
3132 * config/vxworks.h (vxworks_override_options): Declare.
3133 (VXWORKS_OVERRIDE_OPTIONS): Use it.
3134 * config/vxworks.c: Include target.h and toplev.h.
3135 (vxworks_override_options): New function.
3136 * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
3138 2007-03-07 Andreas Krebbel <krebbel1@de.ibm.com>
3140 * config/s390/s390.c (override_options): Don't emit an error when
3141 -mstack-size is used without providing -mstack-guard.
3142 (s390_emit_prologue): Choose stack_guard value automatically if not
3143 provided via command line.
3144 * doc/invoke.texi: Adjust description of -mstack-guard and -mstack-size.
3146 2007-03-07 Richard Sandiford <richard@codesourcery.com>
3148 * config/i386/i386.c (output_set_got): Add a GOT initialization
3149 sequence for VxWorks PIC.
3150 (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
3151 around labels as well as symbols. Use gotoff_operand instead
3152 of local_symbolic_operand.
3153 (legitimize_pic_address): Use gotoff_operand instead of
3154 local_symbolic_operand. Use @GOT accesses for labels as
3156 (ix86_output_addr_diff_elt): Use PC-relative rather than
3157 GP-relative offsets for VxWorks PIC.
3158 (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
3159 no_new_pseudos. Check whether the returned register is op0.
3160 * config/i386/i386.md (tablejump): Use PC-relative rather than
3161 GP-relative offsets for VxWorks PIC.
3162 * config/i386/predicates.md (gotoff_operand): New predicate.
3164 2007-03-06 Richard Sandiford <richard@codesourcery.com>
3166 * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
3168 * config/vxworks-dummy.h: New file.
3169 * config/i386/i386.h: Include it.
3171 2007-03-07 Alexandre Oliva <aoliva@redhat.com>
3173 * dwarf2out.c (is_inlined_entry_point): New
3174 (add_high_low_attributes): Emit DW_AT_entry_pc along with
3175 DW_AT_ranges if the first subblock is the entry point.
3177 2007-03-06 David Daney <ddaney@avtrex.com>
3179 * doc/install.texi (mips-*-*): Change recommended binutils
3182 2007-03-06 Anatoly Sokolov <aesok@post.ru>
3184 * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
3185 ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
3187 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
3188 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
3190 2007-03-06 Jan Hubicka <jh@suse.cz>
3192 * errors.h (warning, error, fatal, internal_error): Mark as cold.
3193 * predict.c (maybe_hot_bb): Cold functions are never hot; hot functions
3195 (probably_cold_bb_p): Cold functions are cold.
3196 (probably_never_executed_bb_p): Cold functions are cold.
3197 (tree_bb_level_predictions): Predict calls to cold functions as not
3199 (compute_function_frequency): Check hot/cold attributes.
3200 * function.h (function_frequency): Update comments.
3201 * predict.def (PRED_COLD_FUNCTION): Predict cold function.
3202 * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
3203 (c_common_att): Add cold and hot.
3205 * doc/extend.texi (hot,cold attributes): Document.
3207 2007-03-06 Andrew Haley <aph@redhat.com>
3209 * function.c (expand_function_end): Move blockage to just after we
3210 emit the label for the naked return from the function.
3212 2007-03-06 Richard Sandiford <richard@codesourcery.com>
3214 * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
3217 2007-03-06 Jan Hubicka <jh@suse.cz>
3219 * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
3220 loaded for constant large models. Non-large 64bit PIC can do.
3221 * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
3222 * cmodel.h: Add LARGE PIC.
3223 * i386.md (UNSPEC_PLTOFF): New.
3224 (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other unspecs as
3226 (*call_1_rex64): Disable for large models.
3227 (*call_1_rex64_large): New.
3228 (*call_value_1_rex64): Disable for large models.
3229 (*call_value_1_rex64_large): New.
3230 (set_rip_rex4): New.
3231 (set_got_offset_rex64): New.
3232 * predicates.md (constant_call_address_operand): For large model
3233 constant calls are not possible.
3234 * i386-protos.h (construct_plt_address): Declare.
3235 * i386.c (override_options): Accept large models.
3236 (ix86_expand_prologue): Expand large PIC GOT pointer load.
3237 (legitimate_constant_p): Add new UNSPECs.
3238 (legitimate_pic_operand_p): Likewise.
3239 (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
3240 (legitimize_pic_address): Do easy RIP relative way for TLS only for
3242 (output_pic_addr_const): Add PLTOFF.
3243 (ix86_output_addr_diff_elt): Output 64bit tables when needed.
3244 (ix86_expand_move): Legitimize pic address when in PIC mode.
3245 (construct_plt_address): New function.
3246 (ix86_expand_call): Offload the address to register and use GOT pointer
3248 * invoke.texi (mcmodel=large): Update documentation.
3250 2007-03-06 Richard Henderson <rth@redhat.com>
3252 * config/i386/i386.c (x86_use_leave, x86_push_memory,
3253 x86_zero_extend_with_and, x86_movx, x86_double_with_add,
3254 x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
3255 x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
3256 x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
3257 x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
3258 x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
3259 x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
3260 x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
3261 x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
3262 x86_partial_reg_dependency, x86_memory_mismatch_stall,
3263 x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
3264 x86_sse_partial_reg_dependency, x86_sse_split_regs,
3265 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
3266 x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
3267 x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
3268 x86_schedule, x86_use_bt, x86_pad_returns,
3269 x86_use_xchgb): Merge into ...
3270 (ix86_tune_features): ... here. New array.
3271 (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
3272 x86_bswap): Merge into ...
3273 (ix86_arch_features): ... here. New array.
3274 (x86_3dnow_a): Remove.
3275 (x86_accumulate_outgoing_args): Make static.
3276 (x86_arch_always_fancy_math_387): Make static.
3277 (ix86_tune_mask, ix86_arch_mask): Move ...
3278 (override_options): ... to local variables here. Apply the
3279 appropriate mask to each element of ix86_arch_features and
3280 ix86_tune_features. Adjust TARGET_CMOVE and TARGET_USE_SAHF
3281 as were done in the old macros.
3282 (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
3283 * config/i386/i386.h (x86_use_leave, x86_push_memory,
3284 x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
3285 x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
3286 x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
3287 x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
3288 x86_read_modify_write, x86_read_modify, x86_split_long_moves,
3289 x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
3290 x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
3291 x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
3292 x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
3293 x86_partial_reg_dependency, x86_memory_mismatch_stall,
3294 x86_accumulate_outgoing_args, x86_prologue_using_move,
3295 x86_epilogue_using_move, x86_decompose_lea,
3296 x86_arch_always_fancy_math_387, x86_shift1,
3297 x86_sse_partial_reg_dependency, x86_sse_split_regs,
3298 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
3299 x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
3300 x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
3301 x86_use_incdec, x86_pad_returns, x86_bswap,
3302 x86_partial_flag_reg_stall): Remove.
3303 (enum ix86_tune_indices): New.
3304 (ix86_tune_features): New.
3305 (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
3306 TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
3307 TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
3308 TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
3309 TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
3310 TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
3311 TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
3312 TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
3313 TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
3314 TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
3315 TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
3316 TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
3317 TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
3318 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
3319 TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
3320 TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
3321 TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
3322 TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
3323 TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
3324 TARGET_EXT_80387_CONSTANTS): Use it.
3325 (enum ix86_arch_indices): New.
3326 (ix86_arch_features): New.
3327 (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
3328 TARGET_BSWAP): Use it.
3329 (ix86_tune_mask, ix86_arch_mask): Remove.
3331 2007-03-06 Joseph Myers <joseph@codesourcery.com>
3334 * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
3335 Define using $${sysroot_headers_suffix}.
3336 * configure: Regenerate.
3337 * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
3338 multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
3340 * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
3341 * gcc.c (print_sysroot_headers_suffix): New.
3342 (option_map): Include --print-sysroot-headers-suffix.
3343 (display_help): Mention -print-sysroot-headers-suffix.
3344 (process_command): Handle -print-sysroot-headers-suffix.
3345 (do_spec_1): Append multilib directory to include-fixed path if
3346 sysroot suffixes in use.
3347 (main): Handle -print-sysroot-headers-suffix.
3348 * Makefile.in (start.encap): Don't depend on xlimits.h
3349 (xlimits.h): Remove.
3350 (stmp-int-hdrs): Don't depend on xlimits.h. Inline generation of
3351 limits.h for each multilib in fixinc_list.
3352 (fixinc_list, s-fixinc_list): New.
3353 (stmp-fixinc): Depend on fixinc_list. If not copying headers,
3354 generate them for each multilib in fixinc_list.
3355 (stmp-fixproto): Use include-fixed. Run fixproto for each
3356 multilib in fixinc_list.
3357 (mostlyclean): Don't remove xlimits.h.
3358 (clean): Remove include-fixed.
3359 (real-install-headers-tar, real-install-headers-cpio,
3360 real-install-headers-cp): Don't copy include, only include-fixed.
3361 (install-mkheaders): Depend on fixinc_list. Don't depend on
3362 xlimits.h. Save limits.h files for each multilib in fixinc_list.
3363 Always save mkinstalldirs. Preserve ${sysroot_headers_suffix} in
3364 SYSTEM_HEADER_DIR setting in mkheaders.conf.
3366 2007-03-06 Jan Hubicka <jh@suse.cz>
3368 * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
3371 2007-03-06 Richard Sandiford <richard@codesourcery.com>
3373 * configure.ac: Allow tm_file to contain build-directory files.
3374 * configure: Regenerate.
3375 * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
3376 * config/m68k/t-uclinux (sysroot-suffix.h): New target.
3377 * config/m68k/print-sysroot-suffix.sh: New file.
3379 2007-03-06 Richard Sandiford <richard@codesourcery.com>
3381 * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
3382 of pic_offset_table_rtx if reload_completed.
3383 (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
3384 PIC_OFFSET_TABLE_REGNUM.
3385 * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
3387 (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
3388 (m68k_output_mi_thunk): Rewrite to use RTL. Honor vcall_offset.
3390 2007-03-06 Richard Sandiford <richard@codesourcery.com>
3392 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
3393 functions that call eh_return.
3395 2007-03-06 Richard Sandiford <richard@codesourcery.com>
3397 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
3398 functions that need a constant pool.
3400 2007-03-06 Richard Sandiford <richard@codesourcery.com>
3403 * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
3404 (m68k_preferred_reload_class): Likewise.
3405 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
3406 (SECONDARY_RELOAD_CLASS): Define.
3407 (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
3408 (LIMIT_RELOAD_CLASS): Delete.
3409 * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
3410 registers from storing bytes.
3411 (m68k_secondary_reload_class): New function.
3412 (m68k_preferred_reload_class): Likewise.
3414 2007-03-06 Richard Sandiford <richard@codesourcery.com>
3416 * config/m68k/m68k.c (m68k_save_reg): Remove special case for
3418 (m68k_expand_prologue): Likewise.
3420 2007-03-06 Richard Sandiford <richard@codesourcery.com>
3422 * config/m68k/m68k-protos.h (output_sibcall): Declare.
3423 (mips_expand_epilogue): Add a bool parameter.
3424 (m68k_legitimize_sibcall_address): Declare.
3425 * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
3426 (m68k_expand_epilogue): Add a parameter to select between sibling
3427 and normal epilogues. Only generate a return for the latter.
3428 (m68k_ok_for_sibcall_p): New function.
3429 (m68k_legitimize_sibcall_address, output_sibcall): New functions.
3430 * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
3431 (sibcall_value, *sibcall_value): Likewise.
3432 (*call, *call_value): Require !SIBLING_CALL_P.
3433 (epilogue): Update call to m68k_expand_epilogue.
3434 (sibcall_epilogue): New pattern.
3435 * config/m68k/predicates.md (const_call_operand): Say that this
3436 predicate applies to sibling calls too.
3437 (sibcall_operand): New predicate.
3439 2007-03-06 Richard Sandiford <richard@codesourcery.com>
3441 * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
3442 alternatives as movsi_cf.
3443 (movsf_cf_hard): Add commentary.
3445 2007-03-06 Kazu Hirata <kazu@codesourcery.com>
3446 Richard Sandiford <richard@codesourcery.com>
3448 * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
3449 (m68k_movem_pattern_p, m68k_output_movem): Likewise.
3450 (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
3451 * config/m68k/m68k.h (EPILOGUE_USES): Define. Treat all registers
3452 as being live on exit from an interrupt function.
3453 (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
3454 * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
3455 (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
3456 (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
3457 (m68k_interrupt_function_p): Globalize.
3458 (m68k_compute_frame_layout): Remove reverse mask code.
3459 (m68k_emit_movem, m68k_set_frame_related): New functions.
3460 (m68k_output_function_prologue): Delete in favor of...
3461 (m68k_expand_prologue): ...this new function.
3462 (m68k_output_function_epilogue): Delete in favor of...
3463 (m68k_expand_epilogue): ...this new function.
3464 (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
3466 (print_operand): Handle %?.
3467 * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
3468 (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
3469 (prologue, epilogue): New patterns.
3470 (return): Turn into a define_expand.
3471 (*return): New pattern, derived from old "return" pattern. Use rte
3472 rather than rts for interrupt functions. Only use rtd if the pop
3474 (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
3475 (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
3476 (link, *link, unlink, *unlink, load_got): Likewise.
3478 2007-03-06 Richard Sandiford <richard@codesourcery.com>
3482 * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
3483 (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
3484 (m68k_matches_q_p, m68k_matches_u_p): Likewise.
3485 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
3486 and m68k_matches_u_p.
3487 (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
3488 (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
3489 (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
3490 (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
3491 (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
3492 (REG_STRICT_P): New macro.
3493 (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
3494 PCREL_GENERAL_OPERAND_OK.
3495 (REG_OK_FOR_BASE_P): Merge definitions. Use REG_STRICT_P and
3496 m68k_legitimate_base_reg_p.
3497 (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
3498 (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
3499 (PIC_CASE_VECTOR_ADDRESS): Update comment.
3500 * config/m68k/m68k.c (m68k_address): New structure.
3501 (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
3502 (m68k_decompose_index, m68k_legitimate_constant_address_p)
3503 (m68k_jump_table_ref_p, m68k_decompose_address)
3504 (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
3505 (m68k_matches_u_p): New functions.
3506 (print_operand_address): Rewrite to use m68k_decompose_index.
3508 2007-03-05 David Taylor <dtaylor@emc.com>
3510 * gcc.c: Correct copyright date in --version output.
3512 2007-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3514 * pa.md: In unamed move patterns, disparge copies between general
3515 and floating point registers using '?' modifier. Don't include 'f'
3516 constraint for register preferences in DImode, SImode, HImode and
3517 QImode patterns. Likewise for 'r' in DFmode and SFmode patterns.
3518 Remove constraints for copies between general and floating registers
3519 in soft-float DFmode pattern.
3520 (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
3524 2007-03-05 Mike Stump <mrs@apple.com>
3526 * c-common.c (targetcm): Add.
3527 * c-opts.c (c_common_handle_option): Handle language specific
3529 * opts.c (handle_option): Verify language for target options, if
3531 * opth-gen.awk: Add CL_LANG_ALL.
3532 * target-def.h (TARGET_HANDLE_C_OPTION): Add.
3533 (TARGETCM_INITIALIZER): Add.
3534 * target.h (struct gcc_targetcm): Add.
3536 * targhooks.c (default_handle_c_option): Add.
3537 * targhooks.h (default_handle_c_option): Add.
3538 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
3540 * config/darwin.opt (iframework): Add.
3541 * config/darwin.h (TARGET_HAS_TARGETCM): Add.
3542 * config/darwin-c.c (handle_c_option): Add.
3543 (TARGET_HANDLE_C_OPTION): Add.
3545 * doc/invoke.texi (Darwin Options): Add -iframework.
3547 2007-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3549 * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
3552 2007-03-05 Ian Lance Taylor <iant@google.com>
3554 * c.opt (fgnu89-inline): New option.
3555 * c-opts.c (c_common_post_options): Set default value for
3557 * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
3558 (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
3560 (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
3561 (grokdeclarator, start_function): Likewise.
3562 * c-cppbuiltin.c (c_cpp_builtins): Define either
3563 __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
3564 * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
3565 (C Dialect Options): Document -fgnu89-inline.
3566 * doc/extend.texi (Function Attributes): Explain what the
3567 gnu_inline attribute does.
3568 * doc/cpp.texi (Common Predefined Macros): Document
3569 __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
3571 2007-03-05 Ian Lance Taylor <iant@google.com>
3573 PR tree-optimization/31034
3574 * tree-vrp.c (extract_range_from_assert): Don't try to handle a
3575 half-range if the other side is an overflow infinity.
3577 2007-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
3579 * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
3580 (bfin*-linux-uclibc*): New configuration.
3581 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
3583 * config/bfin/linux.h: New file.
3584 * config/bfin/libgcc-bfin.ver: New file.
3585 * config/bfin/t-bfin-uclinux: New file.
3586 * config/bfin/t-bfin-linux: New file.
3587 * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
3588 (TARGET_OS_CPP_BUILTINS): New macro.
3590 2007-03-05 Richard Guenther <rguenther@suse.de>
3592 * fold-const.c (fold_binary): Remove duplicate folding
3593 of comparison of non-null ADDR_EXPR against null.
3595 2007-03-05 Richard Guenther <rguenther@suse.de>
3596 Dorit Nuzman <dorit@il.ibm.com>
3598 PR tree-optimization/26420
3599 * tree-vectorizer.c (vectorize_loops): Bail out early if there
3600 are no loops in the function. Only print the number of
3601 vectorized loops if it is greater than zero or we are supposed
3602 to print information about unvectorized loops.
3604 2007-03-05 Revital Eres <eres@il.ibm.com>
3606 * gcc.dg/var-expand1.c: New test.
3607 * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
3608 when an accumulator is expanded.
3610 2007-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3613 * c-common.c (convert_and_check): Don't give warnings for
3614 conversion if 'expr' already overflowed.
3616 2007-03-04 Roger Sayle <roger@eyesopen.com>
3619 * fold-const.c (fold_comparison): Enforce type consistency when
3620 transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
3622 2007-03-04 Zdenek Dvorak <dvorakz@suse.cz>
3624 * tree-ssa-address.c (create_mem_ref): Do not put an expression
3625 containing a cast to the base of TARGET_MEM_REF.
3627 2007-03-04 Martin Michlmayr <tbm@cyrius.com>
3629 * tree.c (tree_contains_struct_check_failed): Remove spurious
3630 whitespace from error message.
3632 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
3635 * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
3636 instead of precision.
3638 2007-03-04 Roman Zippel <zippel@linux-m68k.org>
3639 Nathan Sidwell <nathan@codesourcery.com>
3641 * emit-rtl.c (find_auto_inc): New.
3642 (try_split): recreate REG_INC notes,
3643 Use regular for loops rather than whiles.
3645 2007-03-03 Andreas Schwab <schwab@suse.de>
3647 * configure.ac (HAVE_AS_REL16): Move test back to correct place.
3648 * configure: Regenerate.
3650 2007-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3652 * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
3653 flag_rounding_math, not flag_unsafe_math_optimizations.
3655 * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
3657 * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
3658 alpha_fold_vector_minmax): Likewise.
3659 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
3660 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
3662 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
3664 * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
3665 (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
3666 if the lhs has side-effects.
3667 <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
3669 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
3671 * config/i386/i386.h (TUNEMASK): Remove define.
3672 (ARCHMASK): Remove define.
3673 (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
3674 Use ix86_arch_mask variable instead of ARCHMASK.
3675 * config/i386/i386.c (override_options): Ditto.
3676 (standard_80387_constant_p): Ditto.
3678 2007-03-02 Ian Lance Taylor <iant@google.com>
3680 Used signed infinities in VRP.
3681 * tree-vrp.c (uses_overflow_infinity): New static function.
3682 (supports_overflow_infinity): New static function.
3683 (make_overflow_infinity): New static function.
3684 (negative_overflow_infinity): New static function.
3685 (positive_overflow_infinity): New static function.
3686 (is_negative_overflow_infinity): New static function.
3687 (is_positive_overflow_infinity): New static function.
3688 (is_overflow_infinity): New static function.
3689 (overflow_infinity_range_p): New static function.
3690 (compare_values_warnv): New function split out of compare_values.
3691 (compare_value): Call it.
3692 (set_value_range_to_nonnegative): Add overflow_infinity
3693 parameter. Change caller.
3694 (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
3696 (vrp_expr_computes_nonzero): Likewise.
3697 (compare_ranges, compare_range_with_value): Likewise.
3698 (compare_name_with_value, compare_names): Likewise.
3699 (vrp_evaluate_conditional): Likewise.
3700 (set_value_range): Handle infinity
3701 (vrp_operand_equal_p, operand_less_p): Likewise.
3702 (extract_range_from_assert): Likewise.
3703 (vrp_int_const_binop): Likewise.
3704 (extract_range_from_binary_expr): Likewise.
3705 (extract_range_from_unary_expr): Likewise.
3706 (extract_range_from_comparison): Likewise.
3707 (extract_range_from_expr): Likewise.
3708 (dump_value_range): Likewise.
3709 (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
3710 (test_for_singularity): Likewise.
3711 (vrp_int_const_binop): Remove inline qualifier.
3712 (adjust_range_with_scev): Add comment.
3713 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
3715 2007-03-02 Diego Novillo <dnovillo@redhat.com>
3717 * tree-ssa-structalias.c (could_have_pointers): Tidy.
3718 (get_constraint_for): Likewise.
3719 (do_structure_copy): Likewise.
3720 (find_func_aliases): Fix references to MODIFY_EXPR.
3721 (intra_create_variable_infos): Tidy.
3722 * tree-ssa-operands.c (add_virtual_operand): Add argument
3724 When adding members of alias sets, if IS_CALL_SITE is true and
3725 the symbol is not call-clobbered, skip it.
3728 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
3730 * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
3731 entry by means of emit_insn_at_entry.
3733 2007-03-02 Richard Henderson <rth@redhat.com>
3735 * expr.h (promoted_input_arg): Remove decl.
3736 * function.c (promoted_input_arg): Merge into ...
3737 * combine.c (setup_incoming_promotions): ... only caller.
3738 Rearrange to avoid double loop.
3740 2007-03-02 Ben Elliston <bje@au.ibm.com>
3741 Peter Bergner <bergner@vnet.ibm.com>
3742 Janis Johnson <janis187@us.ibm.com>
3744 * config/rs6000/dfp.md: New file.
3745 * config/rs6000/rs6000.md: Include dfp.md.
3746 (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
3747 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
3748 and TDmode decimal float modes in FP registers.
3749 (num_insns_constant): Likewise.
3750 (rs6000_legitimate_offset_address_p): Likewise.
3751 (rs6000_legitimize_address): Likewise.
3752 (rs6000_legitimize_reload_address): Likewise.
3753 (rs6000_legitimate_address): Likewise.
3754 (rs6000_emit_move): Likewise.
3755 (function_arg_boundary): Likewise.
3756 (function_arg_advance): Likewise.
3757 (rs6000_darwin64_record_arg_recurse): Likewise.
3758 (function_arg): Likewise.
3759 (rs6000_gimplify_va_arg): Likewise.
3760 (rs6000_split_multireg_move): Likewise.
3761 (rs6000_output_function_epilogue): Likewise.
3762 (rs6000_output_function_epilogue): Likewise.
3763 (rs6000_register_move_cost): Likewise.
3764 (rs6000_function_value): Likewise.
3765 (rs6000_libcall_value): Likewise.
3767 2007-03-02 Richard Sandiford <richard@codesourcery.com>
3769 * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
3771 2007-03-02 Richard Sandiford <richard@codesourcery.com>
3773 * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
3774 Use $MULTIDIR to choose between the kernel and RTP headers,
3775 and use $WIND_BASE and $WIND_USR to locate them.
3777 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
3779 * config/i386/i386.c (override_options): Put initialization of
3780 ix86_tune_mask and ix86_arch_mask to the correct place.
3782 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
3783 Michael Meissner <michael.meissner@amd.com>
3786 * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
3788 (TARGET_CMOVE): Use ARCHMASK.
3789 (TARGET_CMPXCHG): Ditto.
3790 (TARGET_CMPXCHG8B): Ditto.
3791 (TARGET_XADD): Ditto.
3792 (TARGET_BSWAP): Ditto.
3793 * config/i386/i386.c (ix86_tune_mask): New global variable.
3794 (ix86_arch_mask): Ditto.
3795 (override_options): Initialize ix86_tune_mask and
3796 ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
3799 2007-03-02 Ben Elliston <bje@au.ibm.com>
3802 * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
3804 2007-03-02 Joseph Myers <joseph@codesourcery.com>
3806 * target.h (init_dwarf_reg_sizes_extra): New target hook.
3807 * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
3808 * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
3809 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
3811 * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
3812 rs6000_init_dwarf_reg_sizes_extra): New.
3813 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
3814 SPE register high parts.
3816 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
3818 * Makefile.in: Add install-pdf target as
3819 copied from automake v1.10 rules.
3820 * configure.ac: Add install-pdf to target list.
3821 * configure: Regenerate.
3823 2007-03-01 Paul Brook <paul@codesourcery.com>
3825 * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
3826 modes to LDRD for DImode.
3827 (output_move_double): Fixup out of range ldrd/strd.
3828 (vfp_secondary_reload_class): Rename...
3829 (coproc_secondary_reload_class): ... to this. Add wb argument.
3830 * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
3831 coproc_secondary_reload_class for CLASS_IWMMXT.
3832 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
3833 * arm-protos.h (coproc_secondary_reload_class): Update prototype.
3835 2007-03-01 Zdenek Dvorak <dvorakz@suse.cz>
3837 * tree-ssa-loop-prefetch.c (determine_unroll_factor): Bound the unroll
3838 factor by the estimated number of iterations.
3839 (loop_prefetch_arrays): Do not prefetch in loops that iterate less than
3842 * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
3843 decode_caches_intel, detect_caches_intel): New functions.
3844 (host_detect_local_cpu): Use detect_caches_amd and
3845 detect_caches_intel.
3847 2007-03-01 Richard Henderson <rth@redhat.com>
3849 * expr.c (emit_move_complex_push): Export.
3850 (emit_move_complex_parts): Split out from ...
3851 (emit_move_complex): ... here.
3852 * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
3853 * config/i386/i386.md (movcdi): New.
3855 2007-03-01 Uros Bizjak <ubizjak@gmail.com>
3857 * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
3858 size of mode1 to check for tieable modes in MMX case.
3860 2007-03-01 Richard Sandiford <richard@codesourcery.com>
3862 * Makefile.in (rtlanal.o): Depend on tree.h.
3863 * rtl.h (offset_within_section_p, split_const): Declare.
3864 * rtlanal.c: Include tree.h.
3865 (offset_within_block_p): New function, taken from
3866 mips_offset_within_object_p.
3867 (split_const): New function, taken from mips_split_const.
3868 * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
3870 * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
3871 (CONSTANT_ADDRESS_P): Only accept legitimate constants.
3872 (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
3873 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
3874 (m68k_illegitimate_symbolic_constant_p): New function.
3875 * config/m68k/m68k.md (movsi): Remove misleading predicates.
3876 If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
3877 symbolic constant that might be outside the symbol's section,
3878 move the symbol first and then add the offset.
3879 * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
3881 * config/mips/mips.c (mips_split_const): Delete.
3882 (mips_offset_within_object_p): Delete.
3883 (mips_symbolic_constant_p): Use offset_within_section_p and
3884 split_const instead of mips_offset_within_object_p and
3886 (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
3887 (mips_legitimize_const_move, print_operand_reloc)
3888 (mips_dangerous_for_la25_p): Use split_const instead of
3891 2007-02-28 Eric Christopher <echristo@apple.com>
3893 * Makefile.in (install-include-dir): Don't rm -rf include.
3895 2007-02-28 Richard Guenther <rguenther@suse.de>
3898 * fold-const.c (fold_binary): Do not associate expressions
3899 with more than one variable for integer types that do not wrap.
3901 2007-02-28 Sandra Loosemore <sandra@codesourcery.com>
3903 * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
3904 Delete, and replace with...
3905 (fold_builtin_call_array): This. Update callers to use it.
3906 * fold-const.c (fold_build_call_list): Delete, and replace with...
3907 (fold_build_call_array): This.
3908 (fold_build_call_list_initializer): Delete, and replace with...
3909 (fold_build_call_array_initializer): This.
3910 * tree.h: Update declarations to reflect above changes.
3912 * c-typeck.c (build_function_call): Store converted arguments
3913 in a stack-allocated array instead of building a list.
3914 (convert_arguments): Store arguments in the array passed in as an
3915 argument, and return the actual number of arguments.
3916 * c-format.c: (check_function_format): Pass arguments in an
3917 array instead of a list.
3918 * c-common.c (check_function_nonnull): Likewise.
3919 (check_function_sentinel): Likewise.
3920 (check_function_arguments): Likewise.
3921 * c-common.h: Update declarations to reflect above changes.
3923 2007-02-28 Jan Hubicka <jh@suse.cz>
3925 * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
3926 PRED_NEGATIVE_RETURN): Update outcomes.
3928 2007-02-28 Bernd Schmidt <bernd.schmidt@analog.com>
3930 * calls.c (emit_library_call_value_1): Handle partial registers
3931 correctly when building up CALL_INSN_FUNCTION_USAGE.
3933 2007-02-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3935 * pa/predicates.md (move_src_operand): Allow zero for mode.
3936 * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
3939 2007-02-27 Uros Bizjak <ubizjak@gmail.com>
3942 * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
3943 *movv2df_internal): Enable pattern only for valid operand
3945 * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
3946 tie only 128bit modes. For MMX registers, tie only 64bit modes.
3948 2007-02-27 Mike Stump <mrs@apple.com>
3950 * config/darwin-crt3.c: Avoid compilation when compiling for a
3953 2007-02-27 Joseph Myers <joseph@codesourcery.com>
3955 * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
3957 (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
3958 for fixed headers and limits.h.
3959 (install-include-dir, install-headers-tar, install-headers-cpio,
3960 install-headers-cp, real-install-headers-tar,
3961 real-install-headers-cpio, real-install-headers-cp): Handle
3962 include-fixed as well as include.
3963 (install-mkheaders): Don't install files that go only in include
3965 * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
3966 from GCC_INCLUDE_DIR.
3967 * gcc.c (process_command): Remove special -BstageN/ handling.
3968 (do_spec_1): Add include-fixed directories.
3970 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
3972 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
3974 * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
3976 * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
3979 2007-02-27 Mark Mitchell <mark@codesourcery.com>
3981 * c-common.c (get_priority): Add check for
3982 SUPPORTS_INIT_PRIORITY.
3984 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
3986 * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
3988 * config/bfin/bfin.c: Include "cfglayout.h".
3989 (MAX_LSETUP_DISTANCE): New macro.
3990 (struct loop_info): New members incoming, incoming_src and
3991 incoming_dest. Delete member predecessor.
3992 (length_for_loop): New function.
3993 (bfin_optimize_loop): Handle more different loop structures.
3994 (bfin_discover_loop): Rework detection of predecessor blocks by
3995 examining incoming edges.
3996 (bfin_discover_loops, bfin_free_loops): New functions, broken out of
3998 (bfin_reorder_loops): New function.
3999 (bfin_reorg_loops): Use these three new functions.
4001 * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
4002 REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
4003 (CONSTRAINT_LEN): Add entry for 'q'.
4004 (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
4005 Add 'q' constraints.
4006 (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
4007 (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
4009 * config/bfin/bfin.md (add_with_carry): New pattern.
4010 (s_or_u, su_optab, su_modifier): New code macros/attrs.
4011 (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
4012 <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
4013 support unsigned multiplies too. Removed incorrect commutativity from
4014 operand 1 constraint where appropriate.
4015 (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
4017 (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
4018 <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
4020 (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
4021 usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
4022 usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
4023 usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
4024 usmulhisi_hh_huh): New patterns.
4026 * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
4027 lshifthi3): Fix output template to use half reg for operand 2.
4029 * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
4032 * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
4034 2007-02-27 Andreas Schwab <schwab@suse.de>
4036 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
4038 2007-02-27 Jan Hubicka <jh@suse.cz>
4040 * predict.c (last_basic_block_p): Remove.
4041 (tree_estimate_probability): Update return heuristic for commonized
4044 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
4046 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
4048 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
4050 * doc/include/gcc-common.texi (versionsubtitle): New macro.
4051 * doc/cpp.texi: Standardize title page.
4052 * doc/cppinternals.texi: Likewise.
4053 * doc/gcc.texi: Standardize title page, remove version number
4054 from copyright page.
4055 * doc/gccint.texi: Likewise.
4056 * doc/install.texi: Standardize title page, add table of
4059 2007-02-26 Jan Hubicka <jh@suse.cz>
4061 * predict.def: Set outcomes according to more recent results.
4062 (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
4063 Remove dead predictors.
4064 * predict.c (return_prediction): Fix pasto.
4066 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
4068 * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
4069 change; avoid a memory leak when returning early.
4071 2007-02-26 Mark Mitchell <mark@codesourcery.com>
4073 * c-decl.c (static_ctors): Move to c-common.c.
4074 (static_dtors): Likewise.
4075 (finish_function): Use c_record_cdtor_fn.
4076 (build_cdtor): Move to c-common.c.
4077 (c_write_global_declarations): Use c_build_cdtor_fns.
4078 * c-common.h (static_ctors): Declare.
4079 (static_dtors): Likewise.
4080 (c_record_cdtor_fn): Likewise.
4081 (c_build_cdtor_fns): Likewise.
4082 * c-common.c (static_ctors): New variable.
4083 (static_dtors): Likewise.
4084 (c_record_cdtor_fn): New function.
4085 (build_cdtor): Move from c-decl.c
4086 (c_build_cdtor_fns): New function.
4088 * output.h (assemble_addr_to_section): Declare.
4089 (get_cdtor_priority_section): Likewise.
4090 * varasm.c (assemble_addr_to_section): New function.
4091 (get_cdtor_priority_section): Likewise.
4092 (default_named_section_asm_out_destructor): Use them.
4093 (destor_dtor_section_asm_out_destructor): Likewise.
4094 (default_named_section_asm_out_constructor): Likewise.
4095 (default_ctor_section_asm_out_constructor): Likewise.
4096 * config.gcc (*-*-vxworks*): Include vxworks.o.
4097 * config/t-vxworks (vxworks.o): New target.
4098 * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
4099 (TARGET_ASM_CONSTRUCTOR): Define.
4100 (TARGET_ASM_DESTRUCTOR): Likewise.
4101 (vxworks_asm_out_constructor): Declare.
4102 (vxworks_asm_out_destructor): Likewise.
4104 * c-common.c (get_priority): Check that we have not just an
4105 INTEGER_CST, but an integer constant with integeral type.
4107 2007-02-25 Uros Bizjak <ubizjak@gmail.com>
4109 PR tree-optimization/30938
4110 * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
4111 use &dt[nargs-1] instead of &dt[nargs] in the call to
4112 vect_is_simple_use().
4114 2007-02-25 Ulrich Weigand <uweigand@de.ibm.com>
4116 * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
4117 from register elimination as PRE_MODIFY / POST_MODIFY increments.
4118 Do not attempt to handle MEM inside auto-inc expressions.
4119 * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
4120 of a register modified by an auto-inc expression. However, do handle
4121 elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
4122 (elimination_effects): Prohibit elimination of a register modified
4123 by an auto-inc expression. Disable register elimination rules whose
4124 target register is modified by an auto-inc expression with variable
4127 2007-02-25 Zdenek Dvorak <dvorakz@suse.cz>
4129 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
4131 (array_at_struct_end_p): New function.
4132 (idx_infer_loop_bounds): Use it.
4133 (estimate_numbers_of_iterations_loop): Export.
4134 * predict.c (predict_loops): Use estimated_loop_iterations_int.
4135 Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
4136 (tree_estimate_probability): Call record_loop_exits.
4137 * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
4138 (estimated_loop_iterations, estimated_loop_iterations_int,
4139 estimated_loop_iterations_tree): New functions.
4140 (analyze_siv_subscript_cst_affine,
4141 compute_overlap_steps_for_affine_1_2,
4142 analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
4143 (analyze_miv_subscript): Use estimated_loop_iterations_tree.
4144 * predict.def (PRED_LOOP_ITERATIONS): Update comment.
4145 (PRED_LOOP_ITERATIONS_GUESSED): New.
4146 * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
4147 * cfgloop.h (estimate_numbers_of_iterations_loop,
4148 estimated_loop_iterations_int): Declare.
4150 2007-02-25 Mark Mitchell <mark@codesourcery.com>
4152 * doc/extend.texi: Document optional priority argument to
4153 constructors and destructors.
4154 * tree.c (init_priority_for_decl): Adjust GTY markers.
4155 (init_ttree): Use priority-info hash functions for
4156 init_priority_for_decl.
4157 (tree_map_eq): Rename to ...
4158 (tree_map_base_eq): ... this.
4159 (tree_map_marked_p): Rename to ...
4160 (tree_map_base_marked_p): ... this.
4161 (tree_map_base_hash): New function.
4162 (decl_init_priority_lookup): Rework.
4163 (decl_fini_priority_lookup): New function.
4164 (decl_priority_info): New function.
4165 (decl_init_priority_insert): Use it.
4166 (decl_fini_priority_insert): Likewise.
4167 (decl_restrict_base_lookup): Adjust for refactoring of tree_map
4169 (decl_restrict_base_insert): Likewise.
4170 (decl_debug_expr_insert): Likewise.
4171 (decl_value_expr_lookup): Likewise.
4172 (decl_value_expr_insert): Likewise.
4173 * tree.h (priority_type): New type.
4174 (decl_init_priority_lookup): Use priority_type.
4175 (decl_fini_priority_lookup): New function.
4176 (decl_init_priority_insert): Use priority_type.
4177 (decl_fini_priority_insert): New function.
4178 (DECL_HAS_INIT_PRIORITY): Tweak comments.
4179 (DECL_INIT_PRIORITY): Likewise.
4180 (SET_DECL_INIT_PRIORITY): Add comment.
4181 (DECL_FINI_PRIORITY): New macro.
4182 (SET_DECL_FINI_PRIORITY): Likewise.
4183 (DEFAULT_INIT_PRIORITY): Document.
4184 (MAX_INIT_PRIORITY): Likewise.
4185 (MAX_RESERVED_INIT_PRIORITY): Likewise.
4186 (tree_map_base): New type.
4187 (tree_map_base_eq): New function.
4188 (tree_map_base_hash): Likewise.
4189 (tree_map_base_marked_p): Likewise.
4190 (tree_map): Inherit from tree_map_base.
4191 (tree_map_eq): Make it a macro.
4192 (tree_map_marked_p): Likewise.
4193 (tree_int_map): Inherit from tree_map_base.
4194 (tree_int_map_eq): Make it a macro.
4195 (tree_int_map_hash): Likewise.
4196 (tree_int_map_marked_p): Likewise.
4197 (tree_priority_map): New type.
4198 (tree_priority_map_eq): New macro.
4199 (tree_priority_map_hash): Likewise.
4200 (tree_priority_map_marked_p): Likewise.
4201 * varasm.c (emults_decl): Adjust for refactoring of tree_map
4203 (emutls_common_1): Likewise.
4204 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
4205 * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
4206 of tree_map hierarchy.
4207 * tree-cfg.c (move_stmt_r): Likewise.
4208 (new_label_mapper): Likewise.
4209 * c-tree.h (c_expand_body): Move to ...
4210 * c-common.h (c_expand_body): ... here.
4211 * c-decl.c (c_expand_body): Move to ...
4212 * c-common.c (c_expand_body): ... here.
4213 (c_common_attribute_table): Allow 1 argument for the constructor
4214 and destructor attributes.
4215 (get_priority): New function.
4216 (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
4217 (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
4219 2007-02-24 Jan Hubicka <jh@suse.cz>
4222 * tree-inline.c (copy_bb): Produce exact copy of EH info when copying for inlining.
4224 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
4225 Jan Hubicka <jh@suse.cz>
4228 * i386.c (counter_mode): New function.
4229 (expand_set_or_movmem_via_loop): Use it.
4230 (expand_movmem_epilogue): Likewise; fix pasto.
4231 (ix86_expand_movmem): Do emit guard even for constant counts.
4232 (ix86_expand_setmem): Likewise.
4234 2007-02-25 Nick Clifton <nickc@redhat.com>
4236 * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
4237 (JUMP_TABLES_IN_TEXT_SECTION): Define.
4239 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
4242 * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
4243 count argument with 0x10, not with 0x16.
4244 (expand_setmem_epilogue): Ditto.
4246 2007-02-24 Mike Stump <mrs@apple.com>
4248 * config/i386/i386.c (output_pic_addr_const): Stubify optimized
4251 2007-02-24 Richard Guenther <rguenther@suse.de>
4254 * fold-const.c (fold_binary): Fold x +- CST op x for
4255 EQ_EXPR and NE_EXPR.
4257 2007-02-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4259 * pa.md (muldi3): Force subregs to registers in 64-bit expander.
4261 2007-02-24 Jan Hubicka <jh@suse.cz>
4263 * cgraphunit.c (decide_is_function_needed): Honor
4264 -fkeep-inline-functions.
4266 2007-02-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4268 * builtins.c (fold_builtin_modf): New.
4269 (fold_builtin_2): Use it.
4271 2007-02-24 Bernd Schmidt <bernd.schmidt@analog.com>
4273 * loop-iv.c (implies_p): Detect additional cases where A implies B.
4274 (determine_max_iter): Take additional LOOP arg; all callers changed.
4275 Lose broken logic dealing with PLUS. Try to limit the upper bound by
4276 one using simplifications.
4277 (simplify_using_initial_values): Return if the expression becomes
4278 invalid due to altered regs.
4280 2007-02-23 DJ Delorie <dj@redhat.com>
4282 * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
4284 2007-02-23 Mike Stump <mrs@apple.com>
4286 * tlink.c (scan_linker_output): Parse linker messages from
4287 darwin9's linker better.
4289 2007-02-23 Steve Ellcey <sje@cup.hp.com>
4292 * varpool.c (varpool_assemble_pending_decls): Set
4293 varpool_last_needed_node to null.
4295 2007-02-23 DJ Delorie <dj@redhat.com>
4297 * config/i386/i386.c (ix86_data_alignment): Don't specify an
4298 alignment bigger than the object file can handle.
4300 2007-02-23 Uros Bizjak <ubizjak@gmail.com>
4303 * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
4304 zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
4305 (*movsf_1): Penalize MMX moves.
4307 2007-02-23 Bernd Schmidt <bernd.schmidt@analog.com>
4309 * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
4310 2^32-1 or more times unless flag_unsafe_loop_optimizations.
4312 * loop-iv.c (determine_max_iter): Moved in front of its sole user.
4314 2007-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4316 * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
4317 (fold_builtin_1): Use them.
4318 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
4319 BUILT_IN_SIGNIFICAND.
4321 2007-02-23 H.J. Lu <hongjiu.lu@intel.com>
4323 * config/i386/i386.c (bdesc_1arg): Initialize
4324 IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
4325 "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
4326 (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
4327 and IX86_BUILTIN_MOVSLDUP.
4329 2007-02-22 Paolo Bonzini <bonzini@gnu.org>
4331 PR rtl-optimization/30841
4332 * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
4334 2007-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4336 * builtins.c (fold_builtin_frexp): New.
4337 (fold_builtin_2): Use it.
4339 2007-02-22 Mark Mitchell <mark@codesourcery.com>
4341 * doc/invoke.texi (Spec Files): Document getenv spec function.
4343 * gcc.c (getenv_spec_function): New function.
4344 (static_spec_functions): Add it.
4345 * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
4346 (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
4349 2007-02-22 Michael Matz <matz@suse.de
4352 * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
4353 (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
4355 2007-02-22 Ian Lance Taylor <iant@google.com>
4358 * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
4359 (mem_loc_descriptor): Call it.
4361 2007-02-22 Zdenek Dvorak <dvorakz@suse.cz>
4362 Ira Rosen <irar@il.ibm.com>
4364 * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
4366 2007-02-22 Ira Rosen <irar@il.ibm.com>
4368 PR tree-optimization/30843
4369 * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
4370 stores only after all the group is vectorized.
4372 2007-02-22 Dorit Nuzman <dorit@il.ibm.com>
4374 PR tree-optimization/30858
4375 * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
4376 in the reduction cycle have a single use in the loop.
4377 * tree-vectorizer.h (relevant): Add documentation.
4379 2007-02-20 Mike Stump <mrs@apple.com>
4381 * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
4382 * configure: Regenerate.
4384 2007-02-21 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
4386 Change the defaults of some parameters and options.
4387 * config/spu/spu-protos.h (spu_optimization_options): Declare.
4388 * config/spu/spu.c (spu_optimization_options): Add.
4389 (spu_override_options): Change params in spu_optimization_options.
4390 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
4392 Register 127 is only 16 byte aligned when used as a frame pointer.
4393 * config/spu/spu-protos.h (spu_init_expanders): Declare.
4394 * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
4395 HARD_FRAME_POINTER_REGNUM.
4396 (spu_legitimate_address): Use regno_aligned_for_reload.
4397 (regno_aligned_for_load): HARD_FRAME_POINTER_REGNUM is only 16 byte
4398 aligned when frame_pointer_needed is true.
4399 (spu_init_expanders): New. Set alignment of HARD_FRAME_POINTER_REGNUM
4401 * config/spu/spu.h (INIT_EXPANDERS): Define.
4403 Make sure shift and rotate instructions have valid immediate operands.
4404 * config/spu/predicates.md (spu_shift_operand): Remove.
4405 * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
4406 * config/spu/constraints.md (W, O): Extend range.
4407 * config/spu/spu.md (umask, nmask): Define.
4408 (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
4409 lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
4410 rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
4411 rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
4412 spu_nonmem_operand instead of spu_shift_operands. Use new modifiers.
4413 (lshr<mode>3_reg): Fix rtl description.
4415 Make sure mulhisi immediate operands are valid.
4416 * config/spu/predicates.md (imm_K_operand): Add.
4417 * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
4419 Generate constants using fsmbi and andi.
4420 * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
4421 (print_operand, spu_split_immediate, classify_immediate,
4422 fsmbi_const_p): Handle IC_FSMBI2.
4424 Correctly handle a CONST_VECTOR containing symbols.
4425 * config/spu/spu.c (print_operand): Handle HIGH correctly.
4426 (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
4427 (immediate_load_p): Allow symbols that use 2 instructions to create.
4428 (classify_immediate, spu_builtin_splats): Don't accept a CONST_VECTOR
4429 with symbols when flag_pic is set.
4430 (const_vector_immediate_p): New.
4431 (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
4432 accept a CONST_VECTOR with symbols.
4433 (spu_legitimate_constant_p): Use const_vector_immediate_p. Don't
4434 accept a CONST_VECTOR with symbols when flag_pic is set. Handle HIGH
4436 * config/spu/spu.md (high, low): Delete.
4437 (low_<mode>): Define.
4439 Remove INTRmode and INTR_REGNUM, which didn't work.
4440 * config/spu/spu.c (spu_conditional_register_usage): Remove reference
4442 * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
4443 set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
4444 peephole2 pattern): Don't use INTR or 131.
4445 (movintrcc): Delete.
4446 * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
4447 CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
4448 * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
4449 (UNSPEC_SET_INTR): Add.
4450 * config/spu/spu-modes.def (INTR): Remove.
4452 More accurate warnings about run-time relocations.
4453 * config/spu/spu.c (reloc_diagnostic): Test in_section.
4455 Correctly warn about immediate arguments to specific intrinsics.
4456 * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
4457 (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
4458 the instruction predicate.
4460 Fix tree check errors with latest update.
4461 * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
4463 (spu_expand_builtin): Use CALL_EXPR_FN.
4465 Add missing specific intrinsics.
4466 * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
4468 * config/spu/spu_internals.h: Ditto.
4470 Fix incorrect operand modifiers.
4471 * config/spu/spu-builtins.md (spu_mpy, spu_mpyu): Remove use of %H.
4472 * config/spu/spu.md (xor<mode>3): Change %S to %J.
4474 Optimize one case of zero_extend of a vec_select.
4475 * config/spu/spu.md (_vec_extractv8hi_ze): Add.
4477 Accept any immediate for hbr.
4478 * config/spu/spu.md (hbr): Change s constraints to i.
4480 2007-02-21 Paul Brook <paul@codesourcery.com>
4482 * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
4483 condexec_count when skipping USE and CLOBBER.
4485 2007-02-21 Nick Clifton <nickc@redhat.com>
4487 * common.opt (Warray-bounds): Add Warning attribute.
4488 (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
4490 (fsized-zeroes): Add Optimization attribute.
4491 (fsplit-wide-types, ftree-scev-cprop): Likewise.
4492 * c.opt (Wc++0x-compat): Add Warning attribute.
4494 2007-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4497 * reload1.c (eliminate_regs_in_insn): In the single_set special
4498 case, attempt to re-recognize the insn before falling back to
4499 having reload fix it up.
4501 2007-02-20 Eric Christopher <echristo@gmail.com>
4503 * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
4504 Rewrite accordingly.
4505 (frv_read_iacc_argument): Ditto.
4506 (frv_expand_set_builtin): Take a call instead of arglist, update for
4508 (frv_expand_unop_builtin): Ditto.
4509 (frv_expand_binop_builtin): Ditto.
4510 (frv_expand_cut_builtin): Ditto.
4511 (frv_expand_binopimm_builtin): Ditto.
4512 (frv_expand_voidbinop_builtin): Ditto.
4513 (frv_expand_int_void2arg): Ditto.
4514 (frv_expand_prefetches): Ditto.
4515 (frv_expand_voidtriop_builtin): Ditto.
4516 (frv_expand_voidaccop_builtin): Ditto.
4517 (frv_expand_load_builtin): Ditto.
4518 (frv_expand_store_builtin): Ditto.
4519 (frv_expand_mdpackh_builtin): Ditto.
4520 (frv_expand_mclracc_builtin): Ditto.
4521 (frv_expand_mrdacc_builtin): Ditto.
4522 (frv_expand_mwtacc_builtin): Ditto.
4523 (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
4526 2007-02-20 Janis Johnson <janis187@us.ibm.com>
4528 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
4529 * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
4531 (HAVE_GAS_DFP): Check for assembler support of decimal floating
4533 * configure: Regenerate.
4534 * config.in: Regenerate.
4535 * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
4536 * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
4537 masks to power6 and power6x and to POWERPC_MASKS.
4538 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
4540 * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
4541 * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
4542 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
4543 Access PROTOTYPE as variable, not mask.
4545 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
4547 * rtl.h (remove_reg_equal_equiv_notes): New prototype.
4548 * rtlanal.c (remove_reg_equal_equiv_notes): New function.
4549 * combine.c (adjust_for_new_dest): Use it.
4550 * postreload.c (reload_combine): Likewise.
4552 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
4554 * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
4555 notes on an insn with multiple sets, even if single_set returns
4556 non-NULL for that insn.
4558 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4560 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
4563 2007-02-20 Geoffrey Keating <geoffk@apple.com>
4565 * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
4566 if user didn't pass it.
4567 * config/i386/darwin.h (CC1_SPEC): Likewise.
4568 * config/rs6000/darwin.h (CC1_SPEC): Likewise.
4569 (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
4570 -mmacosx-version-min.
4572 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4573 Uros Bizjak <ubizjak@gmail.com>
4575 * optabs.h (enum optab_index): Add new OTI_scalb.
4576 (scalb_optab): Define corresponding macro.
4577 * optabs.c (init_optabs): Initialize scalb_optab.
4578 * genopinit.c (optabs): Implement scalb_optab using scalb?f3
4580 * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
4581 BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
4582 (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
4583 and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
4584 flag_unsafe_math_optimizations is set.
4586 * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
4587 to implement scalbf, scalb and scalbl built-ins as inline x87
4590 2007-02-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4591 DJ Delorie <dj@redhat.com>
4594 * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
4595 (diagnostic_report_diagnostic): ... here, and turn them into real
4596 errors. If warnings are inhibited, no need to do anything.
4598 2007-02-20 Uros Bizjak <ubizjak@gmail.com>
4600 * config/i386/i386.md (expm1xf2): Reorder insn sequence for
4601 better code generation.
4603 2007-02-20 Ben Elliston <bje@au.ibm.com>
4605 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
4607 2007-02-20 Kazu Hirata <kazu@codesourcery.com>
4609 * config/alpha/alpha.c, config/alpha/alpha.md,
4610 config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
4611 config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
4612 config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
4613 config/arm/lib1funcs.asm: Follow spelling conventions.
4615 * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
4616 config/fr30/fr30.md, config/i386/i386.h,
4617 config/iq2000/iq2000.h, config/iq2000/predicates.md,
4618 config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
4619 config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
4620 config/pdp11/pdp11.c, config/pdp11/pdp11.h,
4621 config/rs6000/altivec.md, config/rs6000/rs6000.c,
4622 config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
4623 config/sparc/sparc.c, config/sparc/sparc.h,
4624 config/sparc/sparc.md, config/spu/constraints.md,
4625 config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
4628 2007-02-20 Alan Modra <amodra@bigpond.net.au>
4631 * varasm.c (use_blocks_for_decl_p): Return false for decls with
4634 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
4636 * doc/invoke.texi (-ftree-lrs): Remove.
4638 2007-02-19 Diego Novillo <dnovillo@redhat.com>
4640 * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
4643 2007-02-19 Lee Millward <lee.millward@codesourcery.com>
4645 * config/ia64/ia64.c (ia64_expand_builtin): Use the
4646 new CALL_EXPR_FN macro for retrieving the function
4647 declaration of the input expression.
4649 2007-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4651 * c.opt (Waddress): New.
4652 * common.opt (Walways-true): Delete.
4653 (Wstring-literal-comparison): Delete.
4654 * doc/invoke.texi (Warning Options): Delete -Walways-true and
4655 -Wstring-literal-comparison. Add -Waddress.
4657 (Walways-true): Delete.
4658 (Wstring-literal-comparison): Delete.
4659 * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
4660 consistently instead of -Walways-true in example.
4661 * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
4662 * c-typeck.c (parser_build_binary_op): Replace
4663 -Wstring-literal-comparison and -Walways-true with -Waddress.
4664 * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
4667 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
4669 * tree-cfg.c (dump_function_to_file): Be prepared for functions
4670 without DECL_STRUCT_FUNCTION initialized.
4672 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
4674 * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
4675 due to calls to functions taking pointers as parameters.
4677 2007-02-19 Richard Henderson <rth@redhat.com>
4680 * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
4683 2007-02-19 Andreas Krebbel <krebbel1@de.ibm.com>
4685 * config/s390/s390.c (s390_call_saved_register_used,
4686 s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
4687 accessed to the new scheme.
4689 2007-02-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4691 * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
4692 (cris_print_index, cris_print_operand, cris_print_operand_address)
4693 (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
4694 (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
4695 (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
4697 * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
4698 EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
4699 GO_IF_LEGITIMATE_ADDRESS): Ditto.
4700 * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
4701 (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
4702 (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
4703 (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
4704 (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
4705 (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
4706 (uminsi3, call, call_value): Ditto.
4707 (define_split: indir_to_reg_split, unnamed): Ditto.
4709 2007-02-19 Dorit Nuzman <dorit@il.ibm.com>
4711 PR tree-optimization/30975
4712 * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
4715 2007-02-18 Eric Christopher <echristo@gmail.com>
4717 * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
4718 Remove use of arglist.
4719 (mips_expand_builtin): Remove use of arglist, pass in expr.
4720 (mips_expand_builtin_direct): Rewrite handling for arglist removal.
4721 (mips_expand_builtin_movtf): Ditto.
4722 (mips_expand_builtin_compare): Ditto.
4724 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
4726 * tree-sra.c (sra_build_assignment): Replace assertion
4727 checking with a comment explaining why it can't be done.
4729 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
4732 * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
4733 during CALL_EXPR representation conversion.
4734 * tree-ssa-propagate.c (set_rhs): Likewise.
4736 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
4738 * tree-sra.c (sra_build_assignment): Disable assertion checking
4741 2007-02-18 Roger Sayle <roger@eyesopen.com>
4743 * function.c (gimplify_parameters): Call build_gimple_modify_stmt
4744 instead of calling build2 with a GIMPLE_MODIFY_STMT.
4745 * gimple-low.c (lower_function_body, lower_builtin_setjmp):
4747 * gimplify.c (build_stack_save_restore, gimplify_return_expr,
4748 gimplify_decl_expr, gimplify_self_mod_expr, gimplify_cond_expr,
4749 gimplify_init_ctor_eval_range, gimple_push_cleanup,
4750 gimplify_omp_for, gimplify_omp_atomic_pipeline,
4751 gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
4752 force_gimple_operand): Likewise.
4753 * ipa-cp.c (constant_val_insert): Likewise.
4754 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
4755 lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
4756 perfect_nestify): Likewise.
4757 * langhooks.c (lhd_omp_assignment): Likewise.
4758 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
4759 lower_copyprivate_clauses, lower_send_clauses,
4760 lower_send_shared_vars, expand_parallel_call,
4761 expand_omp_for_generic, expand_omp_for_static_nochunk,
4762 expand_omp_for_static_chunk, expand_omp_sections,
4763 lower_omp_single_copy, lower_omp_for_lastprivate,
4764 lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
4765 * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
4766 tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
4769 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
4771 * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
4772 config/sh/sh.md: Follow spelling conventions.
4774 * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
4775 config/frv/predicates.md: Follow spelling conventions.
4777 * config/m68k/linux-unwind.h: Fix a comment typo.
4778 * target.h: Follow spelling conventions.
4780 2007-02-18 Roger Sayle <roger@eyesopen.com>
4782 PR rtl-optimization/28173
4783 * simplify-rtx.c (simplify_binary_operation_1) <IOR>: Optimize
4784 (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
4785 Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
4786 Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
4787 <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
4789 2007-02-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4791 * builtins.c (fold_builtin_load_exponent): New.
4792 (fold_builtin_2): Use it.
4794 2007-02-18 Steven Bosscher <steven@gcc.gnu.org>
4796 PR rtl-optimization/30773
4797 * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
4798 if we fail to attach a REG_EQUIV note.
4800 2007-02-18 David Edelsohn <edelsohn@gnu.org>
4801 Roger Sayle <roger@eyesopen.com>
4803 * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
4805 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
4807 * calls.c (initialize_argument_information): Pass original EXP
4808 and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments. Move
4809 code to split complex arguments here, as part of initializing the
4811 (expand_call): Remove code that builds a list of arguments and
4812 inserts implicit arguments into it. Instead, just count how many
4813 implicit arguments there will be so we can determine the size of
4814 the ARGS array, and let initialize_argument_information do the work.
4815 (split_complex_values): Delete unused function.
4817 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
4819 * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
4821 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
4823 * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
4824 for arg pointer based indexed addressing.
4826 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
4828 * config/ia64/ia64.h, config/ia64/ia64.md,
4829 config/ia64/predicates.md, config/ia64/sysv4.h: Follow
4830 spelling conventions.
4832 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
4834 * config/m68k/m68k.c (split_di): New.
4835 * config/m68k/m68k-protos.h: Declare split_di.
4836 * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
4837 Improve predicate handling and split constant shifts.
4839 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
4841 * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
4842 parameter for register bitfield operations, general predicates
4845 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
4847 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
4848 * config/m68k/linux-unwind.h: New file.
4850 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
4852 * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
4853 config/i386/athlon.md, config/ia64/ia64.md,
4854 config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
4855 df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
4856 ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
4857 tree-ssa-loop-niter.c, tree-vect-analyze.c,
4858 tree-vect-transform.c: Fix comment typos.
4860 2007-02-17 Kazu Hirata <kazu@codesourcery.com>
4862 * sched-deps.c (find_insn_list): Remove.
4863 * sched-int.h: Remove the prototype for find_insn_list.
4865 2007-02-16 Geoffrey Keating <geoffk@apple.com>
4867 * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
4869 (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
4870 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
4871 darwin_rs6000_override_options.
4872 (C_COMMON_OVERRIDE_OPTIONS): Expect
4873 darwin_macosx_version_min to be non-NULL always.
4874 (TARGET_C99_FUNCTIONS): Likewise.
4875 (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
4876 (DARWIN_MINVERSION_SPEC): New.
4877 * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
4878 * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
4880 (DARWIN_MINVERSION_SPEC): New.
4881 * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
4883 * config/darwin-c.c (darwin_cpp_builtins): Expect
4884 darwin_macosx_version_min to be non-NULL always.
4886 * config/rs6000/rs6000.c: Clean up trailing whitespace.
4888 2007-02-16 Uros Bizjak <ubizjak@gmail.com>
4890 * config/i386/i386.h (x86_use_xchgb): New.
4891 (TARGET_USE_XCHGB): New macro.
4892 * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
4893 * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
4894 Split after reload into bswaphi for shifts of 8.
4895 (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
4896 (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
4897 or when optimizing for size.
4899 2007-02-16 Richard Guenther <rguenther@suse.de>
4900 Christian Bruel <christian.bruel@st.com>
4902 * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
4903 DECLs but prefer SSA_NAMEs over DECLs.
4905 2007-02-16 Richard Guenther <rguenther@suse.de>
4907 * tree-flow-inline.h (single_imm_use_p): Remove.
4908 (zero_imm_uses_p): Likewise.
4909 * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
4910 instead of single_imm_use_p.
4911 * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
4914 2007-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4917 * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
4918 nested double- and backquotes.
4920 2007-02-15 Roger Sayle <roger@eyesopen.com>
4923 * tree.c (expr_align): Handle MODIFY_EXPR. GIMPLE_MODIFY_STMT
4924 should be unreachable.
4925 (build2_stat): Allow construction of MODIFY_EXPR at any time.
4926 For the time being redirect GIMPLE_MODIFY_STMT to the new
4927 (renamed) build_gimple_modify_stmt_stat.
4928 (build2_gimple_stat): Rename to...
4929 (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
4930 Always build a GIMPLE_MODIFY_STMT node.
4931 * tree.h (build2_gimple, build2_gimple_stat): Delete.
4932 (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
4935 * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
4936 gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
4937 * tree-complex.c (set_component_ssa_name, expand_complex_move,
4938 expand_complex_div_wide): Likewise.
4939 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
4940 * tree-ssa-loop-im.c (schedule_sm): Likewise.
4941 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
4942 * tree-ssa-loop-manip.c (create_iv): Likewise.
4943 * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
4944 abs_replacement): Likewise.
4945 * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
4946 realify_fake_stores): Likewise.
4948 * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
4949 node rather than a GIMPLE_MODIFY_STMT node.
4950 (std_gimpify_va_arg_expr, expand_builtin_va_copy,
4951 fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
4953 (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
4954 * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
4957 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
4960 * fold-const.c (fold_comparison): Add back the
4961 folding of constant complex comparisions.
4963 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
4966 * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
4967 effects unknown to this function, return early.
4969 2007-02-15 Ian Lance Taylor <iant@google.com>
4971 * lower-subreg.c (move_eh_region_note): New static function.
4972 (resolve_simple_move): Call it.
4973 (decompose_multiword_subregs): Track blocks for which we resolve a
4974 simple move which is also a control flow insn. Pass them to
4975 find_many_sub_basic_blocks.
4976 (pass_lower_subreg): Add TODO_verify_flow.
4977 (pass_lower_subreg2): Likewise.
4979 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
4980 Brooks Moses <brooks.moses@codesourcery.com>
4981 Lee Millward <lee.millward@codesourcery.com>
4983 * tree.h (enum tree_code_class): Add tcc_vl_exp.
4984 (VL_EXP_CLASS_P): New.
4985 (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
4987 (TREE_OPERAND_CHECK_CODE): Likewise.
4988 (GIMPLE_STMT_OPERAND_CHECK): Likewise.
4989 (TREE_RTL_OPERAND_CHECK): Likewise.
4990 (tree_operand_check_failed): Make second parameter the whole tree
4991 instead of its code. Fixed callers.
4992 (VL_EXP_CHECK): New.
4993 (TREE_OPERAND_LENGTH): New.
4994 (VL_EXP_OPERAND_LENGTH): New.
4995 (CALL_EXPR_FN): New.
4996 (CALL_EXPR_STATIC_CHAIN): New.
4997 (CALL_EXPR_ARGS): New.
4998 (CALL_EXPR_ARG): New.
4999 (call_expr_nargs): New.
5000 (CALL_EXPR_ARGP): New.
5001 (build_nt_call_list): Declare.
5002 (build_vl_exp_stat): Declare.
5003 (build_vl_exp): New.
5004 (build_call_list): Declare.
5005 (build_call_nary): Declare.
5006 (build_call_valist): Declare.
5007 (build_call_array): Declare.
5008 (call_expr_arg): Declare.
5009 (call_expr_argp): Declare.
5010 (call_expr_arglist): Declare.
5011 (fold_build_call_list): Declare.
5012 (fold_build_call_list_initializer): Declare.
5013 (fold_call_expr): Declare to replace fold_builtin.
5014 (fold_builtin_fputs): Update to agree with modified definition.
5015 (fold_builtin_strcpy): Likewise.
5016 (fold_builtin_strncpy): Likewise.
5017 (fold_builtin_memory_chk): Likewise.
5018 (fold_builtin_stxcpy_chk): Likewise.
5019 (fold_builtin_strncpy_chk): Likewise.
5020 (fold_builtin_next_arg): Likewise.
5021 (fold_build_call_expr): Declare.
5022 (fold_builtin_call_list): Declare.
5023 (fold_builtin_call_valist): Declare.
5024 (build_call_expr): Declare.
5025 (validate_arglist): Update to agree with modified definition.
5026 (tree_operand_length): New.
5027 (call_expr_arg_iterator): New.
5028 (init_call_expr_arg_iterator): New.
5029 (next_call_expr_arg): New.
5030 (first_call_expr_arg): New.
5031 (more_call_expr_args_p): New.
5032 (FOR_EACH_CALL_EXPR_ARG): New.
5034 * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
5035 and tcc_gimple_stmt.
5036 (tree_code_size): Update documentation. Use sizeof (tree) rather
5037 than sizeof (char *).
5038 (tree_size): Likewise. Add case for tcc_vl_exp.
5039 (tree_node_structure): Add case for tcc_vl_exp.
5040 (contains_placeholder_p): Likewise.
5041 (substitute_in_expr): Likewise.
5042 (substitute_placeholder_in_expr): Likewise.
5043 (stabilize_reference_1): Likewise.
5044 (build3_stat): Remove logic for CALL_EXPRs. Replace with assertion
5045 to diagnose breakage of this interface for constructing CALL_EXPRs.
5046 (build_nt): Add similar assertion here.
5047 (build_nt_call_list): New.
5048 (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
5049 (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
5051 (get_callee_fndecl): Use new CALL_EXPR accessors.
5052 (tree_operand_check_failed): Change parameters to pass entire node
5053 instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
5054 (process_call_operands): New.
5055 (build_vl_exp_stat): New.
5056 (build_call_list): New.
5057 (build_call_nary): New.
5058 (build_call_valist): New.
5059 (build_call_array): New.
5060 (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
5061 (call_expr_arglist): New.
5063 * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
5064 tcc_vl_exp instead of a fixed-size tcc_expression.
5066 * doc/c-tree.texi (CALL_EXPR): Document new representation and
5067 accessors for CALL_EXPRs.
5068 (AGGR_INIT_EXPR): Likewise.
5070 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
5071 Brooks Moses <brooks.moses@codesourcery.com>
5072 Lee Millward <lee.millward@codesourcery.com>
5074 * builtins.c (c_strlen): Return NULL_TREE instead of 0.
5075 (expand_builtin_nonlocal_goto): Change parameter to be entire
5076 CALL_EXPR instead of an arglist. Use new CALL_EXPR accessors.
5077 (expand_builtin_prefetch): Likewise.
5078 (expand_builtin_classify_type): Likewise.
5079 (mathfn_built_in): Return NULL_TREE instead of 0.
5080 (expand_errno_check): Use new CALL_EXPR accessors.
5081 (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
5082 Return NULL_RTX instead of 0.
5083 (expand_builtin_mathfn_2): Likewise.
5084 (expand_builtin_mathfn_3): Likewise.
5085 (expand_builtin_interclass_mathfn): Likewise.
5086 (expand_builtin_sincos): Likewise.
5087 (expand_builtin_cexpi): Likewise.
5088 (expand_builtin_int_roundingfn): Likewise.
5089 (expand_builtin_int_roundingfn_2): Likewise.
5090 (expand_builtin_pow): Likewise.
5091 (expand_builtin_powi): Likewise.
5092 (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
5093 of arglist, fixing callers appropriately. Use new CALL_EXPR
5094 accessors and constructors. Return NULL_RTX instead of 0.
5095 (expand_builtin_strstr): Likewise.
5096 (expand_builtin_strchr): Likewise.
5097 (expand_builtin_strrchr): Likewise.
5098 (expand_builtin_strpbrk): Likewise.
5099 (expand_builtin_memcpy): Likewise.
5100 (expand_builtin_mempcpy): Likewise.
5101 (expand_builtin_mempcpy_args): New.
5102 (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
5103 (expand_builtin_memmove_args): New.
5104 (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
5105 (expand_movstr): Likewise.
5106 (expand_builtin_strcpy): Likewise.
5107 (expand_builtin_strcpy_args): New.
5108 (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
5109 (expand_builtin_strncpy): Likewise.
5110 (expand_builtin_memset): Likewise.
5111 (expand_builtin_memset_args): New.
5112 (expand_builtin_bzero): Similarly to expand_builtin_memset.
5113 (expand_builtin_memcmp): Likewise.
5114 (expand_builtin_strcmp): Likewise.
5115 (expand_builtin_strncmp): Likewise.
5116 (expand_builtin_strcat): Likewise.
5117 (expand_builtin_strncat): Likewise.
5118 (expand_builtin_strspn): Likewise.
5119 (expand_builtin_strcspn): Likewise.
5120 (expand_builtin_args_info): Likewise.
5121 (expand_builtin_va_start): Likewise.
5122 (gimplify_va_arg_expr): Likewise.
5123 (expand_builtin_va_end): Likewise.
5124 (expand_builtin_va_copy): Likewise.
5125 (expand_builtin_frame_address): Likewise.
5126 (expand_builtin_alloca): Likewise.
5127 (expand_builtin_bswap): Likewise.
5128 (expand_builtin_unop): Likewise.
5129 (expand_builtin_fputs): Likewise.
5130 (expand_builtin_expect): Likewise.
5131 (expand_builtin_fabs): Likewise.
5132 (expand_builtin_copysign): Likewise.
5133 (expand_builtin_printf): Likewise.
5134 (expand_builtin_fprintf): Likewise.
5135 (expand_builtin_sprintf): Likewise.
5136 (expand_builtin_init_trampoline): Likewise.
5137 (expand_builtin_signbit): Likewise.
5138 (expand_builtin_fork_or_exec): Likewise.
5139 (expand_builtin_sync_operation): Likewise.
5140 (expand_builtin_compare_and_swap): Likewise.
5141 (expand_builtin_lock_test_and_set): Likewise.
5142 (expand_builtin_lock_release): Likewise.
5143 (expand_builtin): Likewise.
5144 (builtin_mathfn_code): Likewise.
5146 (fold_builtin_constant_p): Pass call arguments individually instead
5147 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
5148 accessors and constructors. Return NULL_TREE instead of 0.
5149 (fold_builtin_expect): Likewise.
5150 (fold_builtin_classify_type): Likewise.
5151 (fold_builtin_strlen): Likewise.
5152 (fold_builtin_nan): Likewise.
5153 (integer_valued_real_p): Likewise.
5154 (fold_trunc_transparent_mathfn): Likewise.
5155 (fold_fixed_mathfn): Likewise.
5156 (fold_builtin_cabs): Likewise.
5157 (fold_builtin_sqrt): Likewise.
5158 (fold_builtin_cbrt): Likewise.
5159 (fold_builtin_cos): Likewise.
5160 (fold_builtin_cosh): Likewise.
5161 (fold_builtin_tan): Likewise.
5162 (fold_builtin_sincos): Likewise.
5163 (fold_builtin_cexp): Likewise.
5164 (fold_builtin_trunc): Likewise.
5165 (fold_builtin_floor): Likewise.
5166 (fold_builtin_ceil): Likewise.
5167 (fold_builtin_round): Likewise.
5168 (fold_builtin_int_roundingfn): Likewise.
5169 (fold_builtin_bitop): Likewise.
5170 (fold_builtin_bswap): Likewise.
5171 (fold_builtin_logarithm): Likewise.
5172 (fold_builtin_hypot): Likewise.
5173 (fold_builtin_pow): Likewise.
5174 (fold_builtin_powi): Likewise.
5175 (fold_builtin_exponent): Likewise.
5176 (fold_builtin_memset): Likewise.
5177 (fold_builtin_bzero): Likewise.
5178 (fold_builtin_memory_op): Likewise.
5179 (fold_builtin_bcopy): Deleted; call site changed to invoke
5180 fold_builtin_memory_op directly.
5181 (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
5182 (fold_builtin_strncpy): Likewise.
5183 (fold_builtin_memcmp): Likewise.
5184 (fold_builtin_strcmp): Likewise.
5185 (fold_builtin_strncmp): Likewise.
5186 (fold_builtin_signbit): Likewise.
5187 (fold_builtin_copysign): Likewise.
5188 (fold_builtin_isascii): Likewise.
5189 (fold_builtin_toascii): Likewise.
5190 (fold_builtin_isdigit): Likewise.
5191 (fold_builtin_fabs): Likewise.
5192 (fold_builtin_abs): Likewise.
5193 (fold_builtin_fmin_fmax): Likewise.
5194 (fold_builtin_carg): Likewise.
5195 (fold_builtin_classify): Likewise.
5196 (fold_builtin_unordered_cmp): Likewise.
5198 (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
5199 New functions split out from fold_builtin_1.
5200 (fold_builtin_n): New.
5201 (fold_builtin_varargs): New.
5202 (fold_builtin): Deleted. Most callers changed to use fold_call_expr
5204 (fold_call_expr): New.
5205 (build_function_call_expr): Rewrite to use new helper function.
5206 (fold_builtin_call_list): New.
5207 (build_call_expr): New.
5208 (fold_builtin_call_valist): New.
5209 (rewrite_call_expr): New.
5210 (validate_arg): New.
5211 (validate_arglist): Change parameter to be entire CALL_EXPR instead
5212 of an arglist. Change return type to bool. Use new CALL_EXPR
5215 (fold_builtin_strstr): Pass call arguments individually instead
5216 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
5217 accessors and constructors. Return NULL_TREE instead of 0.
5218 (fold_builtin_strchr): Likewise.
5219 (fold_builtin_strrchr): Likewise.
5220 (fold_builtin_strpbrk): Likewise.
5221 (fold_builtin_strcat): Likewise.
5222 (fold_builtin_strncat): Likewise.
5223 (fold_builtin_strspn): Likewise.
5224 (fold_builtin_strcspn): Likewise.
5225 (fold_builtin_fputs): Likewise.
5226 (fold_builtin_next_arg): Likewise.
5227 (fold_builtin_sprintf): Likewise.
5229 (expand_builtin_object_size): Use new CALL_EXPR accessors. Use
5230 NULL_RTX instead of 0.
5231 (expand_builtin_memory_chk): Likewise.
5232 (maybe_emit_chk_warning): Likewise.
5233 (maybe_emit_sprintf_chk_warning): Likewise.
5235 (fold_builtin_object_size): Pass call arguments individually instead
5236 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
5237 accessors and constructors. Return NULL_TREE instead of 0.
5238 (fold_builtin_memory_chk): Likewise.
5239 (fold_builtin_stxcpy_chk): Likewise.
5240 (fold_builtin_strncpy_chk): Likewise.
5241 (fold_builtin_strcat_chk): Likewise.
5242 (fold_builtin_strcat_chk): Likewise.
5243 (fold_builtin_strncat_chk): Likewise.
5244 (fold_builtin_sprintf_chk): Likewise.
5245 (fold_builtin_snprintf_chk): Likewise.
5246 (fold_builtin_printf): Likewise.
5247 (fold_builtin_vprintf): Likewise.
5249 * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
5251 (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
5252 (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
5253 (extract_muldiv_1): Add VL_EXP_CLASS_P case.
5254 (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
5255 (fold_unary): Likewise.
5256 (fold_binary): Likewise.
5257 (fold_ternary): Remove CALL_EXPR case, since they are no longer
5258 ternary expressions.
5259 (fold): Add logic for tcc_vl_exp.
5260 (fold_checksum_tree): Make it know about tcc_vl_exp. Use
5261 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
5262 (fold_build3_stat): Add assertion to flag broken interface for
5263 constructing CALL_EXPRs.
5264 (fold_build_call_list): New.
5265 (fold_build_call_list_initializer): New.
5266 (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
5268 (fold_strip_sign_ops): Likewise.
5270 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
5271 Brooks Moses <brooks.moses@codesourcery.com>
5272 Lee Millward <lee.millward@codesourcery.com>
5274 * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
5275 accessors and dump arguments explicitly.
5277 * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
5279 (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
5281 (print_call_name): Use new CALL_EXPR accessors.
5283 * print-tree.c (print_node): Add case tcc_vl_exp. Print
5284 CALL_EXPR arguments explicitly instead of as a list. Use
5285 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
5287 * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
5288 (vrp_visit_stmt): Likewise.
5290 * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Make it
5291 know about tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of
5293 (force_move_till_expr): Likewise.
5295 * targhooks.c (default_external_stack_protect_fail): Use
5296 build_call_expr instead of build_function_call_expr.
5297 (default_hidden_stack_protect_fail): Likewise.
5299 * tree-complex.c (expand_complex_libcall): Use build_call_expr to
5302 * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
5303 and walk arguments explicitly.
5305 * tree-ssa-loop-niter.c (simplify_replace_tree): Use
5306 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
5307 (expand_simple_operations): Likewise.
5308 (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
5310 * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
5311 of TREE_CODE_LENGTH.
5312 (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
5314 * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
5315 instead of TREE_CODE_LENGTH.
5317 * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
5318 (tree_ic_transform): Likewise.
5319 (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
5320 parameter instead of arglist. Fix callers.
5321 (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
5322 (tree_stringops_transform): Likewise.
5323 (tree_indirect_call_to_profile): Likewise.
5324 (tree_stringops_values_to_profile): Likewise.
5326 * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
5327 (eliminate_tail_call): Likewise.
5329 * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
5331 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5332 Use TREE_OPERAND_LENGTH and generalize to handle any number of
5334 (instantiate_parameters_1): Can't handle tcc_vl_exp here.
5336 * omp-low.c (build_omp_barrier): Use build_call_expr.
5337 (lower_rec_input_clauses): Likewise.
5338 (lower_reduction_clauses): Likewise.
5339 (expand_parallel_call): Likewise.
5340 (maybe_catch_exception): Likewise.
5341 (expand_omp_for_generic): Likewise.
5342 (expand_omp_for_static_nochunk): Likewise.
5343 (expand_omp_sections): Likewise.
5344 (lower_omp_single_simple): Likewise.
5345 (lower_omp_single_copy): Likewise.
5346 (lower_omp_master): Likewise.
5347 (lower_omp_ordered): Likewise.
5348 (lower_omp_critical): Likewise.
5350 * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
5351 (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
5353 * tree-gimple.c (is_gimple_call_addr): Fix doc.
5354 (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
5355 TREE_CODE_LENGTH. Add tcc_vl_exp case.
5357 * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
5358 and generalize to handle any number of operands.
5359 (chrec_contains_undetermined): Likewise.
5360 (tree_contains_chrecs): Likewise.
5361 (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
5363 * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
5365 * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors. Use
5366 fold_call_expr instead of fold_builtin.
5367 (ccp_fold_builtin): Likewise. Update calls into builtins.c to
5368 match declarations there.
5369 (fold_stmt): Use new CALL_EXPR constructor and accessors. Doc
5372 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
5373 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
5375 * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
5376 (scan_function): Add case tcc_vl_exp for CALL_EXPR.
5378 * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
5381 * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
5382 (execute_cse_sincos): Use new CALL_EXPR accessors.
5384 * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
5386 * gimple-low.c (lower_function_body): Use build_call_expr.
5387 (lower_builtin_setjmp): Likewise.
5389 * expr.c (emit_block_move_via_libcall): Use build_call_expr.
5390 (set_storage_via_libcall): Likewise.
5391 (safe_from_p): Add tcc_vl_exp case. Use TREE_OPERAND_LENGTH
5392 instead of TREE_CODE_LENGTH.
5393 (expand_expr_real_1): Use new CALL_EXPR accessors.
5395 * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
5396 generalize to handle any number of operands.
5397 (TB_parent_eq): Likewise.
5399 * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
5400 (strip_builtin_expect): Likewise.
5402 * function.c (gimplify_parameters): Use build_call_expr.
5404 * tree-vectorizer.c (vect_is_simple_reduction): Use TREE_OPERAND_LENGTH
5405 instead of TREE_CODE_LENGTH.
5407 * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
5408 (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
5410 * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
5413 * gimplify.c (build_stack_save_restore): Use build_call_expr.
5414 (gimplify_decl_expr): Likewise.
5415 (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
5416 Use new CALL_EXPR iterators.
5417 (gimplify_modify_expr_to_memcpy): Use build_call_expr.
5418 (gimplify_modify_expr_to_memset): Likewise.
5419 (gimplify_variable_sized_compare): Likewise.
5420 (gimplify_omp_atomic_fetch_op): Likewise.
5421 (gimplify_omp_atomic_pipeline): Likewise.
5422 (gimplify_omp_atomic_mutex): Likewise.
5423 (gimplify_function_tree): Likewise.
5425 * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
5426 (call_expr_flags): Likewise.
5427 (expand_call): Likewise.
5429 * except.c (expand_builtin_eh_return_data_regno): Pass entire
5430 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
5433 * coverage.c (create_coverage): Use build_call_expr.
5435 * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
5436 (temp_call_expr_obstack): New.
5437 (pool_copy_list): Delete.
5438 (temp_copy_call_expr): New.
5439 (phi_translate): Add case tcc_vl_exp for CALL_EXPR. Use new
5440 CALL_EXPR accessors. Get rid of special goo for copying argument
5441 lists and use temp_copy_call_expr instead.
5442 (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR. Use new
5443 CALL_EXPR accessors.
5444 (create_expression_by_pieces): Likewise. Use build_call_array
5445 to construct the result instead of fold_build3.
5446 (create_value_expr_from): Add tcc_vl_exp. Delete special goo for
5447 dealing with argument lists.
5448 (init_pre): Remove references to expression_node_pool and
5449 list_node_pool. Init temp_call_expr_obstack instead.
5450 (fini_pre): Remove references to expression_node_pool and
5453 * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
5454 and walk arguments explicitly instead of as a list.
5456 * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
5457 (mx_register_decls): Likewise.
5458 (mudflap_register_call): Likewise.
5459 (mudflap_finish_file): Likewise.
5461 * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
5462 (ipa_callsite_compute_param): Likewise.
5464 * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
5465 accessors and constructor.
5467 * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
5468 accessors and constructor.
5469 (convert_tramp_reference): Likewise.
5470 (convert_call_expr): Likewise.
5471 (finalize_nesting_tree_1): Likewise.
5473 * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
5476 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
5478 * tree-inline.c (initialize_inlined_parameters): Pass entire
5479 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
5481 (estimate_num_insns_1): Use new CALL_EXPR accessors.
5482 (expand_call_inline): Tidy up call to initialize_inlined_parameters.
5484 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use
5485 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
5486 (vectorizable_reduction): Likewise.
5487 (vectorizable_call): Use new CALL_EXPR iterators.
5488 (vectorizable_conversion): Use build_call_expr.
5489 (vectorizable_operation): Use TREE_OPERAND_LENGTH.
5490 (vect_gen_widened_results_half): Use build_call_expr.
5491 (vect_setup_realignment): Likewise.
5492 (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
5494 * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
5495 (pass_through_call): Likewise.
5496 (compute_object_sizes): Likewise. Use fold_call_expr instead of
5499 * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
5500 (tree_gen_pow2_profiler): Likewise.
5501 (tree_gen_one_value_profiler): Likewise.
5502 (tree_gen_ic_func_profiler): Likewise.
5503 (tree_gen_average_profiler): Likewise.
5504 (tree_gen_ior_profiler): Likewise.
5506 * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
5507 (find_func_aliases): Use new CALL_EXPR accessors. Add case
5508 tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
5510 * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
5511 of TREE_CODE_LENGTH.
5513 * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
5514 of TREE_CODE_LENGTH.
5516 * convert.c (convert_to_real): Use new CALL_EXPR accessors and
5518 (convert_to_integer): Likewise.
5520 * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
5523 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
5524 Brooks Moses <brooks.moses@codesourcery.com>
5525 Lee Millward <lee.millward@codesourcery.com>
5527 * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
5529 * config/frv/frv.c (frv_expand_builtin): Likewise.
5530 * config/s390/s390.c (s390_expand_builtin): Likewise.
5532 * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
5533 (sparc_expand_builtin): Use new CALL_EXPR accessors.
5535 * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
5536 (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
5537 instead of arglist. Use new CALL_EXPR accessors on it. Fix callers.
5538 (ix86_expand_store_builtin): Likewise.
5539 (ix86_expand_unop_builtin): Likewise.
5540 (ix86_expand_unop1_builtin): Likewise.
5541 (ix86_expand_sse_compare): Likewise.
5542 (ix86_expand_sse_comi): Likewise.
5543 (ix86_expand_vec_init_builtin): Likewise.
5544 (ix86_expand_vec_ext_builtin): Likewise.
5545 (ix86_expand_vec_set_builtin): Likewise.
5546 (ix86_expand_builtin): Use new CALL_EXPR accessors.
5548 * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
5549 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
5551 * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
5552 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
5553 (iq2000_expand_builtin): Use new CALL_EXPR accessors.
5555 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
5557 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
5558 (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
5559 arglist. Use new CALL_EXPR accessors. Fix callers.
5560 (altivec_expand_abs_builtin): Likewise.
5561 (rs6000_expand_binop_builtin): Likewise.
5562 (altivec_expand_predicate_builtin): Likewise.
5563 (altivec_expand_lv_builtin): Likewise.
5564 (spe_expand_stv_builtin): Likewise.
5565 (altivec_expand_stv_builtin): Likewise.
5566 (rs6000_expand_ternop_builtin): Likewise.
5567 (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
5568 (altivec_expand_st_builtin): Likewise.
5569 (altivec_expand_dst_builtin): Likewise.
5570 (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
5571 arglist. Use new CALL_EXPR accessors. Fix callers.
5572 (altivec_expand_vec_set_builtin): Likewise.
5573 (altivec_expand_vec_ext_builtin): Likewise.
5574 (altivec_expand_builtin): Use new CALL_EXPR accessors.
5575 (spe_expand_builtin): Likewise.
5576 (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
5577 arglist. Use new CALL_EXPR accessors. Fix callers.
5578 (spe_expand_evsel_builtin): Likewise.
5579 (rs6000_expand_builtin): Use new CALL_EXPR accessors. VCFUX and
5580 FCFSX cases must construct whole new CALL_EXPR, not just arglist.
5582 * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
5583 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
5584 (arm_expand_unop_builtin): Likewise.
5585 (arm_expand_builtin): Use new CALL_EXPR accessors.
5587 * config/mips/mips.c (mips_expand_builtin): Use new CALL_EXPR
5590 * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire CALL_EXPR
5591 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
5592 (bfin_expand_unop_builtin): Likewise.
5593 (bfin_expand_builtin): Use new CALL_EXPR accessors.
5595 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
5596 Brooks Moses <brooks.moses@codesourcery.com>
5597 Lee Millward <lee.millward@codesourcery.com>
5599 * c-semantics.c (build_stmt): Add internal diagnostic check.
5601 * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
5602 accessors. Print arguments explicitly instead of as a list.
5604 * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
5606 * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
5607 (c_finish_omp_flish): Likewise.
5609 * c-common.c (verify_tree): Use new CALL_EXPR accessors. Traverse
5610 arguments explicitly instead of as a list. Use TREE_OPERAND_LENGTH
5611 instead of TREE_CODE_LENGTH.
5612 (check_function_arguments_recurse): Use new CALL_EXPR accessors.
5613 (c_warn_unused_result): Likewise.
5615 2007-02-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5618 * doc/invoke.texi (Warning Options): Remove
5619 -Werror-implicit-function-declaration.
5620 (Wimplicit-function-declaration): Update description.
5621 * opts.c (common_handle_option): Move handling of -Werror=* to...
5622 (enable_warning_as_error): ...here.
5623 * opts.h (enable_warning_as_error): Declare.
5624 * c-decl.c (implicit_decl_warning): Unless
5625 -Wno-implicit-function-declaration is given, emit a pedwarn if
5626 -std=c99 or emit a warning if -Wimplicit-function-declaration.
5627 * c.opt (Wimplicit-function-declaration): Replace
5628 mesg_implicit_function_declaration with
5629 warn_implicit_function_declaration.
5630 * c-opts.c (c_common_handle_option):
5631 -Werror-implicit-function-declaration is exactly equal as
5632 -Werror=implicit-function-declaration.
5633 (set_Wimplicit): Replace mesg_implicit_function_declaration with
5634 warn_implicit_function_declaration.
5635 (c_common_post_options): -Wimplict-function-declaration is enabled
5636 by default by -std=c99, otherwise is disabled by default.
5637 * c-objc-common.c (c_objc_common_init): Remove flawed logic.
5639 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
5641 * gimplify.c (gimplify_modify_expr): During gimplification, attach a
5642 DECL on the rhs to a DECL on the lhs for debug info purposes if the
5643 former is ignored but not the latter.
5645 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
5647 * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
5648 is made and the reference doesn't use the alias set of its type,
5649 do not create the temporary using that type.
5651 2007-02-15 Aldy Hernandez <aldyh@redhat.com>
5653 * jump.c: Remove prototypes for delete_computation and
5654 delete_prior_computation.
5656 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
5658 * jump.c (get_label_after): Delete.
5659 (get_label_before, delete_computation, delete_jump,
5660 delete_prior_computation, follow_jumps): Move...
5661 * reorg.c (delete_computation, delete_prior_computation): ... here...
5662 (get_label_before, delete_jump): ... making these static ...
5663 (follow_jumps): ... and simplifying this since it only runs after
5665 * rtl.h (get_label_after, get_label_before, delete_jump,
5666 follow_jumps): Delete prototypes.
5668 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
5670 * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
5672 2007-02-15 Nick Clifton <nickc@redhat.com>
5674 * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
5675 order to prevent it from being munged by the target.
5677 2007-02-15 Uros Bizjak <ubizjak@gmail.com>
5679 * config/i386/i386.md: Remove misleading comment.
5681 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
5683 * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
5684 reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
5687 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
5689 * tree-sra.c (instantiate_missing_elements): Canonicalize
5691 (sra_build_assignment): New.
5692 (generate_copy_inout, generate_element_copy,
5693 generate_element_zero, generate_one_element_init): Use it.
5695 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
5697 * tree-sra.c (instantiate_missing_elements): Canonicalize
5699 (sra_build_assignment): New.
5700 (generate_copy_inout, generate_element_copy,
5701 generate_element_zero, generate_one_element_init): Use it.
5703 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
5705 * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
5708 2007-02-14 Joseph Myers <joseph@codesourcery.com>
5710 * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
5711 types as aggregates not scalars.
5712 * function.c (assign_stack_temp_for_type): Likewise.
5714 2007-02-14 Roger Sayle <roger@eyesopen.com>
5715 Zdenek Dvorak <dvorakz@suse.cz>
5717 * tree-dump.c (dump_switch_p_1): Require exact match of the option
5720 2007-02-14 Zdenek Dvorak <dvorakz@suse.cz>
5722 * passes.c (next_pass_1): Clear the next field of the copied
5725 2007-02-14 Richard Henderson <rth@redhat.com>
5727 * tree-sra.c (early_sra): New.
5728 (decl_can_be_decomposed_p): Deny va_list if early_sra.
5729 (tree_sra_early, pass_sra_early): New.
5730 * tree-pass.h (pass_sra_early): Declare.
5731 * passes.c (init_optimization_passes): Use it.
5733 2007-02-14 Richard Guenther <rguenther@suse.de>
5735 * flags.h (issue_strict_overflow_warning): Convert to a macro.
5737 2007-02-14 Dorit Nuzman <dorit@il.ibm.com>
5739 PR tree-optimization/30771
5740 * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
5742 (vect_analyze_operations): Induction phis can now be marked as
5744 (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
5745 Update documentation accordingly.
5747 2007-02-14 Nick Clifton <nickc@redhat.com>
5749 * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
5750 most 3 arguments are supported.
5751 (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
5753 2007-02-13 Seongbae Park <seongbae.park@gmail.com>
5755 * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
5756 Ensure dst->current is valid.
5758 2007-02-13 Paul Brook <paul@codesourcery.com>
5760 * config.gcc: Add arm*-*-uclinux-*eabi.
5761 * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
5762 (SUBTARGET_EXTRA_LINK_SPEC): Define.
5763 (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
5764 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
5765 (LINK_SPEC): Define.
5767 * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
5769 * config/arm/uclinux-eabi.h: New file.
5770 * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
5771 * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
5774 2007-02-13 Ian Lance Taylor <iant@google.com>
5776 * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
5777 * flags.h (warn_strict_overflow): Declare.
5778 (enum warn_strict_overflow_code): Define.
5779 (issue_strict_overflow_warning): New static inline function.
5780 * opts.c (warn_strict_overflow): New variable.
5781 (common_handle_option): Handle OPT_Wstrict_overflow and
5782 OPT_Wstrict_overflow_.
5783 * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
5785 * fold-const.c: Include intl.h.
5786 (fold_deferring_overflow_warnings): New static variable.
5787 (fold_deferred_overflow_warning): New static variable.
5788 (fold_deferred_overflow_code): New static variable.
5789 (fold_defer_overflow_warnings): New function.
5790 (fold_undefer_overflow_warnings): New function.
5791 (fold_undefer_and_ignore_overflow_warnings): New function.
5792 (fold_deferring_overflow_warnings_p): New function.
5793 (fold_overflow_warning): New static function.
5794 (make_range): Add strict_overflow_p parameter. Change all
5796 (extract_muldiv, extract_muldiv_1): Likewise.
5797 (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
5798 tree_expr_nonnegative_p.
5799 (fold_negate_expr): Call fold_overflow_warning.
5800 (fold_range_test): Likewise.
5801 (fold_comparison): Likewise.
5802 (fold_binary): Likewise. Call tree_expr_nonnegative_warnv_p
5803 instead of tree_expr_nonnegative_p.
5804 (tree_expr_nonnegative_warnv_p): Rename from
5805 tree_expr_nonnegative_p, add strict_overflow_p parameter.
5806 (tree_expr_nonnegative_p): New function.
5807 (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
5808 strict_overflow_p parameter.
5809 (tree_expr_nonzero_p): New function.
5810 * passes.c (verify_interpass_invariants): New static function.
5811 (execute_one_pass): Call it.
5812 * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
5814 (number_of_iterations_exit, loop_niter_by_eval): Likewise.
5815 (estimate_numbers_of_iterations): Likewise.
5816 (scev_probably_wraps_p): Likewise.
5817 * tree-ssa-ccp.c: Include "toplev.h".
5818 (evaluate_stmt): Defer fold overflow warnings until we know we are
5820 (struct fold_stmt_r_data): Add stmt field.
5821 (fold_stmt_r): Defer fold overflow warnings until we know we
5823 (fold_stmt): Initialize stmt field of fold_stmt_r_data.
5824 (fold_stmt_inplace): Likewise.
5825 * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
5826 (cleanup_control_expr_graph): Defer fold overflow warnings until
5827 we know we are going to optimize.
5828 * tree-cfg.c (fold_cond_expr_cond): Likewise.
5829 * tree-ssa-threadedge.c (simplify_control_stmt_condition):
5831 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
5832 tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
5833 * tree-ssa-loop-manip.c (create_iv): Likewise.
5834 * c-typeck.c (build_conditional_expr): Likewise.
5835 (build_binary_op): Likewise.
5836 * tree-vrp.c (vrp_expr_computes_nonzero): Call
5837 tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
5838 (extract_range_from_unary_expr): Likewise.
5839 * simplify-rtx.c (simplify_const_relational_operation): Warn when
5840 assuming that signed overflow does not occur.
5841 * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
5842 * tree.h (tree_expr_nonnegative_warnv_p): Declare.
5843 (fold_defer_overflow_warnings): Declare.
5844 (fold_undefer_overflow_warnings): Declare.
5845 (fold_undefer_and_ignore_overflow_warnings): Declare.
5846 (fold_deferring_overflow_warnings_p): Declare.
5847 (tree_expr_nonzero_warnv_p): Declare.
5848 * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
5850 (Warning Options): Document -Wstrict-overflow.
5851 * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
5852 (tree-ssa-ccp.o): Likewise.
5853 (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
5854 (fold-const.o): Depend on intl.h.
5856 2007-02-13 Ian Lance Taylor <iant@google.com>
5859 * lower-subreg.c (resolve_simple_move): Decompose subregs in
5862 2007-02-13 Stuart Hastings <stuart@apple.com>
5864 * gcc/config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
5866 2007-02-13 Richard Henderson <rth@redhat.com>
5868 * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
5869 handled_component_p before looking for the indirect_ref.
5871 2007-02-13 Richard Henderson <rth@redhat.com>
5873 * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
5874 remove flags clobber.
5875 (bswapsi2): New expander, emit code for !TARGET_BSWAP.
5876 (bswaphi_lowpart): New.
5877 (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
5878 remove TARGET_BSWAP test. Delete expander of the same name.
5880 * optabs.c (widen_bswap, expand_doubleword_bswap): New.
5881 (expand_unop): Use them.
5883 2007-02-13 Uros Bizjak <ubizjak@gmail.com>
5885 * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
5886 *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
5887 *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
5888 *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
5889 *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
5890 *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
5891 *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
5892 assembler dialect choice from asm templates.
5894 2007-02-12 Richard Henderson <rth@redhat.com>
5896 * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
5897 (fixuns_trunc<SSEMODEF>si2): Use it.
5898 * config/i386/sse.md (vec_setv4sf_0): Export.
5899 * config/i386/i386.c (ix86_build_const_vector): Export.
5900 (ix86_split_convert_uns_si_sse): Rename from
5901 ix86_expand_convert_uns_si_sse and rewrite as a splitter.
5902 * config/i386/i386-protos.h: Update.
5904 2007-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5907 * c-typeck.c (c_finish_return): Improve warning message.
5909 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5911 * alias.c (find_symbolic_term): Delete unused function.
5913 2007-02-12 Uros Bizjak <ubizjak@gmail.com>
5915 * config/i386/i386.md (paritydi2, paritysi2): New expanders.
5916 (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
5917 (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
5919 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
5921 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
5922 * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
5923 the function, temporarily point the debug interface to the null one.
5925 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
5927 * dwarf2out.c (round_up_to_align): New static function.
5928 (field_byte_offset): Use it to round the offset.
5930 2007-02-12 Richard Henderson <rth@redhat.com>
5932 * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
5933 (inswl_const): Export.
5935 2007-02-12 Richard Henderson <rth@redhat.com>
5937 * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
5938 result mode of the libcall, convert back to outmode.
5940 2007-02-12 Roger Sayle <roger@eyesopen.com>
5942 * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
5943 (bswapdi2): New define_expand to implement 32-bit implementation.
5945 2007-02-12 Nick Clifton <nickc@redhat.com>
5947 * doc/invoke.texi (Overall Options): Document --help=.
5948 * gcc.c (target_help_flag): Rename to print_subprocess_flag.
5949 (cc1_options): Pass --help= on to cc1.
5950 (display_help): Add description of --help=.
5951 (process_command): Add code to handle --help=. Allow translated
5952 --help and --target-help switches to be passed on to compiler
5954 (main): Remove unused if statement.
5955 * opts.c (columns): Remove.
5956 (LEFT_COLUMN): Define.
5957 (wrap_help): Add columns argument.
5958 (print_filtered_help): Change parameters to be an include bitmask,
5959 an exclude bitmask, an any bitmask and the column width. Move the
5960 code to display the params list here. Add code to display the
5961 status of options rather than their descriptions if the quiet flag
5963 (print_specific_help): Change parameters to be an include bitmask,
5964 an exclude bitmask and an any bitmask. Move code to look up the
5965 column width here. Decide upon the title for an options listing.
5966 (common_handle_options): Add code to handle --help=. Adapt code
5967 for --help and --target-help to use the revised form of the
5968 print_specific_help function.
5969 (print_help): Delete.
5970 (print_param_help): Delete.
5971 (print_switch): Delete.
5972 * opts.h (cl_lang_count): Add prototype.
5973 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
5974 CL_MAX_OPTION_CLASS): New defines.
5975 * optc-gen.awk: Add construction of cl_lang_count.
5976 * c.opt: Add Warning attribute to warning options and Optimization
5977 attribute to optimization options.
5978 * common.opt: Likewise.
5980 Add -fhelp and -ftarget-help as aliases for the transformed --help
5981 and --target-help options.
5982 * opt-functions.awk: Add code to handle Warning and Optimization
5985 2007-02-12 Richard Henderson <rth@redhat.com>
5987 * config/alpha/constraints.md: New file.
5988 * config/alpha/alpha.c: Include tm-constrs.h.
5989 (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
5990 alpha_extra_constraint): Remove.
5991 (alpha_emit_conditional_branch): Use satisfies_constraint_*.
5992 * config/alpha/alpha-protos.h: Update.
5993 * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
5994 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
5995 (EXTRA_CONSTRAINT): Remove.
5996 * config/alpha/alpha.md: Include constraints.md.
5997 (adddi splitter): Use satisfies_constraint_*.
5998 * config/alpha/predicates.md (add_operand): Likewise.
5999 (sext_add_operand, addition_operation): Likewise.
6001 2007-02-12 Dorit Nuzman <dorit@il.ibm.com>
6003 PR tree-optimization/29145
6004 * tree-data-ref.c (base_addr_differ_p): Make us more conservative
6005 in our handling of restrict qualified pointers.
6007 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6010 * doc/invoke.texi (Wunused-value): Update description.
6011 (Wextra): Delete item.
6012 * opts.c (set_Wextra): Don't use the value of Wextra to set the
6013 value of Wunused-value.
6014 * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
6015 (c_finish_stmt_expr): Don't check extra_warnings.
6016 (emit_side_effect_warnings): The caller is responsible to check
6019 2007-02-11 Roger Sayle <roger@eyesopen.com>
6020 Matt Thomas <matt@3am-software.com>
6022 * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
6024 2007-02-11 Roger Sayle <roger@eyesopen.com>
6026 * simplify-rtx.c (simplify_relational_operation_1): Optimize
6027 comparisons of POPCOUNT against zero.
6028 (simplify_const_relational_operation): Likewise.
6030 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6032 * doc/invoke.texi (Wextra): Delete outdated paragraph.
6034 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6036 * dwarf2out.c (root_type): Delete unused function.
6038 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6040 * genattrtab.c (contained_in_p): Delete unused function.
6041 (write_expr_attr_cache): Likewise.
6043 2007-02-11 Jan Hubicka <jh@suse.cz>
6045 * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
6048 2007-02-11 Steven Bosscher <steven@gcc.gnu.org>
6050 * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
6051 to add the REG_EQ* note.
6052 * see.c (see_merge_one_use_extension): Likewise.
6053 * local-alloc.c (update_equiv_regs): Likewise. Also don't
6054 turn REG_EQUAL notes into REG_EQUIV notes if the target
6055 register may have more than one set.
6056 * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
6057 * gcse.c (try_replace_reg): Likewise.
6058 * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
6059 * calls.c (fixup_tail_calls): Likewise. Abort if there is
6060 more than one REG_EQUIV note.
6061 * reload1.c (gen_reload): Use set_unique_reg_note.
6063 2007-02-11 Uros Bizjak <ubizjak@gmail.com>
6065 * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
6066 (ix86_builtin_conversion): New function.
6068 2007-02-06 Mark Mitchell <mark@codesourcery.com>
6071 * tree.h (DECL_REPLACEABLE_P): New macro.
6072 * except.c (set_nothrow_function_flags): Likewise.
6074 2007-02-11 Tehila Meyzels <tehila@il.ibm.com>
6075 Ira Rosen <irar@il.ibm.com>
6076 Dorit Nuzman <dorit@il.ibm.com>
6078 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
6079 * targhooks.c (default_builtin_vectorized_conversion): New.
6080 * targhooks.h (default_builtin_vectorized_function): New declaration.
6081 * target.h (struct vectorize): Add builtin_conversion field.
6082 * tree-vectorizer.h (type_conversion_vec_info_type): New enum
6083 stmt_vec_info_type value.
6084 (vectorizable_conversion): New declaration.
6085 * tree-vect-analyze.c (vect_analyze_operations): Add
6086 vectorizable_conversion call.
6087 * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
6088 * tree-vect-transform.c (vectorizable_conversion): New function.
6089 (vect_transform_stmt): Add case for type_conversion_vec_info_type.
6090 * tree-vect-generic.c (expand_vector_operations_1): Consider correct
6092 * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
6093 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
6094 (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
6095 or ALTIVEC_BUILTIN_VCFSX.
6097 2007-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6100 * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
6101 CONST_DOUBLE and operand 0 is a hard register.
6102 (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
6103 memory. Fail if operand 1 is a non-zero CONST_INT and operand 0
6104 is a hard floating-point register.
6106 2007-02-10 Richard Henderson <rth@redhat.com>
6107 Jakub Jelinek <jakub@redhat.com>
6108 Alexandre Oliva <aoliva@redhat.com>
6110 * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
6111 * builtin-types.def (BT_WORD): Make unsigned.
6112 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
6113 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
6114 (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
6115 * c-decl.c (grokdeclarator): Don't error if !have_tls.
6116 * c-parser.c (c_parser_omp_threadprivate): Likewise.
6117 * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
6119 * expr.c (emutls_var_address): New.
6120 (expand_expr_real_1): Expand emulated tls.
6121 (expand_expr_addr_expr_1): Likewise.
6122 * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
6123 * output.h (emutls_finish): Declare.
6124 * toplev.c (compile_file): Call it.
6125 * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
6126 address before wrapping in CONST.
6127 * varasm.c (emutls_htab, emutls_object_type): New.
6128 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
6129 (get_emutls_object_name, get_emutls_object_type): New.
6130 (get_emutls_init_templ_addr, emutls_decl): New.
6131 (emutls_common_1, emutls_finish): New.
6132 (assemble_variable): When emulating tls, swap decls; generate
6133 constructor for the emutls objects.
6134 (do_assemble_alias): When emulating tls, swap decl and target name.
6135 (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
6137 * varpool.c (decide_is_variable_needed): Look at force_output.
6138 Recurse for emulated tls.
6139 (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
6140 with decide_is_variable_needed.
6141 * emutls.c: New file.
6142 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
6143 tls_object for real tls.
6145 2007-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
6147 PR rtl-optimization/29599
6148 * reload1.c (eliminate_regs_in_insn): Take the destination
6149 mode into account when computing the offset.
6151 2007-02-09 Stuart Hastings <stuart@apple.com>
6152 Richard Henderson <rth@redhat.com>
6154 * gcc/config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
6155 * gcc/config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
6156 * gcc/config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
6157 fixuns_truncdfhi2): New.
6158 (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
6159 (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
6160 (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
6161 (floatunssidf2): Allow nonimmediate source.
6162 * gcc/config/i386/sse.md (movdi_to_sse): New.
6163 (vec_concatv2di): Drop '*'.
6164 * gcc/config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
6165 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
6166 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
6168 * gcc/config/i386/i386.c (ix86_expand_convert_uns_si_sse,
6169 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
6170 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
6171 ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
6172 (ix86_build_signbit_mask): Fix decl of v, refactor to call
6173 ix86_build_const_vector.
6174 (x86_emit_floatuns): Rewrite.
6176 2007-02-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6178 * genautomata.c (longest_path_length): Delete unused function.
6179 (struct state): Delete unused longest_path_length.
6180 (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
6181 (get_free_state): Delete unused.
6183 2007-02-09 Jan Hubicka <jh@suse.cz>
6185 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
6186 * doc/invoke.texi (inline-unit-growth): Update default value.
6188 * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
6189 * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
6190 (rebuild_cgraph_edges): Likewise.
6191 * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
6192 (dump_cgraph_node): Dump frequencies.
6193 (cgraph_clone_edge): Add frequency scales.
6194 (cgraph_clone_node): Add freuqnecy.
6195 * cgraph.h (cgraph_edge): Add freuqnecy argument.
6196 (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
6197 (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
6198 * tree-pass.h (TODO_rebuild_frequencies): New constant.
6199 * cgraphunit.c (verify_cgraph_node): Verify frequencies.
6200 (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
6201 (save_inline_function_body): Likewise.
6202 * ipa-inline.c: inluce rtl.h
6203 (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
6204 (cgraph_edge_badness): Use frequencies.
6205 (cgraph_decide_recursive_inlining): Update clonning.
6206 (cgraph_decide_inlining_of_small_function): Dump frequency.
6207 * predict.c (estimate_bb_frequencies): Export.
6208 * predict.h (estimate_bb_frequencies): Declare.
6209 * tree-inline.c (copy_bb): Watch overflows.
6210 (expand_call_inline): Update call of cgraph_create_edge.
6211 (optimize_inline_calls): Use TODO flags to update frequnecies.
6212 * passes.h: Include predict.h
6213 (init_optimization_passes): Move profile ahead.
6214 (execute_function_todo): Handle TODO_rebuild_frequencies.
6216 2007-02-09 Roger Sayle <roger@eyesopen.com>
6218 * config/alpha/alpha.c (emit_insxl): Force the first operand of
6219 the insbl or inswl pattern into a register.
6221 2007-02-09 Roger Sayle <roger@eyesopen.com>
6223 * config/ia64/ia64.md (bswapdi2): New define_insn.
6225 2007-02-09 Richard Henderson <rth@redhat.com>
6227 * config/i386/constraints.md (Ym): New constraint.
6228 * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
6229 (movdi_1_rex64): Split sse and xmm general register moves from
6230 memory move alternatives. Use conditional register constraints.
6231 (movsf_1, movdf_integer): Likewise.
6232 (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
6233 (movdf_integer_rex64): New.
6234 (pushsf_rex64): Fix output constraints.
6235 * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
6236 (sse2_stored): Likewise.
6237 (sse2_storeq_rex64): New.
6238 * config/i386/i386.c (x86_inter_unit_moves): Enable for not
6239 amd and not generic.
6240 (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
6241 for optimize_size. Remove SF/DFmode hack.
6243 2007-02-09 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6245 * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
6248 2007-02-09 Nathan Sidwell <nathan@codesourcery.com>
6249 Richard Sandiford <richard@codesourcery.com>
6251 * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
6252 (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
6253 (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
6254 m68k/t-mlib to tmake_file.
6255 (m68020-*-elf*, m68k-*-elf*): Likewise. Add t-m68kbare as well.
6256 (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
6257 (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
6258 Allow it to be cf or m68k. Set m68k_arch_family. If that
6259 variable is not empty, add t-$m68k_arch_family to tmake_file.
6260 Add t-mlibs to tmake_file.
6261 * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
6262 * config/m68k/t-cf: New file.
6263 * config/m68k/t-m68k: Likewise.
6264 * config/m68k/t-mlibs: Likewise.
6265 * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
6266 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
6267 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
6268 * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
6269 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
6271 * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
6272 (INSTALL_LIBGCC): Delete.
6273 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
6274 * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
6275 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
6276 (M68K_MLIB_CPU): Define.
6277 * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
6278 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
6279 (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
6281 2007-02-09 Zdenek Dvorak <dvorakz@suse.cz>
6282 Richard Guenther <rguenther@suse.de>
6285 * fold-const.c (fold_comparison): Handle obfuscated comparisons
6286 against INT_MIN/INT_MAX.
6287 * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
6288 file if a loop is removed.
6290 2007-02-09 Joseph Myers <joseph@codesourcery.com>
6292 * calls.c (store_one_arg): Pass correct alignment to
6293 emit_push_insn for non-BLKmode values.
6294 * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
6295 unaligned stack slot via a suitably aligned slot.
6297 2007-02-08 DJ Delorie <dj@redhat.com>
6299 * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
6301 (legal_subregs): Use unsigned char, make const.
6302 (m32c_illegal_subreg_p): Use ARRAY_SIZE. Delete unused variables.
6304 2007-02-08 Paul Brook <paul@codesourcery.com>
6306 * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
6307 special interworking needed.
6309 2007-02-08 Harsha Jagasia <harsha.jagasia@amd.com>
6311 * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
6312 conditional to __SSE2__.
6313 (Entries below should have been added to first ChangeLog
6314 entry for amdfam10 dated 2007-02-05)
6315 * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
6317 * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
6319 * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
6322 2007-02-08 DJ Delorie <dj@redhat.com>
6324 * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
6325 * config/m32c/m32c.c (legal_subregs): New.
6326 (m32c_illegal_subreg_p): New.
6327 * config/m32c/predicates.md (m32c_any_operand): Use it to reject
6328 unsupported subregs of hard regs.
6330 2007-02-08 Jan Hubicka <jh@suse.cz>
6332 * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
6333 the same one; always update histograms.
6335 2007-02-08 Diego Novillo <dnovillo@redhat.com>
6337 * passes.c (init_optimization_passes): Tidy comment.
6339 2007-02-08 Roger Sayle <roger@eyesopen.com>
6341 * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
6342 strip zero_extend, bswap and rotates from POCOUNT's argument.
6343 <PARITY>: Likewise, we can strip not, bswap, sign_extend,
6344 zero_extend and rotates from PARITY's argument.
6345 <BSWAP>: A byte-swap followed by a byte-swap is an identity.
6346 (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
6347 of an integer constant at compile-time.
6349 2007-02-08 Diego Novillo <dnovillo@redhat.com>
6352 * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
6354 * tree-ssa-alias.c (compute_is_aliased): Remove. Update all
6357 * tree-ssa-live.c (remove_unused_locals): Do not remove
6358 TREE_ADDRESSABLE variables.
6359 * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
6360 * tree-ssa-operands.c (add_virtual_operand): Remove argument
6361 FOR_CLOBBER. Update all users.
6362 If VAR has an associated alias set, add a virtual operand for
6363 it if no alias is found to conflict with the memory reference.
6365 2007-02-07 Jan Hubicka <jh@suse.cz>
6366 Robert Kidd <rkidd@crhc.uiuc.edu>
6368 * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
6370 2007-02-07 Ian Lance Taylor <iant@google.com>
6372 * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
6374 2007-02-07 Roger Sayle <roger@eyesopen.com>
6376 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
6377 parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
6378 tablejumpdi, movsi_to_cr_one): Remove constraints from
6379 define_expand's match_operands.
6381 2007-02-07 Roger Sayle <roger@eyesopen.com>
6383 * global.c (compute_regsets): Move declatation of "i" inside of
6384 #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
6386 2007-02-07 Jakub Jelinek <jakub@redhat.com>
6389 * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
6390 of INDIRECT_REF <RESULT_DECL>.
6392 * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
6394 2007-02-06 J"orn Rennecke <joern.rennecke@arc.com>
6395 Kaz Kojima <kkojima@gcc.gnu.org>
6398 * config/sh/sh.c (expand_cbranchdi4): Use scratch register
6400 (sh_initialize_trampoline): Add parentheses to avoid a warning.
6402 2007-02-06 Zdenek Dvorak <dvorakz@suse.cz>
6404 * doc/loop.texi: Document possibility not to perform disambiguation
6405 of loops with multiple latches.
6406 * cfgloopmanip.c (alp_enum_p): Removed.
6407 (add_loop): Handle subloops. Use get_loop_body_with_size.
6408 (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
6409 * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
6410 the new forwarder block.
6411 (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
6412 Handle the case latch is NULL.
6413 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg modifications
6414 when marking loop exits.
6415 * ifcvt.c (if_convert): Ditto. Mark loop exits even if cfg cannot
6417 * loop-init.c (loop_optimizer_init): Do not modify cfg. Call
6418 disambiguate_loops_with_multiple_latches.
6419 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
6420 before fix_loop_structure.
6421 * cfgloop.c: Include pointer-set.h and output.h.
6422 (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
6423 update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
6424 (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
6425 find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
6426 mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
6427 disambiguate_multiple_latches, get_loop_body_with_size,
6428 disambiguate_loops_with_multiple_latches): New functions.
6429 (flow_loop_dump): Dump multiple latch edges.
6430 (flow_loop_nodes_find): Handle loops with multiple latches.
6431 (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
6432 (glb_enum_p): Modified.
6433 (get_loop_body): Use get_loop_body_with_size.
6434 * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
6435 (AVOID_CFG_MODIFICATIONS): New constant.
6436 (disambiguate_loops_with_multiple_latches, add_loop,
6437 get_loop_body_with_size): Declare.
6438 * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
6440 2007-02-06 Seongbae Park <seongbae.park@gmail.com>
6443 * global.c (compute_regsets): New function.
6444 (global_alloc): Refactored ELIMINABLE_REGSET
6445 and NO_GLOBAL_ALLOC_REGS computation out.
6446 (rest_of_handle_global_alloc): Call compute_regsets()
6447 for non-optimizing case.
6449 2007-02-06 Richard Henderson <rth@redhat.com>
6451 * config/i386/constraints.md (Y2): Rename from Y.
6452 (Yi): New constraint.
6453 * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
6454 pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
6455 zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
6456 (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
6457 truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
6458 fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
6459 floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
6460 absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
6461 fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
6462 * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
6463 mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
6464 vec_extractv2si_1): Change Y constraints to Y2.
6465 * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
6466 vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
6467 Change Y constraints to Y2.
6468 (sse2_loadld): Change Y constraints to x.
6470 2007-02-06 Roger Sayle <roger@eyesopen.com>
6472 * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
6473 (parity<mode>2): New define_expand using rs6000_emit_parity.
6474 * config/rs6000/rs6000.c (rs6000_emit_popcount,
6475 rs6000_emit_parity): New functions.
6476 * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
6477 rs6000_emit_parity): Prototype here.
6479 2007-02-06 Ian Lance Taylor <iant@google.com>
6481 * lower-subreg.c (simple_move_operand): Reject CONST.
6482 (resolve_clobber): Call validate_change rather than directly
6483 assigning to XEXP (pat, 0).
6485 2006-02-06 Paolo Bonzini <bonzini@gnu.org>
6487 * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
6488 (tree-ssa-reassoc.o): Add pointer-set.h dependency.
6489 (tree-cfg.o): Remove hashtab.h dependency.
6491 * tree-ssa-loop-ivopts.c: Include pointer-set.h.
6492 (struct ivopts_data): Change niters to pointer_map_t.
6493 (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
6494 (niter_for_exit): Create pointer_map on demand. Change for
6496 (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
6497 (free_loop_data): Destroy data->niters if created and reset field.
6498 (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
6499 (tree_ssa_iv_optimize_loop): Check for presence of stale data.
6501 * tree-ssa-reassoc.c: Include pointer-set.h.
6502 (bb_rank): Change to long *.
6503 (operand_rank): Change to pointer_map_t.
6504 (find_operand_rank): Return long, -1 if not found. Declare as inline.
6505 (insert_operand_rank): Accept long.
6506 (operand_entry_hash, operand_entry_eq): Remove.
6507 (get_rank): Return long. Adjust for changes above.
6508 (init_reassoc): Change rank type to long. Adjust creation of bb_rank
6510 (fini_reassoc): Delete operand_rank with pointer_map_destroy.
6512 * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
6513 (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
6514 (insert_vi_for_tree): Rewrite for pointer_map API. Assert argument
6516 (lookup_vi_for_tree): Rewrite for pointer_map API. Return varinfo_t
6517 directly since it cannot be NULL.
6518 (get_vi_for_tree): Rewrite for pointer_map API.
6519 (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
6520 (init_alias_vars): Create vi_for_tree as pointer_map.
6521 (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
6523 * tree-cfg.c: Don't include hashtab.h.
6524 (edge_to_cases): Declare as pointer_map.
6525 (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
6527 (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
6528 (start_recording_case_labels): Create edge_to_cases as pointer_map.
6529 (end_recoding_case_labels): Cleanup edge_to_cases manually before
6531 (record_switch_edge): Delete.
6532 (get_cases_for_edge): Adjust for pointer_map API, inline
6533 record_switch_edge (rewritten for new API), remove goto.
6535 2006-02-06 Paolo Bonzini <bonzini@gnu.org>
6537 * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
6538 * tree-nested.c: Include pointer-set.h.
6539 (var_map_elt, var_map_eq, var_map_hash): Delete.
6540 (struct nesting_info): Remove GTY marker. Change the two htab_t's
6542 (nesting_info_bitmap_obstack): New.
6543 (lookup_field_for_decl): Adjust for pointer_map API.
6544 (lookup_tramp_for_decl): Adjust for pointer_map API.
6545 (get_nonlocal_debug_decl): Adjust for pointer_map API.
6546 (get_local_debug_decl): Adjust for pointer_map API.
6547 (convert_nl_goto_reference): Adjust for pointer_map API.
6548 (convert_nl_goto_receiver): Adjust for pointer_map API.
6549 (create_nesting_tree): Create outside GGC space. Create bitmap on
6550 the new obstack. Create field_map and var_map as pointer_maps.
6551 (free_nesting_tree): Adjust for changes to create_nesting_tree.
6553 (lower_nested_functions): Move root here, no need to NULL it.
6554 Initialize and release the obstack.
6556 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
6558 * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
6559 Remove prototypes and make them non-static.
6560 (struct tree_int_map): Remove.
6561 * tree.h (struct tree_int_map): Move here, turning TO into an
6563 (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
6565 * tree.h (TREE_COMPLEXITY): Remove.
6566 (struct tree_exp): Remove complexity field.
6567 * tree.c (build1_stat): Don't set it.
6569 2007-02-06 Dorit Nuzman <dorit@il.ibm.com>
6570 Victor Kaplansky <victork@il.ibm.com>
6572 * tree-vectorizer.c (vect_is_simple_use): Support induction.
6573 (vect_is_simple_reduction): Support reduction with induction as
6574 one of the operands.
6575 (vect_is_simple_iv_evolution): Fix formatting.
6576 * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
6577 formatting. Don't mark induction phis for vectorization.
6578 (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
6579 * tree-vect-transform.c (get_initial_def_for_induction): New function.
6580 (vect_get_vec_def_for_operand): Support induction.
6581 (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
6583 (vectorizable_reduction): Support reduction with induction as one of
6585 (vectorizable_type_demotion): Use def-type of stmt argument rather
6586 than dummy def-type.
6588 * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
6589 flag_tree_scev_cprop.
6590 * common.opt (tree-scev-cprop): New flag.
6592 * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
6593 call to vect_get_new_vect_var.
6595 2007-02-06 Ira Rosen <irar@il.ibm.com>
6597 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
6598 vectype is not NULL.
6599 (vect_pattern_recog_1): Likewise.
6601 2007-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6603 * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
6604 (fold_negate_expr): Likewise.
6606 2007-02-05 Alexandre Oliva <aoliva@redhat.com>
6609 * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
6610 even if cv-qualification is the same.
6612 2007-02-05 Geoffrey Keating <geoffk@apple.com>
6614 * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
6615 __enable_execute_stack on completion.
6617 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
6619 * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
6620 athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
6621 athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
6622 athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
6623 athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
6624 athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
6625 athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
6626 athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
6628 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
6630 * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
6631 cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
6632 swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
6633 fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
6634 x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
6635 floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
6636 floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
6637 mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
6638 umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
6639 umuldi3_highpart_rex64, umulsi3_highpart_insn,
6640 umulsi3_highpart_zext, smuldi3_highpart_rex64,
6641 smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
6642 x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
6643 sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
6644 sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
6645 sqrtextenddfxf2_i387): Added amdfam10_decode.
6647 * config/i386/athlon.md (athlon_idirect_amdfam10,
6648 athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
6649 athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
6650 athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
6651 athlon_ivector_store_amdfam10): New define_insn_reservation.
6652 (athlon_idirect_loadmov, athlon_idirect_movstore): Added
6655 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
6657 * config/i386/athlon.md (athlon_call_amdfam10,
6658 athlon_pop_amdfam10, athlon_lea_amdfam10): New
6659 define_insn_reservation.
6660 (athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
6661 athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
6662 athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
6664 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
6666 * config/i386/athlon.md (athlon_sseld_amdfam10,
6667 athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
6668 athlon_mmxssest_short_amdfam10): New define_insn_reservation.
6670 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
6672 * config/i386/athlon.md (athlon_sseins_amdfam10): New
6673 define_insn_reservation.
6674 * config/i386/i386.md (sseins): Added sseins to define_attr type
6675 and define_attr unit.
6676 * config/i386/sse.md: Set type attribute to sseins for insertq
6679 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
6681 * config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
6682 ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
6683 ssecomi_load_amdfam10, ssecomi_amdfam10,
6684 sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
6685 define_insn_reservation.
6686 (ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
6688 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
6690 * config/i386/athlon.md (cvtss2sd_load_amdfam10,
6691 cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
6692 cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
6693 cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
6694 cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
6695 cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New
6696 define_insn_reservation.
6698 * config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
6699 cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
6700 cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
6701 cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
6702 cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
6704 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
6706 * config/i386/athlon.md (athlon_ssedivvector_amdfam10,
6707 athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
6708 athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
6709 (athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
6710 athlon_ssemul_load_k8): Added amdfam10.
6712 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
6714 * config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
6715 (x86_sse_unaligned_move_optimal): New variable.
6717 * config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for
6719 (ix86_expand_vector_move_misalign): Add code to generate movupd/movups
6720 for unaligned vector SSE double/single precision loads for AMDFAM10.
6722 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
6724 * config/i386/i386.h (TARGET_AMDFAM10): New macro.
6725 (TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
6726 Define TARGET_CPU_DEFAULT_amdfam10.
6727 (TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
6728 (processor_type): Add PROCESSOR_AMDFAM10.
6730 * config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
6731 processor_type in config/i386/i386.h.
6732 Enable imul peepholes for TARGET_AMDFAM10.
6734 * config.gcc: Add support for --with-cpu option for amdfam10.
6736 * config/i386/i386.c (amdfam10_cost): New variable.
6737 (m_AMDFAM10): New macro.
6738 (m_ATHLON_K8_AMDFAM10): New macro.
6739 (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
6740 x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
6741 x86_promote_QImode, x86_integer_DFmode_moves,
6742 x86_partial_reg_dependency, x86_memory_mismatch_stall,
6743 x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
6744 x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
6745 x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
6746 x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
6747 Enable/disable for amdfam10.
6748 (override_options): Add amdfam10_cost to processor_target_table.
6749 Set up PROCESSOR_AMDFAM10 for amdfam10 entry in
6750 processor_alias_table.
6751 (ix86_issue_rate): Add PROCESSOR_AMDFAM10.
6752 (ix86_adjust_cost): Add code for amdfam10.
6754 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
6756 * config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
6757 instruction set feature flag. Add new (-mpopcnt) flag for popcnt
6758 instruction. Add new SSE4A (-msse4a) instruction set feature flag.
6759 * config/i386/i386.h: Add builtin definition for SSE4A.
6760 * config/i386/i386.md: Add support for ABM instructions
6762 * config/i386/sse.md: Add support for SSE4A instructions
6763 (movntss, movntsd, extrq, insertq).
6764 * config/i386/i386.c: Add support for ABM and SSE4A builtins.
6765 Add -march=amdfam10 flag.
6766 * config/i386/ammintrin.h: Add support for SSE4A intrinsics.
6767 * doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
6769 * doc/extend.texi: Add documentation for SSE4A builtins.
6771 2007-02-05 Bob Wilson <bob.wilson@acm.org>
6773 * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
6775 2007-02-05 Richard Guenther <rguenther@suse.de>
6777 * tree-vectorizer.h (vectorizable_function): Add argument type
6778 argument, change return type.
6779 * tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
6780 * tree-vect-transform.c (vectorizable_function): Handle extra
6781 argument, return vectorized function decl.
6782 (build_vectorized_function_call): Remove.
6783 (vectorizable_call): Handle calls with result and argument types
6784 differing. Handle loop vectorization factor correctly.
6785 * targhooks.c (default_builtin_vectorized_function): Adjust for
6787 * targhooks.h (default_builtin_vectorized_function): Likewise.
6788 * target.h (builtin_vectorized_function): Add argument type
6790 * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
6791 extra argument, allow vectorizing of lrintf.
6792 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
6793 documentation of target hook.
6795 2007-02-05 Hans-Peter Nilsson <hp@axis.com>
6798 * config/cris/cris.md ("*andsi_movu", "*andsi_clear", "*andhi_movu")
6799 ("*andhi_clear", andu (casesi+45)): For size-changed operand where
6800 memory is allowed, require !side_effects_p, not just !MEM_VOLATILE_P.
6802 2007-02-05 Roger Sayle <roger@eyesopen.com>
6804 * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
6805 BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
6806 <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
6807 * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
6808 before canonicalizing sincos to cexpi.
6809 (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.
6811 2007-02-05 Roger Sayle <roger@eyesopen.com>
6813 * config/alpha/alpha.c (alpha_add_builtins): New Helper function.
6814 Set TREE_READONLY and TREE_NOTHROW directly, not via attributes.
6815 (alpha_init_builtins): Use alpha_add_builtins to process tables.
6817 2007-02-05 Roger Sayle <roger@eyesopen.com>
6819 * mips-tfile.c (initialize_init_file): Correct endianness test.
6821 2007-02-05 Kazu Hirata <kazu@codesourcery.com>
6823 * config/m68k/m68k.md (pushdi-1, pushdi, movsi+1): Don't use
6826 2007-02-05 Richard Sandiford <richard@codesourcery.com>
6828 * dwarf2out.c (dwarf2out_frame_debug_expr): Record the register
6829 saves in a PARALLEL before the register assignments.
6831 2007-02-05 Richard Sandiford <richard@codesourcery.com>
6833 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Do not require
6834 DWARF_FRAME_RETURN_COLUMN to be a general register.
6835 * dwarf2out.c (init_return_column_size): New function, split from...
6836 (expand_builtin_init_dwarf_reg_sizes): ...here. Allow both
6837 DWARF_FRAME_RETURN_COLUMN and DWARF_ALT_FRAME_RETURN_COLUMN
6838 to be nongeneral registers.
6839 * config/m68k/m68k.h (DWARF_FRAME_REGNUM): Only map FP and
6841 (DWARF_FRAME_REGISTERS, DWARF_FRAME_RETURN_COLUMN): Define.
6842 (DWARF_ALT_FRAME_RETURN_COLUMN): Define.
6844 2007-02-04 Zdenek Dvorak <dvorakz@suse.cz>
6846 * cfgcleanup.c (try_optimize_cfg): Avoid removing ENTRY_BLOCK_PTR.
6848 2007-02-04 Zdenek Dvorak <dvorakz@suse.cz>
6850 * cfgloopmanip.c (loop_delete_branch_edge): Removed.
6851 (remove_path): Use can_remove_branch_p and remove_branch instead
6852 of loop_delete_branch_edge.
6853 * tree-ssa-loop-manip.c (scale_dominated_blocks_in_loop): New function.
6854 (tree_transform_and_unroll_loop): Remove dead branches immediately.
6855 Update profile using scale_dominated_blocks_in_loop.
6856 * cfghooks.c (can_remove_branch_p, remove_branch): New functions.
6857 * cfghooks.h (struct cfg_hooks): Add can_remove_branch_p.
6858 (can_remove_branch_p, remove_branch): Declare.
6859 * tree-cfg.c (tree_can_remove_branch_p): New function.
6860 (tree_cfg_hooks): Add tree_can_remove_branch_p.
6861 * cfgrtl.c (rtl_can_remove_branch_p): New function.
6862 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add rtl_can_remove_branch_p.
6864 2007-02-05 Jan Hubicka <jh@suse.cz>
6867 * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
6868 nodes in cgraph, don't remove offline copy of the function.
6870 2007-02-04 Jan Hubicka <jh@suse.cz>
6872 * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
6873 vectors might cause maybe_lookup_element_for_expr to be called
6874 on non-sra-candidate.
6876 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
6878 * config/bfin/bfin-modes.def, config/bfin/bfin.c,
6879 config/bfin/bfin.md, config/bfin/predicates.md: Follow
6880 spelling conventions.
6882 2007-02-04 Richard Guenther <rguenther@suse.de>
6885 * fold-const.c (try_move_mult_to_index): Make sure to not
6886 overflow one dimension of a multi-dimensional array access.
6888 2007-02-04 Jan Hubicka <jh@suse.cz>
6890 * passes.c (init_optimization_passes): Reindent.
6892 2007-02-04 Jan Hubicka <jh@suse.cz>
6893 Eric Botcazou <ebotcazou@adacore.com>
6895 * tree-optimize.c (has_abnormal_outgoing_edge_p): Move to...
6896 (execute_fixup_cfg): Break out the abnormal goto code.
6897 * tree-inline.c (has_abnormal_outgoing_edge_p): ...here.
6898 (make_nonlocal_label_edges): Move here from execute_fixup_cfg.
6899 (optimize_inline_calls): Call make_nonlocal_label_edges.
6901 2007-02-04 Jan Hubicka <jh@suse.cz>
6903 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Return
6904 true when something was changed.
6905 (rename_ssa_copies): When something was changed, do
6906 TODO_remove_unused_locals.
6907 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
6908 add TODO_remove_unused_locals when instruction was removed.
6910 2007-02-04 Jan Hubicka <jh@suse.cz>
6912 * ipa-inline.c (try_inline): Improve debug output; work on already
6914 (cgraph_decide_inlining_incrementally): Indent; improve debug output;
6915 call try_inline for already inlined edges too when flattening;
6916 inline also functions that make callee growth but overall unit size
6919 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
6921 * config/m32c/bitops.md, config/m32c/jump.md,
6922 config/m32c/m32c.c, config/m32c/m32c.h, config/m32r/m32r.c,
6923 config/m32r/m32r.h, config/m32r/m32r.md,
6924 config/m32r/predicates.md, config/m68hc11/larith.asm,
6925 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
6926 config/m68k/m68k.h, config/mcore/mcore.md, config/mips/4k.md,
6927 config/mips/mips-protos.h, config/mips/mips.c,
6928 config/mips/mips.h, config/mips/mips.md, config/mips/mips16.S,
6929 config/mn10300/mn10300.h, config/mn10300/predicates.md,
6930 config/mt/mt.c, config/mt/mt.h, config/mt/mt.md: Follow
6931 spelling conventions.
6933 * config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
6934 Follow spelling conventions.
6936 2007-02-03 Douglas Gregor <doug.gregor@gmail.com>
6938 * c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
6939 warn about C++0x compatibility.
6941 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
6943 * config/h8300/h8300.c, config/h8300/h8300.h,
6944 config/h8300/h8300.md: Follow spelling conventions.
6946 2007-02-03 Uros Bizjak <ubizjak@gmail.com>
6949 * combine.c (try_combine): Do not substitute source operand
6950 with constants wider than 2 * HOST_BITS_PER_WIDE_INT.
6952 2007-02-03 Jan Hubicka <jh@suse.cz>
6954 PR gcov-profile/30650
6955 * value-prof.c (stringop_block_profile): Fix handling of size counter;
6956 do not divide by zero for never executed counters.
6957 (tree_find_values_to_profile): Fix counters.
6958 * gcov-ui.h (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): Fix comments.
6960 2007-02-03 Ian Lance Taylor <iant@google.com>
6962 * lower-subreg.c (simple_move_operand): New static function,
6963 broken out of simple_move. Reject LABEL_REF, SYMBOL_REF, and HIGH
6965 (simple_move): Call simple_move_operand.
6966 (find_decomposable_subregs): Add special handling of MEMs.
6967 (can_decompose_p): Rename from cannot_decompose_p. Reverse
6968 meaning of return value. If we see a hard register, test whether
6969 it can store a word_mode value. Change all callers.
6971 2007-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6973 * pa.md (addvdi3, addvsi3, subvdi3, subvsi3, negvdi2, negvsi2): New
6974 ftrapv insns and expanders.
6975 (subdi3): Change define_expand operand 1 to arith11_operand, and
6976 operand 2 to reg_or_0_operand. Change constraints of 64-bit insn
6977 pattern to handle reg_or_0 operands. Revise 32-bit insn pattern to
6978 handle 11-bit constants and reg_or_0 operands in operands 1 and 2,
6982 * varasm.c (notice_global_symbol): Treat global objects as weak when
6985 2007-02-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6987 * emit-rtl.c (dconstpi): Delete.
6989 (init_emit_once): Delete dconstpi and init dconstsqrt2.
6990 * real.h (dconstpi): Delete.
6992 * builtins.c (fold_builtin_cabs): Use dconstsqrt2.
6993 (fold_builtin_hypot): Likewise.
6995 2007-02-03 Tom Tromey <tromey@redhat.com>
6998 * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
6999 -gcoff3, -gxcoff3, -gvms3 implies -dD.
7001 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
7003 * c-decl.c, config/avr/avr.c, config/avr/avr.h,
7004 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
7005 config/mn10300/mn10300.c, config/pdp11/pdp11.h,
7006 config/rs6000/cell.md, config/rs6000/darwin.h,
7007 config/sh/sh.md, config/sh/sh4-300.md, config/spu/spu.c,
7008 config/spu/spu.md, cselib.c, expr.c, haifa-sched.c, hwint.h,
7009 jump.c, reload.c, sched-deps.c, sched-int.h, tree-inline.c,
7010 tree-profile.c, tree-ssa-live.h, tree-vrp.c: Fix comment
7011 typos. Follow spelling conventions.
7012 * doc/invoke.texi: Follow spelling conventions.
7014 2007-02-03 Roger Sayle <roger@eyesopen.com>
7016 * simplify-rtx.c (simplify_relational_operation_1): Implement some
7017 canonicalization transformations that attempt to simplify integer
7018 constant comparisons to become comparisons against zero.
7020 2007-02-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7022 * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
7024 * fold-const.c (fold_binary): Fix comment typos. Fold complex
7025 (x,0)-(0,y) into (x,-y). Likewise (0,y)-(x,0) into (-x,y).
7027 2007-02-02 Mike Stump <mrs@apple.com>
7029 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Add.
7030 * config/rs6000/rs6000.c (DARWIN_GENERATE_ISLANDS): Add.
7031 (output_call): Use DARWIN_GENERATE_ISLANDS to decide when to
7032 generate a branch island.
7034 2007-02-02 Bob Wilson <bob.wilson@acm.org>
7036 * config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
7037 (xtensa_legitimate_address_p): New.
7038 (xtensa_legitimize_address): New.
7039 (xtensa_output_addr_const_extra): New.
7040 * config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
7042 (REG_OK_FOR_BASE_P): Use BASE_REG_P.
7043 (GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
7044 (LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
7045 (OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
7046 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
7047 (xtensa_legitimize_address): New.
7048 (xtensa_output_addr_const_extra): New.
7050 2007-02-02 Steve Ellcey <sje@cup.hp.com>
7052 * config/ia64/ia64.c (ia64_print_operand): Fix compare strings.
7054 2007-02-02 Ian Lance Taylor <iant@google.com>
7056 * expmed.c (expand_divmod): Add comment.
7058 2007-02-02 Kazu Hirata <kazu@codesourcery.com>
7060 * emit-rtl.c (renumber_insns): Remove.
7061 * flags.h: Remove the extern for flag_renumber_insns.
7062 * rtl.h: Remove the prototype for renumber_insns.
7063 * toplev.c (flag_renumber_insns): Remove.
7065 2007-02-02 Hui-May Chang <hm.chang@apple.com>
7067 Revert for x86 darwin:
7068 2005-06-19 Uros Bizjak <uros@kss-loka.si>
7070 * config/i386/i386.c (ix86_function_arg_regno_p): Put back the
7071 code before the following patch under TARGET_MACHO.
7072 (ix86_function_value_regno_p): Likewise.
7074 2007-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7076 * fold-const.c (negate_expr_p, fold_negate_expr): Handle
7079 2007-02-02 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
7082 * config/ia64/ia64.c (ia64_speculate_insn): Restrict to memory loads to
7083 general or fp registers. Add comments.
7084 * config/ia64/ia64.md (reg_pred_prefix): Add comment.
7086 2007-02-02 Paolo Bonzini <bonzini@gnu.org>
7088 * pointer-set.c (insert_aux): Only return insertion slot.
7089 (pointer_set_insert): Adjust.
7090 (pointer_set_traverse, struct pointer_map_t, pointer_map_create,
7091 pointer_map_destroy, pointer_map_insert, pointer_map_contains,
7092 pointer_map_traverse): New.
7093 * pointer-set.h (pointer_set_traverse, struct pointer_map_t,
7094 pointer_map_create, pointer_map_destroy, pointer_map_insert,
7095 pointer_map_contains, pointer_map_traverse): Declare.
7097 2007-02-02 Jakub Jelinek <jakub@redhat.com>
7100 * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
7101 sprintf (str, "%s"). Do not optimize sprintf (str, "nopercent", p++).
7103 2007-02-02 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
7105 * sched-int.h (ds_to_dk, dk_to_ds): Declare functions.
7107 (struct _dep): New type.
7108 (dep_t): New typedef.
7109 (DEP_PRO, DEP_CON, DEP_KIND): New access macros.
7110 (DEP_STATUS): New access macro. The macro with the same name was
7111 renamed to DEP_LINK_STATUS.
7112 (dep_init): Declare function
7114 (struct _dep_link): New type.
7115 (dep_link_t): New typedef.
7116 (DEP_LINK_NODE, DEP_LINK_NEXT, DEP_LINK_PREV_NEXTP): New access macros.
7117 (DEP_LINK_DEP, DEP_LINK_PRO, DEP_LINK_CON, DEP_LINK_KIND): New macros.
7118 (DEP_LINK_STATUS): New macro.
7119 (debug_dep_links): New debug function.
7121 (struct _deps_list): New type.
7122 (deps_list_t): New typedef.
7123 (DEPS_LIST_FIRST): New access macro.
7124 (FOR_EACH_DEP_LINK): New cycle macro.
7125 (create_deps_list, free_deps_list, delete_deps_list): Declare
7127 (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
7128 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
7129 (copy_deps_list_change_con): Ditto.
7131 (move_dep_link): Declare function.
7133 (struct _dep_node): New type.
7134 (dep_node_t): New typedef.
7135 (DEP_NODE_BACK, DEP_NODE_DEP, DEP_NODE_FORW): New access macros.
7137 (struct haifa_insn_data.back_deps): New field to hold backward
7138 dependencies of the insn.
7139 (struct haifa_insn_data.depend): Rename to forw_deps. Change its type
7141 (struct haifa_insn_data.resolved_deps): Rename to resolved_back_deps.
7142 Change its type to deps_list_t.
7143 (INSN_BACK_DEPS): New access macro to use instead of LOG_LINKS.
7144 (INSN_DEPEND): Rename to INSN_FORW_DEPS.
7145 (RESOLVED_DEPS): Rename to INSN_RESOLVED_BACK_DEPS.
7147 (INSN_COST): Move to haifa-sched.c. Use insn_cost () instead.
7149 (DEP_STATUS): Rename to DEP_LINK_STATUS. Fix typo in the comment.
7151 (add_forw_dep, delete_back_forw_dep, insn_cost): Update declaration and
7153 (dep_cost): Declare.
7155 * sched-deps.c (CHECK): New macro to (en/dis)able sanity checks.
7156 (ds_to_dk, dk_to_ds): New functions.
7158 (init_dep_1): New static function.
7159 (init_dep): New function.
7160 (copy_dep): New static function.
7162 (dep_link_consistent_p, attach_dep_link, add_to_deps_list): New static
7164 (detach_dep_link): New static function.
7165 (move_dep_link): New function.
7167 (dep_links_consistent_p, dump_dep_links): New static functions.
7168 (debug_dep_links): New debugging function.
7170 (deps_obstack, dl_obstack, dn_obstack): New static variables.
7172 (alloc_deps_list, init_deps_list): New static functions.
7173 (create_deps_list): New function.
7174 (clear_deps_list): New static function.
7175 (free_deps_list, delete_deps_list, deps_list_empty_p): New functions.
7176 (deps_list_consistent_p, dump_deps_list): New static functions.
7177 (debug_deps_list): New function.
7178 (add_back_dep_to_deps_list, find_link_by_pro_in_deps_list): New
7180 (find_link_by_con_in_deps_list, copy_deps_list_change_con): Ditto.
7182 (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Update to
7183 use new scheduler dependencies lists.
7184 (add_back_dep, delete_all_dependences, fixup_sched_groups): Ditto.
7185 (sched_analyze): Ditto. Initialize dependencies lists.
7186 (add_forw_dep, compute_forward_dependences): Update to use new
7187 scheduler dependencies lists.
7189 (init_dependency_caches): Init deps_obstack.
7190 (free_dependency_caches): Free deps_obstack.
7192 (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Update to use
7193 new scheduler dependencies lists.
7194 (delete_forw_dep, add_or_update_back_forw_dep): Ditto.
7195 (add_back_forw_dep, delete_back_forw_dep): Ditto.
7197 * sched-rgn.c (set_spec_fed, find_conditional_protection, is_pfree):
7198 Update to use new scheduler dependencies lists.
7199 (is_conditionally_protected, is_prisky, add_branch_dependences): Ditto.
7200 (debug_dependencies): Ditto.
7201 (schedule_region): Update comments.
7203 * sched-ebb.c (earliest_block_with_similiar_load): Update to use new
7204 scheduler dependencies lists.
7205 (schedule_ebb): Update comments.
7207 * rtl.def (DEPS_LIST): Remove.
7209 * lists.c (unused_deps_list): Remove.
7210 (free_list): Update assertions.
7212 (alloc_DEPS_LIST, free_DEPS_LIST_list, free_DEPS_LIST_node): Remove.
7213 (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
7215 * rtl.h (free_DEPS_LIST_list, alloc_DEPS_LIST): Remove declarations.
7216 (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
7218 * haifa-sched.c (comments): Update.
7219 (insn_cost1): Remove. Inline the code into insn_cost ().
7220 (insn_cost): Update to use new scheduler dependencies lists. Move
7221 processing of the dependency cost to dep_cost ().
7222 (dep_cost): New function. Use it instead of insn_cost () when
7223 evaluating cost of the dependency. Use compatible interface to
7224 interact with the target.
7225 (priority): Update to use new scheduler dependencies lists.
7226 (rank_for_schedule): Ditto. Optimize heuristic that prefers the insn
7227 with greater number of insns that depend on the insn.
7228 (schedule_insn): Update to use new scheduler dependencies lists. Add
7229 code to free backward dependencies lists. Inline and optimize code
7230 from resolve_dep () - see PR28071.
7231 (ok_for_early_queue_removal): Update to use new scheduler dependencies
7232 lists. Update call to targetm.sched.is_costly_dependence hook.
7234 (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
7235 scheduler dependencies lists.
7237 (resolve_dep): Remove. Move the logic to schedule_insn ().
7238 (init_h_i_d): Initialize dependencies lists.
7240 (process_insn_depend_be_in_spec): Rename to
7241 process_insn_forw_deps_be_in_spec. Update to use new scheduler
7243 (add_to_speculative_block, create_check_block_twin, fix_recovery_deps):
7244 Update to use new scheduler dependencies lists.
7245 (clear_priorities, calc_priorities, add_jump_dependencies): Ditto.
7247 * ddg.c (create_ddg_dependence, create_ddg_dep_no_link): Update to use
7248 new scheduler dependencies lists.
7249 (build_intra_loop_deps): Ditto.
7251 * target.h (struct _dep): Declare to use in
7252 gcc_target.sched.is_costly_dependence.
7253 (struct gcc_target.sched.adjust_cost): Fix typo.
7254 (struct gcc_target.sched.is_costly_dependence): Change signature to use
7255 single dep_t parameter instead of an equivalent triad.
7256 (struct gcc_target.sched.adjust_cost_2): Remove.
7258 * target-def.h (TARGET_SCHED_ADJUST_COST_2): Remove.
7260 * reg-notes.def (DEP_TRUE, DEP_OUTPUT, DEP_ANTI): Update comments.
7262 * doc/tm.texi (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Update
7264 (TARGET_SCHED_ADJUST_COST_2): Remove documentation.
7266 * doc/rtl.texi (LOG_LINKS): Remove part about instruction scheduler.
7267 (REG_DEP_TRUE): Document.
7269 * config/ia64/ia64.c (ia64_adjust_cost_2): Rename to ia64_adjust_cost.
7270 Change signature to correspond to the targetm.sched.adjust_cost hook.
7271 Update use in TARGET_SCHED_ADJUST_COST_2.
7272 (TARGET_SCHED_ADJUST_COST_2): Rename to TARGET_SCHED_ADJUST_COST.
7273 (ia64_dependencies_evaluation_hook, ia64_dfa_new_cycle): Update to use
7274 new scheduler dependencies lists.
7275 (ia64_gen_check): Ditto.
7277 * config/mips/mips.c (vr4130_swap_insns_p): Update to use new scheduler
7280 * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Change
7281 signature to correspond to the targetm.sched.is_costly_dependence hook.
7282 (is_costly_group): Update to use new scheduler dependencies lists.
7284 * config/spu/spu.c (spu_sched_adjust_cost): Use insn_cost () function
7285 instead of INSN_COST () macro.
7287 2007-02-01 Ian Lance Taylor <iant@google.com>
7289 * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn.
7291 2007-02-01 Guy Martin <gmsoft@gentoo.org>
7293 * pa.md (tp_load): Correct mfctl instruction syntax.
7295 2007-02-01 Geoffrey Keating <geoffk@apple.com>
7297 * config/rs6000/rs6000.c (rs6000_stack_info): Correct
7298 altivec_padding_size calculation on AIX. Improve comment, add
7299 assert to verify that it's right.
7301 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Don't define for
7304 2007-2-01 Seongbae Park <seongbae.park@gmail.com>
7307 * global.c (global_alloc): Add mising initialization of
7310 2007-02-01 Roger Sayle <roger@eyesopen.com>
7312 * alias.c (init_alias_analysis): Correct whitespace.
7313 * bb-reorder.c (fix_edges_for_rarely_executed_code,
7314 partition_hot_cold_basic_blocks): Likewise.
7315 * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
7316 expand_builtin_sprintf, fold_builtin_carg, fold_builtin_sprintf,
7317 maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
7318 fold_builtin_snprintf_chk, fold_builtin_printf,
7319 fold_builtin_fprintf, do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_arg2,
7320 do_mpfr_arg3, do_mpfr_sincos): Likewise.
7321 * cfgcleanup.c (cleanup_cfg): Likewise.
7322 * cfgexpand.c (tree_expand_cfg): Likewise.
7323 * fold-const.c (fold_binary) <RDIV_EXPR>: Likewise.
7324 * function.c (get_next_funcdef_no): Likewise.
7325 * gengtype.c (main): Likewise.
7326 * genmodes.c (main): Likewise.
7327 * gcse.c (bypass_conditional_jumps, print_ldst_list): Likewise.
7328 * haifa-sched.c (schedule_block, extend_h_i_d): Likewise.
7329 * ifcvt.c (noce_emit_move_insn): Likewise.
7330 * modulo-sched.c (generate_prolog_epilog, sms_schedule_by_order):
7332 * stor-layout.c (get_best_mode): Likewise.
7333 * tree-ssa-loop-niter.c (get_val_for): Likewise.
7334 * tree-ssa-structalias.c (get_varinfo, get_varinfo_fc,
7335 scc_visit, do_ds_constraint, do_complex_constraint, label_visit,
7336 perform_var_substitution, solve_graph): Likewise.
7337 * tree-vrp.c (vrp_finalize): Likewise.
7339 2007-02-01 Ian Lance Taylor <iant@google.com>
7341 * lower-subreg.c (simplify_gen_subreg_concatn): If we ask for the
7342 high part of a paradoxical subreg, return a constant zero.
7344 2007-02-01 Zdenek Dvorak <dvorakz@suse.cz>
7346 * toplev.c (lang_dependent_init): Call init_set_costs.
7347 * loop-init.c (loop_optimizer_init): Do not call init_set_costs.
7349 2007-02-01 Richard Guenther <rguenther@suse.de>
7352 * fold-const.c (fold_negate_expr): Allow negating a
7353 constant if overflow does not change.
7355 2007-02-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7357 * doc/c-tree.texi (Expression trees): Improve markup.
7358 * doc/tm.texi (Register Classes, Addressing Modes)
7359 (Floating Point): Fix spacing after abbreviations. Fix some
7362 2007-02-01 Ben Elliston <bje@au.ibm.com>
7364 * doc/invoke.texi: Replace "bugfix" with "bug fix" throughout.
7365 * doc/contrib.texi: Likewise.
7366 * doc/install.texi: Likewise.
7368 2007-01-31 Richard Henderson <rth@redhat.com>
7369 Ian Lance Taylor <iant@google.com>
7371 * lower-subreg.c: New file.
7372 * rtl.def (CONCATN): Define.
7373 * passes.c (init_optimization_passes): Add pass_lower_subreg and
7375 * emit-rtl.c (update_reg_offset): New static function, broken out
7376 of gen_rtx_REG_offset.
7377 (gen_rtx_REG_offset): Call update_reg_offset.
7378 (gen_reg_rtx_offset): New function.
7379 * regclass.c: Revert patch of 2006-03-05, restoring
7381 (clear_reg_info_regno): New function.
7382 * dwarf2out.c (concatn_loc_descriptor): New static function.
7383 (loc_descriptor): Handle CONCATN.
7384 * common.opt (fsplit_wide_types): New option.
7385 * opts.c (decode_options): Set flag_split_wide_types when
7387 * timevar.def (TV_LOWER_SUBREG): Define.
7388 * rtl.h (gen_reg_rtx_offset): Declare.
7389 (reg_scan_update): Declare.
7390 * regs.h (clear_reg_info_regno): Declare.
7391 * tree-pass.h (pass_lower_subreg): Declare.
7392 (pass_lower_subreg2): Declare.
7393 * doc/invoke.texi (Option Summary): List -fno-split-wide-types.
7394 (Optimize Options): Add -fsplit-wide-types to -O1 list. Document
7396 * doc/rtl.texi (Regs and Memory): Document concat and concatn.
7397 * Makefile.in (OBJS-common): Add lower-subreg.o.
7398 (lower-subreg.o): New target.
7400 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
7402 * config/sh/sh.h (HAVE_SECONDARY_RELOADS): Remove.
7404 2007-01-31 Anatoly Sokolov <aesok@post.ru>
7407 * config/avr/avr.c (DWARF2_ADDR_SIZE): Define.
7409 2007-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7412 * builtins.c (fold_builtin_sqrt): Use MPFR for constant args.
7414 2007-01-31 Zdenek Dvorak <dvorakz@suse.cz>
7416 * cfgloop.h: Include vec-prim.h.
7417 (enum li_flags): Remove LI_ONLY_OLD.
7418 (loop_iterator): Changed.
7419 (fel_next, fel_init): Iterate over loop tree.
7420 (FOR_EACH_LOOP_BREAK): New macro.
7421 * loop-unswitch.c (unswitch_loops): Do not pass LI_ONLY_OLD to
7423 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Ditto.
7424 * modulo-sched.c (sms_schedule): Ditto.
7425 * tree-vectorizer.c (vectorize_loops): Ditto.
7426 * doc/loop.texi: Update information on loop numbering and behavior of
7427 FOR_EACH_LOOP wrto new loops.
7428 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
7429 add_to_evolution_1): Test nestedness of loops instead of comparing
7431 * tree-chrec.c (chrec_fold_plus_poly_poly,
7432 chrec_fold_multiply_poly_poly, chrec_evaluate,
7433 hide_evolution_in_other_loops_than_loop, chrec_component_in_loop_num,
7434 reset_evolution_in_loop): Ditto.
7435 * Makefile.in (CFGLOOP_H): Add vecprim.h dependency.
7437 2007-01-31 Dirk Mueller <dmueller@suse.de>
7439 * c-common.c (warn_about_parentheses): Separate warning about
7440 un-parenthized sequence of comparison operators from the one
7441 which is supposed to warn about x <= y <= z.
7443 2007-01-31 Uros Bizjak <ubizjak@gmail.com>
7445 * optabs.h (enum optab_index): Add new OTI_isinf.
7446 (isinf_optab): Define corresponding macro.
7447 * optabs.c (init_optabs): Initialize isinf_optab.
7448 * genopinit.c (optabs): Implement isinf_optab using isinf?f2
7450 * builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
7451 (expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
7453 (expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
7454 expand_builtin_interclass_mathfn.
7455 * reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
7456 * config/i386/i386.md (UNSPEC_FXAM): New constant.
7457 (fxam<mode>2_i387): New insn pattern.
7458 (isinf<mode>2) New expander to implement isinf, isinff and isinfl
7459 built-in functions as x87 inline asm.
7461 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
7463 * gcc/config/arm/unwind-arm.h (_sleb128_t, _uleb128_t): New.
7465 2007-01-30 Eric Christopher <echristo@apple.com>
7467 * config.gcc: Add geode.
7469 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
7471 * cgraphunit.c, config/arm/arm.c, config/m68k/m68k.c,
7472 ipa-inline.c, tree-profile.c, tree-ssa-live.c,
7473 tree-ssa-math-opts.c, tree-ssanames.c, tree-vect-analyze.c,
7474 value-prof.c: Fix comment typos.
7476 2007-01-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7479 * doc/invoke.texi (Wpointer-arith): Document warning.
7481 2007-01-30 Janis Johnson <janis187@us.ibm.com>
7483 * doc/extend.texi (Decimal Floating Types): Remove decfloat.h from
7484 the list of discrepancies from the draft TR.
7486 2007-01-30 Dirk Mueller <dmueller@suse.de>
7489 * doc/invoke.texi (-Wreturn-type): Update description to
7492 2007-01-30 Richard Sandiford <richard@codesourcery.com>
7494 * cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
7496 2007-01-30 Uros Bizjak <ubizjak@gmail.com>
7498 * builtins.c (expand_builtin_int_interclass_roundingfn): New function
7499 to handle optabs that operate on floating point input argument and
7500 output to integer output.
7501 (expand_builtin_mathfn) [BUILT_IN_ILOGB]: Move from here ...
7502 (expand_builtin_interclass_mathfn) [BUILT_IN_ILOGB]: ... to here.
7503 (expand_builtin): Expand BUILT_IN_ILOGB{,F,L} using
7504 expand_builtin_interclass_mathfn ().
7505 * config/i386/i386.md (fxtractxf3_i387): Rename from *fxtractxf3_i387.
7507 (ilogbxf2, ilogb<mode>2): New expanders to implement ilogb, ilogbf and
7508 ilogbl built-in functions as x87 intrinsics.
7510 2007-01-30 Richard Guenther <rguenther@suse.de>
7513 * dwarf2out.c (reference_to_unused): Query varpool if the
7514 variable was output.
7516 2007-01-30 Richard Guenther <rguenther@suse.de>
7519 * passes.c (execute_one_pass): Reset in_gimple_form to not
7520 confuse non-unit-at-a-time mode.
7522 2007-01-29 Roger Sayle <roger@eyesopen.com>
7523 Richard Guenther <rguenther@suse.de>
7525 * fold-const.c (round_up): Make HIGH an unsigned HOST_WIDE_INT to
7526 avoid undefined behaviour on overflow. Use force_fit_type_double
7527 to construct the constant with the specified TREE_OVERFLOW.
7529 2007-01-29 Janis Johnson <janis187@us.ibm.com>
7531 * config/dfp-bit.c: Add parameterized support for fp exceptions.
7532 * config/dfp-bit.h: Ditto.
7534 2007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7536 * c-decl.c (pop_scope): Replace warnings with call to
7537 warn_for_unused_label.
7538 * c-common.h (warn_for_unused_label): Declare.
7539 * c-common.c (warn_for_unused_label): Define.
7541 2007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7543 * tree-optimize.c (update_inlined_to_pointers): Delete unused
7546 2007-01-29 Janis Johnson <janis187@us.ibm.com>
7548 * Makefile.in (USER_H): Remove decfloat.h.
7549 * ginclude/decfloat.h: Delete, moving contents to ...
7550 * ginclude/float.h: Add support for decimal floating point,
7551 guarded by __STDC_WANT_DEC_FP__.
7553 2007-01-29 Mike Stump <mrs@apple.com>
7555 * doc/gccint.texi (Top): Rename Loop Representation to Loop
7556 Analysis and Representation to resolve case insensitive conflict.
7557 * doc/loop.texi (Loop Analysis and Representation): Likewise.
7559 2007-01-28 Daniel Berlin <dberlin@dberlin.org>
7561 * tree.h (struct tree_memory_tag): Add aliases member.
7562 (MTAG_ALIASES): New macro.
7563 * tree-ssa-alias.c (alias_bitmap_obstack): New variable.
7564 (add_may_alias): Remove pointer-set. Update for may_aliases being
7566 (mark_aliases_call_clobbered): Update for may_aliases being a
7568 (compute_tag_properties): Ditto.
7569 (create_partition_for): Ditto.
7570 (compute_memory_partitions): Ditto.
7571 (dump_may_aliases_for): Ditto.
7572 (is_aliased_with): Ditto.
7573 (add_may_alias_for_new_tag): Ditto.
7574 (rewrite_alias_set_for): Rewrite for may_aliases being a bitmap.
7575 (compute_is_aliased): New function.
7576 (compute_may_aliases): Call compute_is_aliased).
7577 (init_alias_info): Initialize alias_bitmap_obstack.
7578 (union_alias_set_into): New function.
7579 (compute_flow_sensitive_aliasing): Use union_aliases_into.
7580 (have_common_aliases_p): Rewrite to take two bitmaps and use
7582 (compute_flow_insensitive_aliasing): Stop using pointer-sets.
7584 (finalize_ref_all_pointers): Update for add_may_alias changes.
7585 (new_type_alias): Ditto.
7586 * tree-flow-inline.h (may_aliases): Return a bitmap.
7587 * tree-dfa.c (dump_variable): Check for MTAG_P'ness.
7588 * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
7589 may_aliases being a bitmap.
7590 * tree-flow.h (struct var_ann_d): Remove may_aliases member.
7591 may_aliases now returns a bitmap.
7592 * tree-ssa-structalias.c (merge_smts_into): Update for may_aliases
7594 * tree-ssa-operands.c (add_virtual_operand): Update for
7595 may_aliases being a bitmap.
7597 2007-01-29 Daniel Berlin <dberlin@dberlin.org>
7599 PR tree-optimization/30630
7600 * tree-ssa-structalias.c (do_complex_constraint): Mark correct
7601 variable as changed.
7603 2007-01-29 Simon Martin <simartin@users.sourceforge.net>
7606 * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
7607 expanded only once even if an error occurs.
7609 2007-01-29 Ben Elliston <bje@au.ibm.com>
7611 * gcov-io.h (__gcov_indirect_call_profiler): Declare.
7612 (__gcov_average_profiler): Likewise.
7613 (__gcov_ior_profiler): Likewise.
7614 (__gcov_merge_ior): Likewise.
7616 2007-01-28 Jan Hubicka <jh@suse.cz>
7618 * builtins.c (expand_builtin_memset): Fix typo in my last patch.
7619 * value-prof.c (stringop_block_profile): Likewise.
7621 2007-01-28 Jan Hubicka <jh@suse.cz>
7623 * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall): Add
7624 variant handling histograms; add wrapper.
7625 (clear_storage_via_libcall): Export.
7626 (emit_block_move_hints): Break out from ...; add histograms.
7627 (emit_block_move): ... this one.
7628 (clear_storage_hints): Break out from ...; add histograms.
7629 (clear_storage): ... this one.
7630 (set_storage_via_memset): Handle histogram.
7631 * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
7632 (clear_storage_hints, clear_storage_via_libcall): Declare.
7633 (set_storage_via_setmem): Update prototype.
7634 * doc/md.texi (movmem, setmem): Document new arguments.
7636 * value-prof.c (dump_histogram_value, tree_find_values_to_profile): Add
7638 (stringop_block_profile): New global function.
7639 (tree_stringops_values_to_profile): Profile block size and alignment.
7640 * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
7642 (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
7643 (stringop_block_profile): Declare.
7644 * builtins.c: Include value-prof.h.
7645 (expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
7646 * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
7647 (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
7648 (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
7649 * profile.c (instrument_values): Add new counters.
7650 * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
7652 * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
7653 (tree_init_edge_profiler): Build new profilers.
7654 (tree_gen_average_profiler, tree_gen_ior_profiler): New.
7655 (pass_tree_profile): Add dump.
7656 (tree_profile_hooks): Update.
7657 * Makefile.in (LIBGCOV): Add new constants.
7658 * libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
7659 __gcov_ior_profiler): New.
7660 * i386.md (movmem/setmem expanders): Add new optional arguments.
7662 2007-01-28 David Edelsohn <edelsohn@gnu.org>
7664 * doc/md.texi (Standard Pattern Names): Document blockage pattern.
7666 2007-01-28 Zdenek Dvorak <dvorakz@suse.cz>
7668 * tree-ssa-loop-unswitch.c: Include tree-inline.h.
7669 (tree_unswitch_single_loop): Pass eni_size_weights to
7670 tree_num_loop_insns.
7671 * tree-ssa-loop-manip.c: Include tree-inline.h.
7672 (can_unroll_loop_p): Pass eni_size_weights to
7673 tree_num_loop_insns.
7674 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
7675 Pass eni_size_weights to estimate_num_insns.
7676 * tree.h (init_inline_once): Export.
7677 * toplev.c (backend_init): Call init_inline_once.
7678 * cgraphunit.c (cgraph_process_new_functions,
7679 cgraph_analyze_function): Pass eni_inlining_weights to
7681 * ipa-inline.c (compute_inline_parameters): Ditto.
7682 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
7683 to estimate_num_insns.
7684 (try_unroll_loop_completely): Pass eni_size_weights to
7685 tree_num_loop_insns.
7686 * tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
7687 ot estimate_num_insns.
7688 * tree-ssa-loop-prefetch.c: Include tree-inline.h.
7689 (loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
7690 * tree-inline.c (eni_inlining_weights, eni_size_weights,
7691 eni_time_weights): New variables.
7692 (init_inline_once): Initialize them.
7693 (struct eni_data): Mew.
7694 (estimate_num_insns_1, estimate_num_insns): Use weights.
7695 * tree-inline.h (struct eni_weights_d): New.
7696 (eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
7697 (estimate_num_insns): Declaration changed.
7698 * cfgloop.h (tree_num_loop_insns): Declaration changed.
7699 * Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
7700 tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
7702 2007-01-28 Zdenek Dvorak <dvorakz@suse.cz>
7704 * tree-data-ref.c (conflict_fn): Assert that the number of affine
7705 relations in the conflict function is valid.
7707 2007-01-27 Ian Lance Taylor <iant@google.com>
7709 * common.opt: Add fstrict-overflow.
7710 * opts.c (decode_options): Set flag_strict_overflow if -O2.
7711 * flags.h (TYPE_OVERFLOW_WRAPS): Define.
7712 (TYPE_OVERFLOW_UNDEFINED): Define.
7713 (TYPE_OVERFLOW_TRAPS): Define. This replaces TYPE_TRAP_SIGNED.
7715 * tree.h (TYPE_TRAP_SIGNED): Don't define.
7716 * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
7717 (fold_negate_expr): Likewise.
7718 (make_range): Likewise.
7719 (extract_muldiv_1): Likewise.
7720 (maybe_canonicalize_comparison): Likewise.
7721 (fold_comparison): Likewise.
7722 (fold_binary): Likewise.
7723 (tree_expr_nonnegative_p): Likewise.
7724 (tree_expr_nonzero_p): Likewise.
7725 * tree-vrp.c (compare_values): Likewise.
7726 (extract_range_from_binary_expr): Likewise.
7727 (extract_range_from_unary_expr): Likewise.
7728 * tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
7730 (nowrap_type_p): Likewise.
7731 * tree-scalar-evolution.c (simple_iv): Likewise.
7732 * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
7733 (build_range_check): Likewise.
7734 (extract_muldiv_1): Likewise.
7735 (fold_comparison): Likewise.
7736 * tree-vrp.c (vrp_int_const_binop): Likewise.
7737 (extract_range_from_unary_expr): Likewise.
7738 * convert.c (convert_to_integer): Likewise.
7739 * fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
7740 (fold_comparison): Likewise.
7741 (fold_binary): Likewise.
7742 * optabs.c (optab_for_tree_code): Likewise.
7743 * tree-vectorizer.c (vect_is_simple_reduction): Likewise.
7744 * simplify-rtx.c (simplify_const_relational_operation): Check
7745 flag_strict_overflow and flag_trapv.
7746 (simplify_const_relational_operation): Likewise.
7747 * doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
7748 (Optimize Options): Add -fstrict-overflow to -O2 list. Document
7751 2007-01-27 Roger Sayle <roger@eyesopen.com>
7753 * tree.c (tree_fold_gcd): Delete.
7754 * tree.h (tree_fold_gcd): Remove prototype.
7755 * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
7756 test whether one constant integer is a multiple of another. Instead
7757 call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
7758 * fold-const.c (multiple_of_p): We've determined both TOP and
7759 BOTTOM are integer constants so we can call int_const_binop directly
7760 instead of the more generic const_binop.
7762 2007-01-27 Roger Sayle <roger@eyesopen.com>
7764 * fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
7765 1*X check that the constant hasn't overflowed, to preserve the
7767 (round_up): Provide an efficient implementation when rouding-up an
7768 INTEGER_CST to a power-of-two.
7770 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7772 * doc/sourcebuild.texi: Add comma for clarity.
7773 * doc/extend.texi: Fix some typos.
7774 * doc/passes.texi: Likewise.
7775 * doc/cppinternals.texi: Likewise.
7776 * doc/c-tree.texi: Likewise.
7777 * doc/tree-ssa.texi: Likewise.
7778 * doc/install.texi: Likewise.
7780 2007-01-27 Jan Hubicka <jh@suse.cz>
7782 * tree-sra.c (sra_walk_function): Don't rely on aliases being build.
7783 (pass_sra): Do not require alias information.
7784 * passes.c (init_optimization_passes): Add SRA
7786 2007-01-27 Steven Bosscher <steven@gcc.gnu.org>
7788 * tracer.c (rest_of_handle_tracer): We already cleaned
7789 up the CFG in tracer() so don't do it here again.
7790 * cfgcleanup.c (rest_of_handle_jump2): Don't repeat
7791 cleanup_cfg here, either. And don't call renumber_insns.
7793 * cfgrtl.c (rtl_verify_flow_info_1): Don't verify that BB_END
7794 and BB_HEAD are in the insn stream here. Instead make sure
7795 that BB_INSN is valid on all insns. Also, do check here that
7796 there are no pending branch predictions...
7797 (rtl_verify_flow_info): ...instead of doing it here. Checks
7798 for BB_END and BB_HEAD moved from rtl_verify_flow_info_1 to
7801 2007-01-26 Roger Sayle <roger@eyesopen.com>
7803 * config/i386/i386.c (ix86_swap_binary_operands_p): New helper
7804 function to simplify/factorize operand order canonicalization.
7805 (ix86_fixup_binary_operands): Reorganize using the above function.
7806 (ix86_binary_operator_ok): Likewise.
7808 2007-01-27 Jakub Jelinek <jakub@redhat.com>
7810 * genattrtab.c (struct attr_value_list, insn_code_values): Move to
7811 file scope from optimize_attrs.
7812 (simplify_test_exp): If insn_code_values is not NULL, use it to speed
7814 (optimize_attrs): Clear insn_code_values after freeing it.
7816 2007-01-26 Zdenek Dvorak <dvorakz@suse.cz>
7818 * tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
7819 a parts.base assignment.
7821 2007-01-26 Zdenek Dvorak <dvorakz@suse.cz>
7823 * tree-data-ref.c (dump_subscript): Use dump_conflict_function.
7824 (compute_subscript_distance, initialize_data_dependence_relation,
7825 finalize_ddr_dependent, analyze_ziv_subscript,
7826 analyze_siv_subscript_cst_affine,
7827 compute_overlap_steps_for_affine_univar,
7828 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
7829 analyze_siv_subscript, analyze_miv_subscript,
7830 analyze_overlapping_iterations, subscript_dependence_tester_1,
7831 compute_self_dependence, free_dependence_relation): Work
7832 with affine_fn instead of chrecs.
7833 (dump_affine_function, dump_conflict_function, affine_function_equal_p,
7834 common_affine_function, affine_function_base,
7835 affine_function_constant_p, affine_fn_op, affine_fn_plus,
7836 affine_fn_minus, affine_fn_free, conflict_fn_not_known,
7837 conflict_fn_no_dependence, free_conflict_function, free_subscripts,
7838 conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
7839 (all_chrecs_equal_p): Removed.
7840 * tree-data-ref.h (affine_fn, conflict_function): New types.
7841 (struct subscript): Change type of conflicting_iterations_in_a
7842 and conflicting_iterations_in_b.
7844 2007-01-26 Steve Ellcey <sje@cup.hp.com>
7847 * config/pa/pa.h (TARGET_HPUX_11): New.
7848 * config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
7849 * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
7851 2007-01-26 Daniel Berlin <dberlin@dberlin.org>
7852 Richard Guenther <rguenther@suse.de>
7854 * tree-ssa-structalias.c (solve_graph): Handle case
7855 we merged the variable to another.
7857 2007-01-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7859 * builtins.c (fold_builtin_1): Treat ccos and ccosh as 'even'
7862 * fold-const.c (negate_mathfn_p): Treat casin, casinh, catan,
7863 catanh, cproj, csin, csinh, ctan and ctanh as 'odd' functions.
7865 2007-01-25 DJ Delorie <dj@redhat.com>
7867 * config/m32c/m32c.c (m32c_cannot_change_mode_class): We don't
7868 allow changes to modes which don't fit in those registers.
7870 * reload1.c (choose_reload_regs): Check for invalid subregs before
7871 computing their locations, not after.
7873 2007-01-25 Geoffrey Keating <geoffk@apple.com>
7876 * config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
7877 save Altivec registers in an eh_return function.
7878 (compute_vrsave_mask): Likewise.
7879 (rs6000_stack_info): Correct AIX/Darwin stack alignment computation
7880 for saving Altivec registers.
7881 (rs6000_emit_prologue): Don't allocate stack twice in
7882 eh_return function. Correct expected value of altivec_save_offset
7883 when using save_world. Describe save of R0 to stack when using
7884 save_world. Describe stack pointer adjustment when using
7885 save_world. Remove duplicated eh_return parameter register saving.
7886 Update sp_offset variable after save_world.
7887 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
7889 (LIB2FUNCS_EXTRA): Add darwin-world.asm.
7890 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
7893 2007-01-25 Steve Ellcey <sje@cup.hp.com>
7895 * config.gcc (ia64*-*-hpux*): Make posix threads the default.
7897 2007-01-25 Steve Ellcey <sje@cup.hp.com>
7900 * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines.
7901 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
7903 2007-01-25 Richard Guenther <rguenther@suse.de>
7905 * doc/invoke.texi (-Wcoverage-mismatch): Document.
7906 * common.opt (-Wcoverage-mismatch): New warning option.
7907 * coverage.c (get_coverage_counts): Ignore coverage mismatch
7908 if -Wcoverage-mismatch is given.
7910 2007-01-25 Razya Ladelsky <razya@il.ibm.com>
7912 * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
7913 (ipcp_driver): Change to static definition.
7914 Add dumping of the ifunctions.
7915 (constant_val_insert): Remove unused parameter. Support for SSA.
7916 (ipcp_propagate_const): Support for SSA.
7917 (ipcp_profile_bb_print): Print only analyzed nodes.
7918 (ipcp_replace_map_create): Remove support for Fortran constant
7920 * ipa-prop.c (ipa_method_modify_stmt,
7921 ipa_callsite_compute_param): Support for SSA.
7922 * ipa-prop.h (ipcp_driver): Remove declaration.
7923 (IS_VALID_TREE_MAP_INDEX): Add define.
7925 2007-01-24 Geoffrey Keating <geoffk@apple.com>
7927 * unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
7929 2007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7932 * builtins.c (fold_builtin_cabs): Use MPFR to evaluate a
7933 constant argument to cabs and do it without checking for
7934 -funsafe-math-optimizations.
7936 2007-01-24 Douglas Gregor <dgregor@osl.iu.edu>
7938 * c-common.h (RID_FIRST_CXX0X): New.
7939 (RID_LAST_CXX0X): New.
7940 * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
7942 * c.opt (Wc++0x-compat): New.
7943 * doc/invoke.texi (-Wc++0x-compat): Document.
7945 2007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7947 * builtins.c (fold_builtin_carg): New.
7948 (fold_builtin_1): Use it.
7950 2007-01-24 Jan Hubicka <jh@suse.cz>
7952 * ipa-inline.c (cgraph_decide_inlining): Initialize initial_insns.
7954 * ipa-inline.c (initial_insns, max_insns): Delete.
7955 (compute_max_insns): New function.
7956 (cgraph_decide_inlining_of_small_function): Use it; take minimal amount
7957 of insns as base for code growth.
7958 (cgraph_decide_inlining): Make initial_insns local; do not compute
7960 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 60.
7961 * doc/invoke.texi (inline-unit-growth): Update docs.
7963 2007-01-24 Jakub Jelinek <jakub@redhat.com>
7965 * config/i386/i386.h (x86_cmpxchg16b): Remove const.
7966 (TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
7967 * config/i386/i386.c (x86_cmpxchg16b): Remove const.
7968 (override_options): Add PTA_CX16 flag. Set x86_cmpxchg16b
7969 for CPUs that have PTA_CX16 set.
7972 * gimplify.c (omp_check_private): New function.
7973 (gimplify_scan_omp_clauses): Use it for
7974 firstprivate/lastprivate/reduction.
7977 * gimplify.c (omp_add_variable): Don't call omp_notice_variable
7978 on TYPE_SIZE_UNIT for GOVD_LOCAL VLAs.
7981 * omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
7982 If lower_lastprivate_clauses emits some statements, append them
7983 to dlist rather than body_p and to body_p append an initializer.
7984 (lower_omp_for): Adjust caller.
7986 2007-01-24 Steve Ellcey <sje@cup.hp.com>
7988 * target.h (globalize_decl_name): New.
7989 * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
7990 * output.h (default_globalize_decl_name): New.
7991 * varasm.c (asm_output_bss): Use globalize_decl_name instead of
7993 (globalize_decl): Ditto.
7994 (default_globalize_decl_name): New.
7995 * config/ia64/ia64.c (ia64_globalize_decl_name): New.
7996 (ia64_handle_version_id_attribute): New.
7997 (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
7998 (ia64_asm_output_external): Use globalize_decl_name instead
8000 * doc/extend.texi (version_id): New pragma.
8001 * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook.
8003 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
8005 * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with
8006 _uleb128_t and _Unwind_SWord with _sleb128_t.
8007 * unwind-dw2.c (extract_cie_info, execute_stack_op, execute_cfa_program,
8008 uw_frame_state_for, uw_update_context_1): Likewise.
8009 * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise.
8010 * unwind-pe.h (read_uleb128, read_sleb128,
8011 read_encoded_value_with_base): Likewise.
8012 * unwind-generic.h: Define _sleb128_t and _uleb128_t types.
8014 2007-01-24 Richard Guenther <rguenther@suse.de>
8016 * builtins.c (expand_builtin_cexpi): Get the fndecl
8017 for cexp in the correct way.
8019 2007-01-24 Jan Hubicka <jh@suse.cz>
8021 * tree-ssa-dce.c (eliminate_unnecesary_stmts): Remove dead LHS of calls.
8023 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
8025 * c-cppbuiltin.c (builtin_define_type_sizeof): New function.
8026 (c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
8027 __SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
8028 __SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
8029 __SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
8030 __SIZEOF_PTRDIFF_T__.
8031 * doc/cpp.texi: Documentation for the new builtin macros added.
8033 2007-01-24 Uros Bizjak <ubizjak@gmail.com>
8035 * config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
8036 log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
8037 instead of operands[2] to avoid access past the end of array.
8039 2007-01-24 Richard Sandiford <richard@codesourcery.com>
8041 * reload1.c (emit_reload_insns): Pass the reload register
8042 for a non-spill output reload through forget_old_reloads_1.
8044 2007-01-23 Joseph Myers <joseph@codesourcery.com>
8046 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
8047 _SOFT_DOUBLE if doubles use software floating-point.
8048 * config/rs6000/libgcc-ppc-glibc.ver: Export additional long
8049 double functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
8050 * config/rs6000/darwin-ldouble.c: Also compile functions for
8051 hard-float without FPRs. Use fmsub function for all __NO_FPRS__
8052 cases. Compile extra functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
8053 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove
8054 commented-out long double override.
8055 (CPP_LONGDOUBLE_DEFAULT_SPEC): Likewise.
8056 * config/rs6000/eabispe.h: Likewise.
8057 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
8058 long double for non-SPE.
8059 (rs6000_handle_option): Likewise.
8060 (invalid_e500_subreg): Disallow more subregs involding DImode,
8061 DFmode, TImode or TFmode.
8062 (rs6000_legitimate_offset_address_p): Check TFmode offsets for
8064 (legitimate_lo_sum_address_p): Also check for TFmode for E500
8066 (rs6000_legitimize_address): Also handle TFmode for E500 double.
8067 (rs6000_legitimize_reload_address): Also handle TFmode for E500
8069 (rs6000_legitimate_address): Also check for TFmode for E500
8071 (rs6000_emit_move): Use DFmode subregs of TFmode for E500 double.
8072 (spe_build_register_parallel): Handle TFmode and TCmode.
8073 (rs6000_spe_function_arg): Handle TFmode and TCmode for E500
8075 (function_arg): Handle TFmode and TCmode for E500 double.
8076 (rs6000_init_libfuncs): Initialize extra libfuncs for soft double
8078 (print_operand): Handle TFmode and TImode for %y.
8079 (rs6000_generate_compare): Handle TFmode comparisons for E500
8081 (spe_func_has_64bit_regs_p): Check for TFmode for E500 double.
8082 (rs6000_function_value): Handle TFmode and TCmode for E500 double.
8083 (rs6000_libcall_value): Handle TFmode and TCmode for E500 double.
8084 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Check for
8085 TFmode for E500 double.
8086 * config/rs6000/rs6000.md (FP): Allow TF for E500 double.
8087 (floatsidf2): Enable for E500 double.
8088 (movtf_softfloat): Use rs6000_nonimmediate_operand.
8089 (extenddftf2): Change to extenddftf2_fprs.
8090 (extenddftf2): Call gen_spe_extenddftf2 or gen_extenddftf2_fprs
8091 depending on TARGET_E500_DOUBLE.
8092 (extendsftf2): Enable for E500 double.
8093 (trunctfdf2): Enable for E500 double.
8094 (trunctfsf2): Change to trunctfsf2_fprs.
8095 (trunctfsf2): Call gen_spe_trunctfsf2 or gen_trunctfsf2_fprs
8096 depending on TARGET_E500_DOUBLE.
8097 (floatsitf2): Enable for E500 double.
8098 (fix_trunctfsi2): Change to fix_trunctfsi2_fprs.
8099 (fix_trunctfsi2): Call gen_spe_fix_trunctfsi2 or
8100 gen_fix_trunctfsi2_fprs depending on TARGET_E500_DOUBLE.
8101 (negtf2): Change to negtf2_internal.
8102 (negtf2): New expander.
8103 (abstf2): Enable for E500 double. Call gen_spe_abstf2_tst,
8104 gen_spe_abstf2_cmp or gen_abstf2_internal depending on
8105 TARGET_E500_DOUBLE and flag_unsafe_math_optimizations.
8106 (movdi_internal32): Use rs6000_nonimmediate_operand.
8107 (unnamed splitter): Likewise.
8108 * config/rs6000/spe.md (CMPTFEQ_GPR, TSTTFEQ_GPR, CMPTFGT_GPR,
8109 TSTTFGT_GPR, CMPTFLT_GPR, TSTTFLT_GPR): New unspecs.
8110 (SPE64TF, DITI): New mode macros.
8111 (frob_df_di): Change to frob_<SPE64:mode>_<DITI:mode>; allow more
8114 (frob_<mode>_di_2): New.
8115 (frob_tf_di_8_2): New.
8116 (frob_di_df): Change to frob_di_<mode>; allow more modes.
8118 (frob_di_df_2): Change to frob_<DITI:mode>_<SPE64:mode>_2; allow
8120 (frob_ti_<mode>_8_2): New.
8121 (frob_ti_tf_2): New.
8122 (mov_si<mode>_e500_subreg0, mov_si<mode>_e500_subreg0_2,
8123 mov_si<mode>_e500_subreg4, mov_si<mode>_e500_subreg4_2): Allow
8125 (mov_sitf_e500_subreg8, mov_sitf_e500_subreg8_2,
8126 mov_sitf_e500_subreg12, mov_sitf_e500_subreg12_2): New.
8127 (spe_trunctfdf2_internal1, spe_trunctfsf2, spe_extenddftf2,
8128 spe_fix_trunctfsi2, spe_fix_trunctfsi2_internal,
8129 spe_negtf2_internal, spe_abstf2_cmp, spe_abstf2_tst): New.
8130 (cmptfeq_gpr, tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr,
8133 2007-01-23 Ian Lance Taylor <iant@google.com>
8135 * Makefile.in (OBJS-common): Reformat, alphabetize, but put
8137 (OBJS-archive): Reformat, alphabetize.
8138 (OBJS): Change out_object_file to OBJS-md.
8140 2007-01-23 Uros Bizjak <ubizjak@gmail.com>
8142 * config/i386/i386.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
8143 JUMP_P and CALL_P predicates where applicable.
8144 * config/i386/i386.c: Ditto.
8145 * config/i386/i386.md: Ditto.
8146 * config/i386/mmx.md: Ditto.
8147 * config/i386/predicates.md: Ditto.
8149 2007-01-22 Andreas Schwab <schwab@suse.de>
8151 * config/m68k/m68k.h: Fix comment.
8153 2007-01-22 Jan Hubicka <jh@suse.cz>
8155 * passes.c (init_optimization_passes): Do not rerun
8156 pass_early_warn_uninitialized.
8158 2007-01-22 Richard Guenther <rguenther@suse.de>
8160 PR tree-optimization/30038
8161 * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
8163 (execute_cse_sincos_1): Likewise.
8164 (execute_cse_sincos): Likewise.
8165 (gate_cse_sincos): Likewise.
8166 (pass_cse_sincos): New pass CSEing sin() and cos() calls using
8167 the cexpi() canonicalization of sincos().
8168 * tree-pass.h (pass_cse_sincos): Declare.
8169 * passes.c (init_optimization_passes): New pass pas_cse_sincos.
8171 2007-01-21 Eric Botcazou <ebotcazou@libertysurf.fr>
8173 PR rtl-optimization/29329
8174 * combine.c (replaced_rhs_insn): Rename to i2mod.
8175 (replaced_rhs_value): Rename to i2mod_new_rhs.
8176 (i2mod_old_rhs): New global variable.
8177 (combine_instructions): Adjust for above change. Save a copy of
8178 the old RHS into i2mod_old_rhs when the contents of a REG_EQUAL
8179 note are substituted in the second instruction.
8180 (distribute_notes) <REG_DEAD>: Adjust for above change. Do not
8181 ditch the note if it pertains to the second eliminated register
8182 and this register is mentioned in i2mod_old_rhs.
8185 2006-09-12 Eric Botcazou <ebotcazou@libertysurf.fr>
8187 * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
8188 the insn to which the note was originally attached.
8190 2007-01-21 Jan Hubicka <jh@suse.cz>
8192 * ipa-inline.c (inlining_mode): Comment, move up.
8193 (cgraph_decide_inlining_incrementally): Do not perform inlining
8194 itself; fix handling of flattening of self recursive functions.
8195 (cgraph_find_cycles): Remove.
8196 (cgraph_flatten_node): Remove.
8197 (cgraph_decide_inlining): Use incremental inliner to handle flattening.
8198 (try_inline): New function.
8199 (cgraph_early_inlining): Update call of
8200 cgraph_decide_inlining_incrementally. Apply inlining here.
8201 (apply_inline): Update call of cgraph_decide_inlining_incrementally.
8203 2007-01-21 Dirk Mueller <dmueller@suse.de>
8206 * tree-vrp.c (check_array_bounds): do not warn
8207 about ADDR_EXPR's of ARRAY_REF's which are immediately
8208 used in binary expressions.
8210 2007-01-21 Ira Rosen <irar@il.ibm.com>
8212 * tree-vectorizer.h (struct _stmt_vec_info): Add new field
8213 read_write_dep and macros for its access.
8214 * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
8215 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Remove
8216 argument, call vect_check_interleaving for every independent pair of
8217 data-refs. Mark loads that access the same memory location as a store
8219 (vect_check_dependences): Remove.
8220 (vect_analyze_data_ref_dependences): Remove vect_check_dependences
8221 call, fix the call to vect_analyze_data_ref_dependence.
8222 (vect_analyze_data_ref_access): For statements that access the same
8223 data-ref, check that they are not stores; for loads, check that there
8224 is no store that access the same location.
8226 2007-01-20 Roger Sayle <roger@eyesopen.com>
8227 Joseph Myers <joseph@codesourcery.com>
8229 * doc/invoke.texi (-fdump-rtl-combine): Fix under/overfull hbox.
8230 (-fdump-rtl-stack): Likewise.
8231 (-fno-signed-zeros): Use @minus{} for a minus sign. Correct typo.
8232 (-mcheck-zero-division, -mcpu): Fix under/overfull hbox.
8233 (-mpt-fixed): Use @minus{} for minus sign.
8234 (Using Precompiled Headers): Fix under/overfull hbox.
8236 2007-01-20 Jan Hubicka <jh@suse.cz>
8238 * tree-flow.h (struct stmt_ann_d): Move references_memory to proper
8239 place within annotation.
8241 2007-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8243 * pa.c (output_move_double): Change array size of xoperands to 4.
8245 2007-01-20 Jan Hubicka <jh@suse.cz>
8247 * tree-tailcall.c (adjust_return_value): Do not use RESULT_DECL
8250 2007-01-19 Ian Lance Taylor <iant@google.com>
8252 * expmed.c (expand_divmod) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]: Cast
8253 constant to unsigned HOST_WIDE_INT before negating.
8255 2007-01-19 Ian Lance Taylor <iant@google.com>
8257 * tree-ssa-operands.h (struct vuse_vec_d): Change num_vuse field
8259 (VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Use unsigned comparison.
8260 (VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
8261 (SET_VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Likewise.
8262 (SET_VUSE_ELEMENT_VAR) [ENABLE_CHECKING]: Likewise.
8263 (SET_VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
8264 (realloc_vdef, realloc_vuse): Change second parameter to
8266 (ssa_operand_iterator_d): Change vuse_index and mayuse_index
8268 * tree-ssa-operands.c (realloc_vop): Change num_elem parameter to
8269 unsigned. Change x and lim locals to unsigned.
8270 (realloc_vdef, realloc_vuse): Change num_elem parameter to
8272 (finalize_ssa_vuse_ops): Change old_i local to unsigned.
8273 (copy_virtual_operands): Change i and n locals to unsigned.
8275 2007-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8278 * builtins.c (fold_builtin_1): Handle builtin fdim.
8280 2007-01-20 Jan Hubicka <jh@suse.cz>
8282 * tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
8283 * tree-ssa-structalias.c (compute_points_to_sets): Do call
8284 init_alias_heapvars.
8285 (init_alias_heapvars): Initialize only when not already initialized.
8286 (delete_alias_heapvars): Set heapvar_for_stmt to NULL.
8288 2007-01-19 Roger Sayle <roger@eyesopen.com>
8290 * common.opt (fsigned-zeros): New command line option.
8291 * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead
8292 of flag_unsafe_math_optimizations.
8293 * opts.c (set_fast_math_flags): The -ffast-math command line option
8294 implies -fno-signed-zeros.
8295 (fast_math_flags_set_p): Likewise.
8297 * doc/invoke.texi: Document new -fno-signed-zeros option, and update
8298 the documentation of -ffast-math appropriately. Wrap long lines.
8300 2007-01-19 Steve Ellcey <sje@cup.hp.com>
8302 * system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
8303 * varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.
8305 2007-01-19 Tomas Bily <tbily@suse.cz>
8307 * cgraphunit.c (cgraph_finalize_function): Updating of pid
8309 (tree_init_ic_make_global_vars): New function
8310 (tree_init_edge_profiler): call of tree_init_ic_make_global_vars
8311 (tree_gen_ic_profiler): New function
8312 (tree_gen_ic_func_profiler): New function
8313 (tree_profiling): Added calling of tree_gen_ic_func_profiler
8314 (tree_profile_hooks): Added hook for indirec/virtual calls
8315 * value-prof.c (tree_find_values_to_profile): New case for
8317 (tree_values_to_profile): Call for determining indirect/virtual
8319 (tree_indirect_call_to_profile): New function
8320 (tree_ic_transform): New function
8321 (tree_ic): New function
8322 (find_func_by_pid): New function
8323 (init_pid_map): New function
8324 (tree_value_profile_transformations): Added check for
8325 indirect/virtual call transformation
8326 * value-prof.h (enum hist_type): New counter type for
8327 indirect/virtual calls
8328 (profile_hooks): Added new hook for profiling indirect/virtual
8330 * profile.c (instrument_values): New case for indirect/virtual
8332 * gcov-io.h (GCOV_LAST_VALUE_COUNTER): Changed to 6
8333 (GCOV_COUNTER_V_INDIR): New counter type
8334 (GCOV_COUNTER_NAMES): New name of counter "indirect" added
8335 (GCOV_MERGE_FUNCTIONS): New merge function for indirect/virtual
8337 * cgraph.c: Definition of cgraph_max_pid
8338 (cgraph_create_node): Default init of pid attribute
8339 * cgraph.h: Declaration of cgraph_max_pid
8340 (struct cgraph_node): Added pid attribute
8341 * libgcov.c (__gcov_indirect_call_profiler): New function
8342 (__gcov_one_value_profiler_body): New function
8343 (__gcov_one_value_profiler): Body was moved to
8344 __gcov_one_value_profiler_body and calls it
8346 2007-01-19 Basile Starynkevitch <basile@starynkevitch.net>
8348 * doc/gty.texi (Options): Document the mark_hook option to GTY.
8349 * gengtype.c (write_types_data, write_func_for_structure,
8350 write_types, ggc_wtd, pch_wtd): Add skip_hooks to
8351 write_types_data, ggc_wtd, pch_wtd for processing mark_hook.
8352 (walk_type, write_func_for_structure): Generate the mark_hook if
8355 2007-01-19 Jan Hubicka <jh@suse.cz>
8357 * ipa-inline.c (cgraph_decide_inlining_incrementally): Instead of
8358 'early' argument take inlining mode argument specifying whether to
8359 inline for size/speeed or all functions; add support for flattening;
8361 (cgraph_early_inlining): Update call of decide_inlining_incrementally.
8363 2007-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8366 * toplev.c (warn_deprecated_use): Use %qD instead of %qs to print
8367 the name of the declared identifier.
8369 2007-01-19 Dirk Mueller <dmueller@suse.de>
8371 * config/i386.h (CONDITIONAL_REGISTER_USAGE): Store
8372 result of PIC_OFFSET_TABLE_REGNUM in temporary variable to avoid
8373 duplicate evaluation.
8375 2007-01-19 Uros Bizjak <ubizjak@gmail.com>
8377 * config/i386/i386.md (acos<mode>2): Rename from acossf2 and acosdf2.
8378 Macroize expander using X87MODEF12 mode macro. Extend operand 1
8379 to XFMode, use acosxf2 and truncate result to requested mode.
8380 Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
8381 (asin<mode>2): Similarly, with asin expanders.
8382 (*fscalexf4_i387): Rename from *fscalexf4.
8383 (expNcorexf3): New expander.
8384 (expxf2, exp10xf2, exp2xf2): Use expNcorexf3 expander.
8385 (exp<mode>2): Rename from expsf2 and expdf2. Macroize expander using
8386 X87MODEF12 mode macro. Extend operand 1 to XFMode, use expxf2 and
8387 truncate result to requested mode. Use SSE_FLOAT_MODE_P to disable
8388 patterns for SSE math.
8389 (exp10<mode>2): Similarly, with exp10 expanders.
8390 (exp2<mode>2): Similarly, with exp2 expanders.
8391 (expm1<mode>2): Similarly, with expm1 expanders.
8392 (ldexp<mode>3): Similarly, with ldexp expanders.
8393 (log<mode>2, log10<mode>2, log2<mode>2, log1p<mode>2, logb<mode>2):
8394 Use gen_truncxf<mode>2_i387_noop to truncate result.
8396 2007-01-19 Richard Sandiford <richard@codesourcery.com>
8398 * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
8399 for ColdFire targets.
8401 2007-01-19 Nathan Sidwell <nathan@codesourcery.com>
8402 Richard Sandiford <richard@codesourcery.com>
8404 * config/m68k/m68k.h (M68K_STATIC_CHAIN_REG_NAME): New macro.
8405 (INITIALIZE_TRAMPOLINE): Use STATIC_CHAIN_REGNUM.
8406 (__transfer_from_trampoline): Use M68K_STATIC_CHAIN_REG_NAME.
8407 * config/m68k/m68kelf.h (STATIC_CHAIN_REGNUM): Override.
8408 (M68K_STATIC_CHAIN_REG_NAME): Likewise.
8409 * config/m68k/netbsd-elf.h (M68K_STATIC_CHAIN_REG_NAME): Likewise.
8411 2007-01-19 Richard Sandiford <richard@codesourcery.com>
8413 * config/m68k/m68k.md (adddi_dilshr32): Rename to...
8414 (*adddi_dilshr32): ...this. Fix formatting. Remove commented-out
8415 non-canonical pattern. Restrict to !TARGET_COLDFIRE.
8416 (*adddi_dilshr32_cf): New pattern.
8417 (adddi3, subdi3): Remove first alternatives.
8419 2007-01-19 Richard Sandiford <richard@codesourcery.com>
8421 * config/m68k/m68k.c (notice_update_cc): If an SFmode move is
8422 implemented using move.l, do not use its cc result for floating-point
8425 2007-01-19 Richard Sandiford <richard@codesourcery.com>
8427 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Stop the 'T' constraint
8428 from accepting 's' constraints if flag_pic.
8430 2007-01-19 Richard Sandiford <richard@codesourcery.com>
8432 * config/m68k/m68k.md (bordered, bunordered, buneq, bunge, bungt)
8433 (bunle, bunlt, bltgt, bordered_rev, bunordered_rev, buneq_rev)
8434 (bunge_rev, bungt_rev, bunle_rev, bunlt_rev, bltgt_rev): Change
8435 condition from TARGET_68881 to TARGET_HARD_FLOAT.
8437 2007-01-19 Sandra Loosemore <sandra@codesourcery.com>
8439 * longlong.h (count_leading_zeros, COUNT_LEADING_ZEROS_0): Add
8440 ColdFire alternatives.
8441 * config/m68k/m68k.h (CLZ_DEFINED_VALUE_AT_ZERO): New macro.
8442 * config/m68k/m68k.md (clzsi2): Define for ColdFire
8443 architectures that support ff1 instruction.
8445 2007-01-19 Richard Sandiford <richard@codesourcery.com>
8446 Julian Brown <julian@codesourcery.com>
8448 * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Add an 'R' case.
8449 * config/m68k/m68k.md (*movsi_cfv4): Fold into...
8450 (*movsi_cf): ...here. Remove unnecessary 'R' from 'Rg'.
8453 2007-01-19 Richard Sandiford <richard@codesourcery.com>
8455 * config/m68k/m68k-protos.h (valid_mov3q_const): Take a HOST_WIDE_INT
8457 (output_move_const_into_data_reg, output_move_simode_const): Delete.
8458 * config/m68k/m68k.c (const_method, const_int_cost): Take a
8459 HOST_WIDE_INT instead of an rtx.
8460 (m68k_rtx_costs): Update call accordingly.
8461 (output_move_const_into_data_reg): Likewise. Fix formatting.
8462 (valid_mov3q_const): Take a HOST_WIDE_INT instead of an rtx.
8464 (output_move_simode_const): Update calls after above changes.
8465 Rework to use automatic variables and predicates like MEM_P.
8466 * config/m68k/m68k.md (pushexthisi_const): Update call to
8469 2007-01-19 Dirk Mueller <dmueller@suse.de>
8471 * tree-ssa-alias.c (perform_var_substitution): Fix typo
8474 2007-01-19 Richard Guenther <rguenther@suse.de>
8476 * builtins.c (expand_builtin_cexpi): Fall back to expanding
8477 via cexp in case sincos is not available.
8479 2007-01-19 Richard Guenther <rguenther@suse.de>
8481 * doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
8482 * defaults.h (TARGET_HAS_SINCOS): Default to off.
8483 * config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
8484 * config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
8485 * config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
8486 * config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
8487 * config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
8488 * config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
8490 2007-01-19 Uros Bizjak <ubizjak@gmail.com>
8492 * config/i386/i386.md (*fpatanxf3_i387, fpatan_extend<mode>xf3_i387):
8494 (atan2sf3_1, atan2df3_1, atan2xf3_1): Remove insn patterns.
8495 (atan2xf3): Directly generate RTL pattern.
8496 (atan2<mode>3): Rename from atan2sf3 and atan2df3 and macroize insn
8497 patterns using X87MODEF12 mode macro. Use fpatan_extend<mode>xf3_i387
8498 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
8499 disable patterns for SSE math.
8500 (atan<mode>2): Rename from atansf2 and atandf2 and macroize insn
8501 patterns using X87MODEF12 mode macro. Use fpatan_extend<mode>xf3_i387
8502 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
8503 disable patterns for SSE math.
8505 2007-01-19 Alexandre Oliva <aoliva@redhat.com>
8507 * libgcc-std.ver: Fix typo in %inherit for GCC_4.3.0.
8509 2007-01-18 Roger Sayle <roger@eyesopen.com>
8511 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a
8512 VIEW_CONVERT_EXPR to the same type as it's operand.
8514 2007-01-18 David Edelsohn <edelsohn@gnu.org>
8516 * config/rs6000/darwin-ldouble.c: Only build _SOFT_FLOAT if
8517 configured for long double 128.
8519 2007-01-18 Mike Stump <mrs@apple.com>
8521 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Fix build
8524 2007-01-18 Michael Meissner <michael.meissner@amd.com>
8526 * i386.c (ix86_compute_frame_layout): Make fprintf's in #if 0 code
8529 2007-01-18 Jan Hubicka <jh@suse.cz>
8531 * tree-ssa-operands.c (vop_free_bucket_size): Never return value
8532 greater than NUM_VOP_FREE_BUCKETS.
8534 2007-01-18 Daniel Berlin <dberlin@dberlin.org>
8536 * tree-ssa-structalias.c: Update comments.
8537 (ptabitmap_obstack): Removed.
8539 (oldpta_obstack): Ditto.
8540 (stats): Add a few members.
8541 (struct variable_info): Remove node, complex, address_taken, and
8542 indirect_target members. Add oldsolution member.
8543 (new_var_info): Do not initialize removed members.
8544 (constraint_expr_type): Remove INCLUDES.
8545 (constraint_graph): Add size, implicit_preds, rep,
8546 indirect_cycles, eq_rep, label, direct_nodes, and complex members.
8547 (FIRST_REF_NODE): New macro.
8548 (LAST_REF_NODE): Ditto.
8549 (FIRST_ADDR_NODE): Ditto.
8550 (find): New function.
8552 (dump_constraint): Do not handle INCLUDES.
8553 (insert_into_complex): Do not insert duplicate constraints.
8554 (condense_varmap_nodes): Renamed and rewritten into ...
8555 (merge_node_constraints): This. Also fix bug in handling of
8556 offseted copy constraints.
8557 (clear_edges_for_node): No longer need to deal with preds at all,
8558 or removing associated preds/succs.
8559 (merge_graph_nodes): Deal with indirect_cycles.
8560 Don't deal with predecessors.
8561 (add_implicit_graph_edge): New function.
8562 (add_pred_graph_edge): Ditto.
8563 (add_graph_edge): Don't deal with predecessors.
8564 (build_constraint_graph): Removed.
8565 (build_pred_graph): New function.
8566 (build_succ_graph): Ditto.
8567 (struct scc_info): Removed in_component. Added roots, dfs, and
8568 node_mapping. Remove visited_index, unification_queue.
8569 (scc_visit): Deal with union-find we do now.
8570 Deal with cycles with REF nodes.
8571 (collapse_nodes): Renamed and rewritten to ...
8572 (unify_nodes): This.
8573 (process_unification_queue): Removed.
8574 (topo_visit): Cleanup
8575 (do_da_constraint): Use find.
8576 (do_sd_constraint): Ditto.
8577 (do_ds_constraint): Ditto.
8578 (do_complex_constraint): Ditto.
8579 (init_scc_info): Update for removed and added members.
8580 (find_and_collapse_graph_cycles): Renamed and rewritten into ...
8581 (find_indirect_cycles): This.
8582 (equivalence_class): New variable.
8583 (label_visit): New function.
8584 (perform_variable_substitution): Rewritten.
8585 (free_var_substitution_info): New function.
8586 (find_equivalent_node): Ditto.
8587 (move_complex_constraints): Ditto.
8588 (eliminate_indirect_cycles): Ditto.
8589 (solve_graph): Only propagate changed bits.
8590 Use indirect cycle elimination.
8592 (tree_id_t): Rename to tree_vi_t, delete id member, add vi member.
8593 (tree_id_eq): Renamed to ...
8594 (tree_vi_eq): This. Update for member change
8595 (insert_id_for_tree): Renamed and rewritten to ...
8596 (insert_vi_for_tree): This.
8597 (lookup_id_for_tree): Renamed and rewritten to ...
8598 (lookup_vi_for_tree): This.
8599 (get_id_for_tree): Renamed and rewritten to ...
8600 (get_vi_for_tree): Ditto.
8601 (get_constraint_exp_from_ssa_var): Update to use get_vi_for_tree.
8602 (process_constraint): Don't handle INCLUDES.
8603 Remove special ADDRESSOF case.
8604 (find_func_aliases): Rewrite to use vi functions instead of id
8606 (create_function_info_for): Ditto.
8607 (create_variable_info_for): Ditto.
8608 (intra_create_variable_infos): Ditto.
8609 (merge_smts_into): Ditto.
8610 (find_what_p_points_to): Ditto.
8611 (init_base_vars): Ditto.
8612 (init_alias_vars): Ditto.
8613 (remove_preds_and_fake_succs): New function.
8614 (dump_sa_points_to_info): Dump new stats.
8615 (dump_solution_for_var): Use find.
8616 (set_used_smts): Fix formatting.
8617 (compute_points_to_sets): Updated for new functions.
8618 (ipa_pta_execute): Ditto.
8620 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
8621 Richard Sandiford <richard@codesourcery.com>
8623 * doc/tm.texi (TARGET_FUNCTION_VALUE): Expand documentation of
8625 * calls.c (expand_call): If the return value is a PARALLEL,
8626 extract its first member.
8627 * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Remove.
8628 * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
8629 use FUNCTION_EXTRA_EPILOGUE.
8630 (m68k_function_value): Return a PARALLEL if the return value
8631 is of a pointer type.
8632 * config/m68k/netbsd-elf.h (current_function_returns_pointer)
8633 (FUNCTION_EXTRA_EPILOGUE): Remove.
8634 * config/m68k/m68k.md (D0_REG): New constant.
8636 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
8638 * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
8639 output a NOP for empty epilogues.
8641 2007-01-18 Richard Sandiford <richard@codesourcery.com>
8643 * config/m68k/m68k.c (m68k_use_return_insn): Update comments
8644 before function. Extend register save check to include all
8645 registers, not just integer ones.
8647 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
8649 * config/m68k/m68k-protos.h (use_return_insn): Rename to...
8650 (m68k_use_return_insn): ...this.
8651 * config/m68k/m68k.h (USE_RETURN_INSN): Delete.
8652 * config/m68k/m68k.c (use_return_insn): Rename to...
8653 (m68k_use_return_insn): ...this.
8654 * config/m68k/m68k.md (return): Use m68k_use_return_insn instead
8657 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
8659 * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
8660 nearest even, fix denormal rounding overflow.
8662 2007-01-18 Richard Sandiford <richard@codesourcery.com>
8664 * config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
8665 f%$smove and f%$move.
8666 (movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
8667 (extendsfdf2_cf): Use fdmove instead of f%&move.
8668 (truncdfsf2_cf): Use fsmove instead of f%$smove.
8669 (add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.
8671 2007-01-18 Richard Sandiford <richard@codesourcery.com>
8673 * config/m68k/m68k.md (movdf_cf_hard): Use output_move_double for
8676 2007-01-18 Richard Sandiford <richard@codesourcery.com>
8678 * real.h (real_format): Add a canonical_nan_lsbs_set field.
8679 (coldfire_single_format): Declare.
8680 (coldfire_double_format): Likewise.
8681 * real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
8682 of qnan_msb_set to determine the lower bits of a canonical
8684 (encode_ieee_double): Likewise.
8685 (encode_ieee_quad): Likewise.
8686 (ieee_single_format): Initialize canonical_nan_lsbs_set.
8687 (mips_single_format): Likewise.
8688 (ieee_double_format): Likewise.
8689 (mips_double_format): Likewise.
8690 (ieee_extended_motorola_format): Likewise.
8691 (ieee_extended_intel_96_format): Likewise.
8692 (ieee_extended_intel_128_format): Likewise.
8693 (ieee_extended_intel_96_round_53_format): Likewise.
8694 (ibm_extended_format): Likewise.
8695 (mips_extended_format): Likewise.
8696 (ieee_quad_format): Likewise.
8697 (mips_quad_format): Likewise.
8698 (vax_f_format): Likewise.
8699 (vax_d_format): Likewise.
8700 (vax_g_format): Likewise.
8701 (i370_single_format): Likewise.
8702 (i370_double_format): Likewise.
8703 (decimal_single_format): Likewise.
8704 (decimal_double_format): Likewise.
8705 (decimal_quad_format): Likewise.
8706 (c4x_single_format): Likewise.
8707 (c4x_extended_format): Likewise.
8708 (real_internal_format): Likewise.
8709 (coldfire_single_format): New real_format.
8710 (coldfire_double_format): Likewise.
8711 * config/pdp11/pdp11.c (pdp11_f_format): Initialize
8712 canonical_nan_lsbs_set.
8713 (pdp11_d_format): Likewise.
8714 * config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
8715 if TARGET_COLDFIRE_CPU.
8717 2007-01-18 Richard Sandiford <richard@codesourcery.com>
8719 * config/m68k/m68k-protos.h (m68k_output_pic_call): Delete.
8720 (output_call, m68k_legitimize_call_address): Declare.
8721 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Remove unnecessary
8722 parenthesees. Add support for a 'W' constraint.
8723 (LEGITIMATE_PIC_OPERAND_P): Remove SYMBOL_REF_FLAG handling.
8724 (PRINT_OPERAND_PUNCT_VALID_P): Remove comment about 'o'.
8725 (m68k_symbolic_call, m68k_symbolic_jump): Declare.
8726 * config/m68k/m68k.c (m68k_symbolic_call, m68k_symbolic_jump): New
8728 (override_options): Initialize them. Do not set flag_no_function_cse
8729 for TARGET_ID_SHARED_LIBRARY.
8730 (m68k_output_pic_call): Delete.
8731 (m68k_legitimize_call_address): New function.
8732 (print_operand): Remove the %o prefix. Handle the %p prefix.
8733 (output_call): New function.
8734 (m68k_output_mi_thunk): Use m68k_symbolic_jump. Always load the
8735 target address from the GOT if symbolic jumps are not allowed.
8736 * config/m68k/m68k.md (call, general_operand): Do not set
8737 SYMBOL_REF_FLAG. Use m68k_legitimize_call_address instead.
8738 Merge separate flag_pic and !flag_pic define_insns into...
8739 (*call, *call_value): ...these new patterns. Match the address
8740 rather than the containing MEM and require it to be a call_operand.
8741 Use output_call to generate the asm template.
8742 * config/m68k/predicates.md (const_call_operand): New predicate.
8743 (call_operand): Likewise.
8745 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
8747 * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
8748 (STACK_GROWS_DOWNWARD): Define to 1.
8749 (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
8750 comments, emphasizing that these values are only defaults.
8751 * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
8752 * config/m68k/m68k.c (const_method): Remove trailing whitespace.
8754 2007-01-18 Richard Sandiford <richard@codesourcery.com>
8756 * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
8758 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
8759 Richard Sandiford <richard@codesourcery.com>
8761 * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
8762 (FP_REGNO_P): New macros.
8763 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
8764 (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
8765 (EH_RETURN_STACKADJ_RTX): Use A0_REG.
8766 * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
8768 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
8770 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
8771 (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-rtems*): Add t-floatlib
8773 * config/m68k/t-floatlib: New file, extracting common code from...
8774 * config/m68k/t-m68kbare, config/m68k/t-m68kelf,
8775 * config/m68k/t-uclinux: Here.
8776 * config/m68k/fpgnulib.c: Do not compile extendeed precision
8777 routines on ColdFire targets.
8779 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
8781 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
8782 (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*)
8783 (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-linux*)
8784 (m68k-*-rtems*): Use tm_file rather than m68k/m68k.h and
8785 explicitly set MOTOROLA to 1.
8786 * config/m68k/m68k.h (MOTOROLA): Simplify definition accordingly.
8788 2007-01-18 Richard Sandiford <richard@codesourcery.com>
8789 Nathan Sidwell <nathan@codesourcery.com>
8791 * config/m68k/m68k.h (PCC_STATIC_STRUCT_RETURN): Delete.
8792 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add MOTOROLA cases.
8793 * config/m68k/coff.h (REGISTER_PREFIX_MD): Delete.
8794 * config/m68k/m68020-elf.h (LIB_SPEC): Delete.
8795 * config/m68k/m68k-none.h (CC1_SPEC, CPP_SUBTARGET_SPEC): Delete.
8796 * config/m68k/m68kelf.h (IMMEDIATE_PREFIX, REGISTER_PREFIX_MD)
8797 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
8798 (NO_DOLLAR_IN_LABEL, PCC_STATIC_STRUCT_RETURN): Don't undefine.
8799 (BSS_ASM_OP, ASM_OUTPUT_SKIP, ASM_OUTPUT_ASCII): Delete.
8800 * config/m68k/m68kemb.h (PCC_STATIC_STRUCT_RETURN): Don't undefine.
8801 * config/m68k/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE)
8802 (WCHAR_TYPE_SIZE, TARGET_OBJFMT_CPP_BUILTINS): Delete.
8803 (TARGET_OS_CPP_BUILTINS): Don't define mc68000 and mc68020 here.
8804 (DBX_REGISTER_NUMBER): Delete.
8805 * config/m68k/netbsd-elf.h (IMMEDIATE_PREFIX): Delete.
8806 (PCC_STATIC_STRUCT_RETURN): Don't undefine.
8807 * config/m68k/openbsd.h (PCC_STATIC_STRUCT_RETURN): Define.
8809 2007-01-18 Richard Sandiford <richard@codesourcery.com>
8811 * config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
8812 * config/flat.h: New file.
8813 * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
8815 * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
8816 indirect references for -msep-data or -mid-shared-library.
8817 Do not use PC-relative code addresses either.
8818 * config/m68k/m68k.c (override_options): Restrict -fPIC error
8820 * config/m68k/uclinux.h (STARTFILE_SPEC): Define. Use Scrt1.o
8821 for shared libraries and crt1.o for executables. Use crti.o and
8823 (ENDFILE_SPEC): Use crtend.o and crtn.o.
8824 (LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
8825 Do not add -elf2flt or -shared-lib-id options here.
8826 (LINK_SPEC): Define. Pass -elf2flt if no -elf2flt option is given.
8827 Pass -shared-lib-id if -mid-shared-library, taking the library
8828 identifier from -mshared-library-id if given, otherwise
8830 (EH_FRAME_IN_DATA_SECTION): Do not undefine.
8831 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
8832 (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
8833 and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
8834 (DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
8835 * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
8837 * config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
8838 jump sequence for ISA A and ISA A+.
8839 (PICJUMP): Likewise.
8841 2007-01-18 Richard Sandiford <richard@codesourcery.com>
8843 * config.gcc (m68k-*-uclinux*): Base the port on the common
8844 and m68k GNU/Linux files rather than on the generic ELF ones.
8845 * config/m68k/uclinux.h (TARGET_VERSION): Override.
8846 (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
8848 2007-01-18 Julian Brown <julian@codesourcery.com>
8849 Richard Sandiford <richard@codesourcery.com>
8851 * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Make 64-bit on ColdFire.
8852 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
8853 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Undefine
8855 * config/m68k/uclinux-oldabi.h (LONG_DOUBLE_TYPE_SIZE): Redefine to
8857 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
8859 2007-01-18 Richard Sandiford <richard@codesourcery.com>
8861 * doc/install.texi: Document m68k-uclinuxoldabi.
8862 * config.gcc (m68k-*-uclinuxoldabi): New configuration.
8863 * config/m68k/uclinux-oldabi.h: New file, copied from
8864 config/m68k/uclinux.h.
8866 2007-01-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8868 * config/m32r/m32r-protos.h (m32r_expand_epilogue): Declare it.
8869 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Use gen_frame_mem.
8870 (m32r_compute_frame_size): Use unsigned for regno.
8871 (m32r_reload_lr): Use gen_frame_mem.
8873 (m32r_output_function_epilogue): Don't output the function epilogue
8875 (m32r_expand_epilogue): New.
8876 (direct_return): Return false if the function has the interrupt
8878 (m32r_hard_regno_rename_ok): Remove code for the textual epilogue.
8879 * config/m32r/m32r.md (epilogue): New expander.
8880 (return_lr, return_rte): New insns.
8881 (return): Make it expander.
8882 (return_normal): New expander.
8884 2007-01-18 Josh Conner <jconner@apple.com>
8887 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
8888 support for UNLE, UNLT, UNGE, and UNGT.
8890 2007-01-18 Jan Hubicka <jh@suse.cz>
8892 * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand.
8893 * tree-tailcall (add_virtual_phis): Likewise.
8894 (optimize_tail_call): Return TODOs.
8895 (execute_tail_calls): Return TODOs.
8896 * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO.
8897 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something
8899 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
8900 Cleanup cfg using TODO.
8901 * tree-flow.h (cleanup_tree_cfg_loop): Update prototype.
8902 * passes.c (execute_function_todo): When cleanup did something, remove
8904 * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO.
8905 (make_edges): Don't cleanup_cfg.
8907 2007-01-18 Uros Bizjak <ubizjak@gmail.com>
8909 * reg-stack.c (subst_stack_regs_pat) [UNSPEC_SINCOS_COS,
8910 UNSPEC_XTRACT_FRACT]: Use generic code for instructions that
8911 operate on the top of stack.
8912 [UNSPEC_SINCOS_SIN, UNSPEC_XTRACT_EXP, UNSPEC_TAN]: Rewrite
8913 register handling of instructions that output to the second
8915 [UNSPEC_TAN_ONE, UNSPEC_TAN_TAN]: Remove.
8916 (move_for_stack_reg): Special-case check for dead destination
8917 stack slot for constant load of 1.0 inside UNSPEC_TAN.
8919 * config/i386/i386.md (UNSPEC_TAN): New constant.
8920 (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): Remove.
8921 (fptanxf4_i387, fptan_extend<mode>xf4_i387): New patterns
8922 to correctly model move of constant 1.0 to top stack slot.
8923 (*tandf3_1, *tansf3_1, *tanxf3_1): Remove insn patterns.
8924 (unnamed peephole2 pattern): Remove corresponding peephole2
8925 pattern that optimizes tan insn and loading of constant 1.0.
8926 (tanxf2): Use fptanxf4_i387.
8927 (tan<mode>2): Rename from tansf2 and tandf2 and macroize insn
8928 patterns using X87MODEF12 mode macro. Use fptan_extend<mode>xf4_i387
8929 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
8930 disable patterns for SSE math.
8931 (sincos<mode>3): Use truncxf<mode>2_i387_noop for truncation.
8932 (fyl2x_extend<mode>xf3_i387): Use X87MODEF12 for operand 1.
8934 2007-01-18 Dirk Mueller <dmueller@suse.de>
8935 Richard Guenther <rguenther@suse.de>
8938 * doc/invoke.texi (Warray-bounds): Document -Warray-bounds.
8939 * common.opt (Warray-bounds): Add new warning option.
8940 * c-opts.c (c_common_handle_option): Define -Warray-bounds
8942 * Makefile.in: make tree-vrp.o depend on toplev.h
8943 * tree-vrp.c (vrp_finalize): Call check_array_refs if -Warray-bounds
8945 (check_array_refs, check_array_bounds, check_array_ref): New.
8947 2007-01-18 Jan Hubicka <jh@suse.cz>
8949 * tree-ssa-ccp.c (ccp_finalize): Return if something changed.
8950 (execute_ssa_ccp): Return flags conditionally.
8951 * tree-ssa-propagate.c (substitue_and_fold): Return if something was
8953 * tree-ssa-propagate.h (substitute_and_fold): Update prototype.
8955 2007-01-18 Steven Bosscher <steven@gcc.gnu.org>
8957 * cfgcleanup.c (cleanup_cfg): Detect cfglayout mode and set
8958 the CLEANUP_CFGLAYOUT flag when in cfglayout mode.
8960 * Makefile.c (GTFILES): Add cfglayout.h.
8961 * gengtype.c (open_base_files): Likewise.
8962 * cfglayout.c (cfg_layout_function_footer,
8963 cfg_layout_function_header) Reindent to make gengtype happy.
8964 * cfglayout.h (cfg_layout_function_footer,
8965 cfg_layout_function_header): Add GTY(()) marker.
8967 * ifcvt.c (noce_try_sign_mask): Make sure INSN_B is non-null.
8969 2007-01-18 Ben Elliston <bje@au.ibm.com>
8971 * genautomata.c (write_automata): Include xstrerror output in the
8972 error message if writing the DFA description file fails.
8974 2007-01-17 H.J. Lu <hongjiu.lu@intel.com>
8976 * config/mips/mips-protos.h (mips_output_external): Make it
8978 * config/mips/iris.h (TARGET_ASM_EXTERNAL_LIBCALL): Removed.
8979 * config/mips/mips.c (irix_output_external_libcall): Likewise.
8980 (extern_list): Likewise.
8981 (extern_head): Likewise.
8982 (TARGET_ASM_FILE_END): Likewise.
8983 (mips_file_end): Likewise.
8984 (mips_output_external): Rewritten.
8986 2007-01-18 Ben Elliston <bje@au.ibm.com>
8988 * genpreds.c (write_insn_preds_c): Only write out the function
8989 body for regclass_for_constraint if we have register constraints.
8991 2007-01-17 Tom Tromey <tromey@redhat.com>
8993 * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org.
8994 * doc/install.texi (Testing): Use sourceware.org.
8995 (Binaries): Likewise.
8996 (Specific): Likewise.
8997 * doc/contrib.texi (Contributors): Use sourceware.org.
8999 2007-01-17 Anatoly Sokolov <aesok@post.ru>
9001 * config/avr/avr.h (AVR_HAVE_LPMX): New macro.
9002 (AVR_ENHANCED): Rename to ...
9003 (AVR_HAVE_MUL): ... new.
9004 (avr_enhanced_p): Rename to ...
9005 (avr_have_mul_p): ... new.
9006 (TARGET_CPU_CPP_BUILTINS): Use 'avr_have_mul_p' instead of
9007 'avr_enhanced_p' for "__AVR_ENHANCED__". Define "__AVR_HAVE_MUL__".
9008 * config/avr/avr.c (avr_enhanced_p): Rename to ...
9009 (avr_have_mul_p): ... new.
9010 (base_arch_s): Rename 'enhanced' to 'have_mul'.
9011 (avr_override_options): Use 'avr_have_mul_p' and 'have_mul' instead of
9012 'avr_enhanced_p' and 'enhanced'.
9013 (ashlhi3_out, ashrhi3_out, lshrhi3_out, avr_rtx_costs): Use
9014 AVR_HAVE_MUL instead of AVR_ENHANCED.
9015 * avr.md (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
9016 (mulqi3, *mulqi3_enh, *mulqi3_call, mulqihi3, umulqihi3, mulhi3,
9017 *mulhi3_enh, *mulhi3_call, mulsi3, *mulsi3_call): Use AVR_HAVE_MUL
9018 instead of AVR_ENHANCED.
9019 (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
9020 * libgcc.S: Use __AVR_HAVE_MUL__ instead of __AVR_ENHANCED__.
9021 (__tablejump__): Use __AVR_HAVE_LPMX__ instead of __AVR_ENHANCED__.
9023 2007-01-17 Ian Lance Taylor <iant@google.com>
9025 * vec.h (VEC_reserve_exact): Define.
9026 (vec_gc_p_reserve_exact): Declare.
9027 (vec_gc_o_reserve_exact): Declare.
9028 (vec_heap_p_reserve_exact): Declare.
9029 (vec_heap_o_reserve_exact): Declare.
9030 (VEC_OP (T,A,reserve_exact)): New static inline function, three
9032 (VEC_OP (T,A,reserve)) [all versions]: Remove handling of
9034 (VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
9035 (VEC_OP (T,A,copy)) [all versions]: Likewise.
9036 (VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
9037 * vec.c (calculate_allocation): Add exact parameter. Change all
9039 (vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
9040 (vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
9041 (vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
9042 (vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
9043 (vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
9044 (vec_heap_p_reserve_exact): New function.
9045 (vec_heap_o_reserve_exact): New function.
9047 2007-01-17 Jan Hubicka <jh@suse.cz>
9049 * ipa-type-escape.c (look_for_casts): Revamp using handled_component_p.
9051 2007-01-17 Eric Christopher <echristo@apple.com>
9053 * config.gcc: Support core2 processor.
9055 2007-01-16 Jan Hubicka <jh@suse.cz>
9057 * tree-ssanames.c (release_dead_ssa_names): Instead of ggc_freeing
9058 the names, just unlink the chain so we don't crash on dangling pointers
9061 2007-01-16 Jan Hubicka <jh@suse.cz>
9063 * cgraph.h (cgraph_decide_inlining_incrementally): Kill.
9064 * tree-pass.h: Reorder to make IPA passes appear toegher.
9065 (pass_early_inline, pass_inline_parameters, pass_apply_inline): Declare.
9066 * cgraphunit.c (cgraph_finalize_function): Do not compute inling
9067 parameters, do not call early inliner.
9068 * ipa-inline.c: Update comments. Include tree-flow.h
9069 (cgraph_decide_inlining): Do not compute inlining parameters.
9070 (cgraph_decide_inlining_incrementally): Return TODOs; assume to
9071 be called with function context set up.
9072 (pass_ipa_inline): Remove unreachable functions before pass.
9073 (cgraph_early_inlining): Simplify assuming to be called from the
9075 (pass_early_inline): New pass.
9076 (cgraph_gate_ipa_early_inlining): New gate.
9077 (pass_ipa_early_inline): Turn into simple wrapper.
9078 (compute_inline_parameters): New function.
9079 (gate_inline_passes): New gate.
9080 (pass_inline_parameters): New pass.
9081 (apply_inline): Move here from tree-optimize.c
9082 (pass_apply_inline): New pass.
9083 * ipa.c (cgraph_remove_unreachable_nodes): Verify cgraph after
9085 * tree-inline.c (optimize_inline_calls): Return TODOs rather than
9087 (tree_function_versioning): Do not allocate dummy struct function.
9088 * tree-inline.h (optimize_inline_calls): Update prototype.
9089 * tree-optimize.c (execute_fixup_cfg): Export.
9090 (pass_fixup_cfg): Remove
9091 (tree_rest_of_compilation): Do not apply inlines.
9092 * tree-flow.h (execute_fixup_cfg): Declare.
9093 * Makefile.in (gt-passes.c): New.
9094 * passes.c: Include gt-passes.h
9095 (init_optimization_passes): New passes.
9096 (nnodes, order): New static vars.
9097 (do_per_function_toporder): New function.
9098 (execute_one_pass): Dump current pass here.
9099 (execute_ipa_pass_list): Don't dump current pass here.
9101 2007-01-16 Janis Johnson <janis187@us.ibm.com>
9103 * config/dfp-bit.c (dfp_compare_op): Return separate value for NaN.
9104 (DFP_NE, DFP_LE, DFP_GE): Return false for NaN.
9106 2007-01-16 David Edelsohn <edelsohn@gnu.org>
9108 * config/rs6000/darwin-ldouble.c: Build file for SOFT_FLOAT.
9109 (strong_alias): Define.
9110 (__gcc_qmul): Provide non-FMA for soft-float.
9116 (__gcc_qunord): New.
9126 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Initialize
9127 soft-float functions.
9128 * config/rs6000/libgcc-ppc-glibc.ver: Version soft-float symbols.
9129 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn
9130 about long double soft float.
9132 2007-01-16 Dorit Nuzman <dorit@il.ibm.com>
9133 Tehila Meyzels <tehila@il.ibm.com>
9135 * tree-vectorizer.h (is_pattern_stmt_p): New.
9136 * tree-vect-analyze.c (vect_determine_vectorization_factor): Fix
9137 formatting (tabs instead of spaces). Cleanup and clarify setting
9138 of STMT_VINFO_VECTYPE. Call is_pattern_stmt_p.
9139 * tree-vect-transform.c (vect_get_vec_def_for_operand): Fix typo.
9140 (vectorizable_type_demotion): Check that types are integral.
9141 (vectorizable_type_promotion): Likewise.
9142 (vectorizable_store): Fix typo. Eliminate new-line at end of
9145 2007-01-16 Jan Hubicka <jh@suse.cz>
9147 * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
9150 2007-01-15 Eric Christopher <echristo@apple.com>
9152 * ifcvt.c: Include vec.h, vecprim.h.
9153 (check_cond_move_block): New argument regs.
9154 Reorganize. Add registers used to regs.
9155 (cond_move_process_if_block): Use regs set above as
9158 2007-01-15 Eric Christopher <echristo@apple.com>
9160 * config/darwin.h: Update copyright.
9161 (TARGET_OPTION_TRANSLATE_TABLE): Add umbrella.
9162 (LINK_COMMAND_SPEC): Add -u.
9163 (LINK_SPEC): Fix umbrella for above.
9165 2007-01-15 Joseph S. Myers <joseph@codesourcery.com>
9167 * config/soft-fp/op-common.h, config/soft-fp/op-4.h: Update from
9170 2007-01-15 Tom Tromey <tromey@redhat.com>
9172 * doc/sourcebuild.texi (libgcj Tests): Don't mention jacks.
9173 * doc/install.texi (Testing): Don't mention jacks.
9174 (Configuration): Document --enable-java-maintainer-mode. Move
9175 --with-java-home to libgcj-specific section. Document
9177 (Prerequisites): Mention --enable-java-maintainer-mode, ecj1.
9179 2007-01-15 Jan Hubicka <jh@suse.cz>
9181 * tree-ssa-dce.c (DCE_TODOs): New.
9182 (propagate_necessity): Return if something changed.
9183 (eliminate_unnecessary_stmts): Likewise.
9184 (perform_tree_ssa_dce): Return TODO flags when needed.
9185 (pass_dce, pass_dce_loop, pass_cd_dce): Remove TODO flags.
9187 2007-01-15 Uros Bizjak <ubizjak@gmail.com>
9189 * config/i386/i386.md (fyl2xxf3_i387): Rename from fyl2x_xf3.
9190 (fyl2x_extend<mode>xf3_i387): New insn pattern.
9191 (log<mode>2): Rename from logsf2 and logdf2 and macroize insn
9192 patterns using X87MODEF12 mode macro. Extend operand 1
9193 to XFmode. Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
9194 (log10<mode>2): Ditto.
9195 (log2<mode>2): Ditto.
9196 (log1p<mode>2): Ditto.
9197 (logb<mode>2): Ditto.
9198 (fyl2xp1xf3_i387): Rename from fyl2xp1_xf3.
9199 (fyl2xp1_extend<mode>xf3_i387): New insn pattern.
9200 (*fxtractxf3_i387): Rename from *fxtractxf3.
9201 (fxtract_extend<mode>xf3_i387): New insn pattern.
9202 (ilogbsi2): Use match_dup 3, not match_operand:XF 3.
9203 * config/i386/i386.c (ix86_emit_i387_log1p): Use gen_fyl2xp1xf3_i387()
9204 and gen_fyl2xxf3_i387().
9206 2007-01-14 Zdenek Dvorak <dvorakz@suse.cz>
9208 * loop-unswitch.c (unswitch_loop): Do not call fix_loop_placement.
9209 * cfgloopmanip.c (fix_loop_placement): Made static. Use
9210 get_loop_exit_edges. Changed return type to bool.
9211 * cfgloop.h (fix_loop_placement): Declaration removed.
9213 2007-01-14 Dorit Nuzman <dorit@il.ibm.com>
9215 * param.h (MIN_VECT_LOOP_BOUND): New.
9216 * params.def (MIN_VECT_LOOP_BOUND): New.
9217 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Takes another
9218 argument - minimum threshold for number of iterations.
9219 * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge): Add another
9220 argument to declaration.
9221 * tree-vect-analyze.c (vect_analyze_operations): Check value of
9222 MIN_VECT_LOOP_BOUND.
9223 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Call
9224 slpeel_tree_peel_loop_to_edge with additional argument.
9225 (vect_do_peeling_for_alignment): Likewise.
9226 * doc/invoke.texi (min-vect-loop-bound): Document new param option.
9228 2007-01-14 Uros Bizjak <ubizjak@gmail.com>
9231 * config/i386/i386.c (print_operand) ['z']: Output 'b' for
9234 2007-01-14 Jan Hubicka <jh@suse.cz>
9236 * tree-dfa.c (remove_referenced_var): New function.
9237 * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
9238 prune referenced vars list too.
9239 * tree-flow.h (remove_referenced_var): Declare.
9241 2007-01-14 Jan Hubicka <jh@suse.cz>
9243 * tree-eh.c (add_stmt_to_eh_region_fn): Do not add call_exprs
9245 (remove_stmt_from_eh_region_fn): Do not remove call_exprs.
9246 (verify_eh_throw_stmt_node, verify_eh_throw_table_statements): Kill.
9247 * except.h (verify_eh_throw_table_statements): Kill prototype.
9248 * cfgexpand.c (expand_gimple_basic_block): Propagate Eh regions
9249 into call exrepssions.
9250 * tree-optimize.c (execute_free_cfg_annotatiosn): Do not call
9252 * tree-cfg.c: Include pointer-set.h.
9253 (verify_node_sharing): Work on pointer set.
9254 (verify_eh_throw_stmt_node): New.
9255 (verify_stmts): Use pointers sets, verify throw_stmt.
9257 2007-01-13 Zdenek Dvorak <dvorakz@suse.cz>
9259 * ipa-reference.c (analyze_function): Consider also addresses taken
9262 2007-01-12 Roger Sayle <roger@eyesopen.com>
9264 * c-typeck.c (null_pointer_constant_p): Replace use of
9265 TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
9266 (build_c_cast): Likewise.
9268 2007-01-12 Roger Sayle <roger@eyesopen.com>
9270 * tree.h (force_fit_type_double): Remove unused final argument.
9271 * c-common.c (constant_expression_warning): Replace use of
9272 TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
9273 (convert_and_check): Likewise.
9274 (shorten_compare): Update call to force_fit_type_double.
9275 (c_common_truthvalue_conversion) <INTEGER_CST>: Use integer_zerop.
9276 * convert.c (convert_to_pointer): Update call to
9277 force_fit_type_double.
9278 * fold-const.c (force_fit_type_double): Remove overflowed_const
9280 (int_const_binop, fold_convert_const_int_from_int,
9281 fold_convert_const_int_from_real, fold_div_compare,
9282 fold_sign_changed_comparison, fold_unary, fold_negate_const,
9283 fold_abs_const, fold_not_const): Remove the final argument from
9284 calls to force_fit_type_double.
9286 2007-01-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
9288 * configure.ac: Set insn to "nop" for spu-*-* also.
9289 * configure: Regenerate.
9291 2007-01-12 Olga Golovanevsky <olga@il.ibm.com>
9293 * builtins.def : Add BUILT_IN_FREE.
9295 2007-01-12 Jan Hubicka <jh@suse.cz>
9297 PR tree-optimization/30443
9298 * tree-inline.c (tree_function_versioning): Do not optimize when
9299 cloning for inlining.
9301 2007-01-12 Zdenek Dvorak <dvorakz@suse.cz>
9303 * doc/loop.texi: Document recording of loop exits.
9304 * cfgloopmanip.c (loopify, duplicate_loop): Use alloc_loop.
9305 (update_single_exits_after_duplication,
9306 update_single_exit_for_duplicated_loop,
9307 update_single_exit_for_duplicated_loops): Removed.
9308 (duplicate_loop_to_header_edge): Do not call
9309 update_single_exits_after_duplication and
9310 update_single_exit_for_duplicated_loops.
9311 (loop_version): Do not update single_exit information.
9312 (fix_loop_structure): Use record_loop_exits instead of
9313 mark_single_exit_loops.
9314 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update
9315 the lists of loop exits.
9316 * cfghooks.c (redirect_edge_and_branch, redirect_edge_and_branch_force,
9317 split_edge, merge_blocks): Update the lists of loop exits.
9318 * modulo-sched.c (sms_schedule): Pass LOOPS_HAVE_RECORDED_EXITS to
9319 loop_optimizer_init.
9320 * loop-init.c (loop_optimizer_init): Call record_loop_exits instead
9321 of mark_single_exit_loops.
9322 (loop_optimizer_finalize): Call release_recorded_exits.
9323 * tree-ssa-loop.c (tree_loop_optimizer_init): Pass
9324 LOOPS_HAVE_RECORDED_EXITS to loop_optimizer_init.
9325 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Do not
9326 update single exit information.
9327 * lambda-code.c (perfect_nestify): Ditto.
9328 * cfgloop.c (flow_loop_free): Destroy the list of exits of the loop.
9329 (mark_single_exit_loops): Removed.
9330 (alloc_loop, loop_exit_hash, loop_exit_eq, loop_exit_free,
9331 get_exit_descriptions, rescan_loop_exit, record_loop_exits,
9332 dump_recorded_exit, dump_recorded_exits, release_recorded_exits): New
9334 (get_loop_exit_edges, single_exit): Use recorded exit lists.
9335 (add_bb_to_loop, remove_bb_from_loops): Update the lists of loop exits.
9336 (verify_loop_structure): Verify consistency of the exit lists.
9337 (flow_loops_find): Use alloc_loop. Initialize exits hash.
9338 (set_single_exit): Removed.
9339 * cfgloop.h (struct loop_exit): New function.
9340 (struct loop): single_exit_ field replaced by exits field.
9341 (LOOPS_HAVE_MARKED_SINGLE_EXITS): Replaced by LOOPS_HAVE_RECORDED_EXITS.
9342 (struct loops): Added exits hash.
9343 (mark_single_exit_loops, set_single_exit): Declaration removed.
9344 (release_recorded_exits, record_loop_exits, rescan_loop_exit): Declare.
9346 2007-01-12 Richard Sandiford <richard@codesourcery.com>
9348 * doc/invoke.texi: Avoid use of @headitem.
9350 2007-01-12 Richard Sandiford <richard@codesourcery.com>
9352 * cse.c (cse_insn): Move HAVE_CC0 code after declarations.
9354 2007-01-12 Richard Sandiford <richard@codesourcery.com>
9356 * doc/install.texi: Fix m68k-*-* anchor and add m68k-*-* to the
9359 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
9360 Richard Sandiford <richard@codesourcery.com>
9362 * doc/invoke.texi: Document -mno-bitfield, -mno-rtd and -mno-short.
9363 * config/m68k/m68k.opt: Resort options.
9364 (mbitfield, mrtd, mshort): Remove RejectNegative properties.
9366 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
9367 Richard Sandiford <richard@codesourcery.com>
9369 * doc/invoke.texi: Document the macros that are defined by
9370 m68k's -mtune and -mhard-float options.
9371 * config/m68k/m68k-protos.h (m68k_cpp_cpu_ident) Declare.
9372 (m68k_cpp_cpu_family): Likewise.
9373 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add a full set
9374 of __ucfv*__ macros. Define __mcffpu__ if generating code for
9375 ColdFire FPUs. Define __mcf_cpu_* and __mcf_family_* macros.
9376 * config/m68k/m68k.c (m68k_cpp_cpu_ident): New function.
9377 (m68k_cpp_cpu_family): Likewise.
9379 2007-01-12 Richard Sandiford <richard@codesourcery.com>
9381 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Treat all mc68*
9382 macros besides mc68000 as tuning macros. Use a switch statement
9383 to set them and mcpu32.
9385 2007-01-12 Julian Brown <julian@codesourcery.com>
9387 * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
9388 (TARGET_68040_ONLY): Rename to...
9389 (TARGET_68040): ...this.
9390 * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
9391 * config/m68k/m68k.md: Likewise.
9393 2007-01-12 Julian Brown <julian@codesourcery.com>
9394 Nathan Sidwell <nathan@codesourcery.com>
9395 Richard Sandiford <richard@codesourcery.com>
9397 * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
9398 the -mcpu= argument associated with the --with-cpu setting.
9399 Define M68K_DEFAULT_TUNE to the default -mtune= option,
9400 if different from the one implied by the -mcpu setting.
9401 Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
9402 using mcpu=FOO as the default CPU option. Set target_cpu_default2.
9403 * doc/invoke.texi: Mention ColdFire in the introduction to the
9404 m68k options. Document the new -march, -mcpu, -mtune, -mdiv,
9405 -mno-div and -mhard-float options. Make -m68881 a synonym for
9406 -mhard-float. Document the previously-undocumented -m5206e,
9407 -m528x, -m5307 and -m5407 options. Tweak the existing option
9408 documentation for consistency.
9409 * doc/install.texi: Mention new --with-cpu arguments.
9410 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
9411 default CPU if neither -mcpu nor -march are specified.
9412 (ASM_CPU_SPEC): Pass down -mcpu and -march options.
9413 (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
9414 TARGET_ISA*. Set the legacy __mcf*__ cpu macros in the same way,
9415 using m68k_tune to decide between families that implement the
9416 same ISA. Use m68k_tune to set __mcfv4e__.
9417 (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
9418 (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
9419 (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
9420 (FL_ISA_C, FL_ISA_MMU): New macros.
9421 (MASK_COLDFIRE): Delete.
9422 (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
9423 (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
9424 (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
9425 (TARGET_HARD_FLOAT): Do not define here.
9426 (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
9427 (TUNE_68000): New macro.
9428 (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
9429 (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
9430 (TUNE_CFV2): Redefine in terms of m68k_tune.
9431 (uarch_type, target_device, fpu_type): New enums.
9432 (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
9433 * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
9434 (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
9435 (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
9436 (FL_FOR_isa_c): New macros.
9437 (m68k_isa): New enum.
9438 (m68k_target_selection): New structure.
9439 (all_devices, all_isas, all_microarchs): New tables.
9440 (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
9441 (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
9442 (MASK_ALL_CPU_BITS): Delete.
9443 (m68k_find_selection): New function.
9444 (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
9445 Map the legacy target options to a combination of the new ones.
9446 (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
9447 m68k_cpu_flags. Handle M68K_DEFAULT_TUNE. Use m68k_cpu_flags
9448 to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
9450 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
9451 (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
9453 (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
9454 (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
9455 * config/m68k/m68k-devices.def: New file.
9457 2007-01-12 Richard Sandiford <richard@codesourcery.com>
9458 Nathan Sidwell <nathan@codesourcery.com>
9460 * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
9461 (SUBTARGET_EXTRA_SPECS): New macros.
9462 * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
9463 use %(asm_cpu_spec) instead.
9464 * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
9465 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
9466 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
9467 (EXTRA_SPECS): Rename to...
9468 (SUBTARGET_EXTRA_SPECS): ...this.
9470 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
9471 Richard Sandiford <richard@codesourcery.com>
9472 Julian Brown <julian@codesourcery.com>
9474 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
9475 (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
9476 to the configuration's default CPU.
9477 (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
9478 Remove default masks.
9479 (m680[012]0-*-*): Set the default with_cpu to the first part of
9481 (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
9482 (m68k*-*-linux): Extend the --with-cpu handling to...
9483 (m680[012]0-*-*, m68k*-*-*): ...these configurations. Allow m68000
9484 and m68010. Don't set target_cpu_default2.
9485 * doc/install.texi: Document --with-cpu for m68k.
9486 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
9487 * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
9488 (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
9489 (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
9490 (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
9491 (ASM_SPEC): Remove use of %(asm_cpu_default).
9492 (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
9493 * config/m68k/linux.h (TARGET_DEFAULT): Delete.
9494 (CPP_SPEC): Merge definitions. Do not handle __HAVE_68881__ here.
9495 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
9496 __HAVE_FPU__ if TARGET_HARD_FLOAT.
9497 (TARGET_DEFAULT): Delete.
9498 (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
9499 cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
9500 (CPP_CPU_SPEC): Delete.
9501 (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
9502 the appropriate string.
9503 (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
9504 (CPP_SPEC): Define to NETBSD_CPP_SPEC.
9505 (ASM_SPEC): Don't use %(asm_default_spec).
9506 * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
9507 TARGET_DEFAULT and add MASK_68881.
9508 * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
9510 2007-01-12 Richard Sandiford <richard@codesourcery.com>
9512 * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
9513 (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
9514 MASK_68010 alongside MASK_68020.
9515 * doc/invoke.texi: Document -m68010.
9516 * config/m68k/m68k.opt (m68010): New.
9517 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
9519 (TUNE_68010): New macro.
9520 * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
9521 (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
9522 (M68K_CPU_m68332): Add MASK_68010.
9523 * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
9524 fallback definition.
9525 * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
9527 * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
9528 (m68k_handle_option): Handle OPT_m68010. Add MASK_68010
9529 to all entries that use MASK_68020.
9530 (output_move_simode_const, output_move_himode, output_move_qimode)
9531 (output_move_stricthi, output_move_strictqi): Use TARGET_68010
9532 instead of TARGET_68020 to select clr behavior. Remove comment
9533 about there being no TARGET_68010.
9534 * config/m68k/m68k.md: Likewise throughout.
9536 2007-01-12 Julian Brown <julian@codesourcery.com>
9538 * config/m68k/m68k.h (TARGET_ISAB): New macro.
9539 * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
9540 * config/m68k/m68k.md: Likewise.
9542 2007-01-12 Julian Brown <julian@codesourcery.com>
9544 * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
9545 TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
9547 2007-01-12 Julian Brown <julian@codesourcery.com>
9549 * config/m68k/m68k.h (TUNE_68040_60): New macro.
9550 * config/m68k/m68k.c (standard_68881_constant_p): Use it.
9551 * config/m68k/m68k.md: Likewise.
9553 2007-01-12 Julian Brown <julian@codesourcery.com>
9554 Richard Sandiford <richard@codesourcery.com>
9556 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
9557 instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
9558 TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
9560 (TARGET_CPU32): Rename to...
9561 (TUNE_CPU32): ...this.
9562 (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
9563 (TUNE_CFV2): New macros.
9564 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
9565 remove conditions that are implied by TARGET_68020.
9566 * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
9567 instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
9568 (m68k_output_function_epilogue): Likewise.
9569 (m68k_rtx_costs): Likewise. Use TUNE_68060 instead of TARGET_68060
9570 and TUNE_CFV2 instead of TARGET_5200. Use TUNE_68000_10 instead of
9571 "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
9572 non-68000 timings. Refactor multiplication and division costs.
9573 (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
9574 TUNE_CPU32 instead of TARGET_CPU32.
9575 (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
9576 and TUNE_68060 instead of TARGET_68060.
9577 * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
9578 TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
9580 (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
9581 && !TARGET_COLDFIRE" to choose between moveq and clr.
9582 Likewise in the unnamed movsf pattern.
9583 (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
9584 "!TARGET_68020 && !TARGET_COLDFIRE". Likewise the unnamed
9587 2007-01-12 Richard Sandiford <richard@codesourcery.com>
9589 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
9590 of tabbing before backslashes.
9592 2007-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9594 * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
9595 * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
9596 (ASM_OUTPUT_INTERNAL_LABEL): Define.
9598 2007-01-11 Zdenek Dvorak <dvorakz@suse.cz>
9600 * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
9601 find_interesting_uses_cond.
9602 (find_interesting_uses_cond): Use extract_cond_operands.
9603 (rewrite_use_compare): Use extract_cond_operands and
9604 force_gimple_operand_bsi. Do not call update_stmt.
9605 (determine_use_iv_cost_condition): Use extract_cond_operands.
9606 Return cheaper of using original bound and changing the exit bound.
9608 2007-01-11 Zdenek Dvorak <dvorakz@suse.cz>
9610 PR tree-optimization/29516
9611 * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
9612 most_expensive_mult_to_index, addr_to_parts,
9613 create_mem_ref, maybe_fold_tmr): Make the type of
9614 fields of TARGET_MEM_REF sizetype.
9615 (move_fixed_address_to_symbol, move_pointer_to_base):
9617 * tree.def (TARGET_MEM_REF): Add comment on types of
9620 2007-01-11 Joseph Myers <joseph@codesourcery.com>
9622 * c-common.c (vector_types_convertible_p): Treat opaque types as
9623 always convertible if they have the same size, but not otherwise.
9625 2007-01-11 Steven Bosscher <steven@gcc.gnu.org>
9627 * ifcvt.c (struct noce_if_info): Add comments to the fields.
9628 Remove the b_unconditional field.
9629 (noce_try_sign_mask): Do not look at b_unconditional.
9630 (noce_process_if_block): Do not use merge_if_blocks. Update
9631 the CFG here. Do not set b_unconditional.
9632 (cond_move_process_if_block): Likewise.
9633 (find_cond_trap): Likewise.
9634 (check_cond_move_block): Require simple jump insns at the end
9637 2007-01-11 Jan Hubicka <jh@suse.cz>
9639 PR tree-optimization/1046
9640 * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
9641 when alias info is not ready.
9642 (pass_tail_recursion): Do not require aliasing.
9643 * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
9644 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
9645 * tree-ssa-copy.c (pass_copy_prop): Likewise.
9646 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
9647 * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
9648 * passes.c (init_optimization_passes): Execute rename_ssa_copies,
9649 ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
9651 * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
9652 When aliasing is not build, mark statement as volatile.
9654 2007-01-11 Tom Tromey <tromey@redhat.com>
9656 PR preprocessor/15185, PR preprocessor/20989:
9657 * doc/cppopts.texi <-MT>: Update description of algorithm for
9658 computing default target.
9659 <-M, -MD>: Reword "basename" text.
9661 2007-01-11 Roger Sayle <roger@eyesopen.com>
9663 * builtins.c (expand_builtin_pow, expand_builtin_powi,
9664 fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
9665 fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
9666 fold_builtin_int_int_roundingfn, fold_builtin_bitop,
9667 fold_builtin_bswap, real_constp, fold_builtin_pow,
9668 fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
9669 do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
9670 uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
9671 * convert.c (convert_to_pointer): Likewise.
9672 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
9673 * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
9674 const_binop, fold_convert_const_int_from_int,
9675 fold_convert_const_int_from_real,
9676 fold_convert_const_real_from_real, sign_bit_p,
9677 optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
9678 fold_sign_changed_comparison, fold_unary, fold_comparison,
9679 fold_binary, multiple_of_p, tree_Expr_non_zero_p,
9680 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
9681 * print-tree.c (print_node_brief, print_node): Likewise.
9682 * stor-layout.c (place_field, layout_type): Likewise.
9683 * tree-chrec.c (keep_cast): Likewise.
9684 * tree.c (build_vector, build_real, build_real_from_int_cst,
9685 build_complex): Likewise.
9687 2007-01-11 Roger Sayle <roger@eyesopen.com>
9689 * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete. For the time being,
9690 treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
9692 2007-01-11 Paolo Bonzini <bonzini@gnu.org>
9694 * configure.ac (strict1_warn): Rename to strict_warn.
9695 (WERROR, --enable-werror, symlink hacks, stage1_cflags,
9696 cc_set_by_configure, quoted_cc_set_by_configure,
9697 stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
9698 all_boot_languages, all_stagestuff): Remove.
9699 (target_list): Remove bootstrap targets.
9700 * Makefile.in (quickstrap): Unconditionally make a synonym of all.
9701 (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
9702 REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
9703 SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
9704 VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
9705 STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
9706 stage1_copy, stage2_build, stage2_copy, stageprofile_build,
9707 stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
9708 stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
9709 bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
9710 bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
9711 unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
9712 restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
9713 cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
9714 *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
9715 stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
9716 stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
9717 risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
9718 (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
9719 (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
9720 (mostlyclean): Adjust.
9721 (clean, distclean): Don't mention bootstrap stuff.
9722 * configure: Regenerate.
9723 * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
9724 java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
9725 treelang/config-lang.in (stagestuff): Remove.
9726 * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
9727 stageprofile, stagefeedback, stagestuff): Remove mention.
9729 2007-01-11 Nick Clifton <nickc@redhat.com>
9731 * config/mcore/predicates.md (mcore_general_movesrc_operand):
9733 (mcore_general_movdst_operand): Do not accept CONST_INTs.
9734 (mcore_arith_K_S_operand): Run the test for the S constraint not
9735 the test for the M constraint.
9736 (mcore_addsub_operand): Do not accept integer values that are
9737 larger than 32 bits.
9738 * config/mcore/mcore.md: Remove unused constraints from split.
9739 (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
9741 (allocate_stack): Likewise.
9742 * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
9743 operands to 32 bits.
9744 (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
9746 (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
9747 mcore_const_ok_for_inline, mcore_const_trick_uses_not,
9748 try_constant_tricks, mcore_num_ones, mcore_num_zeros,
9749 mcore_output_bclri, mcore_output_andn, output_inline_const,
9750 mcore_output_move, mcore_output_movedouble): Likewise.
9751 (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
9752 (output_inline_const): Likewise.
9753 (output_inline_const): Fix format strings used in sprintf
9755 * config/mcore/mcore-protos.h: Update prototypes for changed
9756 functions in mcore.c.
9757 * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
9758 HOST_WIDE_INT and not int.
9759 (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
9760 CONST_OK_FOR_N): Likewise.
9761 (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
9762 (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
9765 2007-01-10 Jan Hubicka <jh@suse.cz>
9767 * tree-vrp.c (remove_range_assertions): Release defs.
9768 * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
9769 * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
9771 2007-01-10 Paul Brook <paul@codesourcery.com>
9773 * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
9774 * config/arm/arm.md (mulsi3subsi): New insn.
9776 2007-01-10 Zdenek Dvorak <dvorakz@suse.cz>
9778 * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
9779 (tree_transform_and_unroll_loop): New.
9780 * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
9783 2007-01-10 Robert Kennedy <jimbob@google.com>
9785 * fold-const.c (fold_comparison): Fold comparisons like (x *
9786 1000 < 0) to (x < 0).
9788 2007-01-10 Ian Lance Taylor <iant@google.com>
9790 * tree-pretty-print.c (dump_generic_node): Print parentheses when
9791 operands have the same priority.
9793 2007-01-10 Tom Tromey <tromey@redhat.com>
9795 * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
9796 (fold_binary): Likewise.
9797 * langhooks.c (lhd_can_use_bit_fields_p): Removed.
9798 * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
9799 (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
9800 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
9801 * langhooks.h (struct lang_hooks): Removed field
9802 'can_use_bit_fields_p'.
9804 2007-01-10 Ralf Corsépius <ralf.corsepius@rtems.org>
9806 * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
9808 2007-01-10 Razya Ladelsky <razya@il.ibm.com>
9810 * function.c (get_last_funcdef_no): New function.
9811 * function.h (get_last_funcdef_no): Declare.
9812 * tree-inline.c (initialize_cfun): Add initialization.
9813 (tree_function_versioning): Cleanup.
9815 2007-01-10 Jan Hubicka <jh@suse.cz>
9817 * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
9820 2007-01-10 Sa Liu <saliu@de.ibm.com>
9821 Ben Elliston <bje@au.ibm.com>
9823 * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
9824 for SAVE_NONLOCAL and Pmode for any other save level.
9825 * spu-protos.h (spu_restore_stack_block): Declare.
9826 * spu.md (save_stack_block): Remove.
9827 (restore_stack_block): Call spu_restore_stack_block.
9828 * spu.c (spu_restore_stack_block): New function.
9829 (spu_expand_epilogue): Remove old comment.
9831 2007-01-09 Zdenek Dvorak <dvorakz@suse.cz>
9833 PR tree-optimization/30322
9834 * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
9835 (cand_value_at): Return the value as aff_tree.
9836 (may_eliminate_iv): Convert the bound from aff_tree to tree.
9837 * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
9838 aff_combination_mult): New functions.
9839 (aff_combination_add): Use aff_combination_add_cst.
9840 (aff_combination_convert): Allow conversions to a wider type.
9841 (tree_to_aff_combination): Handle BIT_NOT_EXPR.
9842 * tree-affine.h (aff_combination_mult): Declare.
9844 2007-01-09 Carlos O'Donell <carlos@codesourcery.com>
9846 * doc/tm.texi: Update documentation to reflect reality of exec
9847 and start file search behaviours. Update copyright year.
9848 * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
9849 header file directories.
9851 2007-01-09 Uros Bizjak <ubizjak@gmail.com>
9853 * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
9854 (*cosxf2): Rename to cosxf2_i387.
9855 (*sindf2, *sinsf2): Extend operand 1 to XFmode. Macroize patterns
9856 using X87MODEF12 mode macro. Rename patterns to
9857 *sin_extend<mode>xf2_i387. Use SSE_FLOAT_MODE_P to disable patterns
9859 (*cosdf2, *cossf2): Ditto.
9860 (sincosdf3, sincossf3): Ditto. Rewrite corresponding splitters
9861 to match extended input operands.
9862 (sincos<mode>3): New expander.
9863 (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
9864 insn patterns and corresponding splitters.
9866 2007-01-09 Kaz Kojima <kkojima@gcc.gnu.org>
9868 * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
9869 (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
9871 2007-01-09 Nicolas Pitre <nico@cam.org>
9874 * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
9876 2007-01-08 Geoffrey Keating <geoffk@apple.com>
9878 * target.h (struct gcc_target): New field library_rtti_comdat.
9879 * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
9880 (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
9881 * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
9882 * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
9884 2007-01-08 Geoffrey Keating <geoffk@apple.com>
9886 * doc/invoke.texi (Optimize Options): Correct description of -O0.
9888 2007-01-08 Richard Guenther <rguenther@suse.de>
9890 * tree.h (force_fit_type_double): Export.
9891 (force_fit_type): Remove.
9892 * fold-const.c (force_fit_type_double): New function.
9893 (force_fit_type): Remove.
9894 (int_const_binop): Use it.
9895 (fold_convert_const_int_from_int): Likewise.
9896 (fold_convert_const_int_from_real): Likewise.
9897 (fold_div_compare): Likewise.
9898 (fold_sign_changed_comparison): Likewise.
9899 (fold_unary): Likewise.
9900 (fold_negate_const): Likewise.
9901 (fold_abs_const): Likewise.
9902 (fold_not_const): Likewise.
9903 * c-common.c (shorten_compare): Use force_fit_type_double.
9904 * convert.c (convert_to_pointer): Likewise.
9906 2007-01-08 Richard Guenther <rguenther@suse.de>
9908 * tree.h (build_int_cst_wide_type): Export.
9909 * tree.c (build_int_cst_wide_type): New function.
9910 (build_int_cst_wide): Fix comment.
9911 * builtins.c (fold_builtin_object_size): Use build_int_cst
9912 to build -1 or 0 of the correct type. Use fit_double_type
9913 to check for overflow.
9914 * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
9916 (decode_field_reference): Likewise.
9917 (all_ones_mask_p): Likewise.
9918 (native_interpret_int): Use build_int_cst_wide_type.
9919 (fold_binary): Use build_int_cst_type to build an all-ones
9921 * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
9923 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9925 * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
9927 2007-01-09 Ben Elliston <bje@au.ibm.com>
9929 * genautomata.c (STATS_OPTION): New option.
9930 (stats_flag): New flag.
9931 (gen_automata_option): Handle it.
9932 (initiate_automaton_gen): Ditto.
9933 (write_automata): Output statistics only if stats_flag is
9934 set. Likewise, output time statistics only if time_flag is set.
9935 * doc/md.texi (Processor pipeline description): Document new flag.
9937 2007-01-08 Richard Guenther <rguenther@suse.de>
9939 * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
9940 * tree.c (build_int_cst_type): Likewise.
9941 (size_in_bytes): Don't call force_fit_type on the result.
9942 (int_fits_type_p): Use fit_double_type.
9943 * fold-const.c (fit_double_type): New function.
9944 (force_fit_type): Use it.
9945 * tree.h (fit_double_type): Export.
9947 2007-01-08 Jan Hubicka <jh@suse.cz>
9949 * tree-vectorizer.c (gate_increase_alignment): Fix return type.
9950 * ipa.c (function_and_variable_visibility): Fix return type.
9952 2007-01-08 Richard Guenther <rguenther@suse.de>
9954 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
9955 of offset to build the index.
9956 * tree-pretty-print.c (dump_generic_node): Don't build negated
9957 const just for printing.
9958 * c-pretty-print.c (pp_c_integer_constant): Likewise.
9959 * builtins.c (fold_builtin_int_roundingfn): Check if result
9960 fits the type by using force_fit_type and comparing the result.
9961 * predict.c (predict_loops): Use compare_tree_int for comparison.
9962 * tree.c (build_int_cst): Fall back to integer_type_node for
9964 (build_int_cst_wide): Assert type is non-null.
9966 2007-01-08 Roberto Costa <roberto.costa@st.com>
9968 * tree-vrp.c (extract_range_from_cond_expr): New.
9969 (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
9970 * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
9972 (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
9973 * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
9974 tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
9975 used as expressions.
9976 * tree-object-size.c (cond_expr_object_size): New.
9977 (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
9979 2007-01-08 Jan Hubicka <jh@suse.cz>
9981 * tree-ssa-forwprop.c (forward_propagate_into_cond,
9982 tree_ssa_forward_propagate_single_use_va): Release defs of propagated
9985 2007-01-08 Richard Guenther <rguenther@suse.de>
9987 PR tree-optimization/23603
9988 * tree-vrp.c (set_value_range_to_truthvalue): New function.
9989 (extract_range_from_binary): Fall back to truthvalue instead of
9990 varying for TRUTH_*_EXPR.
9991 (extract_range_from_comparison): Fall back to truthvalue instead of
9993 (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
9994 if all visited PHI values were constant.
9996 2007-01-08 Jan Hubicka <jh@suse.cz>
9998 * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
9999 (cgraph_analyze_function): break out from ...
10000 (cgraph_finalize_compilation_unit): ... here.
10001 (cgraph_expand_function): Remove forgoten commented out line.
10002 (cgraph_optimize): Analyze functions.
10004 2007-01-08 Jan Hubicka <jh@suse.cz>
10006 * tree-pas.h (TODO_remove_function): New flag.
10007 (TODO_update*): Renumber.
10008 (pass_ipa_increase_alignment,
10009 pass_ipa_function_and_variable_visibility): New passes.
10010 * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
10011 (cgraph_function_and_variable_visibility): Move to ipa.c
10012 (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
10013 cgraph_increase_alignment.
10014 * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
10015 (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
10016 calling tree-inline.
10017 (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
10018 (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
10019 * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
10020 (gate_increase_alignment): New function.
10021 (pass_ipa_increase_alignment): New pass.
10022 * ipa.c: Inline tree-pass.h and timevar.h
10023 (function_and_variable_visibility): Move here from cgraphunit.c
10024 * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
10025 * passes.c (init_optimization_passes): Add the two new passes.
10026 (execute_todo): Handle cgraph_remove_functions.
10028 2007-01-08 Nick Clifton <nickc@redhat.com>
10030 * config/frv/predicates.md (reg_or_0_operand): Accept
10033 2007-01-08 Ralf Corsépius <ralf.corsepius@rtems.org>
10035 * config/bfin/rtems.h, config/bfin/t-rtems: New.
10036 * config.gcc: Add bfin*-rtems*.
10038 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
10040 * c.opt: Add -flax-vector-conversions.
10041 * c-typeck.c (convert_for_assignment): Pass flag to
10042 vector_types_convertible_p to allow emission of note.
10043 (digest_init): Likewise.
10044 * c-opts.c: Handle -flax-vector-conversions.
10045 * c-common.c (flag_lax_vector_conversions): New.
10046 (vector_types_convertible_p): Unless -flax-vector conversions
10047 has been passed, disallow conversions between vectors with
10048 differing numbers of subparts and/or element types. If such
10049 a conversion is disallowed, possibly emit a note on the first
10050 occasion only to inform the user of -flax-vector-conversions.
10051 The new last argument specifies this.
10052 * c-common.h (flag_lax_vector_conversions): New.
10053 (vector_types_convertible_p): Add extra argument.
10054 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
10055 char_type_node for V*QI type vectors.
10056 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
10057 Update to satisfy new typechecking rules.
10058 * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
10059 C and C++ variants.
10060 * doc/invoke.texi (C Dialect Options): Document
10061 -flax-vector-conversions.
10063 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
10065 PR tree-optimization/29877
10066 * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
10067 a register variable on the RHS to not be replaceable.
10069 2007-01-08 Chen Liqin <liqin@sunnorth.com.cn>
10070 * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
10071 * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
10072 const_simm15, const_pow2, const_npow2): Added.
10073 * config/score/misc.md (insv, extv, extzv, movmemsi,
10074 move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
10075 * config/score/score.c (score_address_cost, score_select_cc_mode):
10077 Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
10078 Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
10079 Update score_print_operand.
10080 * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
10081 Adjust register allocate order and update some macro define.
10082 * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
10083 mdx_block_move_straight, mdx_block_move_loop_head,
10084 mdx_block_move_loop_body, mdx_block_move_loop_foot, mdx_block_move_loop,
10085 mdx_block_move): Added.
10086 (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
10087 mdp_limm): Updated and fix some bug and typo.
10088 * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
10089 (movsf, movdf, doloop_end): Added.
10091 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
10093 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
10094 config/arm/thumb2.md: Fix comment typos.
10095 * doc/extend.texi: Fix a typo.
10097 2007-01-07 Eric Christopher <echristo@apple.com>
10099 * configure.ac: Check for __stack_chk_fail for darwin.
10100 * configure: Regenerate.
10102 2007-01-07 Richard Guenther <rguenther@suse.de>
10104 * tree-vrp.c (extract_range_from_assert): CSE calls to
10105 compare_values where possible.
10106 (extract_range_from_unary_expr): Likewise.
10108 2007-01-07 Anatoly Sokolov <aesok@post.ru>
10110 * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
10111 * config/avr/avr.c (call_insn_operand): Delete function.
10112 * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
10113 instead of register number. Use predicates.
10114 * config/avr/predicates.md (const0_operand, reg_or_0_operand,
10115 call_insn_operand): Add.
10117 2007-01-06 Jan Hubicka <jh@suse.cz>
10119 * tree-pass.h (pass_build_cgraph_edges): Declare.
10120 * cgraphunit.c (record_refernece): Move to cgraphbuild.c
10121 (visited_nodes): Remove.
10122 (cgraph_create_edges): Move to cgraphbuild.c; rename to
10123 build_cgrpah_edges; make visited_nodes local.
10124 (cgraph_process_new_functions): DO not call initialize_inline_failed.
10125 (record_references_in_initializer): Move to cgraphbuild.c
10126 (initialize_inline_failed, rebuild_cgraph_edges,
10127 pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
10128 (verify_cgraph_node): Make visited_nodes local.
10129 (cgraph_analyze_function): Do not call cgraph_create_edges and
10130 initialize_inline_failed.
10131 (cgraph_expand_function): Do not call cgraph_lower_function;
10132 assert that function is already lowered.
10133 * Makefile.in (cgraphbuild.o): New.
10134 * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
10135 at the end of lowering passes.
10137 2007-01-06 Steven Bosscher <steven@gcc.gnu.org>
10139 * ifcvt.c (cond_move_convert_if_block): New function, code
10140 factored out from...
10141 (cond_move_process_if_block): ...here. Call the new function
10142 on the THEN and ELSE blocks.
10143 (merge_if_block): Do not copy global_live_at_end, merge_blocks
10144 already takes care of this.
10146 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10149 * tree.h (TREE_OVERFLOW_P): New.
10150 * c-typeck.c (parser_build_unary_op): Warn only if result
10151 overflowed and operands did not.
10152 (parser_build_binary_op): Likewise.
10153 (convert_for_assignment): Remove redundant overflow_warning.
10154 * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
10156 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10158 * c-typeck.c (store_init_value): Split over two lines to follow
10159 the GNU coding style.
10161 2007-01-05 Benjamin Kosnik <bkoz@redhat.com>
10163 * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
10164 __GXX_EXPERIMENTAL_CXX0X__.
10165 * doc/cpp.texi: Same.
10167 2007-01-05 Richard Guenther <rguenther@suse.de>
10169 PR middle-end/27826
10170 * tree.c (get_narrower): Do not construct COMPONENT_REFs
10171 with mismatched types. Instead explicitly build a
10172 conversion NOP_EXPR.
10174 2007-01-05 Ian Lance Taylor <iant@google.com>
10176 * c-common.c (decl_with_nonnull_addr_p): New function.
10177 (c_common_truthvalue_conversion): Call it.
10178 * c-typeck.c (build_binary_op): Likewise.
10179 * c-common.h (decl_with_nonnull_addr_p): Declare.
10181 2007-01-05 Jakub Jelinek <jakub@redhat.com>
10184 * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
10187 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10189 * doc/install.texi (Final install): Document the fact that
10190 the GNAT runtime should not be stripped.
10192 2007-01-04 Jan Hubicka <jh@suse.cz>
10194 * tree-inline.c (fold_marked_statements): Update operand caches
10195 and EH after folding
10197 2007-01-04 Ian Lance Taylor <iant@google.com>
10199 * c-common.c (check_function_nonnull): Whitespace fix.
10201 2007-01-04 Jan Hubicka <jh@suse.cz>
10203 * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
10204 comitted older version of patch.
10205 (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
10206 function, celanup cfg and collect garbage.
10208 2007-01-04 Mike Stump <mrs@apple.com>
10210 * Makefile.in (mostlyclean): Don't remove libgcc anymore.
10213 2007-01-04 Eric Christopher <echristo@apple.com>
10215 * libgcc2.c (__bswapsi2): Use SItype.
10216 (__bswapdi2): Use DItype.
10217 * libgcc2.h: Update for above.
10219 2007-01-04 Paul Brook <paul@codesourcery.com>
10221 * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
10222 mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
10223 mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
10224 umulsidi3, umulsidi3adddi, smulsi3_highpart,
10225 umulsi3_highpart): Make conditional on !arm_arch6.
10226 (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
10227 mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
10228 mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
10229 umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
10230 umulsi3_highpart_v6): New insns.
10232 2007-01-04 Roger Sayle <roger@eyesopen.com>
10234 * fold-const.c (fold_convert): When casting an expression to void,
10235 fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
10236 have a type. Instead of attempting to build a NOP_EXPR, return
10237 these "special" trees directly.
10239 2007-01-04 Joseph Myers <joseph@codesourcery.com>
10241 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
10242 MULT inside MINUS as either argument. Use rs6000_cost->dmul -
10243 rs6000_cost->fp not 0 as adjustment for outer NEG.
10245 2007-01-04 Jan Hubicka <jh@suse.cz>
10247 * cgraph.c (cgraph_release_function_body): New function.
10248 (cgraph_remove_node): Use it.
10249 * cgraph.h (cgraph_release_function_body): Declare.
10250 * cgraphunit.c (cgraph_expand_function): Use it.
10251 * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
10252 * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
10253 is initialized and while compilation of other function is running.
10254 * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
10255 statement CFG annotations from here to ...
10256 * tree-cfg.c (delete_tree_cfg_annotations): ... here.
10258 2007-01-04 Zdenek Dvorak <dvorakz@suse.cz>
10260 * cfgloop.h (enum li_flags): Make the constants powers of two.
10262 2007-01-04 Jan Hubicka <jh@suse.cz>
10264 * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
10266 (fold_marked_statements): New function.
10267 (optimize_inline_calls, tree_function_versioning): Fold new statements.
10268 * tree-inline.h (copy_body_data): Add statements_to_fold.
10270 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10272 * config.gcc: Mention libgcc/config.host.
10273 * Makefile.in: Update comments mentioning libgcc.
10274 (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
10275 (all.cross, start.encap, rest.encap, rest.cross): Update
10276 dependencies for libgcc move.
10277 (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
10278 (clean-target, clean-target-libgcc): Delete.
10279 (srcdirify, GCC_EXTRA_PARTS): New macros.
10280 (libgcc-support, libgcc.mvars): New rules.
10281 (distclean): Remove mention of mklibgcc.
10282 (install): Don't reference INSTALL_LIBGCC.
10283 (install-common): Don't reference EXTRA_PARTS.
10284 (install-libgcc, install-multilib): Delete rules.
10285 * mklibgcc.in: Delete file.
10286 * doc/configfiles.texi: Don't mention mklibgcc.
10288 * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
10289 * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
10290 * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
10291 * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
10292 (mklibgcc, ldblspecs): Likewise.
10294 * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
10295 (posixpre.def): Use $(T).
10296 (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
10297 (SHLIB_SRC, SHLIB_INSTALL): Delete.
10298 (SHLIB_LINK): Make dummy.
10299 * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
10301 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
10303 * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
10304 * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
10305 config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
10306 config/rs6000/t-newas, config/sparc/t-elf: Likewise.
10308 * configure.ac (all_outputs): Remove mklibgcc.
10309 * configure: Regenerated.
10311 2007-01-03 Josh Conner <jconner@apple.com>
10313 PR middle-end/29683
10314 * calls.c (compute_argument_addresses): Set stack and stack_slot
10315 for partial args, too.
10316 (store_one_arg): Use locate.size.constant for the size when
10317 generating a save_area.
10319 2007-01-03 Robert Kennedy <jimbob@google.com>
10321 * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
10322 whose definitions are deleted due to basic block merging.
10324 2007-01-03 Paul Brook <paul@codesourcery.com>
10327 * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
10329 (use_return_insn): Return 0 for Thumb interrupt functions.
10330 (print_multi_reg): Add rfe argument for IRQ returns.
10331 (arm_output_epilogue): Pop interrupt return address directly into PC.
10332 (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
10334 2007-01-03 Paul Brook <paul@codesourcery.com>
10336 Merge from sourcerygxx-4_1.
10337 * config/arm/thumb2.md: New file.
10338 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
10340 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
10341 * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
10342 (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
10343 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
10345 (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
10346 * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
10348 * config/arm/ieee754-sf.S: Ditto.
10349 * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
10350 (thumb1_base_register_rtx_p): ... to this.
10351 (thumb_index_register_rtx_p): Rename...
10352 (thumb1_index_register_rtx_p): ... to this.
10353 (thumb_output_function_prologue): Rename...
10354 (thumb1_output_function_prologue): ... to this.
10355 (thumb_legitimate_address_p): Rename...
10356 (thumb1_legitimate_address_p): ... to this.
10357 (thumb_rtx_costs): Rename...
10358 (thumb1_rtx_costs): ... to this.
10359 (thumb_compute_save_reg_mask): Rename...
10360 (thumb1_compute_save_reg_mask): ... to this.
10361 (thumb_final_prescan_insn): Rename...
10362 (thumb1_final_prescan_insn): ... to this.
10363 (thumb_expand_epilogue): Rename...
10364 (thumb1_expand_epilogue): ... to this.
10365 (arm_unwind_emit_stm): Rename...
10366 (arm_unwind_emit_sequence): ... to this.
10367 (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
10368 thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
10369 thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
10370 arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
10371 thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
10372 thumb2_output_casesi): New functions.
10373 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
10374 (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
10375 FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
10376 THUMB2_WORK_REGS): Define.
10377 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
10378 arm_condexec_mask, arm_condexec_masklen)): New variables.
10379 (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
10380 (arm_override_options): Check new CPU capabilities.
10381 Set new architecture flag variables.
10382 (arm_isr_value): Handle v7m interrupt functions.
10383 (user_return_insn): Return 0 for v7m interrupt functions. Handle
10385 (const_ok_for_arm): Handle Thumb-2 constants.
10386 (arm_gen_constant): Ditto. Use movw when available.
10387 (arm_function_ok_for_sibcall): Return false for v7m interrupt
10389 (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
10390 (thumb_find_work_register, arm_load_pic_register,
10391 legitimize_tls_address, arm_address_cost, load_multiple_sequence,
10392 emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
10393 print_multi_reg, output_mov_long_double_fpa_from_arm,
10394 output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
10395 output_mov_double_fpa_from_arm, output_move_double,
10396 arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
10397 output_return_instruction, arm_output_function_prologue,
10398 arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
10399 arm_output_mi_thunk, thumb_set_return_address): Ditto.
10400 (arm_expand_prologue): Handle Thumb-2. Use arm_save_coproc_regs.
10401 (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
10402 (arithmetic_instr, shift_op): Use arm_shift_nmem.
10403 (arm_print_operand): Use arm_print_condition. Handle '(', ')', '.',
10405 (arm_final_prescan_insn): Use extract_constrain_insn_cached.
10406 (thumb_expand_prologue): Use thumb_set_frame_pointer.
10407 (arm_file_start): Output directive for unified syntax.
10408 (arm_unwind_emit_set): Handle stack alignment instruction.
10409 * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
10410 Add v6t2, v7, v7a, v7r and v7m.
10411 (RETLDM): Add Thumb-2 code.
10412 (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
10413 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
10414 (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
10415 TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
10416 THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
10417 ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
10418 THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
10419 CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
10420 ADJUST_INSN_LENGTH): Define.
10421 (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
10422 STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
10423 BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
10424 PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
10425 SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
10426 TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
10427 HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
10428 HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
10429 REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
10430 REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
10431 LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
10432 GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
10433 ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
10434 FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
10435 PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
10436 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
10437 * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
10439 * config/arm/arm-tune.md: Regenerate.
10440 * config/arm/arm-protos.h: Update prototypes.
10441 * config/arm/vfp.md: Enable patterns for Thumb-2.
10442 (arm_movsi_vfp): Add movw alternative. Use output_move_vfp.
10443 (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
10444 (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
10445 thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
10446 * config/arm/libunwind.S: Add Thumb-2 code.
10447 * config/arm/constraints.md: Update include Thumb-2.
10448 * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
10449 * config/arm/ieee754-df.S: Ditto.
10450 * config/arm/bpabi.S: Ditto.
10451 * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
10452 * config/arm/predicates.md (low_register_operand,
10453 low_reg_or_int_operand, thumb_16bit_operator): New.
10454 (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
10455 (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
10456 * config/arm/t-arm-elf: Add armv7 multilib.
10457 * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
10459 (UNSPEC_STACK_ALIGN, ce_count): New.
10460 (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
10461 arm_zero_extendsidi2, arm_zero_extendqidi2): New
10463 * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
10464 (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
10465 thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
10466 * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
10467 (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
10468 thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
10470 * doc/extend.texi: Document ARMv7-M interrupt functions.
10471 * doc/invoke.texi: Document Thumb-2 new cores+architectures.
10473 2007-01-03 Jakub Jelinek <jakub@redhat.com>
10475 * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
10476 (struct _Unwind_Context): Rename args_size to flags, remove
10477 signal_frame field, add a new args_size field and version field.
10478 (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
10479 _Unwind_IsExtendedContext): New inline functions.
10480 (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
10481 Assume by_value array is only present if _Unwind_IsExtendedContext.
10482 (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
10483 _Unwind_IsSignalFrame.
10484 (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
10485 (uw_update_context_1): Use _Unwind_SetSignalFrame.
10486 (uw_init_context_1): Initialize context->flags to
10487 EXTENDED_CONTEXT_BIT.
10488 * config/rs6000/linux-unwind.h (frob_update_context): Use
10489 _Unwind_SetSignalFrame.
10491 2007-01-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
10493 PR middle-end/30353
10494 * gimplify.c (gimplify_modify_expr_complex_part): Move below
10495 tree_to_gimple_tuple. Call tree_to_gimple_tuple when we need
10498 2007-01-03 Kazu Hirata <kazu@codesourcery.com>
10500 * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
10501 REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
10502 RET, AT_SP): Remove.
10503 * config/i386/i386.md (*sse_prologue_save_insn): Use return
10506 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
10507 * cfgbuild.c (find_basic_blocks): Likewise.
10508 * cfgrtl.c (rtl_create_basic_block): Likewise.
10509 * function.c (temp_slots_at_level): Likewise.
10510 * reg-stack.c (stack_regs_mentioned): Likewise.
10511 * regclass.c (allocate_reg_info): Likewise.
10512 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
10513 set_bb_for_stmt, move_block_to_fn): Likewise.
10514 * tree-complex.c (tree_lower_complex): Likewise.
10515 * vec.h (VEC_safe_grow_cleared): New.
10517 * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
10519 2007-01-03 Zdenek Dvorak <dvorakz@suse.cz>
10521 * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
10522 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
10524 * cfgloopmanip.c (scale_loop_frequencies): Export.
10525 (loopify): Scale the frequencies by prescribed coefficients.
10526 (set_zero_probability): New function.
10527 (duplicate_loop_to_header_edge): Improve updating of frequencies.
10528 (lv_adjust_loop_entry_edge, loop_version): Set probabilities
10529 and frequencies according to arguments.
10530 * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
10532 * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
10533 * modulo-sched.c (sms_schedule): Set probabilities for entering
10534 versioned loop correctly.
10535 * tree-vect-transform.c (vect_transform_loop): Ditto.
10536 * cfgloop.h (loopify, loop_version): Declaration changed.
10537 (scale_loop_frequencies): Declared.
10539 2007-01-02 Jan Hubicka <jh@suse.cz>
10541 * cgraph.c: Include tree-flow.h
10542 (cgraph_add_new-function): Handle IPA_SSA mode; execute
10543 early_local_passes.
10544 * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
10545 * tree-pass.h (pass_all_early_optimizations): Declare.
10546 * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
10547 early_local_passes.
10548 (cgraph_analyze_function): Do early_local_passes.
10549 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
10550 Do not add referenced vars.
10551 * tree-optimize.c (gate_all_optimizations): Do not execute when not in
10553 (gate_all_early_local_passes): New gate.
10554 (pass_early_local_passes): Use new gate.
10555 (execute_early_local_optimizations): New functions.
10556 (gate_all_early_optimizations): New gate.
10557 (pass_all_early_optimizations): New pass.
10558 (execute_free_datastructures): Free SSA only when initialized.
10559 (gate_init_datastructures): Init only when optimizing.
10560 (tree_lowering_passes): Do early local passes when called late.
10561 * tree-profile.c (do_tree_profiling): Don't profile functions added
10563 (do_early_tree_profiling, pass_early_tree_profile): Kill.
10564 * tree-cfg.c (update_modified_stmts): Do not update when operands are
10566 * passes.c (init_optimizations_passes): Reorder so we go into SSA
10567 during early_local_passes.
10568 * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
10571 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
10573 * Makefile.in: Update copyright year.
10575 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
10577 * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
10578 in $(lang_checks) and check-consistency targets.
10580 2007-01-02 Jan Hubicka <jh@suse.cz>
10582 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
10583 Do not add referenced vars.
10584 * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
10586 * passes.c (init_optimization_passes): Put mudflap_2 after
10587 free_datastructures.
10589 2007-01-02 Jan Hubicka <jh@suse.cz>
10591 * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
10592 Set NOTHROW flag on call statements proved to be nothrow.
10593 Update statement of local calls so new pure/const functions are
10594 updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
10596 (tree_rest_of_compilation): Register hooks and initialize bitmap
10597 early. Do not set after_inlining flag.
10599 2007-01-02 Steve Ellcey <sje@cup.hp.com>
10601 * sbitmap.c (HOST_BITS_PER_LONG_LONG): Change to
10602 HOST_BITS_PER_LONGLONG
10604 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10607 * c-typeck.c (store_init_value): Don't emit pedantic overflow
10608 warning for non-static initializers.
10610 2007-01-02 Steven Bosscher <steven@gcc.gnu.org>
10612 * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
10613 m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
10614 rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
10615 Always use set_unique_reg_note to add REG_EQUAL notes.
10617 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
10620 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
10622 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
10623 * cfgbuild.c (find_basic_blocks): Likewise.
10624 * cfgrtl.c (rtl_create_basic_block): Likewise.
10625 * function.c (temp_slots_at_level): Likewise.
10626 * reg-stack.c (stack_regs_mentioned): Likewise.
10627 * regclass.c (allocate_reg_info): Likewise.
10628 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
10629 set_bb_for_stmt, move_block_to_fn): Likewise.
10630 * tree-complex.c (tree_lower_complex): Likewise.
10631 * vec.h (VEC_safe_grow_cleared): New.
10633 2007-01-02 Ian Lance Taylor <iant@google.com>
10635 * c-common.c (c_common_truthvalue_conversion): When warning about
10636 using an assignment as a truth value, set TREE_NO_WARNING.
10638 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10641 * c.opt (Wold-style-declaration): New.
10642 * doc/invoke.texi (C-only Warning Options): New.
10643 (Wold-style-declaration): Document it.
10644 (Wextra): Enabled by -Wextra.
10645 * c-opts.c (c_common_post_options): Enabled by -Wextra.
10646 * c-decl.c (declspecs_add_scspec): Replace -Wextra with
10647 -Wold-style-declaration.
10649 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
10651 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
10652 * cfgbuild.c (find_basic_blocks): Likewise.
10653 * cfgrtl.c (rtl_create_basic_block): Likewise.
10654 * function.c (temp_slots_at_level): Likewise.
10655 * reg-stack.c (stack_regs_mentioned): Likewise.
10656 * regclass.c (allocate_reg_info): Likewise.
10657 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
10658 set_bb_for_stmt, move_block_to_fn): Likewise.
10659 * tree-complex.c (tree_lower_complex): Likewise.
10660 * vec.h (VEC_safe_grow_cleared): New.
10662 2007-01-02 Douglas Gregor <doug.gregor@gmail.com>
10664 * c-common.c (c_common_nodes_and_builtins): Since variants of
10665 void_type_node get built before it is given a name, we need to
10666 give those variants the name, too.
10667 (complete_array_type): We need to work with the canonical main
10668 type of the array, from which we will build the qualified version.
10669 * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
10670 * print-tree.c (print_node): Display canonical type information
10672 * stor-layout.c (layout_type): When we don't know the
10673 alignment of a type for which we're building an array, we end up
10674 guessing wrong, so make the type require structural equality.
10675 * tree.c (make_node_stat): When we build a new type, it is its
10676 own canonical type.
10677 (build_type_attribute_qual_variant): When building an attribute
10678 variant, its canonical type is the non-attribute variant. However,
10679 if the attributes are target-dependent and they differ, we need to
10680 use structural equality checks for this type.
10681 (build_qualified_type): A qualified type is not equivalent to its
10682 unqualified variant; set the canonical type appropriately.
10683 (build_distinct_type_copy): When building a distinct type from
10684 another type, the new type is its own canonical type.
10685 (build_variant_type_copy): When building a new type variant, we
10686 assume that it is equivalent to the original type.
10687 (build_pointer_type_for_mode): When building a pointer type, also
10688 build a canonical type pointer.
10689 (build_reference_type_for_mode): When building a reference type,
10690 also build a canonical type reference.
10691 (build_index_type): When we can't hash an index type (e.g.,
10692 because its maximum value is negative), the index type requires
10693 structural equality tests.
10694 (build_array_type): Build the canonical form of an array type.
10695 (build_function_type): Function types require structural equality,
10696 because they contain default arguments, attributes, etc.
10697 (build_method_type_directly): Ditto for method types.
10698 (build_offset_type): Build the canonical offset type.
10699 (build_complex_type): Build the canonical vector type.
10700 (make_vector_type): Build the canonical vector type.
10701 * tree.h (TYPE_CANONICAL): New.
10702 (TYPE_STRUCTURAL_EQUALITY_P): New.
10703 (SET_TYPE_STRUCTURAL_EQUALITY): New.
10704 (struct tree_type): Added "canonical" field.
10705 * params.h (VERIFY_CANONICAL_TYPES): New.
10706 * doc/c-tree.texi (TYPE_CANONICAL): Document.
10707 (TYPE_STRUCTURAL_EQUALITY_P): Document.
10708 (SET_TYPE_STRUCTURAL_EQUALITY): Document.
10709 * doc/invoke.texi (verify-canonical-types): Document --param
10710 parameter for verifying canonical types.
10712 2007-01-02 Joseph Myers <joseph@codesourcery.com>
10714 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
10715 powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
10716 powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
10717 powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
10719 * config/rs6000/e500.h: New.
10720 * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
10721 TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
10723 * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
10724 TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
10725 TARGET_E500_DOUBLE): Remove.
10726 * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
10727 TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
10728 * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
10729 * config/rs6000/rs6000.c (rs6000_override_options): Use
10730 CHECK_E500_OPTIONS.
10732 2007-01-02 Joseph Myers <joseph@codesourcery.com>
10734 * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
10735 TARGET_E500_DOUBLE), not TARGET_E500, for %y.
10736 (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
10737 rs6000_emit_cmove): Don't check TARGET_E500.
10738 * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
10739 sordered): Don't check TARGET_E500.
10741 2007-01-01 Eric Christopher <echristo@apple.com>
10743 * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
10744 HARD_REGISTER_NUM_P.
10746 2007-01-01 Roger Sayle <roger@eyesopen.com>
10748 * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
10749 "X eq/ne (C1^C2)". Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
10750 has no side-effects. Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
10753 2007-01-01 Mike Stump <mrs@apple.com>
10755 * configure.ac: Remove support for building with Apple's gcc-3.1.
10757 2007-01-02 Joseph Myers <joseph@codesourcery.com>
10759 PR middle-end/30311
10760 * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
10761 REG is a hard register. Do not modify REG before calling
10763 * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
10764 multiple of the size of YMODE for certain lowpart cases.
10766 2007-01-01 Andrew Pinski <pinskia@gmail.com>
10768 PR middle-end/30253
10769 * gimplify (voidify_wrapper_expr): Update for
10770 GIMPLE_MODIFY_STMT.
10772 2007-01-01 Andreas Schwab <schwab@suse.de>
10775 * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
10776 save of BR0 in extra_spill_size instead of spill_size.
10777 (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
10779 (ia64_expand_epilogue): Restore BR0 from its new location.
10781 2007-01-01 Andrew Pinski <pinskia@gmail.com>
10783 * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
10784 Use a temporary variable if the left hand side is not a gimple
10787 2007-01-01 Andrew Pinski <pinskia@gmail.com>
10789 * gimplify.c (gimplify_return_expr): Make the temporary variable
10790 for the return expression, a gimple register variable.
10792 2007-01-01 Jan Hubicka <jh@suse.cz>
10794 * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
10797 2007-01-01 Mike Stump <mrs@apple.com>
10799 * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
10801 * config/darwin.c (machopic_select_rtx_section): Use
10802 HAVE_GAS_LITERAL16.
10803 (darwin_mergeable_constant_section): Likewise.
10804 * configure: Regenerate.
10805 * config.in: Regenerate.
10807 2007-01-01 Jan Hubicka <jh@suse.cz>
10808 Andrew Pinski <pinskia@gmail.com>
10810 * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
10811 before starting IPA passes.